/* Corestead Digital — shared stylesheet
   Keystone dark palette. Apple/iOS system font stack (per direction 2026-09-09). */

:root {
  --ink: #E7E6E0;
  --stone: #14161B;
  --stone-2: #1B1E24;
  --brass: #D9AE5C;
  --patina: #6FA79B;
  --on-accent: #1B1E24;
  --hairline: rgba(231, 230, 224, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --panel-bg: #1B1E24;
  --panel-fg: #E9E6DD;
  --header-bg-rgb: 27, 30, 36;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 92px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: filter .15s, background .15s, color .15s;
}
.btn-primary { background: var(--brass); color: var(--on-accent); border-color: var(--brass); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); border-width: 1.5px; padding: 13px 25px; }
.btn-secondary:hover { background: var(--ink); color: var(--stone); }
.btn-small { padding: 10px 18px; font-size: 13.5px; border-radius: 5px; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--header-bg-rgb), 0.94);
  border-bottom: 1px solid var(--hairline);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name span:first-child { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.brand-name span:last-child { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 3px; opacity: .6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.nav-link { font-size: 13.5px; font-weight: 700; opacity: .85; transition: opacity .15s, color .15s; }
.nav-link:hover { opacity: 1; color: var(--brass); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  align-items: center; justify-content: center;
  background: none;
  flex-shrink: 0;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--stone-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 15px; font-weight: 700; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-h1 { font-size: 34px !important; }
  .why-quote { font-size: 22px !important; }
}
@media (max-width: 640px) {
  .services-slide { padding: 30px 24px !important; }
}

a:focus-visible, button:focus-visible, .nav-hamburger:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 24px;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: linear-gradient(175deg, var(--stone) 0%, var(--stone) 55%, var(--stone-2) 100%);
}
@media (max-width: 780px) {
  .hero { padding: 100px 24px; min-height: 0; }
}
.hero--photo {
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: center 35%;
  color: var(--panel-fg);
  margin-top: -70px;
  padding-top: 200px;
}
@media (max-width: 780px) {
  .hero--photo { margin-top: -70px; padding-top: 170px; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(62% 85% at 50% 55%, rgba(15, 16, 19, .78) 0%, rgba(15, 16, 19, .45) 62%, rgba(15, 16, 19, .18) 100%);
  pointer-events: none;
}
.hero-inner { max-width: var(--container); width: 100%; margin: 0 auto; position: relative; }
.hero-copy { max-width: 660px; margin: 0 auto; text-align: center; }
.hero-h1 { font-weight: 700; font-size: 50px; line-height: 1.08; letter-spacing: -.5px; margin: 0 0 24px; color: var(--panel-fg); }
.hero-sub { font-size: 16px; line-height: 1.6; opacity: .85; margin: 0 auto 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.btn-secondary--light { color: var(--panel-fg); border-color: var(--panel-fg); }
.btn-secondary--light:hover { background: var(--panel-fg); color: var(--panel-bg); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; padding-top: 28px; border-top: 1px solid rgba(233, 230, 221, .2); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; opacity: .9; }

/* ---------- Section dividers ---------- */
.divider { line-height: 0; }
.divider svg { width: 100%; display: block; }

/* ---------- Generic section ---------- */
.section { padding: 96px 24px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-weight: 700; font-size: 33px; margin: 0 0 14px; }
.section-head p { font-size: 15px; line-height: 1.6; opacity: .75; margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Why Corestead ---------- */
.why { position: relative; overflow: hidden; padding: 56px 24px; }
.why-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.why-quotemark { margin: 0 auto 18px; opacity: .85; }
.why-quote { font-weight: 400; font-style: italic; font-size: 25px; line-height: 1.45; margin: 0; }
.why-rule { width: 56px; height: 2px; background: var(--brass); margin: 28px auto 0; border-radius: 2px; }

/* ---------- Services ---------- */
.services { background: var(--stone-2); }
.services-ring { position: absolute; right: -90px; top: -120px; opacity: .05; pointer-events: none; }
.slider-row { display: flex; align-items: center; gap: 16px; }
.slider-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--hairline); background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.slider-arrow:hover { border-color: var(--brass); color: var(--brass); }
.services-slide {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  padding: 42px 46px; border-radius: 8px;
  background: var(--stone); border: 1px solid var(--hairline);
  box-shadow: 0 12px 28px -18px var(--shadow);
}
.slide-num-ghost {
  position: absolute; top: 6px; right: 26px;
  font-weight: 700; font-size: 104px; line-height: 1;
  color: var(--ink); opacity: .045; pointer-events: none;
}
.slide-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; }
.slide-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--stone-2); color: var(--brass);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.slide-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); }
.slide-kicker span { opacity: .45; }
.services-slide h3 { font-weight: 700; font-size: 22px; margin: 0 0 12px; position: relative; max-width: 480px; }
.services-slide .desc { font-size: 15px; line-height: 1.6; opacity: .75; margin: 0 0 28px; position: relative; max-width: 480px; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); row-gap: 12px; column-gap: 22px; position: relative; }
.slide-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 13.5px; font-weight: 600; color: var(--brass); border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; position: relative; }
.slide-more:hover { color: var(--patina); border-color: var(--patina); }
.tag-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; opacity: .8; }
.tag-item svg { flex-shrink: 0; margin-top: 3px; }
.dots-row { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); border: none; padding: 0; transition: background .15s, transform .15s; }
.slider-dot.active { background: var(--brass); transform: scale(1.35); }

