:root {
  --ink: #0a1219;
  --ink-2: #0f1c26;
  --paper: #f6f3ec;
  --paper-2: #efeade;
  --gold: #c9a24b;
  --gold-bright: #e8caa0;
  --cream: #f3ede0;
  --line-dark: rgba(243,238,224,0.12);
  --line-light: #e3ddca;
  --muted-dark: #9aa8ac;
  --muted-light: #6c6a5f;
  --ruby: #9c2b3e;
  --ruby-bright: #e0566e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: 'Fraunces', serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
header.nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,0.4) 20%, rgba(201,162,75,0.4) 80%, transparent);
  opacity: 0; transition: opacity .35s ease;
}
header.nav.scrolled::after, header.nav.solid::after { opacity: 1; }
header.nav.scrolled,
header.nav.solid {
  background: rgba(10,18,25,0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.nav-logo img { height: 20px; width: auto; filter: brightness(0) invert(1); }

/* Brand crest — a small monogram seal paired with the wordmark, for a luxury lockup */
.brand-mark {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 34% 28%, rgba(232,202,160,0.22), rgba(10,18,25,0.85) 72%);
  box-shadow: inset 0 0 8px rgba(232,202,160,0.15), 0 0 12px rgba(201,162,75,0.2);
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 15px; color: var(--gold-bright);
  flex-shrink: 0;
  transition: box-shadow .3s ease, transform .3s ease;
}
.nav-logo:hover .brand-mark { transform: rotate(8deg) scale(1.05); box-shadow: inset 0 0 10px rgba(232,202,160,0.25), 0 0 18px rgba(201,162,75,0.35); }
.brand-mark::before {
  content: "";
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px dashed rgba(201,162,75,0.35);
  animation: bezelSpin 18s linear infinite;
}
@keyframes bezelSpin { to { transform: rotate(360deg); } }
.brand-mark::after {
  content: "";
  position: absolute; top: -2px; right: -2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ruby-bright);
  box-shadow: 0 0 8px 1px rgba(224,86,110,0.7);
  animation: navDotPulse 2.4s ease-in-out infinite;
}
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo .brand-mark { width: 34px; height: 34px; font-size: 17px; }

/* Wordmark shine sweep on hover */
.wordmark { position: relative; display: inline-block; overflow: hidden; }
.wordmark::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.nav-logo:hover .wordmark::after { left: 130%; }

