/* ============================================================
   SOLID ROCK DIGITAL — Shared Stylesheet
   Brand: Deep Navy / Metallic Silver / Crisp White
   Simple, spacious, friendly. Built for Abilene businesses.
   ============================================================ */

/* Self-hosted fonts (SIL Open Font License 1.1) — latin subset, no third-party requests */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/michroma-latin.woff2') format('woff2'); }

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0B1F3A;
  --navy-mid:    #122B4E;
  --navy-dark:   #071626;
  --silver-100:  #F8FAFC;
  --silver-200:  #E2E8F0;
  --silver-300:  #C5CDD8;
  --silver-400:  #94A3B8;
  --white:       #FFFFFF;
  --text:        #1A2B42;
  --text-soft:   #4B5D73;
  --text-muted:  #5B6B80;
  --border:      #E2E8F0;
  --border-soft: rgba(197,205,216,0.4);
  /* Studio v2 tokens — navy / silver / ice only */
  --navy-800:    #112240;
  --navy-700:    #132A4A;
  --slate-300:   #AEB7C4;
  --slate-500:   #64748B;
  --slate-600:   #4B5D73;
  --ice:         #F1F5F9;
  --hairline-dark:  rgba(197, 205, 216, 0.18);
  --hairline-light: rgba(11, 31, 58, 0.09);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:    160ms;
  --dur:         280ms;
  --dur-slow:    560ms;
  --measure:     66ch;
  --section-y:   clamp(72px, 9vw, 120px);
  --card-pad:    clamp(26px, 2.6vw, 34px);
  --radius:      10px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 4px rgba(7,20,38,0.07);
  --shadow-md:   0 4px 20px rgba(7,20,38,0.11);
  --shadow-lg:   0 8px 36px rgba(7,20,38,0.17);
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --nav-h:       68px;
  --nav-h-mob:   60px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--text-soft); line-height: 1.72; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--silver-400);
  display: block;
  margin-bottom: 14px;
}

/* ── Layout ────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

section { padding: 92px 0; }
@media (max-width: 860px) { section { padding: 60px 0; } }

.section-header { max-width: 580px; margin-bottom: 56px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.08rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--silver-200);
  border-color: var(--silver-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--silver-200);
  border-color: rgba(197,205,216,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: var(--silver-300);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--silver-100);
  border-color: var(--silver-300);
}

/* ── Preview Bar ───────────────────────────────────────── */
#previewBar {
  display: none;
  background: #0B1F3A;
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.05em;
}
#previewBar.visible { display: block; }

/* ── Site Header ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(197,205,216,0.15);
  display: flex;
  align-items: center;
  transition: box-shadow 0.22s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(7,20,38,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg,
.logo-hex { width: 40px; height: 40px; display: block; }
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.brand-name {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  font-family: 'Michroma', sans-serif;
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--silver-300);
  text-transform: uppercase;
  line-height: 1;
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver-300);
  padding: 8px 16px;
  border-radius: 7px;
  transition: all 0.18s var(--ease);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Desktop right cluster */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-400);
  transition: color 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.header-phone:hover { color: var(--white); }
.header-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  padding: 9px 20px;
  border-radius: 7px;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--silver-200);
  transform: translateY(-1px);
}

/* Mobile header */
.mobile-right {
  display: none;
  align-items: center;
  gap: 10px;
}
.hamburger-btn {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 7px;
  transition: background 0.18s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.08); }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver-300);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-h-mob);
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
}
.mobile-nav.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--silver-200);
  padding: 16px 8px;
  border-radius: var(--radius);
  transition: all 0.18s;
  min-height: 56px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(197,205,216,0.08);
}
.mobile-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-actions {
  padding-top: 28px;
  border-top: 1px solid rgba(197,205,216,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  min-height: 52px;
  text-decoration: none;
  transition: all 0.18s;
}
.mobile-action-call {
  background: rgba(255,255,255,0.08);
  color: var(--silver-200);
  border: 1px solid rgba(197,205,216,0.2);
}
.mobile-action-call:hover { background: rgba(255,255,255,0.13); color: var(--white); }
.mobile-action-primary {
  background: var(--white);
  color: var(--navy);
}
.mobile-action-primary:hover { background: var(--silver-200); }

/* Show/Hide responsive */
@media (min-width: 860px) {
  .mobile-right { display: none !important; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 859px) {
  .desktop-nav { display: none; }
  .header-right { display: none; }
  .mobile-right { display: flex; }
  .site-header { height: var(--nav-h-mob); }
  .header-inner { padding: 0 16px; }
}

/* Page offset */
.page-wrap { padding-top: var(--nav-h); }
@media (max-width: 859px) { .page-wrap { padding-top: var(--nav-h-mob); } }

/* anchor scroll offset */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
@media (max-width: 859px) { [id] { scroll-margin-top: calc(var(--nav-h-mob) + 12px); } }

/* ── Hero (Navy) ───────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197,205,216,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,205,216,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(197,205,216,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content h1 em {
  font-style: normal;
  color: var(--silver-300);
}
.hero-subhead {
  font-size: 1.1rem;
  color: var(--silver-300);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-subhead strong { color: var(--white); font-weight: 700; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Phone Mockup (Hero Visual) ───────────────────────── */

/* ── What We Build Cards ───────────────────────────────── */

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ── Quick Demo Section ────────────────────────────────── */

/* Demo phone */

.demo-appear { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Bottom CTA Band ───────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197,205,216,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,205,216,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: var(--silver-300); font-size: 1.08rem; max-width: 500px; margin: 0 auto 36px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Page Hero (sub-pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197,205,216,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,205,216,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: var(--silver-300); font-size: 1.08rem; max-width: 580px; }

.legal-doc {
  max-width: 760px;
  padding: 12px 0 64px;
}
.legal-doc h2 {
  margin: 36px 0 12px;
  color: var(--navy);
  font-size: 1.25rem;
}
.legal-doc p, .legal-doc li {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.legal-doc ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 16px;
}
.legal-doc a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Work / Portfolio ──────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.portfolio-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
.portfolio-preview--roofing { background: linear-gradient(135deg, #0B1F3A 0%, #1a3a5c 100%); }
.portfolio-preview--medspa  { background: linear-gradient(135deg, #0d1f2d 0%, #122B4E 100%); }
.portfolio-preview--wedding { background: linear-gradient(135deg, #0A1830 0%, #1C3152 100%); }

/* Cedar Creek Farms client showcase only — studio chrome stays navy/silver */
.portfolio-card--cedarcreek {
  border-color: rgba(23, 59, 47, 0.16);
  background: linear-gradient(180deg, #fbf8f1 0%, #ffffff 58%);
  box-shadow: 0 10px 28px rgba(14, 40, 29, 0.07);
}
.portfolio-card--cedarcreek:hover {
  box-shadow: 0 24px 52px rgba(14, 40, 29, 0.16);
}
.portfolio-preview--cedarcreek {
  height: 228px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px 16px 44px;
  color: #eaf3ed;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 83, 63, 0.28), transparent 36%),
    radial-gradient(circle at 88% 4%, rgba(199, 162, 93, 0.2), transparent 32%),
    linear-gradient(165deg, #0c2119 0%, #123327 46%, #173b2f 100%);
}
.portfolio-preview--cedarcreek::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(234, 243, 237, 0.045) 1px, transparent 0),
    linear-gradient(90deg, rgba(234, 243, 237, 0.045) 1px, transparent 0);
  background-size: 52px 52px;
}
.cedarcreek-preview-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cedarcreek-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cedarcreek-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(12, 33, 25, 0.35);
}
.cedarcreek-wordmark {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5faf6;
}
.cedarcreek-preview-tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  color: #eaf3ed;
}
.cedarcreek-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cedarcreek-preview-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #123327;
  background: #eaf3ed;
}
.cedarcreek-preview-pills span:nth-child(2) {
  background: #f7ecd3;
  color: #745337;
}
.cedarcreek-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #f5faf6;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cedarcreek-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6f6d5;
  box-shadow: 0 0 0 5px rgba(198, 246, 213, 0.18);
}
.portfolio-preview--cedarcreek .preview-label {
  background: rgba(12, 33, 25, 0.55);
  color: #f7ecd3;
  border: 1px solid rgba(199, 162, 93, 0.35);
}
.portfolio-card--cedarcreek .cedarcreek-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f533f;
  font-family: var(--mono);
  margin-bottom: 6px;
}
.portfolio-card--cedarcreek .tag--cedarcreek {
  background: #eaf3ed;
  color: #123327;
  border-color: rgba(23, 59, 47, 0.16);
}
.portfolio-card--cedarcreek .tag--cedarcreek-gold {
  background: #f7ecd3;
  color: #745337;
  border-color: rgba(199, 162, 93, 0.45);
}
.portfolio-card--cedarcreek .portfolio-link {
  color: #173b2f;
}
.preview-label {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.75);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.portfolio-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--silver-100);
}
.tag--web { background: var(--navy); color: rgba(255,255,255,0.75); border-color: var(--navy); }
.tag--ai  { background: rgba(16,40,73,0.08); color: var(--navy-mid); border-color: rgba(16,40,73,0.2); }
.tag--open { background: rgba(11,31,58,0.06); color: #132A4A; border-color: rgba(11,31,58,0.18); }
.tag--spots { background: #F1F5F9; color: #334155; border-color: rgba(100,116,139,0.35); }

.portfolio-body h3 { font-size: 1.15rem; }
.portfolio-body p { font-size: 0.9rem; }
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
  padding-top: 10px;
  text-decoration: none;
  transition: gap 0.18s;
}
.portfolio-link:hover { gap: 10px; }

/* ── Packages ──────────────────────────────────────────── */

/* ── Add-ons ───────────────────────────────────────────── */

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background 0.18s;
  font-family: var(--font);
}
.faq-q:hover { background: var(--silver-100); }
.faq-icon {
  width: 24px; height: 24px;
  background: var(--navy);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease), background 0.22s;
  line-height: 1;
}
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--silver-300);
  color: var(--navy);
}
.faq-a { display: none; padding: 0 28px 22px; }
.faq-a.open { display: block; }
.faq-a p { font-size: 0.95rem; }