/* ---------- Process ---------- */
.process-row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.process-line { position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--hairline); z-index: 0; }
.process-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 4px; border-radius: 10px;
  transition: transform .18s ease;
}
.process-step:hover { transform: translateY(-2px); }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--stone-2); border: 1.5px solid var(--hairline);
  color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  transition: border-color .18s ease;
}
.process-step:hover .step-num { border-color: var(--brass); }
.step-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; opacity: .45; }
.step-title { font-weight: 700; font-size: 18px; }
.step-desc { font-size: 14px; line-height: 1.55; opacity: .75; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--stone-2); padding-bottom: 15px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  padding: 30px; border-radius: 8px;
  border: 1px solid var(--hairline); background: var(--stone);
  display: flex; flex-direction: column; transition: border-color .15s;
}
.testimonial-card:hover { border-color: var(--brass); }
.testimonial-quotemark { margin-bottom: 14px; opacity: .85; }
.testimonial-quote { font-size: 15px; line-height: 1.6; font-style: italic; opacity: .85; margin: 0 0 24px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--stone-2); border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; opacity: .5;
}
.testimonial-name { font-weight: 700; font-size: 14.5px; }
.testimonial-role { font-size: 13px; opacity: .6; }

/* Team "story" section — tenure stat + a project-story quote card,
   reusing the testimonial-card look but on its own within the section. */
.detail-story { background: var(--stone); }
.story-stat { text-align: center; margin: 0 0 32px; }
.story-stat-number { font-size: 42px; font-weight: 700; color: var(--brass); line-height: 1; margin-bottom: 8px; }
.story-stat-label { font-size: 14px; opacity: .65; }
.story-quote-card {
  padding: 30px 34px; border-radius: 10px;
  background: var(--stone-2); border: 1px solid var(--hairline);
  transition: border-color .15s;
}
.story-quote-card:hover { border-color: var(--brass); }
.story-quote-card .testimonial-quote { font-size: 15.5px; }
.story-quote-card .testimonial-avatar { background: var(--stone); }