/* Wordmark recolored gold via CSS mask — the source PNG is black, masked to a gold gradient */
.wordmark-gold {
  display: block;
  width: 152px; height: 20px;
  background: linear-gradient(120deg, var(--gold) 12%, var(--gold-bright) 50%, var(--gold) 88%);
  -webkit-mask: url(/img/logo_black.png) no-repeat center / contain;
  mask: url(/img/logo_black.png) no-repeat center / contain;
}
.footer-wordmark { width: 182px; height: 24px; }
@keyframes navDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.3); }
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links > a {
  font-size: 13.5px; letter-spacing: .03em; color: var(--muted-dark);
  transition: color .2s ease; position: relative;
  padding-bottom: 3px;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold-bright);
  transition: width .25s ease;
}
.nav-links > a:not(.nav-cta):hover::after, .nav-links > a.active::after { width: 100%; }
.nav-links > a:hover, .nav-links > a.active { color: var(--cream); }
.nav-cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav-cta::before {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.nav-cta:hover::before { left: 130%; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* Services dropdown */
.nav-drop { position: relative; }
.nav-drop > span {
  font-size: 13.5px; letter-spacing: .03em; color: var(--muted-dark);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.nav-drop:hover > span, .nav-drop.active > span { color: var(--cream); }
.nav-drop > span .caret { font-size: 9px; transition: transform .2s ease; }
.nav-drop:hover > span .caret { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 10px;
  min-width: 260px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.nav-drop:hover .nav-drop-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop-panel a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: 13px; color: var(--muted-dark);
  transition: background .15s ease, color .15s ease;
}
.nav-drop-panel a:hover { background: rgba(255,255,255,0.05); color: var(--cream); }

/* Mobile nav */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  align-items: flex-end;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span { display: block; height: 1.5px; background: var(--cream); border-radius: 2px; transition: all .25s ease; }
.nav-burger span:nth-child(1) { width: 22px; }
.nav-burger span:nth-child(2) { width: 17px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-panel {
  display: none;
  position: fixed; inset: 0; top: 0;
  background: var(--ink);
  z-index: 99;
  padding: 100px 32px 40px;
  flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--cream);
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
}
.mobile-panel .sub-links { display: flex; flex-direction: column; padding-left: 18px; }
.mobile-panel .sub-links a { font-size: 1rem; color: var(--muted-dark); border-bottom: none; padding: 10px 0; }
.mobile-panel .mp-cta { margin-top: 24px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #221704;
  box-shadow: 0 10px 30px rgba(201,162,75,0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201,162,75,0.38); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.btn-ghost-dark:hover { border-color: var(--gold); color: #7a5f22; }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(34,23,4,0.25);
  border-top-color: #221704;
  border-radius: 50%;
  margin-right: 2px;
  animation: spin .6s linear infinite;
}
button:disabled .spinner { display: inline-block; }
button:disabled { opacity: .85; cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero (homepage, animated) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 55% at 82% 8%, rgba(30,70,68,0.35), transparent 60%),
    radial-gradient(ellipse 120% 80% at 15% -10%, #16303b 0%, var(--ink-2) 45%, var(--ink) 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black, transparent);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black, transparent);
  opacity: .5;
  pointer-events: none;
}
/* Fine film-grain texture for a tactile, printed-material feel */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Vignette for cinematic depth */
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 75% at 50% 45%, transparent 45%, rgba(4,9,13,0.55) 100%);
}
/* Slow diagonal light sweep, luxury-watch-ad style */
.hero-sweep {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-sweep::before {
  content: "";
  position: absolute; top: -20%; left: -30%; width: 45%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(232,202,160,0.05) 40%, rgba(232,202,160,0.09) 50%, rgba(232,202,160,0.05) 60%, transparent);
  transform: rotate(8deg);
  animation: sweepAcross 9s ease-in-out infinite;
}
@keyframes sweepAcross {
  0% { left: -40%; }
  55% { left: 120%; }
  100% { left: 120%; }
}
/* Ornamental hairline flanking the eyebrow */
.hero-ornament {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  opacity: 0; animation: rise .8s ease .02s forwards;
}
.hero-ornament .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.hero-ornament .hairline { flex: 1; max-width: 64px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-ornament .ruby-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ruby-bright);
  box-shadow: 0 0 8px 1px rgba(224,86,110,0.7);
  flex-shrink: 0;
  animation: navDotPulse 2.4s ease-in-out infinite;
}

/* Ruby accent rail — thin vertical red line on the hero's left edge */
.hero-red-rail {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 1;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--ruby) 18%, var(--ruby-bright) 50%, var(--ruby) 82%, transparent);
  box-shadow: 0 0 16px 1px rgba(224,86,110,0.35);
  opacity: .85;
}

/* Giant faint watermark glyph — fills the lower-right dead space */
.hero-watermark {
  position: absolute; z-index: 1;
  right: 4%; bottom: -4%;
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: 26vw; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,202,160,0.09);
  pointer-events: none;
  user-select: none;
}

/* Vertical rotated text rail along the right edge */
.hero-rail {
  position: absolute; z-index: 1;
  right: 26px; top: 50%; bottom: auto;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  display: flex; align-items: center; gap: 14px;
  white-space: nowrap;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-dark);
  opacity: .55;
  pointer-events: none;
}
.hero-rail .dot { color: var(--gold); font-size: 8px; }
@media (max-width: 1150px) {
  .hero-rail, .hero-watermark { display: none; }
}