/* ── Contact Page ──────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 44px; } }

.contact-form-wrap { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.form-label .optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 48px;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(18,43,78,0.09);
}
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5D73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.form-checkbox-group { display: flex; align-items: center; gap: 10px; }
.form-checkbox-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--navy); flex-shrink: 0; }
.form-checkbox-group label { font-size: 0.9rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.form-consent-group { align-items: flex-start; }
.form-consent-group input[type="checkbox"] { margin-top: 3px; }
.form-consent-group label { font-size: 0.82rem; font-weight: 500; line-height: 1.55; color: var(--text-soft); }
.form-consent-group a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 160px; justify-content: center; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.form-status.is-ok { color: var(--navy); }
.form-status.is-err { color: var(--navy-dark); }
.turnstile-host { margin: 4px 0 8px; }
.form-actions .btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

.contact-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card-title { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.18s;
}
.contact-item:hover { opacity: 0.8; }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.09);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; color: var(--silver-300); }
.ci-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver-400); font-family: var(--mono); }
.ci-value { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-top: 2px; }
.contact-note {
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(197,205,216,0.1);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--silver-400);
  line-height: 1.65;
}

/* ── Sample Site Styles ─────────────────────────────────── */
.sample-back-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(197,205,216,0.15);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sample-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--silver-300);
  text-decoration: none;
  transition: color 0.18s;
}
.sample-back-link:hover { color: var(--white); }
.sample-banner {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-400);
  background: rgba(197,205,216,0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

/* AI Widget (floating in sample pages) — never target #aiWidgetBtn */
.ai-widget-btn:not(#aiWidgetBtn) {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 60px;
  height: 60px;
  background: var(--navy);
  border: 2px solid rgba(197,205,216,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font);
}
.ai-widget-btn:not(#aiWidgetBtn):hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(7,20,38,0.3); }
.ai-widget-btn:not(#aiWidgetBtn) svg { width: 26px; height: 26px; color: var(--white); }
.ai-widget-btn:not(#aiWidgetBtn) .ai-pulse {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: #E2E8F0;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(197,205,216,0.45);
}

.ai-widget-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 501;
  width: 300px;
  background: var(--navy-dark);
  border: 1px solid rgba(197,205,216,0.2);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.ai-widget-panel.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.ai-panel-header {
  padding: 14px 16px;
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(197,205,216,0.1);
}
.ai-panel-dot {
  width: 8px; height: 8px;
  background: #E2E8F0;
  border-radius: 50%;
  animation: ai-pulse 2s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,205,216,0.45); }
  50% { box-shadow: 0 0 0 5px rgba(197,205,216,0); }
}
.ai-panel-title { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.ai-panel-sub { font-size: 0.7rem; color: var(--silver-400); font-family: var(--mono); }
.ai-panel-close {
  margin-left: auto;
  color: var(--silver-400);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.18s;
}
.ai-panel-close:hover { color: var(--white); }
.ai-panel-feed {
  flex: 1;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.ai-bubble {
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 86%;
}
.ai-bubble--bot {
  background: rgba(197,205,216,0.1);
  color: rgba(255,255,255,0.75);
  border-radius: 13px 13px 13px 3px;
  align-self: flex-start;
}
.ai-bubble--user {
  background: #163a6e;
  color: rgba(255,255,255,0.9);
  border-radius: 13px 13px 3px 13px;
  align-self: flex-end;
}
.ai-bubble--sys {
  background: rgba(197,205,216,0.15);
  border: 1px solid rgba(197,205,216,0.3);
  color: rgba(255,255,255,0.7);
  align-self: center;
  text-align: center;
  border-radius: 10px;
  font-size: 0.68rem;
  max-width: 95%;
}
.ai-panel-chips {
  padding: 8px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(197,205,216,0.25);
  color: var(--silver-200);
  background: rgba(197,205,216,0.07);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
}
.ai-chip:hover { background: rgba(197,205,216,0.14); color: var(--white); }

/* ── Sample Page Shared Layouts ─────────────────────────── */

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(197,205,216,0.1);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 36px; height: 36px; }
.footer-brand .logo-hex { width: 36px; height: 36px; }
.footer-brand .brand-name { font-size: 10px; }
.footer-brand .brand-sub { font-size: 6px; }

.about-emblem {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 auto 36px;
}
.footer-blurb { font-size: 0.875rem; color: var(--silver-400); line-height: 1.65; margin-bottom: 16px; }
.footer-contact-links { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-400);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-contact-links a:hover { color: var(--white); }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-400);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver-400);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(197,205,216,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--silver-400); }
.footer-copy a {
  color: var(--silver-400);
  text-decoration: none;
  margin-left: 8px;
}
.footer-copy a:hover { color: var(--white); }
.footer-loc {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--silver-400);
  letter-spacing: 0.06em;
}

/* ── Feature Split (responsive 2-col) ───────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Utilities ─────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   iOS Messages Phone Chrome — hero + quick-demo
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero phone wrap ───────────────────────────────────────────── */