/* ---------- Stack ---------- */
.stack--photo {
  background-image: url("../assets/stack.jpg");
  background-size: cover;
  background-position: center;
}
.stack-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .95) 100%);
  pointer-events: none;
}
.stack-fade { position: absolute; left: 0; right: 0; height: 150px; pointer-events: none; }
.stack-fade--top { top: 0; background: linear-gradient(180deg, var(--stone-2) 0%, transparent 100%); }
.stack-fade--bottom { bottom: 0; background: linear-gradient(0deg, var(--stone-2) 0%, transparent 100%); }
.stack--photo .section-head h2, .stack--photo .section-head p { color: var(--panel-fg); }
.stack--photo .section-head p { opacity: .8; }
.stack--photo .stack-tabs { border-bottom-color: rgba(233, 230, 221, .22); justify-content: center; }
.stack--photo .stack-tab { color: var(--panel-fg); font-weight: 700; }
.stack--photo .stack-tab.active { color: var(--brass); border-bottom-color: var(--brass); }
.stack--photo .stack-tab-num { color: var(--panel-fg); font-weight: 700; }
.stack--photo .stack-panel {
  background: rgba(20, 20, 22, .28);
  border-left-color: rgba(111, 167, 155, .5);
}
.stack--photo .stack-panel-icon { background: rgba(255, 255, 255, .08); }
.stack--photo .stack-panel-title, .stack--photo .stack-panel-desc { color: var(--panel-fg); }
.stack--photo .stack-panel-title span { color: var(--panel-fg); }
.stack-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); margin-bottom: 28px; }
.stack-tab {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; margin-right: 24px; padding: 0 0 12px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink); opacity: .5; transition: opacity .15s, color .15s, border-color .15s;
}
.stack-tab:hover { opacity: .85; }
.stack-tab.active { opacity: 1; color: var(--patina); border-bottom-color: var(--patina); }
.stack-tab-num { font-family: var(--font-mono); font-size: 10.5px; opacity: .55; }
.stack-panel {
  display: flex; align-items: flex-start; gap: 16px;
  border-left: 3px solid var(--patina); background: var(--stone-2);
  padding: 20px 24px; border-radius: 0 8px 8px 0; margin-bottom: 28px; min-height: 34px;
}
.stack-panel-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--stone); color: var(--patina);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stack-panel-title { font-weight: 700; font-size: 16.5px; margin-bottom: 6px; }
.stack-panel-title span { opacity: .45; font-weight: 400; }
.stack-panel-desc { font-size: 14.5px; line-height: 1.65; opacity: .72; max-width: 600px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--stone-2); }

.pricing-estimator { background: var(--stone-2); padding-top: 0; }
.estimator-card {
  background: var(--stone); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 44px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 760px) { .estimator-card { grid-template-columns: 1fr; padding: 34px 28px; } }
