/* JAA Partners — site stylesheet (v2, "Night & Signal")
   Layout: deep night bands carry the hero, industries and contact; a vivid teal band
   carries the engagement models; light sections in between. Teal is the brand signal,
   amber is the spark (numbers, primary actions). Each industry owns one hue. */
:root {
  --bg: #f1f6f6;
  --surface: #ffffff;
  --ink: #0d1b24;
  --ink-2: #4a5d69;
  --line: #d3e0e2;
  --teal: #0aa39a;
  --teal-ink: #077d76;
  --teal-soft: #d6f3ef;
  --amber: #ffa630;
  --amber-ink: #b25e00;
  --coral: #ef5a5f;
  --blue: #2f6fdf;

  --night: #08141c;
  --night-2: #0f2230;
  --night-3: #14303f;
  --night-ink: #ecf5f6;
  --night-ink-2: #a3bbc5;
  --night-line: #1f3a49;
  --glow: #34e3cf;

  /* legacy aliases used by inline SVG */
  --band: var(--night);
  --band-2: var(--night-2);
  --band-ink: var(--night-ink);
  --band-ink-2: var(--night-ink-2);
  --band-line: var(--night-line);
  --band-teal: var(--glow);

  /* client logo plates stay white in both themes */
  --plate: #ffffff;
  --plate-ink: #15202a;
  --plate-2: #5a6874;
  --plate-accent: #0e8a8c;

  /* industry hues */
  --re-1: #0fb3a6; --re-2: #0b5f80;
  --co-1: #ffa630; --co-2: #e2531b;
  --hc-1: #f2606a; --hc-2: #b8235a;
  --ps-1: #4b86f0; --ps-2: #23308f;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.5rem + 3vw, 4rem);

  --radius: 14px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(8, 20, 28, .06), 0 12px 32px rgba(8, 20, 28, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071118; --surface: #0e1d27; --ink: #e8f1f3; --ink-2: #9db3bd; --line: #1d3341;
    --teal: #22c3b6; --teal-ink: #4fe0d2; --teal-soft: #0e3532; --amber-ink: #ffb454;
    --night: #040b10; --night-2: #0b1a24; --night-3: #102735;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071118; --surface: #0e1d27; --ink: #e8f1f3; --ink-2: #9db3bd; --line: #1d3341;
  --teal: #22c3b6; --teal-ink: #4fe0d2; --teal-soft: #0e3532; --amber-ink: #ffb454;
  --night: #040b10; --night-2: #0b1a24; --night-3: #102735;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--night);
}
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

/* Dark scopes: re-point the content tokens so any component reads correctly on night/teal bands */
.on-night, .band {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --line: var(--night-line);
  --teal-ink: var(--glow); --surface: var(--night-2); --bg: var(--night);
  color: var(--ink);
}

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 45%, transparent) 62%); color: inherit; padding: 0 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--night-ink); border-bottom: 1px solid var(--night-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--night-ink); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav-group > button {
  color: var(--night-ink-2); text-decoration: none; font: 600 0.95rem var(--f-body);
  padding: 8px 13px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav a[aria-current="page"], .nav-group > button:hover, .nav-group.is-current > button { color: var(--night-ink); background: var(--night-3); }
.nav .nav-cta { color: #1a1206; background: var(--amber); margin-left: 10px; padding-inline: 18px; }
.nav .nav-cta:hover { color: #1a1206; background: #ffc06b; }
.nav-group { position: relative; }
.nav-group > button svg { width: 10px; height: 10px; transition: transform .2s; }
.nav-group[data-open="true"] > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px;
  padding: 8px; display: none; box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.nav-group[data-open="true"] .nav-menu { display: grid; }
.nav-menu a { display: grid; gap: 2px; padding: 11px 14px; border-left: 3px solid transparent; border-radius: 6px; }
.nav-menu a:nth-child(1) { border-left-color: var(--re-1); }
.nav-menu a:nth-child(2) { border-left-color: var(--co-1); }
.nav-menu a:nth-child(3) { border-left-color: var(--hc-1); }
.nav-menu a:nth-child(4) { border-left-color: var(--ps-1); }
.nav-menu a span { font-size: 0.8rem; color: var(--night-ink-2); font-weight: 500; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--night-line); color: var(--night-ink);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
  }
  .site-header[data-menu="open"] .nav { display: flex; }
  .nav a, .nav-group > button { padding: 12px; width: 100%; text-align: left; }
  .nav-menu { position: static; display: grid; box-shadow: none; border: 0; background: none; padding: 0 0 0 10px; min-width: 0; }
  .nav-group > button svg { display: none; }
  .nav .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--f-body);
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: #1a1206; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--amber) 70%, transparent); }
.btn-primary:hover { background: #ffc06b; }
.btn-ghost { border-color: var(--night-line); color: var(--night-ink); }
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }

/* ---------- Hero ---------- */
.band { background: var(--night); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(56px, 7vw, 96px) clamp(110px, 12vw, 150px);
  background:
    radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--teal) 34%, transparent), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%),
    var(--night);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: var(--step-4); margin-top: 20px; letter-spacing: -0.035em; }