/* ── iPhone chassis ─────────────────────────────────────────────── */

/* Volume buttons (left) */

/* Power button (right) */

/* ── Status bar ─────────────────────────────────────────────────── */

/* ── Messages contact header ────────────────────────────────────── */

/* ── Home bar ────────────────────────────────────────────────────── */

/* ── Hero static thread ─────────────────────────────────────────── */

/* ── Hero compose bar ───────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════
   Quick Demo section (#quick-demo with #qdTabs)
   ═══════════════════════════════════════════════════════════════════ */

/* ── SMS thread inside quick-demo ───────────────────────────────── */

/* ── SMS compose bar ────────────────────────────────────────────── */

/* ── Chips row ──────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.chip {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid rgba(11,31,58,0.2);
  background: rgba(197,205,216,0.2);
  color: #0B1F3A;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.chip:hover { background: rgba(11,31,58,0.08); }

/* ── Slot picker ────────────────────────────────────────────────── */

/* ── Typing indicator ───────────────────────────────────────────── */

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   Solid Rock Digital AI Assistant Widget (main pages)
   Uses ID selectors — no collision with samples' class-based widget
   ═══════════════════════════════════════════════════════════════════ */

#srdAiWidget.ai-widget {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#srdAiWidget .ai-hex-mark {
  width: 18px;
  height: 18px;
  display: block;
}

#srdAiWidget .ai-widget-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1A3358 0%, #112240 100%);
  border: 1px solid rgba(197, 205, 216, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#srdAiWidget .ai-widget-btn,
#srdAiWidget #aiWidgetBtn {
  position: static;
  inset: auto;
  bottom: auto;
  right: auto;
  width: auto;
  min-width: 180px;
  height: auto;
  min-height: 48px;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: linear-gradient(180deg, #132A4A 0%, #0B1F3A 100%);
  color: #F8FAFC;
  border: 1.5px solid rgba(197, 205, 216, 0.55);
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(11, 31, 58, 0.32),
    0 2px 6px rgba(11, 31, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

#srdAiWidget .ai-widget-btn svg,
#srdAiWidget #aiWidgetBtn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#srdAiWidget .ai-widget-btn:hover,
#srdAiWidget #aiWidgetBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 232, 240, 0.72);
  box-shadow:
    0 14px 32px rgba(11, 31, 58, 0.42),
    0 2px 6px rgba(11, 31, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#srdAiWidget .ai-widget-btn:focus-visible {
  outline: 2px solid #C5CDD8;
  outline-offset: 3px;
}

#srdAiWidget .ai-widget-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 2px 2px 2px 0;
  line-height: 1.15;
}

#srdAiWidget .ai-widget-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C5CDD8;
}

#srdAiWidget .ai-kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E2E8F0;
  flex-shrink: 0;
}

#srdAiWidget .ai-widget-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F8FAFC;
}

#srdAiWidget .ai-widget-close-face {
  display: none;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

#srdAiWidget .ai-widget-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  color: #F8FAFC;
  background: linear-gradient(160deg, #1A3358 0%, #112240 100%);
  border: 1px solid rgba(197, 205, 216, 0.42);
}

#srdAiWidget .ai-widget-close-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #F8FAFC;
}

#srdAiWidget .ai-widget-btn.is-open,
#srdAiWidget #aiWidgetBtn.is-open {
  width: auto;
  height: auto;
  padding: 7px 14px 7px 7px;
}

#srdAiWidget .ai-widget-btn.is-open .ai-widget-badge,
#srdAiWidget .ai-widget-btn.is-open .ai-widget-copy {
  display: none;
}

#srdAiWidget .ai-widget-btn.is-open .ai-widget-close-face {
  display: flex;
}

#srdAiWidget .ai-panel {
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.28);
  border: 1px solid rgba(197, 205, 216, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(540px, calc(100vh - 120px));
}

#srdAiWidget .ai-panel[hidden] { display: none; }

#srdAiWidget .ai-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #132A4A 0%, #0B1F3A 100%);
  border-bottom: 1px solid rgba(197, 205, 216, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

#srdAiWidget .ai-panel-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

#srdAiWidget .ai-panel-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.3;
}

#srdAiWidget .ai-panel-sub {
  font-size: 0.72rem;
  color: rgba(197,205,216,0.86);
  margin-top: 2px;
  line-height: 1.35;
}

#srdAiWidget .ai-close {
  background: none;
  border: 1px solid rgba(197, 205, 216, 0.28);
  border-radius: 8px;
  color: rgba(197,205,216,0.85);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 7px;
  flex-shrink: 0;
  line-height: 1;
}

#srdAiWidget .ai-close:hover { color: #F8FAFC; border-color: rgba(226, 232, 240, 0.55); }

#srdAiWidget .ai-thread {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(197,205,216,0.4) transparent;
}

#srdAiWidget .ai-bubble-in, #srdAiWidget .ai-bubble-out {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

#srdAiWidget .ai-bubble-in {
  background: #F8FAFC;
  color: #0B1F3A;
  align-self: flex-start;
  border: 1px solid #E2E8F0;
  border-radius: 4px 14px 14px 14px;
}

#srdAiWidget .ai-bubble-out {
  background: #0B1F3A;
  color: #F8FAFC;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

#srdAiWidget .ai-typing-row {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px 14px 14px 14px;
}

#srdAiWidget .ai-typing-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(11,31,58,0.4);
  animation: typingDot 1.2s infinite ease-in-out;
  font-style: normal;
}

#srdAiWidget .ai-typing-row i:nth-child(2) { animation-delay: 0.2s; }
#srdAiWidget .ai-typing-row i:nth-child(3) { animation-delay: 0.4s; }

#srdAiWidget .ai-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 10px;
  flex-shrink: 0;
  border-top: 1px solid rgba(197,205,216,0.3);
}

#srdAiWidget .ai-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(11,31,58,0.2);
  background: rgba(197,205,216,0.15);
  color: #0B1F3A;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

#srdAiWidget .ai-chip:hover { background: rgba(11,31,58,0.08); }

#srdAiWidget .ai-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(197,205,216,0.3);
  flex-shrink: 0;
}

#srdAiWidget .ai-input {
  flex: 1;
  height: 36px;
  background: rgba(197,205,216,0.2);
  border: 1px solid rgba(197,205,216,0.5);
  border-radius: 18px;
  padding: 0 12px;
  font-size: 0.82rem;
  color: #0B1F3A;
  outline: none;
}

#srdAiWidget .ai-input:focus { border-color: #0B1F3A; }

#srdAiWidget .ai-input::placeholder { color: rgba(11,31,58,0.4); }

#srdAiWidget .ai-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0B1F3A;
  color: #F8FAFC;
  border: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .site-footer { padding-bottom: 92px; }
  #srdAiWidget.ai-widget {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    align-items: stretch;
  }
  #srdAiWidget .ai-widget-copy,
  #srdAiWidget .ai-widget-close-label {
    display: none;
  }
  #srdAiWidget .ai-widget-btn,
  #srdAiWidget #aiWidgetBtn,
  #srdAiWidget .ai-widget-btn.is-open {
    align-self: flex-end;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 6px;
    border-radius: 12px;
  }
  #srdAiWidget .ai-panel {
    width: 100%;
    max-width: none;
    max-height: min(68vh, calc(100vh - 96px));
  }
}

/* ═══════════════════════════════════════════════════════════════════
   7-capability homepage, system previews, about page
   ═══════════════════════════════════════════════════════════════════ */