/* Ruby accent on select headline text */
.accent-red {
  position: relative;
  background: linear-gradient(100deg, var(--ruby) 0%, var(--ruby-bright) 45%, var(--ruby) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rubyShine 5s ease-in-out infinite;
  text-shadow: none;
}
@keyframes rubyShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Bold ruby emphasis for select body copy */
.text-ruby {
  color: var(--ruby-bright);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(224,86,110,0.25);
}

/* Ruby highlight strip — a designed callout, not raw inline bold text */
.highlight-strip {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 24px;
  padding: 14px 22px 14px 18px;
  max-width: 46ch;
  border-left: 3px solid var(--ruby-bright);
  background: linear-gradient(90deg, rgba(156,43,62,0.14), rgba(156,43,62,0.02));
  border-radius: 0 12px 12px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0; animation: rise .9s ease .4s forwards;
}
.highlight-strip .hs-mark {
  flex-shrink: 0; color: var(--ruby-bright); font-size: 15px;
  text-shadow: 0 0 10px rgba(224,86,110,0.6);
}
.highlight-strip span:last-child {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 16.5px; line-height: 1.45;
  color: var(--ruby-bright);
  text-shadow: 0 0 16px rgba(224,86,110,0.2);
}
@media (max-width: 560px) {
  .highlight-strip { max-width: 100%; padding: 12px 16px; }
  .highlight-strip span:last-child { font-size: 15px; }
}

/* Rotating brand seal — fills the empty right-of-headline space */
.brand-seal {
  position: absolute; z-index: 1;
  right: 11%; top: 14%;
  width: 168px; height: 168px;
  color: var(--gold-bright);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: sealIn 1.2s ease 1.4s forwards;
}
@keyframes sealIn { to { opacity: .55; } }
.brand-seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-rotate { transform-origin: 100px 100px; animation: sealSpin 44s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.seal-center {
  position: absolute; font-family: 'Fraunces', serif; font-style: italic;
  color: var(--gold-bright); font-size: 20px;
  text-shadow: 0 0 16px rgba(232,202,160,0.5);
}
@media (max-width: 1150px) {
  .brand-seal { display: none; }
}

/* Soft ambient light particles — gentle drifting dust motes, purely atmospheric */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-particles span {
  position: absolute; left: var(--x); top: var(--y);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 7px 1.5px rgba(232,202,160,0.55);
  opacity: 0;
  animation: particleFloat var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(.8); }
  15% { opacity: .8; }
  50% { opacity: .5; transform: translateY(-30px) scale(1); }
  85% { opacity: .3; }
  100% { opacity: 0; transform: translateY(-60px) scale(.8); }
}

/* Small glass "Built With" card — extra fill for the lower-right hero space */
.hero-mini-card {
  position: absolute; z-index: 1;
  right: 6%; bottom: 15%;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232,202,160,0.18);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.28);
  opacity: 0; animation: rise .9s ease 1.6s forwards;
}
.mmc-label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 10px;
}
.mmc-chips { display: flex; flex-wrap: wrap; gap: 7px; max-width: 190px; }
.mmc-chips span {
  font-size: 11px; color: var(--cream);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.03);
  padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 1150px) {
  .hero-particles, .hero-mini-card { display: none; }
}