.estimator-head h2 { font-weight: 700; font-size: 26px; margin: 0 0 10px; }
.estimator-head p { font-size: 14.5px; line-height: 1.6; opacity: .75; margin: 0 0 24px; max-width: 440px; }
.estimator-questions { display: flex; flex-direction: column; gap: 13px; }
.estimator-q { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.estimator-q input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brass); flex-shrink: 0; cursor: pointer; }
.estimator-result { background: var(--stone-2); border-radius: 12px; padding: 30px 26px; text-align: center; }
.estimator-result-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; opacity: .55; margin-bottom: 12px; }
.estimator-result-tier { font-size: 25px; font-weight: 700; margin-bottom: 4px; }
.estimator-result-price { font-size: 15px; opacity: .75; margin-bottom: 2px; }
.estimator-result-time { font-size: 13px; opacity: .55; margin-bottom: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; align-items: stretch; }
.pricing-carousel-wrap { display: flex; align-items: center; gap: 14px; }
.pricing-carousel-arrow { flex-shrink: 0; }
.pricing-carousel {
  display: flex; gap: 26px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  min-width: 0; padding: 20px 2px 4px;
}
.pricing-carousel::-webkit-scrollbar { display: none; }
.pricing-carousel .tier-card {
  flex: 0 0 calc((100% - 52px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 980px) {
  .pricing-carousel .tier-card { flex-basis: calc((100% - 26px) / 2); }
}
@media (max-width: 640px) {
  .pricing-carousel .tier-card { flex-basis: 85%; }
}
.tier-card {
  padding: 42px 38px; display: flex; flex-direction: column;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--stone);
  transition: border-color .2s, transform .18s ease, box-shadow .18s ease;
}
.tier-card:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: 0 14px 26px -20px var(--shadow); }
.tier-card.featured { border: 1.5px solid var(--patina); box-shadow: 0 10px 24px -16px var(--shadow); position: relative; }
.tier-card.featured:hover { box-shadow: 0 14px 28px -20px var(--shadow); }
.tier-card > svg { transition: transform .25s ease; }
.tier-card:hover > svg { transform: translateY(-2px); }
.tier-badge { position: absolute; top: -14px; left: 38px; background: var(--patina); color: var(--stone); font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 5px 12px; border-radius: 4px; }
.tier-name { font-weight: 700; font-size: 24px; margin-bottom: 10px; position: relative; }
.tier-price { font-size: 34px; font-weight: 700; margin-bottom: 6px; position: relative; }
.tier-time { font-size: 14px; opacity: .55; margin-bottom: 26px; position: relative; }
.tier-desc { font-size: 15.5px; line-height: 1.6; opacity: .75; margin-bottom: 30px; flex-grow: 1; position: relative; }
.tier-checklist { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex-grow: 1; position: relative; }
.tier-checklist li { display: flex; align-items: flex-start; font-size: 14px; line-height: 1.5; opacity: .82; }
.tier-checklist li::before {
  content: ''; width: 5px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--patina); border-bottom: 2px solid var(--patina);
  transform: rotate(45deg); margin: 2px 12px 0 3px;
}
.tier-link { font-size: 14.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; position: relative; transition: color .15s; }
.tier-link:hover { color: var(--brass); }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; }
  .about-avatars { margin: 0 auto; }
}
.about-avatars { position: relative; width: 360px; height: 390px; }
.avatar-orb {
  position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: var(--stone-2); border: 1.5px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center;
  box-shadow: 0 16px 36px -14px var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.avatar-orb--a { top: 0; left: 0; z-index: 1; background: color-mix(in srgb, var(--brass) 14%, var(--stone-2)); }
.avatar-orb--b { top: 178px; left: 148px; z-index: 2; background: color-mix(in srgb, var(--patina) 16%, var(--stone-2)); }
.avatar-orb--a:hover, .avatar-orb--a:focus-visible { border-color: var(--brass); }
.avatar-orb--b:hover, .avatar-orb--b:focus-visible { border-color: var(--patina); }
.avatar-orb:hover, .avatar-orb:focus-visible {
  box-shadow: 0 14px 30px -18px var(--shadow);
  transform: translateY(-2px);
  z-index: 3;
}
.avatar-orb-initials { font-weight: 700; font-size: 30px; color: var(--brass); }
.avatar-orb--b .avatar-orb-initials { color: var(--patina); }
.avatar-orb-title { font-size: 13px; font-weight: 600; line-height: 1.3; opacity: .8; }
@media (max-width: 480px) {
  .about-avatars { width: 280px; height: 300px; }
  .avatar-orb { width: 160px; height: 160px; padding: 14px; gap: 6px; }
  .avatar-orb--b { top: 136px; left: 114px; }
  .avatar-orb-initials { font-size: 24px; }
  .avatar-orb-title { font-size: 11.5px; }
}
.about-body { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.65; opacity: .8; }
.role-card { padding: 28px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--stone); transition: border-color .15s; }
.role-card:hover { border-color: var(--brass); }
.role-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--stone); border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--brass); margin-bottom: 16px;
}
.role-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.role-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: var(--patina); text-transform: uppercase; margin-bottom: 14px; }
.role-desc { font-size: 14px; line-height: 1.6; opacity: .75; }