.cap-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silver-400);
  margin-bottom: 8px;
}

.ai-int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ai-int-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.ai-int-card h3 { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   STUDIO v2 — design layer (typography, surfaces, motion, a11y)
   Palette: navy #0B1F3A/#112240/#132A4A · silver/slate #C5CDD8/#AEB7C4/
   #94A3B8/#64748B · white/ice #FFFFFF/#F8FAFC/#F1F5F9. Nothing else —
   the only exception is the scoped Cedar Creek Farms client card above.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base & typography ─────────────────────────────────────────── */
html { overflow-x: clip; }
body {
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
::selection { background: var(--navy); color: var(--white); }

h1, h2, h3, h4 { text-wrap: balance; }
h1 {
  font-size: clamp(2.2rem, 1.35rem + 3.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.26rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p { line-height: 1.72; max-width: var(--measure); text-wrap: pretty; }
.centered p, .text-center p, .cta-band p, .section-header.centered p { margin-left: auto; margin-right: auto; }
strong { font-weight: 700; }

/* Eyebrow: mono, hairline tick, AA contrast on every surface */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-header.centered .eyebrow { justify-content: center; }
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow,
.contact-card .eyebrow, .site-footer .eyebrow { color: var(--slate-300); }

/* Focus: one crisp, visible ring everywhere */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--navy-mid);
  outline-offset: 3px;
  border-radius: 6px;
}
:where(.hero, .page-hero, .cta-band, .site-header, .mobile-nav, .contact-card, .site-footer, button, input, select, textarea):focus-visible { outline-color: var(--silver-300); }

/* ── Layout rhythm ─────────────────────────────────────────────── */
.wrap { max-width: 1180px; padding: 0 clamp(16px, 4vw, 32px); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
section { padding: var(--section-y) 0; }
@media (max-width: 860px) { section { padding: clamp(56px, 12vw, 72px) 0; } }
.section-header { max-width: 700px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem); }
.surface-ice {
  background: var(--silver-100);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
}

/* ── Buttons: tactile, fast, arrow nudge ───────────────────────── */
.btn {
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease-out);
  letter-spacing: -0.005em;
  border-width: 1.5px;
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn-ghost { border-color: rgba(11, 31, 58, 0.16); }
.btn-ghost:hover { border-color: rgba(11, 31, 58, 0.32); background: var(--ice); }
.btn-navy { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 6px 18px rgba(11, 31, 58, 0.18); }
.btn-navy:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 10px 26px rgba(11, 31, 58, 0.26); }
.arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
a:hover > .arrow, button:hover > .arrow, a:focus-visible > .arrow { transform: translateX(3px); }
a:hover > .arrow--out, a:focus-visible > .arrow--out { transform: translate(2px, -2px); }

/* ── Header: frosted glass, hairline, nav indicator ────────────── */
.site-header {
  background: rgba(11, 31, 58, 0.82);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(11, 31, 58, 0.72);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
  }
  .site-header.scrolled { background: rgba(11, 31, 58, 0.86); }
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--hairline-dark), 0 10px 30px rgba(7, 22, 38, 0.28); }
.header-inner { max-width: 1240px; }
.nav-link {
  position: relative;
  color: var(--silver-300);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--silver-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.nav-link.active::after { transform: scaleX(1); background: var(--white); }
.header-phone { color: var(--slate-300); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.header-cta {
  border: 1px solid var(--white);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease-out);
}
.header-cta:hover { box-shadow: 0 6px 18px rgba(7, 22, 38, 0.35); }
.mobile-right .header-cta { font-size: 0.82rem; padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; }

/* Mobile drawer: glass panel, staggered links */
.mobile-nav {
  background: rgba(11, 31, 58, 0.97);
  transform: translateY(-8px);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mobile-nav { background: rgba(11, 31, 58, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.mobile-nav.open { transform: none; visibility: visible; transition-delay: 0s; }
.mobile-nav-link, .mobile-action-link {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast);
}
.mobile-nav.open .mobile-nav-link, .mobile-nav.open .mobile-action-link { opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 30ms; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 60ms; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 90ms; }
.mobile-nav.open .mobile-nav-link:nth-child(5) { transition-delay: 120ms; }
.mobile-nav.open .mobile-action-link { transition-delay: 150ms; }
.mobile-nav-link { border-bottom-color: var(--hairline-dark); letter-spacing: -0.015em; }
.mobile-nav-link.active { color: var(--white); }
.mobile-nav-link.active::before {
  content: '';
  width: 6px; height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--silver-300);
}

/* ── Hero & page hero: silver-on-navy lighting, masked grid ────── */
.hero, .page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(197, 205, 216, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(148, 163, 184, 0.08), transparent 60%),
    linear-gradient(160deg, #071626 0%, var(--navy) 45%, var(--navy-700) 100%);
}
.hero::before, .page-hero::before, .cta-band::before {
  background-image:
    linear-gradient(rgba(197, 205, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 205, 216, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero::after, .page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 205, 216, 0.35), transparent);
  pointer-events: none;
}
.hero { padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 112px); }
.hero-glow {
  width: 720px; height: 720px;
  top: -260px; right: -200px;
  background: radial-gradient(circle, rgba(197, 205, 216, 0.12) 0%, transparent 65%);
}
.hero-inner { gap: clamp(40px, 6vw, 80px); }
.hero-content h1 { margin-bottom: 24px; }
.hero-content h1 em {
  color: var(--silver-300);
  background: linear-gradient(180deg, #F8FAFC 0%, #AEB7C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subhead { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.14rem); max-width: 58ch; color: var(--silver-300); }

.page-hero { padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { margin-bottom: 18px; max-width: 22ch; }
.page-hero p { color: var(--silver-300); max-width: 62ch; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.14rem); }
[data-hero-pane][hidden] { display: none !important; }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-300); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { color: var(--silver-300); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--silver-200); }

/* ── Cards: hairline, lift, luminance shift ────────────────────── */
.card, .ai-int-card {
  position: relative;
  padding: var(--card-pad);
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFD 100%);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease);
}
.card::before, .ai-int-card::before {
  content: '';
  position: absolute;
  inset: 0 16px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 31, 58, 0.22), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.card:hover, .ai-int-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 31, 58, 0.18);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 14px 34px rgba(11, 31, 58, 0.09);
}
.card:hover::before, .ai-int-card:hover::before { opacity: 1; }
.card h3, .ai-int-card h3 { margin-bottom: 10px; }
.card p, .ai-int-card p { font-size: 0.96rem; line-height: 1.68; }

.ai-int-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr)); gap: 16px; }

.cap-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--silver-200);
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 100%);
  border: 1px solid rgba(11, 31, 58, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(11, 31, 58, 0.16);
  transition: transform var(--dur) var(--ease-out);
}
.cap-icon svg { width: 20px; height: 20px; }
.card:hover .cap-icon { transform: translateY(-1px) rotate(-3deg); }
.cap-num {
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--hairline-light);
  border-radius: 6px;
  background: var(--silver-100);
  color: var(--slate-600);
  font-size: 0.68rem;
  line-height: 1.4;
}

/* ── Status tags (mono, consistent height) ─────────────────────── */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--hairline-light);
  white-space: nowrap;
}
.status-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75; }
 .hero .status-tag { color: var(--silver-300); background: rgba(255, 255, 255, 0.04); border-color: var(--hairline-dark); }

/* ── System preview chrome ─────────────────────────────────────── */