.hero h1 em, .grad {
  font-style: normal;
  background: linear-gradient(100deg, var(--glow) 10%, #9be8a0 45%, var(--amber) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-art { position: relative; aspect-ratio: 1 / 0.92; max-width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-art .bar { transform-box: fill-box; transform-origin: bottom; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-art .bar:nth-of-type(2) { animation-delay: .12s; }
.hero-art .bar:nth-of-type(3) { animation-delay: .24s; }
@keyframes rise { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--night-2) 88%, transparent); border: 1px solid var(--night-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--night-ink); font: 600 0.86rem var(--f-body); padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float .tick { background: var(--glow); color: var(--night); }
.float.f1 { top: 8%; left: -4%; }
.float.f2 { top: 46%; right: -2%; animation-delay: -2s; }
.float.f2 .tick { background: var(--amber); }
.float.f3 { bottom: 4%; left: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; flex: none; }
.tick svg { width: 13px; height: 13px; }

/* ---------- Figures (overlap the hero) ---------- */
.figures { position: relative; z-index: 2; margin-top: -84px; }
.figures .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 26px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start;
}
.figure b { font-family: var(--f-display); font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.figure b i, .hero-facts b i { font-style: normal; color: var(--amber); }
.figure span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); position: relative; }
.section-alt { background: var(--surface); }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose p { color: var(--ink-2); }
.prose p strong { color: var(--ink); }
#intro .section-head h2 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.3rem); }
#intro .prose p:first-child { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.service-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal), #0b6f8a);
  box-shadow: 0 10px 22px -10px var(--teal);
}
.service:nth-child(3n+2) .service-icon { background: linear-gradient(135deg, var(--amber), #e2531b); box-shadow: 0 10px 22px -10px var(--amber); }
.service:nth-child(3n) .service-icon { background: linear-gradient(135deg, #4b86f0, #23308f); box-shadow: 0 10px 22px -10px #4b86f0; }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.22rem; margin-top: 6px; }
.service p { color: var(--ink-2); font-size: 0.98rem; }
.service-wide {
  grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 32px; align-items: start;
  background: linear-gradient(120deg, var(--night) 0%, var(--night-3) 100%); border-color: var(--night-line);
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); color: var(--ink); padding: 34px;
}
.service-wide .service-icon { background: linear-gradient(135deg, var(--glow), var(--teal)); color: var(--night); }
.service-wide-body { display: grid; gap: 10px; }
.service-wide h3 { font-size: 1.45rem; margin-top: 0; }
.service-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.service-tags li { font: 500 0.8rem var(--f-mono); color: var(--night-ink); background: color-mix(in srgb, var(--glow) 16%, transparent); border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); border-radius: 999px; padding: 5px 12px; }

/* Engagement models on a vivid band */
#engagements {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(125deg, #08877f 0%, #0aa39a 45%, #0b6f8a 100%);
  --ink: #ffffff; --ink-2: rgba(255,255,255,.84); --line: rgba(255,255,255,.28); --teal-ink: #ffffff;
  color: var(--ink);
}
#engagements .eyebrow::before { background: var(--amber); }
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: m; }
.model {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 10px; align-content: start;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.model:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.model .tag { justify-self: start; font: 600 0.72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #1a1206; background: var(--amber); border-radius: 999px; padding: 4px 11px; }
.model h3 { font-size: 1.2rem; margin-top: 4px; }
.model p { font-size: 0.96rem; color: var(--ink-2); }

/* Industries on night */
#industries { background: var(--night); }
#industries::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%);
}
#industries .wrap { position: relative; }
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.industry {
  --c1: var(--re-1); --c2: var(--re-2);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start;
  min-height: 300px; padding: 32px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  transition: transform .25s, box-shadow .25s;
}
.industry:nth-child(2) { --c1: var(--co-1); --c2: var(--co-2); }
.industry:nth-child(3) { --c1: var(--hc-1); --c2: var(--hc-2); }
.industry:nth-child(4) { --c1: var(--ps-1); --c2: var(--ps-2); }
.industry:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -20px var(--c1); }
.industry-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.industry-icon svg { width: 30px; height: 30px; }
.industry > .industry-icon::after {
  /* oversized watermark of the same icon is drawn by .industry .wm */
  content: none;
}
.industry .wm { position: absolute; right: -40px; bottom: -50px; width: 240px; height: 240px; color: rgba(255,255,255,.14); z-index: -1; transition: transform .4s; }
.industry .wm svg { width: 100%; height: 100%; stroke-width: 1.1; }
.industry:hover .wm { transform: rotate(-6deg) scale(1.06); }
.industry h3 { font-size: 1.55rem; }
.industry p { margin-top: 10px; color: rgba(255,255,255,.9); font-size: 1rem; max-width: 46ch; }
.industry ul { margin-top: 16px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.industry li { font: 500 0.78rem var(--f-mono); color: #fff; background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px 11px; }
.industry .more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #fff; }
.industry .more svg { width: 15px; height: 15px; transition: transform .2s; }
.industry:hover .more svg { transform: translateX(5px); }

/* Qualifications timeline */
.career { list-style: none; display: grid; gap: 14px; counter-reset: c; }
.career li {
  position: relative; display: grid; gap: 4px; padding: 20px 22px 20px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.career li::before {
  counter-increment: c; content: counter(c, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px; font: 600 0.82rem var(--f-mono); color: var(--teal-ink);
}
.career b { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.career span { color: var(--ink-2); font-size: 0.96rem; }

/* Systems chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font: 600 0.95rem/1.3 var(--f-body); letter-spacing: -0.005em; padding: 9px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.chips li:nth-child(4n+1) { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); }
.chips li:nth-child(4n+3) { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.chips li small { color: var(--ink-2); font-size: 0.82rem; font-weight: 500; margin-left: 4px; }

/* ---------- Client marquee ---------- */
.clients { padding-block: 64px 72px; background: var(--surface); border-top: 1px solid var(--line); }
.clients .wrap { display: grid; gap: 30px; }
.clients-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.clients-head h2 { font-size: var(--step-2); }
.clients-head p { color: var(--ink-2); font-size: 0.95rem; max-width: 48ch; }
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 20px; padding-right: 20px; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo {
  flex: none; display: flex; align-items: center; gap: 14px; height: 88px; padding: 0 26px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--plate); color: var(--plate-ink);
}
.logo svg { width: 44px; height: 44px; flex: none; }
.logo img { height: 56px; width: auto; flex: none; display: block; }
.logo img.logo-wide { height: 62px; }
.logo-fill { padding: 0 18px; justify-content: center; }
.logo-fill img[src*="prime-group"] { height: 72px; }
.logo-fill img[src*="modern-garden"] { height: 55px; }
.logo .phh-mark { width: 50px; height: 50px; }
.phh-word { display: grid; line-height: 1; gap: 5px; }
.phh-word b { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.14em; color: #1d3a5c; }
.phh-word span { font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: #0e8a8c; }
.logo img.logo-ey { height: 70px; }
.logo img.logo-slms { height: 66px; }
.logo img.logo-hib { height: 74px; }
.logo img.logo-pen { height: 34px; }
.logo img.logo-sav { height: 52px; }
.logo img.logo-cew { height: 44px; }
.logo:has(img[src*="fury"]) .logo-text b { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; }
.logo-stack { display: grid; gap: 4px; }
.logo-stack img { height: 54px; width: auto; }
.logo-stack span { text-align: center; font: 500 0.6rem var(--f-body); letter-spacing: 0.3em; text-transform: uppercase; color: #202334; white-space: nowrap; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text b { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.logo-text small { font: 0.7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--plate-2); white-space: nowrap; }

/* ---------- CTA / Contact ---------- */
.cta {
  padding-block: clamp(72px, 9vw, 112px); position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, color-mix(in srgb, var(--amber) 18%, transparent), transparent 70%),
    var(--night);
}
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); margin-top: 16px; }
.cta .lede { margin-top: 18px; }
.contact-card { background: color-mix(in srgb, var(--night-2) 85%, transparent); border: 1px solid var(--night-line); border-radius: 18px; padding: 10px 24px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row > div { display: grid; gap: 3px; min-width: 0; }
.contact-row .label { font: 500 0.72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2); }
.contact-row .value { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--night-ink); word-break: break-word; }
.contact-row .value a { color: var(--night-ink); text-decoration: none; }
.copy-btn { flex: none; font: 600 0.82rem var(--f-body); color: var(--night-ink); background: transparent; border: 1px solid var(--night-line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.copy-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: #040c11; color: var(--night-ink-2); border-top: 1px solid var(--night-line); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 52px 36px; display: grid; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-cols h4 { font: 500 0.72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 12px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: var(--night-ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--glow); }
.footer-cols p { max-width: 40ch; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 0.82rem; }

/* ---------- Industry pages ---------- */
.page-hero {
  --accent: var(--re-1); --accent-2: var(--re-2);
  position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(52px, 7vw, 96px);
  background:
    radial-gradient(55% 80% at 90% 10%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%),
    var(--night);
}
.page-hero.accent-crane { --accent: var(--co-1); --accent-2: var(--co-2); }
.page-hero.accent-health { --accent: var(--hc-1); --accent-2: var(--hc-2); }
.page-hero.accent-scale { --accent: var(--ps-1); --accent-2: var(--ps-2); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%);
}
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem); margin-top: 18px; letter-spacing: -0.03em; }
.page-hero .lede { margin-top: 22px; }
.page-hero .industry-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(140deg, var(--accent), var(--accent-2)); border: 0; box-shadow: 0 16px 34px -12px var(--accent); }
.page-hero .eyebrow { color: var(--accent); }
.crumbs { font: 0.78rem var(--f-mono); color: var(--night-ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--night-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--glow); }
.hero-facts { display: grid; border: 1px solid var(--night-line); border-radius: 18px; background: color-mix(in srgb, var(--night-2) 80%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; }
.hero-facts div { padding: 18px 22px; border-bottom: 1px solid var(--night-line); display: grid; gap: 2px; }
.hero-facts div:last-child { border-bottom: 0; }
.hero-facts b { font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; color: var(--night-ink); line-height: 1.1; letter-spacing: -0.02em; }
.hero-facts span { font-size: 0.88rem; color: var(--night-ink-2); }

.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; transition: border-color .2s, transform .2s; }
.cap:hover { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); transform: translateY(-3px); }
.cap .code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); font: 600 0.82rem var(--f-mono); }
.cap h3 { font-size: 1.15rem; }
.cap p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

.scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scenario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.scenario .q { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; display: flex; gap: 10px; align-items: baseline; }
.scenario .q::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg) translateY(-2px); background: var(--amber); }
.scenario p { color: var(--ink-2); font-size: 0.96rem; }

.callout {
  background: linear-gradient(125deg, var(--night) 0%, var(--night-3) 100%);
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --line: var(--night-line); --bg: var(--night-2); --teal-ink: var(--glow);
  color: var(--ink); border-radius: 22px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  position: relative; overflow: hidden; isolation: isolate;
}
.callout::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 40%, transparent), transparent 70%); z-index: -1; }
.callout h3 { font-size: var(--step-2); }
.callout p { color: var(--ink-2); }
.callout .stack { display: grid; gap: 14px; align-content: start; }

.subsector { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); margin-top: 20px; }
.subsector:first-of-type { margin-top: 0; }
.subsector h3 { font-size: var(--step-2); margin-top: 12px; }
.subsector .intro { color: var(--ink-2); margin-top: 12px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.checklist li b { color: var(--ink); font-weight: 700; }
.checklist .tick { margin-top: 3px; }

.other-industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.other-industries a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: var(--radius);
  text-decoration: none; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--c1, var(--re-1)), var(--c2, var(--re-2))); transition: transform .2s;
}
.other-industries a[href*="real-estate"] { --c1: var(--re-1); --c2: var(--re-2); }
.other-industries a[href*="construction"] { --c1: var(--co-1); --c2: var(--co-2); }
.other-industries a[href*="healthcare"] { --c1: var(--hc-1); --c2: var(--hc-2); }
.other-industries a[href*="professional"] { --c1: var(--ps-1); --c2: var(--ps-2); }
.other-industries a:hover { transform: translateY(-3px); }
.other-industries svg { width: 16px; height: 16px; flex: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .float, .hero-art .bar { animation: none; }
  .marquee { overflow-x: auto; }
  .service, .industry, .model, .cap, .btn, .other-industries a, .industry .wm { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero .wrap, .page-hero .wrap, .split, .cta .wrap, .callout, .subsector { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 460px; width: 100%; justify-self: center; }
  .industries, .capabilities, .other-industries { grid-template-columns: minmax(0, 1fr); }
  .service-wide { grid-template-columns: auto minmax(0, 1fr); }
  .service-wide .service-tags { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .services, .models, .scenarios { grid-template-columns: minmax(0, 1fr); }
  .service-wide { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .industry { padding: 26px; min-height: 0; }
  .subsector { padding: 24px; }
  .float { font-size: 0.78rem; padding: 8px 11px; }
  .float.f1 { left: 0; }
  .float.f2 { right: 0; }
  .logo { height: 76px; padding: 0 18px; }
  .logo img { height: 48px; }
  .logo img.logo-wide { height: 54px; }
  .logo-fill img[src*="prime-group"] { height: 62px; }
  .logo-fill img[src*="modern-garden"] { height: 48px; }
}
@media (max-width: 420px) {
  .figures .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion ---------- */
/* Hero: shimmering gradient headline, drifting glow, line that draws itself, pulsing peak */
.hero h1 em {
  background-image: linear-gradient(100deg, var(--glow) 0%, #9be8a0 25%, var(--amber) 50%, #9be8a0 75%, var(--glow) 100%);
  background-size: 200% auto; animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  top: -160px; right: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 22%, transparent), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-140px, 120px) scale(1.15); } }
.hero-art .trend { stroke-dasharray: 340; stroke-dashoffset: 0; animation: draw 1.6s .5s cubic-bezier(.4,0,.2,1) both; }
@keyframes draw { from { stroke-dashoffset: 340; } }
.hero-art .ring { transform-box: fill-box; transform-origin: center; animation: ping 2.4s 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.cta::after {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%;
  bottom: -200px; left: 30%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 18%, transparent), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
#engagements::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.10) 45%, transparent 60%);
  background-size: 250% 100%; animation: sweep 7s ease-in-out infinite;
}
#engagements .wrap { position: relative; z-index: 1; }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.eyebrow::before { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(405deg); } }

/* Scroll reveal: only content below the first screen is staged, and it never drops below a visible state */
html.reveal-on .rv { opacity: .14; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
html.reveal-on .rv.in { opacity: 1; transform: none; }

/* Card tilt follows the pointer on industry cards */
.industry { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.industry:hover { --ty: -5px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); }
.industry .glare { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 60%); }
.industry:hover .glare { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .hero::after, .cta::after, #engagements::after, .eyebrow::before, .hero-art .trend, .hero-art .ring { animation: none; }
  html.reveal-on .rv { opacity: 1; transform: none; transition: none; }
  .industry, .industry:hover { transform: none; }
}

/* ---------- Industry page long-form blocks ---------- */
.accent-building { --accent: var(--re-1); --accent-2: var(--re-2); }
.accent-crane { --accent: var(--co-1); --accent-2: var(--co-2); }
.accent-health { --accent: var(--hc-1); --accent-2: var(--hc-2); }
.accent-scale { --accent: var(--ps-1); --accent-2: var(--ps-2); }

.narrative .split { align-items: start; }
.narrative-side { display: grid; gap: 28px; position: sticky; top: 100px; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.glance-title { font: 600 0.74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.glance-row { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.glance-label { font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; }
.glance ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.glance li { font-size: 0.82rem; font-weight: 600; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 3px 11px; }
.prose-long { gap: 20px; font-size: 1.06rem; }
.prose-long p:first-child { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }

.statement {
  position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 8vw, 104px);
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff;
}
.statement::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(40% 80% at 85% 20%, rgba(255,255,255,.22), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.statement .wrap { display: grid; gap: 18px; }
.statement-text { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -0.025em; max-width: 26ch; text-wrap: balance; }
.statement-note { font-size: 1.08rem; color: rgba(255,255,255,.88); max-width: 60ch; }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pack::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--teal), var(--amber)); }
.pack-cadence { justify-self: start; font: 600 0.72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #1a1206; background: var(--amber); border-radius: 999px; padding: 4px 11px; margin-top: 4px; }
.pack h3 { font-size: 1.25rem; }
.pack ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.pack li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 0.97rem; }
.pack li .tick { margin-top: 2px; }

.ai-card {
  display: grid; gap: 14px; align-content: start; padding: clamp(26px, 4vw, 40px); border-radius: 20px;
  background: linear-gradient(135deg, var(--night) 0%, var(--night-3) 100%);
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --teal-ink: var(--glow); color: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
}
.ai-card::after { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -100px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%); animation: drift 12s ease-in-out infinite alternate; }
.ai-card .service-icon { background: linear-gradient(135deg, var(--glow), var(--teal)); color: var(--night); }
.ai-card h3 { font-size: var(--step-2); }
.ai-card p { color: var(--ink-2); font-size: 1.04rem; }

.scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; position: relative; }
.scale li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 58px; }
.scale li:last-child { padding-bottom: 0; }
.scale li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 700 0.95rem var(--f-display); color: #fff; background: linear-gradient(135deg, var(--teal), #0b6f8a);
}
.scale li:nth-child(2)::before { background: linear-gradient(135deg, #4b86f0, #23308f); }
.scale li:nth-child(3)::before { background: linear-gradient(135deg, var(--amber), #e2531b); }
.scale li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.scale b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }
.scale span { color: var(--ink-2); }

@media (max-width: 1040px) { .packs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 880px) { .narrative-side { position: static; } }
@media (max-width: 680px) { .packs { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .statement::after, .ai-card::after { animation: none; } }

/* ---------- Five headline figures ---------- */
.figures .wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.figure b { font-size: clamp(2.1rem, 1.5rem + 1.2vw, 2.8rem); }
.figure span { font-size: 0.9rem; }
@media (max-width: 1100px) {
  .figures .wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .figure { grid-column: span 2; }
  .figure:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 600px) {
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure, .figure:nth-child(n+4) { grid-column: auto; }
  .figure:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .figures .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Floating "Send us a message" button + inquiry panel ---------- */
.fab {
  position: fixed; z-index: 70;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.98rem var(--f-body); color: #1a1206; background: var(--amber);
  border: 0; border-radius: 999px; padding: 14px 22px 14px 18px; cursor: pointer;
  box-shadow: 0 14px 34px -8px rgba(226, 83, 27, .55), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s, background .2s;
  animation: fab-in .6s .8s cubic-bezier(.2,.8,.2,1) both;
}
.fab svg { width: 22px; height: 22px; flex: none; }
.fab:hover { background: #ffc06b; transform: translateY(-2px); }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent);
  animation: fab-pulse 3.2s 2s ease-out infinite;
}
@keyframes fab-in { from { transform: translateY(14px) scale(.9); } to { transform: none; } }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
@media (max-width: 600px) {
  .fab { padding: 14px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fab svg { width: 26px; height: 26px; }
}
html.inquiry-open { overflow: hidden; }
html.inquiry-open .fab { visibility: hidden; }

.inquiry { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.inquiry-backdrop { position: absolute; inset: 0; background: rgba(4, 11, 16, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s ease both; }
.inquiry-panel {
  position: relative; width: min(640px, 100%); max-height: calc(100% - 8px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,.8,.2,1) both;
}
.inquiry-panel::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--amber), var(--teal), #3ddc84); border-radius: 22px 22px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.inquiry-head { display: flex; justify-content: space-between; gap: 16px; padding: 26px 28px 6px; }
.inquiry-head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-top: 8px; }
.inquiry-head p { color: var(--ink-2); margin-top: 8px; font-size: 0.98rem; }
.inquiry-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.inquiry-close svg { width: 18px; height: 18px; }
.inquiry-close:hover { border-color: var(--teal); color: var(--teal-ink); }
.inquiry-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; padding: 18px 28px 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field label i { font-style: normal; color: var(--amber-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem var(--f-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.inquiry-error { grid-column: 1 / -1; color: var(--coral); font-weight: 600; font-size: 0.92rem; margin: 0; }
.inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.inquiry-actions .btn { border: 0; }
.inquiry-alt { color: var(--ink-2); font-size: 0.88rem; }
.inquiry-alt .sel { user-select: all; color: var(--ink); font-weight: 600; }
.inquiry-done { display: grid; justify-items: start; gap: 12px; padding: 22px 28px 30px; }
.inquiry-done .tick { width: 44px; height: 44px; background: #3ddc84; color: #06301a; }
.inquiry-done .tick svg { width: 24px; height: 24px; }
.inquiry-done h3 { font-size: 1.5rem; }
.inquiry-done p { color: var(--ink-2); }
.btn-ghost-light { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost-light:hover { border-color: var(--teal); color: var(--teal-ink); }
@media (max-width: 560px) {
  .inquiry-form { grid-template-columns: minmax(0, 1fr); padding: 14px 20px 22px; }
  .inquiry-head { padding: 22px 20px 4px; }
  .inquiry-done { padding: 18px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab, .fab::after, .inquiry-backdrop, .inquiry-panel { animation: none; }
}

/* ---------- Message button as a slim vertical tab on the right edge (clear of the hosting badge) ---------- */
.fab {
  top: 50%; bottom: auto; right: 0; translate: 0 -50%;
  writing-mode: vertical-rl; flex-direction: row;
  gap: 10px; padding: 18px 11px 18px 12px;
  font-size: 0.86rem; letter-spacing: .02em;
  border-radius: 12px 0 0 12px;
  padding-right: calc(11px + env(safe-area-inset-right, 0px));
  box-shadow: -6px 8px 24px -8px rgba(226, 83, 27, .5), 0 2px 6px rgba(0,0,0,.18);
  animation: tab-in .6s .8s cubic-bezier(.2,.8,.2,1) both;
}
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: translateX(-3px); }
@keyframes tab-in { from { transform: translateX(100%); } to { transform: none; } }
@media (max-width: 600px) {
  .fab { right: 0; bottom: auto; padding: 14px 8px 14px 9px; padding-right: calc(8px + env(safe-area-inset-right, 0px)); font-size: 0.78rem; }
  .fab-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .fab svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fab { animation: none; } }