.glow {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.22), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  transition: opacity .4s ease;
}
.hero-content { position: relative; z-index: 2; min-width: 0; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 26px;
  opacity: 0; animation: rise .8s ease .1s forwards;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 16ch;
  opacity: 0; animation: rise .9s ease .22s forwards;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero h1 em {
  position: relative;
  display: inline-block;
  font-style: italic; color: var(--gold-bright); font-weight: 400;
}
.hero h1 em::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: 0.08em;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(232,202,160,0.55);
  animation: underlineReveal 1s cubic-bezier(.2,.8,.2,1) 1.15s forwards;
}
@keyframes underlineReveal { to { width: calc(100% - 4px); } }
.hero p.lead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-dark);
  opacity: 0; animation: rise .9s ease .34s forwards;
}
.hero-ctas {
  margin-top: 42px;
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: rise .9s ease .46s forwards;
}
.hero-badges {
  margin-top: 46px;
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: rise .9s ease .56s forwards;
}
.hero-badges span {
  font-size: 12px; letter-spacing: .03em; color: var(--muted-dark);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.hero-badges span:hover { border-color: rgba(232,202,160,0.45); background: rgba(232,202,160,0.06); transform: translateY(-2px); }
.hero-badges span::before { content: "✦"; color: var(--gold); font-size: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Terminal typewriter line — glass panel */
.hero-terminal {
  margin-top: 30px;
  display: inline-block;
  max-width: 100%;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px; color: var(--gold-bright);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232,202,160,0.2);
  padding: 12px 18px; border-radius: 10px;
  opacity: 0; animation: rise .9s ease .64s forwards;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 26px rgba(0,0,0,0.25);
}
.hero-terminal .prompt { color: var(--gold); margin-right: 8px; }
.hero-terminal .cursor { display: inline-block; width: 7px; height: 15px; background: var(--gold-bright); animation: blink 1s step-end infinite; margin-left: 1px; vertical-align: text-bottom; box-shadow: 0 0 8px rgba(232,202,160,0.6); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Animated IT/tech icon field — jewelry-style ring badges */
.hero-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-icon {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--size, 46px); height: var(--size, 46px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(232,202,160,0.28);
  background: radial-gradient(circle at 35% 30%, rgba(232,202,160,0.14), rgba(232,202,160,0.02) 70%);
  box-shadow: inset 0 0 12px rgba(232,202,160,0.08), 0 0 20px rgba(232,202,160,0.1);
  color: var(--gold-bright);
  opacity: 0;
  animation: iconIn .8s ease forwards, floatIcon 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
  filter: drop-shadow(0 0 14px rgba(232,202,160,0.28));
  transition: transform .3s ease;
}
.hero-icon svg { width: 52%; height: 52%; display: block; }
@keyframes iconIn { to { opacity: .72; } }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}
.hero-icon.spin svg { animation: spinSlow 12s linear infinite; transform-origin: center; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-icon.pulse { animation: iconIn .8s ease forwards, pulseIcon 2.6s ease-in-out infinite; animation-delay: var(--delay, 0s), var(--delay, 0s); }
@keyframes pulseIcon { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.08); } }

.hero-foot { position: absolute; bottom: 34px; left: 0; right: 0; z-index: 2; }
.hero-foot .wrap { display: flex; justify-content: space-between; align-items: center; }
.scroll-cue { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted-dark); letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 26px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--ruby-bright);
  box-shadow: 0 0 6px rgba(224,86,110,0.7);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- Page hero (inner pages, static/lightweight) ---------- */
.page-hero {
  position: relative;
  background: radial-gradient(ellipse 120% 100% at 15% -10%, #16303b 0%, var(--ink-2) 45%, var(--ink) 100%);
  color: var(--cream);
  padding: 168px 0 90px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 0%, black, transparent);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 0%, black, transparent);
  opacity: .45;
  pointer-events: none;
}
.breadcrumb {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted-dark);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted-dark); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--gold-bright); }
.page-hero h1 {
  position: relative; z-index: 1;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 20ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.page-hero p.lead {
  position: relative; z-index: 1;
  margin-top: 22px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-dark);
}
.page-hero .hero-ctas { position: relative; z-index: 1; margin-top: 34px; }