@keyframes srd-live {
  0%   { box-shadow: 0 0 0 0 rgba(226, 232, 240, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(226, 232, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 232, 240, 0); }
}

/* Tabs → segmented control */

/* Pane switch: fade/rise whenever a pane is shown */

/* ── Workflow / architecture diagram ───────────────────────────── */

.glance > div { padding: 22px 24px; border-right: 1px solid var(--hairline-light); border-bottom: 1px solid var(--hairline-light); margin-right: -1px; margin-bottom: -1px; }
.glance dt { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 8px; }
.glance dd { color: var(--text); font-size: 0.96rem; line-height: 1.6; }
.glance dd a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(11, 31, 58, 0.25); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast); }
.glance dd a:hover { text-decoration-color: var(--navy); }

/* ── Process steps ─────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: var(--card-pad);
  border-radius: 16px;
  border: 1px solid var(--hairline-light);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.process-step:hover { border-color: rgba(11, 31, 58, 0.18); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08); }
.process-step .status-tag { margin-bottom: 18px; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.95rem; }

/* ── Portfolio ─────────────────────────────────────────────────── */
.portfolio-card { border-radius: 18px; }
.portfolio-card:not(.portfolio-card--cedarcreek) {
  border-color: var(--hairline-light);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.portfolio-card:not(.portfolio-card--cedarcreek):hover { border-color: rgba(11, 31, 58, 0.18); }
.portfolio-card:hover { transform: translateY(-3px); }
.portfolio-card:not(.portfolio-card--cedarcreek):hover { box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1); }
.portfolio-preview:not(.portfolio-preview--cedarcreek) { height: 228px; }
/* Layout only (brand colours untouched): let the client preview grow so its
   status pill never collides with the corner label when pills wrap. */
.portfolio-preview.portfolio-preview--cedarcreek { height: auto; min-height: 228px; }
.portfolio-preview:not(.portfolio-preview--cedarcreek)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 205, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 205, 216, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.preview-glyph {
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--silver-200);
  border: 1px solid rgba(197, 205, 216, 0.24);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 28px rgba(7, 22, 38, 0.35);
  transition: transform var(--dur) var(--ease-out);
}
.preview-glyph svg { width: 28px; height: 28px; }
.portfolio-card:hover .preview-glyph { transform: translateY(-2px); }

.preview-label { background: rgba(7, 22, 38, 0.62); color: var(--silver-200); border: 1px solid rgba(197, 205, 216, 0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.portfolio-body { padding: var(--card-pad); gap: 14px; }
.portfolio-body h3 { font-size: 1.2rem; }
.portfolio-body p { font-size: 0.94rem; line-height: 1.68; }
.portfolio-category {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 6px;
}
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; }
.tag--web { color: var(--silver-200); }
.portfolio-link { min-height: 32px; transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.97rem; color: var(--text-soft); line-height: 1.6; }
.check-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--navy); }

/* ── FAQ: smooth height accordion (grid-rows), accessible ──────── */
.faq-list { border-color: var(--hairline-light); border-radius: 16px; background: var(--white); max-width: 820px; }
.faq-item { border-bottom-color: var(--hairline-light); }
.faq-q {
  min-height: 64px;
  padding: 20px 28px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  transition: background-color var(--dur-fast) var(--ease);
}
.faq-q:hover { background: var(--silver-100); }
.faq-icon {
  width: 28px; height: 28px;
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(11, 31, 58, 0.2);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease), color var(--dur), border-color var(--dur);
}
.faq-q:hover .faq-icon { border-color: rgba(11, 31, 58, 0.45); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.faq-a, .faq-a.open {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  padding: 0 28px;
  transition: grid-template-rows var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.faq-a.open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq-a > * { min-height: 0; }
.faq-a-inner { padding-bottom: 24px; }
.faq-a p { font-size: 0.98rem; max-width: 68ch; }
.faq-a p + p { margin-top: 10px; }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: var(--card-pad);
  border: 1px solid rgba(197, 205, 216, 0.16);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(197, 205, 216, 0.14), transparent 60%),
    linear-gradient(165deg, var(--navy-700) 0%, var(--navy) 100%);
  box-shadow: 0 24px 56px rgba(11, 31, 58, 0.2);
}
.contact-card-title { font-size: 1.2rem; letter-spacing: -0.015em; }
.contact-card-lede { font-size: 0.95rem; color: var(--silver-300); line-height: 1.68; }
.contact-items { gap: 8px; }
.contact-item {
  min-height: 64px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.contact-item:hover { opacity: 1; background: rgba(255, 255, 255, 0.05); border-color: var(--hairline-dark); }
.ci-icon { width: 42px; height: 42px; border: 1px solid var(--hairline-dark); background: rgba(255, 255, 255, 0.05); transition: transform var(--dur-fast) var(--ease-out); }
.contact-item:hover .ci-icon { transform: translateY(-1px); }
.ci-icon svg { color: var(--silver-200); }
.ci-label { color: var(--slate-300); }
.ci-value { color: var(--white); font-size: 1rem; word-break: break-word; }
.contact-note { color: var(--silver-300); border-color: var(--hairline-dark); }
.form-label { letter-spacing: -0.005em; }
.form-label .optional { color: var(--text-muted); }
.form-control {
  border: 1px solid rgba(11, 31, 58, 0.16);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-control::placeholder { color: var(--slate-500); opacity: 1; }
.form-control:hover { border-color: rgba(11, 31, 58, 0.3); }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.1); }
.form-checkbox-group input[type="checkbox"] { width: 20px; height: 20px; }
.form-consent-group label { color: var(--text-soft); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band {
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(197, 205, 216, 0.14), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, #081A31 100%);
  border-top: 1px solid var(--hairline-dark);
}
.cta-band p { max-width: 58ch; color: var(--silver-300); }

/* ── About ─────────────────────────────────────────────────────── */

/* ── Legal ─────────────────────────────────────────────────────── */
.legal-doc { max-width: 72ch; }
.legal-doc p, .legal-doc li { line-height: 1.75; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: #061424; border-top: 1px solid var(--hairline-dark); padding: clamp(56px, 7vw, 80px) 0 32px; }
.footer-heading, .footer-col h5 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 16px;
}
.footer-blurb, .footer-copy, .footer-loc { color: var(--slate-300); }
.footer-col ul { gap: 4px; }
.footer-col ul a, .footer-contact-links a, .footer-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--silver-300);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col ul a:hover, .footer-contact-links a:hover, .footer-copy a:hover { color: var(--white); }
.footer-contact-links { gap: 2px; }
.footer-contact-links a { font-family: var(--mono); font-size: 0.8rem; }
.footer-bottom { border-top-color: var(--hairline-dark); }

/* ── Ask Solid Rock: drawer motion ─────────────────────────────── */
#srdAiWidget .ai-panel { transform-origin: bottom right; border-color: rgba(197, 205, 216, 0.6); box-shadow: 0 24px 64px rgba(7, 22, 38, 0.34), 0 2px 8px rgba(7, 22, 38, 0.14); }
#srdAiWidget .ai-panel:not([hidden]) { animation: srd-drawer-in var(--dur) var(--ease-out) both; }
#srdAiWidget .ai-panel.is-closing { animation: srd-drawer-out var(--dur-fast) var(--ease) both; }
@keyframes srd-drawer-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes srd-drawer-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(8px) scale(0.98); }
}
#srdAiWidget #aiWidgetBtn { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast) var(--ease); }
#srdAiWidget #aiWidgetBtn:hover { transform: translateY(-2px); }
#srdAiWidget #aiWidgetBtn:active { transform: translateY(0) scale(0.98); }
#srdAiWidget .ai-bubble-in, #srdAiWidget .ai-bubble-out, #srdAiWidget .ai-typing-row { animation: srd-bubble-in var(--dur) var(--ease-out) both; }
@keyframes srd-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
#srdAiWidget .ai-chip { transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast); }