/* ---------- Closing CTA (opens contact modal) ---------- */
.closing-cta { position: relative; overflow: hidden; padding: 104px 24px; background: var(--panel-bg); color: var(--panel-fg); text-align: center; }
.closing-cta .inner { max-width: 560px; margin: 0 auto; position: relative; }
.closing-cta h2 { font-weight: 700; font-size: 32px; margin: 0 0 16px; }
.closing-cta p { font-size: 15px; line-height: 1.6; opacity: .75; margin: 0 0 36px; }
.closing-note { font-size: 13px; opacity: .5; margin-top: 16px; }
.closing-shapes { position: absolute; inset: 0; pointer-events: none; }
.closing-shape { position: absolute; }
.closing-shape--circle-lg { top: 46px; right: -90px; width: 320px; height: 320px; border-radius: 50%; border: 1.5px solid var(--brass); opacity: .18; }
.closing-shape--circle-sm { bottom: 30px; right: 13%; width: 64px; height: 64px; border-radius: 50%; background: var(--patina); opacity: .16; }
.closing-shape--square { top: 20%; left: 7%; width: 58px; height: 58px; border: 1.5px solid rgba(233, 230, 221, .3); transform: rotate(20deg); }
.closing-shape--square-sm { bottom: 18%; left: 18%; width: 26px; height: 26px; background: var(--brass); opacity: .2; transform: rotate(12deg); border-radius: 4px; }
.closing-shape--dot { top: 32%; right: 22%; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); opacity: .55; }
.closing-shape--dot-2 { bottom: 42%; left: 10%; width: 6px; height: 6px; border-radius: 50%; background: var(--patina); opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { background: #14161b; color: var(--panel-fg); padding: 64px 24px 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-col { grid-column: span 1; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.footer-wordmark span:first-child { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: .5px; color: var(--panel-fg); }
.footer-wordmark span:last-child { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 3px; opacity: .55; }
.footer-tagline { font-size: 13.5px; line-height: 1.55; opacity: .6; max-width: 230px; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; opacity: .5; margin-bottom: 6px; }
.footer-col a { font-size: 14px; opacity: .75; transition: opacity .15s, color .15s; }
.footer-col a:hover { opacity: 1; color: var(--brass); }
.footer-note { font-size: 13px; opacity: .55; }
.footer-contact-btn { margin-top: 8px; align-self: flex-start; }
.footer-bottom { border-top: 1px solid rgba(233, 230, 221, .14); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-fine { font-size: 12.5px; opacity: .5; }

/* ---------- Contact modal ---------- */
.modal-overlay {
  display: none; opacity: 0;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 22, 0.55);
  align-items: center; justify-content: center;
  padding: 24px; overscroll-behavior: contain;
  transition: opacity .22s ease;
}
.modal-overlay.is-active { display: flex; }
.modal-overlay.is-open { opacity: 1; }
.modal-panel {
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: var(--stone); border-radius: 10px;
  padding: 40px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  overscroll-behavior: contain;
  transform: scale(.95) translateY(10px);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.modal-overlay.is-open .modal-panel { transform: scale(1) translateY(0); }
.modal-panel::-webkit-scrollbar { width: 6px; }
.modal-panel::-webkit-scrollbar-track { background: transparent; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }
.modal-panel::-webkit-scrollbar-thumb:hover { background: var(--brass); }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-panel { transition: none; }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.modal-close:hover { border-color: var(--brass); color: var(--brass); }
.modal-panel h2 { font-weight: 700; font-size: 26px; margin: 0 0 10px; }
.modal-panel > p { font-size: 14.5px; line-height: 1.6; opacity: .75; margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; opacity: .6; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--stone-2); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.modal-submit { width: 100%; justify-content: center; margin-top: 6px; }
.modal-alt { text-align: center; font-size: 13px; opacity: .6; margin-top: 18px; }
.modal-alt a { color: var(--brass); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.modal-success { text-align: center; padding: 24px 0 8px; }
.modal-success svg { margin: 0 auto 18px; color: var(--patina); }
.modal-success h3 { font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.modal-success p { font-size: 14.5px; opacity: .75; margin: 0; }

/* ---------- Detail pages (service.html / stack.html) ---------- */
.detail-hero { padding-top: 56px; padding-bottom: 40px; position: relative; overflow: hidden; }
.detail-hero .container { max-width: 760px; position: relative; z-index: 1; }

/* Decorative shapes, themed to the page's own icon/initials — same visual
   vocabulary as the closing-cta shapes, just built around what each detail
   page is actually about. */
.detail-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.detail-shape-icon, .detail-shape-initials {
  position: absolute; top: -30px; right: -10px; width: 300px; height: 300px;
  color: var(--ink); opacity: .05;
}
.detail-shape-icon svg { width: 100%; height: 100%; }
.detail-shape-initials {
  font-family: var(--font-mono); font-weight: 700; font-size: 240px; line-height: .8;
  letter-spacing: -6px; opacity: .045;
}
.detail-shape-square {
  position: absolute; bottom: 34px; right: 260px; width: 44px; height: 44px;
  border: 1.5px solid var(--brass); opacity: .18; transform: rotate(14deg);
}
.detail-shape-dot {
  position: absolute; top: 74px; right: 90px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--patina); opacity: .35;
}
@media (max-width: 640px) { .detail-shapes { display: none; } }
.detail-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .55; margin-bottom: 28px; }
.detail-crumb a { font-weight: 600; }
.detail-crumb a:hover { color: var(--brass); }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.detail-icon {
  width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
  background: var(--stone-2); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
}
.detail-icon svg { width: 26px; height: 26px; }
.detail-icon--patina { color: var(--patina); }
.detail-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.detail-head h1 { font-weight: 700; font-size: 34px; line-height: 1.15; margin: 0; }
.detail-desc { font-size: 17px; line-height: 1.65; opacity: .8; max-width: 640px; margin: 0 0 40px; }
.detail-subhead { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; opacity: .5; margin: 0 0 18px; }
.detail-subhead--center { text-align: center; }
.detail-tag-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); row-gap: 14px; margin-bottom: 40px; }
.detail-tag-grid .tag-item { font-size: 14.5px; }

.detail-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 40px; }
.detail-tier-mini {
  display: block; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--stone-2); color: var(--ink); transition: border-color .15s, transform .15s;
}
.detail-tier-mini:hover { border-color: var(--brass); transform: translateY(-2px); }
.detail-tier-mini-name { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.detail-tier-mini-price { font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.detail-tier-mini-time { font-size: 13px; opacity: .55; }

.detail-stack-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.detail-stack-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--stone-2);
  color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s;
}
.detail-stack-chip:hover { border-color: var(--brass); color: var(--brass); }
.detail-stack-chip-icon { width: 16px; height: 16px; display: flex; color: var(--patina); flex-shrink: 0; }
.detail-stack-chip-icon svg { width: 100%; height: 100%; }