/* Single floating service icon — page-hero decoration */
.page-hero-icon {
  position: absolute; right: 9%; top: 50%; transform: translateY(-50%);
  z-index: 1;
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(232,202,160,0.28);
  background: radial-gradient(circle at 35% 30%, rgba(232,202,160,0.14), rgba(232,202,160,0.02) 70%);
  box-shadow: inset 0 0 16px rgba(232,202,160,0.08), 0 0 26px rgba(232,202,160,0.12);
  color: var(--gold-bright);
  animation: floatIcon 7s ease-in-out infinite;
}
.page-hero-icon::before {
  content: "";
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(232,202,160,0.18);
  animation: bezelSpin 30s linear infinite;
}
.page-hero-icon svg { width: 46%; height: 46%; }
@media (max-width: 1000px) {
  .page-hero-icon { display: none; }
}

/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--muted-dark);
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section shared ---------- */
section { padding: 130px 0; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-tag::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 68px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.section-head p {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-light);
  max-width: 56ch;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Prose (inner-page long-form content) ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--muted-light); margin-bottom: 20px; }
.prose h3 { font-size: 1.4rem; font-weight: 500; margin: 40px 0 14px; color: var(--ink); }
.prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { font-size: 15px; color: var(--muted-light); display: flex; gap: 10px; line-height: 1.6; }
.prose ul li::before { content: "—"; color: var(--gold); flex-shrink: 0; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service-card {
  background: var(--paper);
  padding: 44px 38px;
  transition: background .3s ease, transform .3s ease;
  position: relative;
  display: flex; flex-direction: column;
}
.service-card:hover { background: var(--cream); }
.service-num { font-family: 'Fraunces', serif; font-size: 13px; color: var(--gold); margin-bottom: 26px; letter-spacing: .05em; }
.service-card h3 { font-size: 1.32rem; font-weight: 500; margin-bottom: 14px; }
.service-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted-light); }
.service-card .tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tags span {
  font-size: 11px; letter-spacing: .03em; color: var(--muted-light);
  border: 1px solid var(--line-light); padding: 4px 10px; border-radius: 999px;
}
.service-card ul.includes { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.service-card ul.includes li {
  list-style: none; font-size: 13px; color: var(--muted-light);
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.5;
}
.service-card ul.includes li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.service-card .card-link {
  margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .card-link:hover { color: #7a5f22; }

/* Includes strip */
.includes-strip { background: var(--paper); padding-top: 0; padding-bottom: 100px; }
.includes-strip .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-row span {
  font-size: 13px; color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-light);
  padding: 9px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip-row span::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Industries */
.industries { background: var(--paper-2); }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.industry-card { background: var(--paper-2); padding: 34px 26px; transition: background .3s ease; }
.industry-card:hover { background: var(--cream); }
.industry-card .glyph { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold); font-size: 22px; margin-bottom: 16px; display: block; }
.industry-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.industry-card p { font-size: 13px; color: var(--muted-light); line-height: 1.55; }
.industry-card .ind-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.industry-card .ind-tags a {
  font-size: 10.5px; color: var(--muted-light); border: 1px solid var(--line-light);
  padding: 3px 9px; border-radius: 999px; transition: border-color .2s ease, color .2s ease;
}
.industry-card .ind-tags a:hover { border-color: var(--gold); color: #7a5f22; }
.industry-card .example { font-size: 12px; color: var(--muted-light); margin-top: 12px; font-style: italic; line-height: 1.5; }

/* ---------- AI Section ---------- */
.ai-section { background: var(--ink); color: var(--cream); overflow: hidden; }
.ai-section .section-head p { color: var(--muted-dark); }
.ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.ai-points { display: flex; flex-direction: column; gap: 0; }
.ai-point { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.ai-points .ai-point:last-child { border-bottom: 1px solid var(--line-dark); }
.ai-point .mark { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 20px; flex: 0 0 34px; }
.ai-point h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.ai-point p { font-size: 14px; color: var(--muted-dark); line-height: 1.6; max-width: 44ch; }
.ai-point .example { font-size: 12.5px; color: var(--gold-bright); margin-top: 8px; font-style: italic; }

.orb-wrap { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.orb {
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(232,202,160,0.28), rgba(201,162,75,0.05) 55%, transparent 75%);
  border: 1px solid var(--line-dark);
  position: relative;
}
.orb::before, .orb::after { content: ""; position: absolute; inset: -50px; border: 1px solid var(--line-dark); border-radius: 50%; }
.orb::after { inset: -100px; opacity: .6; }
.orb-node {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 16px 3px rgba(232,202,160,0.55);
  animation: orbit linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
.ai-tools { margin-top: 56px; }
.ai-tools .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 18px; }
.ai-tools .chip-row span { background: rgba(255,255,255,0.03); border-color: var(--line-dark); color: var(--cream); }
.ai-tools .chip-row span::before { color: var(--gold-bright); }

/* ---------- Code Card — animated "coder" widget for tech-stack display ---------- */
/* A self-contained dark editor window; safe on any background since it carries its own. */
.code-card {
  max-width: 560px;
  margin-top: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #101c26, #0a141c);
  border: 1px solid rgba(232,202,160,0.16);
  box-shadow: 0 24px 60px rgba(10,18,25,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}
.code-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(232,202,160,0.1);
}
.code-card-head .cc-dot { width: 9px; height: 9px; border-radius: 50%; opacity: .8; }
.code-card-head .cc-dot.red { background: #e0566e; }
.code-card-head .cc-dot.yellow { background: var(--gold); }
.code-card-head .cc-dot.green { background: #5fae82; }
.code-card-head .cc-title {
  margin-left: 8px; font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 12px; color: var(--muted-dark); letter-spacing: .02em;
}
.code-card-body {
  margin: 0; padding: 18px 20px 22px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px; line-height: 1.85;
  color: rgba(243,238,224,0.55);
  overflow-x: auto;
  white-space: pre;
}
.code-card-body .ln { display: inline-block; width: 22px; color: rgba(154,168,172,0.35); user-select: none; }
.code-card-body .cc-kw { color: #e0566e; }
.code-card-body .cc-var { color: var(--gold-bright); }
.code-card-body .cc-key { color: #8fc7d6; }
.code-card-body .cc-str { color: #d9c088; }
.code-card-body .cc-punc { color: rgba(243,238,224,0.55); }
.code-card-body .cc-cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--gold-bright);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px rgba(232,202,160,0.6);
}
@media (max-width: 560px) {
  .code-card-body { font-size: 11.5px; padding: 16px 14px 20px; }
  .code-card-body .ln { width: 18px; }
}

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.process-list { border-top: 1px solid var(--line-light); }
.process-row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 32px; align-items: start; padding: 38px 0; border-bottom: 1px solid var(--line-light); }
.process-row .idx { font-family: 'Fraunces', serif; font-size: 15px; color: var(--gold); }
.process-row h3 { font-size: 1.5rem; font-weight: 500; }
.process-row p { font-size: 14.5px; line-height: 1.7; color: var(--muted-light); max-width: 60ch; }
.process-row .duration {
  display: inline-block; margin-top: 10px;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line-light); padding: 5px 12px; border-radius: 999px;
}
.process-row .deliverables { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.process-row .deliverables span { font-size: 11.5px; color: var(--muted-light); border: 1px solid var(--line-light); padding: 4px 10px; border-radius: 999px; }

/* Engagement models */
.engagement { background: var(--paper); }
.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.engagement-card {
  border: 1px solid var(--line-light); border-radius: 18px; padding: 38px 32px;
  background: var(--cream);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.engagement-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(30,25,10,0.1); border-color: var(--gold); }
.engagement-card .best-for { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.engagement-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.engagement-card p { font-size: 14px; color: var(--muted-light); line-height: 1.65; margin-bottom: 22px; flex: 1; }
.engagement-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.engagement-card ul li { font-size: 12.5px; color: var(--muted-light); display: flex; gap: 8px; }
.engagement-card ul li::before { content: "—"; color: var(--gold); }

/* Standards */
.standards { background: var(--ink); color: var(--cream); }
.standards .section-head p { color: var(--muted-dark); }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.standard-card { background: var(--ink); padding: 36px 30px; }
.standard-card .n { font-family: 'Fraunces', serif; color: var(--gold-bright); font-size: 13px; margin-bottom: 18px; }
.standard-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.standard-card p { font-size: 13.5px; color: var(--muted-dark); line-height: 1.6; }

/* Global coverage strip */
.coverage-strip { background: var(--ink-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 46px 0; }
.coverage-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.coverage-item { display: flex; align-items: center; gap: 14px; }
.coverage-item .clock { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 20px; }
.coverage-item div span { display: block; }
.coverage-item .region { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.coverage-item .zone { font-size: 12px; color: var(--muted-dark); margin-top: 2px; }

/* Values (About page) */
.values { background: var(--paper-2); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.value-card { background: var(--paper-2); padding: 40px 36px; }
.value-card .n { font-family: 'Fraunces', serif; color: var(--gold); font-size: 13px; margin-bottom: 20px; }
.value-card.quote { position: relative; overflow: hidden; }
.value-card.quote .n {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 52px; line-height: .5; color: var(--gold);
  opacity: .55; margin-bottom: 16px;
}
.value-card.quote:hover { background: var(--cream); }
.value-card.quote::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.value-card.quote:hover::after { transform: scaleX(1); }
.value-card h4 { font-size: 1.2rem; font-weight: 500; margin-bottom: 12px; }
.value-card p { font-size: 14.5px; color: var(--muted-light); line-height: 1.7; }

/* Related links (bottom of inner pages) */
.related { background: var(--paper-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--cream); border: 1px solid var(--line-light); border-radius: 16px;
  padding: 28px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,25,10,0.08); border-color: var(--gold); }
.related-card .tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.related-card h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--muted-light); line-height: 1.55; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ink), var(--ink-2));
  color: var(--cream);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .glow2 {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 420px;
  background: radial-gradient(ellipse, rgba(201,162,75,0.18), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative; z-index: 1;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 500; line-height: 1.15;
  max-width: 18ch; margin: 0 auto 36px;
}
.cta-banner h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner p.sub { position: relative; z-index: 1; color: var(--muted-dark); margin: -20px auto 30px; max-width: 46ch; font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.15; margin-bottom: 22px; }
.contact-info p { color: var(--muted-light); line-height: 1.7; margin-bottom: 30px; max-width: 42ch; }
.contact-info .email-link {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.5rem; color: var(--ink); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; display: inline-block;
}
.contact-meta { margin-top: 50px; display: flex; flex-direction: column; gap: 10px; }
.contact-meta span { font-size: 13px; color: var(--muted-light); }
.contact-meta strong { color: var(--ink); font-weight: 600; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-light); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line-light);
  padding: 12px 2px; font-family: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s ease; resize: vertical;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-light) 50%), linear-gradient(135deg, var(--muted-light) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { align-self: flex-start; margin-top: 10px; }
.form-note { font-size: 12.5px; color: var(--muted-light); min-height: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* Human-check row */
.captcha-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 14px 18px;
}
.captcha-row label { font-size: 13.5px; color: var(--ink); flex: 1 1 200px; }
.captcha-row label strong { color: #7a5f22; }
.captcha-input {
  width: 78px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line-light) !important;
  border-radius: 8px; padding: 9px 10px !important; text-align: center;
  font-size: 16px; font-weight: 600;
}
.captcha-input:focus { border-color: var(--gold) !important; }

/* Success / error state */
.form-note.success { color: #0f6b4c; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.form-note.success::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #0f6b4c; color: #fff; font-size: 11px; }

/* "What happens next" mini timeline (contact page) */
.next-steps { margin-top: 46px; border-top: 1px solid var(--line-light); padding-top: 30px; }
.next-steps-title { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 20px; }
.next-step { display: flex; gap: 16px; margin-bottom: 20px; }
.next-step .ns-n {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 13px;
}
.next-step h5 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.next-step p { font-size: 13px; color: var(--muted-light); line-height: 1.55; }

/* Homepage contact CTA card (replaces duplicate form) */
.contact-cta-card {
  background: var(--cream); border: 1px solid var(--line-light); border-radius: 20px;
  padding: 44px 40px; display: flex; flex-direction: column; justify-content: center;
}
.contact-cta-card h3 { font-size: 1.5rem; font-weight: 500; margin: 14px 0 12px; }
.contact-cta-card p { color: var(--muted-light); line-height: 1.65; margin-bottom: 26px; }
.contact-cta-card .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-list { border-top: 1px solid var(--line-light); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; cursor: pointer; font-size: 1.02rem; font-weight: 500; font-family: 'Fraunces', serif; }
.faq-q .plus { font-family: 'Inter', sans-serif; font-size: 20px; color: var(--gold); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-a p { padding: 0 4px 26px; font-size: 14.5px; line-height: 1.7; color: var(--muted-light); max-width: 68ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--muted-dark); padding: 60px 0 30px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 50px; border-bottom: 1px solid var(--line-dark);
  flex-wrap: wrap; gap: 40px;
}
.footer-top img { height: 20px; filter: brightness(0) invert(1); opacity: .9; }
.footer-top .tagline { font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; color: var(--cream); max-width: 26ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--cream); margin-bottom: 10px; opacity: .85; }
.footer-col a:hover { color: var(--gold-bright); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12.5px; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted-dark); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-bright); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: var(--ink); color: var(--cream); padding: 40px;
}
.error-page .code { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 6rem; line-height: 1; }
.error-page h1 { margin-top: 10px; font-size: 1.8rem; font-weight: 500; }
.error-page p { margin-top: 14px; color: var(--muted-dark); max-width: 44ch; }
.error-page .btn { margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 50px; }
  .orb-wrap { height: 320px; }
  .process-row { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 90px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .coverage-inner { flex-direction: column; align-items: flex-start; }
  .includes-strip { padding-bottom: 70px; }
  .page-hero { padding: 140px 0 70px; }
}
@media (max-width: 560px) {
  .industry-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .page-hero { padding: 116px 0 56px; }
  .section-head { margin-bottom: 44px; }
  .service-card, .industry-card, .standard-card, .value-card { padding: 30px 24px; }
  .engagement-card { padding: 30px 24px; }
  .cta-banner { padding: 80px 0; }
  .marquee-track span { font-size: 16px; padding: 0 22px; gap: 22px; }
  .btn { width: 100%; justify-content: center; }
  .hero-ctas, .page-hero .hero-ctas { flex-direction: column; }
  .hero-ctas .btn, .page-hero .hero-ctas .btn { width: 100%; }
  .cta-banner .btn { width: auto; }
  .footer-cols { gap: 36px; }

  /* ---- Mobile app-style hero ---- */
  .hero {
    padding-top: 96px;
    padding-bottom: 28px;
    justify-content: flex-start;
    text-align: left;
  }
  .hero-icons { display: none; }
  .hero .wrap { padding: 0 22px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: .14em; }
  .hero h1 { font-size: 2.5rem; line-height: 1.05; max-width: 12ch; }
  .hero p.lead { margin-top: 18px; font-size: 15.5px; max-width: none; }
  .hero-ctas { margin-top: 30px; gap: 12px; }
  .hero-terminal { margin-top: 22px; font-size: 12px; padding: 10px 14px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-badges {
    margin-top: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 10px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, black 88%, transparent 100%);
  }
  .hero-badges::-webkit-scrollbar { display: none; }
  .hero-badges span { flex-shrink: 0; font-size: 11.5px; padding: 7px 14px; }
  .hero-foot { position: static; margin-top: 34px; }
  .hero-foot .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 22px; }
  .hero-foot .scroll-cue:last-child { display: none; }
}