/* ── Scroll reveal (progressive: only hides once JS opts in) ───── */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Hover lift must win once revealed, without the stagger delay */
.reveal-on [data-reveal].is-revealed.card,
.reveal-on [data-reveal].is-revealed.ai-int-card,
.reveal-on [data-reveal].is-revealed.portfolio-card,
.reveal-on [data-reveal].is-revealed.process-step { transition-delay: 0s; }
.reveal-on .card[data-reveal].is-revealed:hover,
.reveal-on .ai-int-card[data-reveal].is-revealed:hover,
.reveal-on .portfolio-card[data-reveal].is-revealed:hover { transform: translateY(-3px); }
.reveal-on .process-step[data-reveal].is-revealed:hover { transform: translateY(-2px); }

@media print {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-nav, #srdAiWidget { display: none !important; }
  .page-wrap { padding-top: 0; }
}

/* ── Small screens ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card, .ai-int-card, .process-step { padding: 26px 22px; }
  .faq-q { padding: 18px 20px; }
  .faq-a, .faq-a.open { padding: 0 20px; }
  .glance > div { padding: 18px 20px; }
  
  
  
  
  .cta-btns .btn { width: 100%; justify-content: center; }
  .hero-btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── Reduced motion: everything settles instantly ──────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  
  .card:hover, .ai-int-card:hover, .portfolio-card:hover, .process-step:hover,
  .btn:hover, #srdAiWidget #aiWidgetBtn:hover { transform: none !important; }
}

/* ── v2 hooks for new markup ───────────────────────────────────── */
.faq-h { margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; }
.contact-note-title { color: var(--silver-200); }
.footer-heading { font-size: 0.68rem; }
.process-steps > li { list-style: none; }
.glance { margin: 0; }
.glance dd { margin: 0; }
.hero-content h1 { font-size: clamp(2.15rem, 1.1rem + 2.5vw, 3.35rem); max-width: 18ch; }
@media (max-width: 860px) { .hero-content h1 { max-width: none; } }

.glance { grid-template-columns: 1fr; }
@media (min-width: 600px) { .glance { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .glance { grid-template-columns: repeat(3, 1fr); } }
/* Accordion: padding can't collapse below its own size, so keep the
   spacing inside a clipped box that the 0fr row can shrink to zero. */
.faq-a-inner { padding-bottom: 0; overflow: hidden; }
.faq-a-inner > :last-child { margin-bottom: 24px; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
}
.breadcrumb a, .breadcrumb [aria-current] { display: inline-flex; align-items: center; min-height: 28px; }

/* ── Capability pages ──────────────────────────────────────────── */
.page-hero-btns { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.check-list--panel {
  margin-top: 0;
  padding: var(--card-pad);
  border-radius: 16px;
  border: 1px solid var(--hairline-light);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 14px 34px rgba(11, 31, 58, 0.06);
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.related-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--hairline-light);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.related-card .cap-icon { width: 38px; height: 38px; flex-shrink: 0; }
.related-card .arrow { margin-left: auto; color: var(--slate-500); }
.related-card:hover { border-color: rgba(11, 31, 58, 0.2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08); }
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; margin-top: 14px;
  font-size: 0.9rem; font-weight: 700; color: var(--navy);
}
.card-more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Glass stays dense enough for AA contrast even over the white page gutter */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(11, 31, 58, 0.9); }
  .site-header.scrolled { background: rgba(11, 31, 58, 0.92); }
}
.feature-split h2 { margin-bottom: 16px; }
.expect-steps { counter-reset: step; display: grid; gap: 10px; margin: -8px 0 28px; }
.expect-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--hairline-light); border-radius: 12px; background: var(--silver-100); color: var(--text-soft); font-size: 0.94rem; line-height: 1.55; }
.expect-steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; }
.expect-steps strong { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════
   STUDIO v3 — content redesign components
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero with real client work ────────────────────────────────── */
.hero--v3 .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero--v3 .hero-content h1 { max-width: 15ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; color: var(--silver-200); font-size: 0.95rem; font-weight: 600; }
.trust-row svg { width: 18px; height: 18px; color: var(--silver-300); flex-shrink: 0; }
.hero-showcase { position: relative; padding: 0 0 48px 0; }
.browser-frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(197, 205, 216, 0.5);
  box-shadow: 0 30px 70px rgba(7, 22, 38, 0.4), 0 2px 10px rgba(7, 22, 38, 0.18);
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--ice); border-bottom: 1px solid var(--hairline-light); }
.browser-dots { width: 40px; height: 10px; flex-shrink: 0; background:
  radial-gradient(circle at 5px 5px, #C5CDD8 4px, transparent 4.5px),
  radial-gradient(circle at 20px 5px, #C5CDD8 4px, transparent 4.5px),
  radial-gradient(circle at 35px 5px, #C5CDD8 4px, transparent 4.5px); }
.browser-url { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--hairline-light); font-family: var(--mono); font-size: 0.72rem; color: var(--slate-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-frame img { display: block; width: 100%; height: auto; }

.showcase-tag {
  position: absolute; left: 18px; bottom: 6px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 16px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.92);
  border: 1px solid rgba(197, 205, 216, 0.3);
  color: var(--white); font-size: 0.86rem; font-weight: 700;
  box-shadow: 0 12px 30px rgba(7, 22, 38, 0.4);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.showcase-tag:hover { transform: translateY(-1px); border-color: rgba(197, 205, 216, 0.6); }
.showcase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--silver-200); animation: srd-live 2.4s var(--ease) infinite; }
@media (max-width: 860px) {
  .hero--v3 .hero-inner { grid-template-columns: 1fr; }
  .hero-showcase { padding-bottom: 56px; }
  
}

/* ── Problems → what we build ──────────────────────────────────── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.problem-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: var(--card-pad);
  border-radius: 16px;
  border: 1px solid var(--hairline-light);
  background: var(--white);
  color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.problem-card:hover { transform: translateY(-3px); border-color: rgba(11, 31, 58, 0.2); box-shadow: 0 16px 36px rgba(11, 31, 58, 0.09); }
.problem-quote { font-size: 1.12rem; line-height: 1.4; letter-spacing: -0.015em; color: var(--navy); }
.problem-fix { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed rgba(11, 31, 58, 0.14); }
.problem-fix .cap-icon { width: 38px; height: 38px; }
.problem-fix-label { display: flex; flex-direction: column; font-weight: 700; color: var(--navy); line-height: 1.25; }
.problem-fix-label small { font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-600); }
.problem-card p { font-size: 0.95rem; }
.problem-card .card-more { margin-top: auto; }
.reveal-on .problem-card[data-reveal].is-revealed:hover { transform: translateY(-3px); }

/* ── Case study ────────────────────────────────────────────────── */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.case .browser-frame { box-shadow: 0 24px 56px rgba(11, 31, 58, 0.18); border-color: var(--hairline-light); }
.case-copy h2 { margin-bottom: 16px; }
.case-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ── Comparison ────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: stretch; }
.compare-col { padding: var(--card-pad); border-radius: 16px; border: 1px solid var(--hairline-light); background: var(--white); }
.compare-col h3 { margin-bottom: 4px; }
.compare-sub { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 18px; }
.compare-col ul { display: grid; gap: 10px; }
.compare-col li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: 0.96rem; line-height: 1.55; }
.compare-col li::before { content: '—'; position: absolute; left: 0; color: var(--slate-500); }
.compare-col--us {
  border-color: transparent;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(197, 205, 216, 0.16), transparent 60%), linear-gradient(165deg, var(--navy-700), var(--navy));
  box-shadow: 0 24px 56px rgba(11, 31, 58, 0.22);
  transform: translateY(-8px);
}
.compare-col--us h3 { color: var(--white); }
.compare-col--us .compare-sub { color: var(--slate-300); }
.compare-col--us li { color: var(--silver-200); }
.compare-col--us li::before { content: '✓'; color: var(--white); font-weight: 700; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare-col--us { transform: none; order: -1; } }