/* Deep-content sections: full-bleed color bands, not boxed cards —
   alternating background + dividers + drifting decorative shapes carry
   the separation instead. */
.detail-deepdive, .detail-faq { background: var(--stone-2); }
.detail-fit, .detail-watchfor { background: var(--stone); }
.detail-deepdive, .detail-fit, .detail-watchfor, .detail-faq { position: relative; overflow: hidden; }
.detail-deepdive .container, .detail-fit .container, .detail-watchfor .container, .detail-faq .container {
  max-width: 900px; position: relative; z-index: 1;
}
.detail-deepdive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; position: relative; }
.detail-deepdive-grid::before {
  content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--hairline);
}
@media (max-width: 720px) {
  .detail-deepdive-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-deepdive-grid::before { display: none; }
}
.detail-deepdive-col-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 20px; }
.detail-deepdive-col-head .detail-subhead { margin: 0; }
.detail-deepdive-col-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.detail-deepdive-col-icon svg { width: 16px; height: 16px; }
.detail-deepdive-col--who .detail-deepdive-col-icon,
.detail-deepdive-col-icon--patina { color: var(--patina); }
.detail-deepdive-col-head:hover .detail-deepdive-col-icon { transform: rotate(-8deg) scale(1.08); }
.detail-deepdive-text { font-size: 15.5px; line-height: 1.7; opacity: .8; margin: 0 0 20px; }
.detail-points { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.detail-points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.6; opacity: .82; transition: transform .15s ease, opacity .15s ease; }
.detail-points li:hover { transform: translateX(5px); opacity: 1; }
.detail-points li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brass); transition: transform .15s ease;
}
.detail-points li:hover::before { transform: scale(1.3); }
.detail-points li strong { font-weight: 700; opacity: 1; }
.detail-points--good li::before { background: var(--patina); }
.detail-points--bad li::before { background: var(--ink); opacity: .3; }
.detail-points--good, .detail-points--bad { margin-bottom: 0; }

