/* Stats, results and client-outcome components.
   Shares the site's tokens (serif numerals, uppercase micro-labels, --sg-radius
   card surfaces). Dark theme, seamless with the rest of the v2 pages. */

/* ---- Headline trust band (full-width strip of key numbers) ---- */
.stat-band {
  padding: 46px 4.5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  max-width: var(--layout-max, 1320px);
  margin: 0 auto;
}
.stat-band .stat {
  padding: 6px 20px;
  border-left: 1px solid var(--line);
}
.stat-band .stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-stat);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  letter-spacing: -.01em;
}
.stat-num .accent { color: var(--sg-gold,#c9aa66); }
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: .72rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---- Results / Why SG (grid of metric cards) ---- */
.results { padding: 66px 4.5vw 20px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.metric-card {
  padding: 26px 24px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: rgba(255,255,255,.03);
  transition: transform var(--motion-base,240ms) var(--ease,ease), border-color var(--motion-base,240ms) var(--ease,ease), background var(--motion-base,240ms) var(--ease,ease);
}
.metric-card:hover {
  transform: translateY(var(--motion-lift,-3px));
  border-color: rgba(201,170,102,.4);
  background: rgba(255,255,255,.05);
}
.metric-card .stat-num { font-size: clamp(1.9rem, 2.4vw, 2.5rem); }
.metric-card .stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .86rem;
  color: #cdd4df;
  margin-top: 10px;
}
/* span-2 for the two "from X to Y" reduction cards so the arrow has room */
.metric-card--wide { grid-column: span 2; }
.metric-card--wide .stat-num { font-size: clamp(1.7rem, 2.2vw, 2.2rem); }
.stat-arrow { color: var(--muted); margin: 0 8px; font-weight: 400; }
.stat-was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---- Client outcomes / case studies ---- */
.outcomes { padding: 60px 4.5vw 8px; }
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.outcome-card {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: linear-gradient(155deg, rgba(201,170,102,.28), rgba(255,255,255,.02));
  overflow: hidden;
}
.outcome-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sg-gold,#c9aa66);
  opacity: .8;
}
.outcome-card .stat-num { font-size: clamp(1.8rem, 2.3vw, 2.4rem); }
.outcome-card p {
  margin: 12px 0 0;
  font-size: .9rem;
  line-height: 1.5;
  color: #d7dee7;
}

/* ---- How we work (numbered process steps) ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.process-step {
  padding: 26px 24px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: rgba(255,255,255,.03);
}
.process-step__num {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--sg-gold,#c9aa66);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.process-step p { margin: 0; font-size: .9rem; line-height: 1.5; color: #cdd4df; }

/* ---- Recent client work (mini case studies) ---- */
.cases { padding: 62px 4.5vw 20px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: rgba(255,255,255,.03);
  transition: transform var(--motion-base,240ms) var(--ease,ease), border-color var(--motion-base,240ms) var(--ease,ease), background var(--motion-base,240ms) var(--ease,ease);
}
.case-card:hover { transform: translateY(var(--motion-lift,-3px)); border-color: rgba(201,170,102,.4); background: rgba(255,255,255,.05); }
.case-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(201,170,102,.4);
  border-radius: 999px;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sg-gold,#c9aa66);
}
.case-card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.25; }
.case-card p { margin: 0 0 18px; font-size: .9rem; line-height: 1.55; color: #cdd4df; }
.case-link {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sg-gold,#c9aa66);
}
.case-link span { margin-left: 6px; transition: margin-left .2s ease; display: inline-block; }
.case-card:hover .case-link span { margin-left: 10px; }

/* ---- Case studies detail page ---- */
.case-detail {
  max-width: 820px;
  margin: 0 auto 30px;
  padding: 30px 30px 8px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: rgba(255,255,255,.03);
  scroll-margin-top: 90px;
}
.case-detail h2 { margin: 12px 0 20px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.case-dl { margin: 0; }
.case-dl dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sg-gold,#c9aa66);
  margin-top: 18px;
}
.case-dl dd { margin: 6px 0 0; font-size: .96rem; line-height: 1.6; color: #dce1e9; }

/* ---- FAQ ---- */
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 8px;
  max-width: 820px;
  margin: 0 auto 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sg-border);
}
.faq-jump a {
  padding: 7px 15px;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #cdd4df;
  text-decoration: none;
  white-space: nowrap;
}
.faq-jump a:hover { border-color: rgba(201,170,102,.5); color: #fff; }
.faq-section-h {
  max-width: 820px;
  margin: 40px auto 16px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  scroll-margin-top: 90px;
}
.faq-section-h:first-of-type { margin-top: 4px; }
.faq-proof {
  margin: 16px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--sg-border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--sg-gold,#c9aa66);
}
.faq-answer a { color: var(--sg-gold,#c9aa66); text-decoration: underline; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { scroll-margin-top: 90px; }
.faq-item {
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  margin-bottom: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--sg-gold,#c9aa66); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 0 18px; font-size: .94rem; line-height: 1.6; color: #cdd4df; }
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---- Two-route CTA ---- */
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button--outline { background: transparent !important; border: 1px solid rgba(201,170,102,.72) !important; color: #fff !important; box-shadow: none !important; }
.button--outline:hover { background: rgba(201,170,102,.10) !important; border-color: #c9aa66 !important; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .stat-band-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .stat-band .stat:nth-child(4) { border-left: 0; }
  .metric-grid, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .stat-band { padding: 34px 24px; }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .stat-band .stat { padding: 0 6px; border-left: 0; }
  .metric-grid, .outcome-grid, .process-steps, .case-grid { grid-template-columns: 1fr; }
  .metric-card--wide { grid-column: span 1; }
  .results, .outcomes, .cases { padding-left: 24px; padding-right: 24px; }
}

/* ===================== Homepage sections (v3) ===================== */
.home-sec { max-width: 1240px; margin: 0 auto; padding: 58px 5vw; }
.home-head { max-width: 880px; margin: 0 0 32px; }
.home-head .eyebrow { margin: 0 0 12px; }
.home-head h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.1; margin: 0; }
.home-head p { margin: 12px 0 0; color: var(--sg-muted); font-size: 1rem; max-width: 660px; line-height: 1.55; }
.card-cat { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sg-gold,#c9aa66); margin-bottom: 12px; }

/* Goals (what do you want to accomplish) */
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.goal-card { display: flex; flex-direction: column; padding: 26px 22px 22px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); background: rgba(255,255,255,.03); text-decoration: none; color: inherit; transition: transform var(--motion-base,240ms) var(--ease,ease), border-color var(--motion-base,240ms) var(--ease,ease), background var(--motion-base,240ms) var(--ease,ease); }
.goal-card:hover { transform: translateY(var(--motion-lift,-3px)); border-color: rgba(201,170,102,.4); background: rgba(255,255,255,.05); }
.goal-card p { margin: 0 0 16px; font-size: .9rem; line-height: 1.5; color: #cdd4df; }
.goal-card .go { margin-top: auto; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sg-gold,#c9aa66); }
.goal-card .go span { display: inline-block; margin-left: 6px; transition: margin-left .2s ease; }
.goal-card:hover .go span { margin-left: 10px; }

/* What we handle (delivery) */
.handle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.handle-card { padding: 24px 20px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); background: rgba(255,255,255,.03); }
.handle-card p { margin: 0; font-size: .86rem; line-height: 1.5; color: #cdd4df; }

/* Cases carousel */
.case-carousel { position: relative; }
.case-viewport { overflow: hidden; }
.case-track { display: flex; gap: 18px; transition: transform .45s ease; }
.case-slide { flex: 0 0 calc((100% - 18px) / 2); box-sizing: border-box; }
.case-slide .case-card { height: 100%; }
.case-before { color: var(--sg-muted); font-size: .85rem; margin: 0 0 8px; }
.carousel-controls { display: flex; gap: 10px; margin-top: 22px; }
.carousel-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--sg-border); border-radius: 999px; background: transparent; color: #e8ecf2; cursor: pointer; font-size: 1.1rem; line-height: 1; transition: border-color .2s ease, background .2s ease; }
.carousel-btn:hover { border-color: rgba(201,170,102,.5); background: rgba(255,255,255,.05); }
.carousel-btn[disabled] { opacity: .35; cursor: default; }

/* Who we work with */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who-card { padding: 24px 20px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); background: rgba(255,255,255,.03); }
.who-card p { margin: 0; font-size: .88rem; line-height: 1.5; color: #cdd4df; }
.who-range { margin: 26px 0 0; font-size: .95rem; color: #dce1e9; max-width: 780px; line-height: 1.55; }

/* Why choose SG */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 44px; max-width: 1000px; }
.why-card { padding: 22px 0 20px; border-top: 1px solid var(--sg-border); }
.why-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; color: #fff; }
.why-card p { margin: 0; font-size: .92rem; line-height: 1.55; color: #cdd4df; }

/* Before / after */
.ba { border: 1px solid var(--sg-border); border-radius: var(--sg-radius); overflow: hidden; max-width: 900px; }
.ba-head, .ba-row { display: grid; grid-template-columns: 1fr 1fr; }
.ba-head span { padding: 15px 22px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ba-head .h-before { color: var(--sg-muted); background: rgba(255,255,255,.02); }
.ba-head .h-after { color: var(--sg-gold,#c9aa66); background: rgba(201,170,102,.3); }
.ba-row { border-top: 1px solid var(--sg-border); }
.ba-row span { padding: 15px 22px; font-size: .92rem; line-height: 1.4; }
.ba-row .before { color: var(--sg-muted); }
.ba-row .after { color: #eaf1ea; background: rgba(201,170,102,.14); }

@media (max-width: 1000px) {
  .goal-grid, .who-grid, .handle-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .home-sec { padding: 44px 24px; }
  .goal-grid, .who-grid, .handle-grid { grid-template-columns: 1fr; }
  .case-slide { flex-basis: 100%; }
}

/* Results as a plain list (not cards) */
.stat-list { list-style: none; margin: 0; padding: 0; max-width: 860px; border-top: 1px solid var(--sg-border); }
.stat-list li { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--sg-border); }
.stat-list-num { font-family: var(--font-stat); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; color: #fff; }
.stat-list-num .accent { color: var(--sg-gold,#c9aa66); }
.stat-list-num .stat-was { color: var(--sg-muted); }
.stat-list-num .stat-arrow { color: var(--sg-muted); margin: 0 4px; }
.stat-list-label { font-size: .95rem; color: #cdd4df; line-height: 1.45; }
@media (max-width: 620px) {
  .stat-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .stat-list-num { font-size: 1.6rem; }
}

/* ============ Visual theme: cream/navy rhythm, cards, motion ============ */
:root { --cream: #f3ecdf; --cream-card: #fcf9f2; --ink: #17233c; --ink-soft: #4a5568; --ink-mute: #6b7280; }

/* Full-bleed cream bands (alternate with the navy sections) */
.sec-cream { position: relative; color: var(--ink); }
.sec-cream::before { content: ""; position: absolute; inset: 0 50% 0 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background: var(--cream); z-index: -1; }
.sec-cream .home-head h2 { color: var(--ink); }
.sec-cream .home-head p { color: var(--ink-soft); }
.sec-cream .eyebrow { color: #8a7746; }

/* Section heading accent rule (rhythm across every section) */
.home-head { position: relative; }
.home-head::before { content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--sg-gold,#c9aa66); margin-bottom: 20px; }

/* Card icon chip */
.card-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--sg-gold,#c9aa66); margin-bottom: 16px; }
.card-ic img { width: 24px; height: 24px; object-fit: contain; }
.card-ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; }

/* Cream cards */
.sec-cream .goal-card, .sec-cream .handle-card, .sec-cream .who-card {
  background: var(--cream-card); border: 1px solid rgba(23,35,60,.12); color: var(--ink);
  box-shadow: 0 10px 30px rgba(23,35,60,.06);
}
.sec-cream .goal-card:hover, .sec-cream .handle-card:hover, .sec-cream .who-card:hover {
  background: #fff; border-color: rgba(201,170,102,.35); box-shadow: 0 18px 44px rgba(23,35,60,.13);
}
.sec-cream .goal-card p, .sec-cream .handle-card p, .sec-cream .who-card p { color: var(--ink-soft); }
.sec-cream .card-cat, .sec-cream .goal-card .go { color: #8a7746; }

/* Before/after on cream */
.sec-cream .ba { border-color: rgba(23,35,60,.14); background: var(--cream-card); }
.sec-cream .ba-head .h-before { color: var(--ink-mute); background: rgba(23,35,60,.03); }
.sec-cream .ba-head .h-after { color: #8a7746; background: rgba(201,170,102,.12); }
.sec-cream .ba-row { border-top-color: rgba(23,35,60,.1); }
.sec-cream .ba-row .before { color: #98a1af; }
.sec-cream .ba-row .after { color: var(--ink); background: rgba(201,170,102,.07); }

/* Photographic CTA band (reuses the brand banner) */
.cta-band--photo { position: relative; overflow: hidden; border-color: rgba(255,255,255,.14);
  background: linear-gradient(115deg, rgba(9,25,49,.94) 0%, rgba(9,25,49,.62) 55%, rgba(9,25,49,.4) 100%), url('/assets/homepage-banner.webp?v=20260901c') center/cover no-repeat; }

/* Staggered reveal for grids (uses the site's existing reveal engine) */
.v2 .reveal[data-reveal-i] { transition-delay: calc(var(--rd, 0) * 1ms); }

/* ============ Layout upgrade: splits, circular process, centered heads ============ */
/* Two-column text + photo */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; }
.split--reverse .split-media { order: -1; }
.split-media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: var(--sg-radius); display: block; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.split-body .home-head { margin-bottom: 26px; }
.who-list { display: grid; gap: 26px; }
.who-item h3 { margin: 0 0 6px; }
.who-item p { margin: 0; color: #cdd4df; line-height: 1.55; }
.home-sec--who .split{
  align-items:stretch;
  width:calc(100% - 72px);
  max-width:1160px;
}
.home-sec--who .split-media{
  height:100%;
  overflow:hidden;
  border-radius:var(--sg-radius);
}
.home-sec--who .split-media img{
  width:100%;
  height:100%;
  max-height:none;
  min-height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
  display:block;
}

@media (max-width: 820px) {
  .home-sec--who .split{width:100%;max-width:none}
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .split-media img { max-height: 420px; }
}

/* Circular process badges */
.home-sec--center .process-steps { gap: 26px; }
.process-step { background: transparent; border: 0; padding: 8px 10px; text-align: center; }
.process-step__num { width: 88px; height: 88px; margin: 0 auto 18px; border: 4px solid var(--sg-gold,#c9aa66); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1; color: #fff; background: rgba(201,170,102,.16); }
.process-step h3 { text-align: center; margin: 0 0 8px; font-size: 1.05rem; }
.process-step p { text-align: center; color: #cdd4df; max-width: 260px; margin: 0 auto; }

/* Centered section heading */
.home-head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.home-head--center::before { margin-left: auto; margin-right: auto; }

/* Rich 3D service icons (homepage): show the artwork itself, no chip */
.card-ic:has(img){background:transparent;border-radius:0;width:56px;height:56px;margin-bottom:14px}
.card-ic:has(img) img{width:56px;height:56px}