/* ── Why / audiences ───────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.why-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.why-item { padding: var(--card-pad); border-radius: 16px; border: 1px solid var(--hairline-light); background: var(--white); }
.why-item .cap-icon { margin-bottom: 18px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { font-size: 0.95rem; }

/* ── Care plan ─────────────────────────────────────────────────── */
.care-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 40px; align-items: center;
  margin-top: 24px; padding: var(--card-pad);
  border-radius: 18px; border: 1px solid var(--hairline-light); background: var(--white);
}
.care-panel h3 { margin-bottom: 8px; }
.care-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px 20px; }
.care-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.care-list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--navy); flex-shrink: 0; }
@media (max-width: 760px) { .care-panel { grid-template-columns: 1fr; } }

/* ── Services page ─────────────────────────────────────────────── */
.service-index { padding: 28px 0 0; }
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--hairline-light); background: var(--white);
  color: var(--navy); font-size: 0.88rem; font-weight: 700;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.service-chips a:hover { border-color: rgba(11, 31, 58, 0.3); background: var(--ice); }
.service-chips svg { width: 16px; height: 16px; }
.service-list { padding-top: 36px; }
.service-row {
  display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 36px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline-light);
}
.service-row:first-child { border-top: 0; }
.service-row-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.service-row h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin-bottom: 12px; }
.service-desc { font-size: 1.02rem; }
.service-row-helps { padding: 22px 24px; border-radius: 14px; background: var(--silver-100); border: 1px solid var(--hairline-light); }
.service-row-helps h3 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 4px; }
.service-row-helps .check-list { margin-top: 12px; gap: 10px; }
.service-row-helps .check-list li { font-size: 0.93rem; }
.service-row--addon { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 860px) {
  .service-row, .service-row--addon { grid-template-columns: 1fr; }
  .service-row-head { flex-direction: row; }
}
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.price-item { padding: var(--card-pad); border-radius: 16px; background: var(--white); border: 1px solid var(--hairline-light); }
.price-item h3 { margin-bottom: 8px; }
.price-item p { font-size: 0.95rem; }

/* ── Work page ─────────────────────────────────────────────────── */
.client-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.client-shots { display: grid; gap: 20px; }
.client-shots .browser-frame { box-shadow: 0 18px 44px rgba(11, 31, 58, 0.14); border-color: var(--hairline-light); }
.portfolio-grid--single { grid-template-columns: 1fr !important; }
.client-link { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 600; color: var(--text); max-width: none; }
.client-link a { font-family: var(--mono); font-size: 0.95rem; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(11, 31, 58, 0.3); word-break: break-all; }
.client-link a:hover { text-decoration-color: var(--navy); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.before-after > div { padding: var(--card-pad); border-radius: 16px; border: 1px solid var(--hairline-light); background: var(--white); }
.before-after > div:last-child { background: var(--silver-100); }
.before-after h3 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 8px; }
.ai-int-grid--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ai-int-card .card-more { margin-top: 16px; }
@media (max-width: 860px) { .client-feature, .before-after { grid-template-columns: 1fr; } }

/* ── About ─────────────────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-split--reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.about-split .about-emblem { margin: 0 auto; }
.about-story h2 { margin-bottom: 16px; }
.about-story p + p { margin-top: 14px; }
.about-photo-icon { width: 160px; height: 160px; border-radius: 40px; justify-self: center; }
.about-photo-icon svg { width: 64px; height: 64px; }
@media (max-width: 860px) { .about-split, .about-split--reverse { grid-template-columns: 1fr; } .about-photo-icon { display: none; } }

/* ── Contact & CTA extras ──────────────────────────────────────── */
.form-title { font-size: 1.5rem; margin-bottom: 8px; }
.form-intro { margin-bottom: 24px; font-size: 0.97rem; }
.cta-alt { margin-top: 22px !important; font-size: 0.92rem !important; color: var(--slate-300) !important; }
.cta-alt a { color: var(--silver-200); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226, 232, 240, 0.35); }
.cta-alt a:hover { color: var(--white); }
.reveal-on [data-reveal].is-revealed.problem-card,
.reveal-on [data-reveal].is-revealed.related-card { transition-delay: 0s; }
.reveal-on .related-card[data-reveal].is-revealed:hover { transform: translateY(-2px); }
.problem-card--cta {
  border-color: transparent;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(197, 205, 216, 0.16), transparent 60%), linear-gradient(165deg, var(--navy-700), var(--navy));
}
.problem-card--cta .problem-quote { color: var(--white); }
.problem-card--cta p { color: var(--silver-300); }
.problem-card--cta .card-more { color: var(--white); }