/* Is-this-a-fit two-column grid */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; }
.fit-grid::before {
  content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--hairline);
}
@media (max-width: 640px) {
  .fit-grid { grid-template-columns: 1fr; gap: 28px; }
  .fit-grid::before { display: none; }
}
.fit-col-title { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; opacity: .55; margin: 0 0 14px; text-align: center; }
.fit-col--good .fit-col-title { color: var(--patina); opacity: 1; }

/* What-we-watch-for callout rows */
.watchfor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.watchfor-list li {
  font-size: 14px; line-height: 1.6; opacity: .85;
  padding: 13px 16px; border-left: 2px solid var(--hairline);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  transition: transform .15s ease, border-color .15s ease;
}
.watchfor-list li:hover { transform: translateX(5px); border-left-color: var(--brass); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 15px; color: var(--ink); transition: color .15s ease;
}
.faq-item summary:hover { color: var(--brass); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--brass); flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; opacity: .78; }
.detail-deepdive-text--wide { max-width: 640px; }
.detail-experience {
  font-size: 14px; line-height: 1.6; opacity: .85; margin: 0;
  padding: 14px 18px; border-left: 2px solid var(--brass);
  background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 0 8px 8px 0;
}
.detail-deepdive-role {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s, transform .15s;
}
.detail-deepdive-role:hover { border-color: var(--brass); color: var(--brass); transform: translateX(4px); }
.detail-deepdive-role-initials {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--stone); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* Drifting decorative shapes for the fit / watch-for / faq bands */
.section-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.section-decor-icon { position: absolute; opacity: .05; color: var(--ink); }
.section-decor-icon svg { width: 100%; height: 100%; }
.section-decor-ring { position: absolute; border: 1.5px solid var(--brass); border-radius: 50%; opacity: .18; }
.section-decor-dot { position: absolute; border-radius: 50%; background: var(--patina); opacity: .32; }
.section-decor-icon, .section-decor-ring, .section-decor-dot { animation: none; }
@keyframes decor-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}
@keyframes decor-float-rev {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(11px) rotate(-6deg); }
}
@media (max-width: 640px) { .section-decor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .section-decor-icon, .section-decor-ring, .section-decor-dot { animation: none; }
}

/* Scroll-reveal: fades content up into place the first time it enters view */
[data-reveal] { opacity: 0; transition: opacity .32s ease; }
[data-reveal].is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.detail-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.detail-pager-band { background: var(--stone); }
.detail-pager {
  display: flex; align-items: stretch; justify-content: space-between;
  max-width: 760px;
}
.pager-link { display: flex; align-items: center; gap: 10px; padding: 24px 0; color: var(--ink); opacity: .75; transition: opacity .15s, color .15s; }
.pager-link:hover { opacity: 1; color: var(--brass); }
.detail-pager--patina .pager-link:hover { color: var(--patina); }
.pager-next { flex-direction: row-reverse; text-align: right; }
.pager-link small { display: block; font-size: 11.5px; opacity: .6; margin-bottom: 2px; }
.pager-link strong { display: block; font-size: 14.5px; font-weight: 600; }
[hidden] { display: none !important; }