/* ── Realistic iPhone in the hero (scales with the showcase width) ─ */
.hero-showcase { container-type: inline-size; padding-bottom: 20cqw; }
.iphone-frame {
  --p: 27cqw;                       /* phone body width */
  --s: calc(var(--p) * 0.93);       /* screen width inside the bezel */
  position: absolute; right: 1.5cqw; bottom: 0; z-index: 2;
  width: var(--p);
  padding: calc(var(--p) * 0.035);
  border-radius: calc(var(--p) * 0.18);
  background: linear-gradient(145deg, #4A5568 0%, #1E2633 22%, #0D121B 55%, #1E2633 82%, #3B4658 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 calc(var(--p) * 0.014) #070A10,
    0 34px 70px rgba(7, 22, 38, 0.55),
    0 8px 20px rgba(7, 22, 38, 0.35);
}
.iphone-btn { position: absolute; width: calc(var(--p) * 0.014); border-radius: 2px; background: linear-gradient(90deg, #232B38, #556070); }
.iphone-btn--action   { left: calc(var(--p) * -0.012); top: 17%; height: 5%; }
.iphone-btn--vol-up   { left: calc(var(--p) * -0.012); top: 25%; height: 9%; }
.iphone-btn--vol-down { left: calc(var(--p) * -0.012); top: 36%; height: 9%; }
.iphone-btn--power    { right: calc(var(--p) * -0.012); top: 28%; height: 14%; background: linear-gradient(270deg, #232B38, #556070); }
.iphone-screen {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--p) * 0.145);
  background: var(--white);
}
/* Client brand exception: status bar matches Cedar Creek's own header */
.iphone-screen--cedarcreek { background: #FBF8F1; }
.iphone-status {
  position: relative; flex: 0 0 auto;
  height: calc(var(--s) * 0.1374);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--s) * 0.08) 0 calc(var(--s) * 0.1);
  color: #0B0F14;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
  font-weight: 600; font-size: calc(var(--s) * 0.043); letter-spacing: -0.01em;
}
.iphone-island {
  position: absolute; left: 50%; top: calc(var(--s) * 0.028);
  width: calc(var(--s) * 0.32); height: calc(var(--s) * 0.094);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.iphone-icons { display: inline-flex; align-items: center; gap: calc(var(--s) * 0.014); }
.iphone-icons svg { height: calc(var(--s) * 0.03); width: auto; }
.iphone-icons svg:last-child { height: calc(var(--s) * 0.033); }
.iphone-screen picture, .iphone-screen img { display: block; width: 100%; height: auto; flex: 1 1 auto; }
.iphone-home {
  position: absolute; left: 50%; bottom: calc(var(--s) * 0.022);
  width: calc(var(--s) * 0.35); height: calc(var(--s) * 0.013);
  transform: translateX(-50%); border-radius: 999px; background: rgba(11, 15, 20, 0.82);
}
.hero-showcase .showcase-tag { bottom: calc(20cqw - 24px); }
@media (max-width: 860px) {
  .hero-showcase { padding-bottom: 26cqw; }
  .iphone-frame { --p: 33cqw; right: 0; }
  .hero-showcase .showcase-tag { position: relative; left: auto; bottom: auto; margin-top: 16px; }
}
.hero-showcase { padding-bottom: 26cqw; }
.iphone-frame { --p: 31cqw; }
.hero-showcase .showcase-tag { bottom: calc(26cqw - 22px); }
@media (max-width: 860px) {
  .hero-showcase { padding-bottom: 30cqw; }
  .iphone-frame { --p: 36cqw; }
  .hero-showcase .showcase-tag { bottom: auto; }
}
/* padding can't use the container's own cqw — use % of the column width */
.hero-showcase { padding-bottom: 30%; }
.hero-showcase .showcase-tag { left: 0; bottom: 18px; }
@media (max-width: 860px) {
  .hero-showcase { padding-bottom: 38%; }
  .hero-showcase .showcase-tag { position: absolute; left: 0; bottom: 8px; margin: 0; }
}
@media (max-width: 860px) {
  .hero-showcase .showcase-tag { max-width: calc(100% - 36cqw - 18px); font-size: 0.8rem; line-height: 1.3; }
}

/* ── Ask Solid Rock: white over dark sections, navy over light ─── */
#srdAiWidget #aiWidgetBtn,
#srdAiWidget .ai-widget-kicker,
#srdAiWidget .ai-widget-label,
#srdAiWidget .ai-kicker-dot,
#srdAiWidget .ai-widget-x,
#srdAiWidget .ai-widget-close-label {
  transition:
    background var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
#srdAiWidget.on-dark #aiWidgetBtn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(11, 31, 58, 0.06);
}
#srdAiWidget.on-dark #aiWidgetBtn:hover { border-color: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2); }
#srdAiWidget.on-dark .ai-widget-kicker { color: var(--slate-600); }
#srdAiWidget.on-dark .ai-kicker-dot { background: var(--navy); }
#srdAiWidget.on-dark .ai-widget-label { color: var(--navy); }
#srdAiWidget.on-dark .ai-widget-close-label { color: var(--navy); }
#srdAiWidget.on-dark #aiWidgetBtn:focus-visible { outline-color: var(--white); }
.form-status.is-fallback { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--hairline-light); background: var(--silver-100); font-weight: 600; }
.form-status.is-fallback p { margin-bottom: 12px; color: var(--navy); }
.form-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-fallback-actions .btn { flex: 1 1 160px; justify-content: center; }


/* ── Guides ────────────────────────────────────────────────────── */
.guide { padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.guide-wrap { max-width: 780px; }
.quick-answer {
  position: relative; margin-bottom: clamp(36px, 5vw, 52px);
  padding: 26px 28px 26px 32px; border-radius: 16px;
  background: var(--silver-100); border: 1px solid var(--hairline-light);
}
.quick-answer::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--navy); }
.quick-answer h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 10px; }
.quick-answer p { color: var(--text); font-size: 1.08rem; line-height: 1.7; max-width: none; }
.guide-section + .guide-section { margin-top: clamp(30px, 4vw, 44px); }
.guide-section h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); margin-bottom: 12px; }
.guide-section p { font-size: 1.04rem; line-height: 1.78; }
.guide-section p + p { margin-top: 14px; }
.guide-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  margin-top: clamp(40px, 5vw, 56px); padding: 22px 24px; border-radius: 16px;
  border: 1px solid var(--hairline-light); background: var(--white); box-shadow: 0 14px 34px rgba(11, 31, 58, 0.07);
}
.guide-cta h2 { font-size: 1.1rem; margin-bottom: 2px; }
.guide-cta p { font-size: 0.93rem; }
@media (max-width: 640px) { .guide-cta { grid-template-columns: 1fr; } }
.guide-meta { margin-top: 22px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--slate-600); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad);
  border-radius: 16px; border: 1px solid var(--hairline-light); background: var(--white); color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.guide-card:hover { transform: translateY(-3px); border-color: rgba(11, 31, 58, 0.2); box-shadow: 0 16px 36px rgba(11, 31, 58, 0.09); }
.guide-card h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.02em; }
.guide-card p { font-size: 0.95rem; }
.guide-card .card-more { margin-top: auto; }
.guide-card .status-tag { align-self: flex-start; }

/* ── 404: crisp silver code over a slow radar sweep ────────────── */
.nf {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(197, 205, 216, 0.12), transparent 70%),
    linear-gradient(180deg, #071626 0%, var(--navy) 60%, var(--navy-700) 100%);
}
.nf::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 205, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 205, 216, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
}
.nf-inner { position: relative; z-index: 1; text-align: center; }
.nf-stage { position: relative; display: grid; place-items: center; margin: 0 auto 18px; width: min(420px, 86vw); aspect-ratio: 1.6; }
.nf-radar { position: absolute; left: 50%; top: 50%; width: min(400px, 82vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; }
.nf-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(197, 205, 216, 0.16); }
.nf-ring--2 { inset: 17%; }
.nf-ring--3 { inset: 34%; border-color: rgba(197, 205, 216, 0.22); }
.nf-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(197, 205, 216, 0.22), rgba(197, 205, 216, 0) 70deg, transparent 360deg);
  animation: nf-sweep 5s linear infinite;
}
.nf-blip { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--silver-200); box-shadow: 0 0 10px rgba(226, 232, 240, 0.7); opacity: 0; animation: nf-blip 5s ease-out infinite; }
.nf-blip--a { left: 70%; top: 30%; animation-delay: 0.6s; }
.nf-blip--b { left: 26%; top: 64%; animation-delay: 3.1s; }
@keyframes nf-sweep { to { transform: rotate(360deg); } }
@keyframes nf-blip { 0% { opacity: 0; transform: scale(0.6); } 6% { opacity: 1; transform: scale(1); } 40% { opacity: 0; } 100% { opacity: 0; } }
.nf-code {
  position: relative; margin: 0; max-width: none;
  font-weight: 800; font-size: clamp(5.5rem, 3rem + 12vw, 10rem); line-height: 1; letter-spacing: -0.06em;
  color: #E2E8F0;  /* solid fallback if gradient text is unsupported */
  background: linear-gradient(180deg, #FFFFFF 0%, #AEB7C4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 30px rgba(7, 22, 38, 0.55));
}
.nf .eyebrow { justify-content: center; color: var(--slate-300); }
.nf h1 { color: var(--white); margin: 0 auto 14px; max-width: 20ch; }
.nf-lede { color: var(--silver-300); margin: 0 auto 30px; font-size: 1.08rem; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf-help { margin: 26px auto 0; color: var(--slate-300); font-size: 0.95rem; }
.nf-help a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .nf-sweep { animation: none; transform: rotate(35deg); }
  .nf-blip { animation: none; opacity: 0.8; }
}
