/* ——— Shared service detail page styles ——— */
:root {
  --navy-deep: #0A1628;
  --navy-900:  #0E1C32;
  --navy-800:  #14273F;
  --navy-700:  #1B4F72;
  --steel:     #2E86AB;
  --steel-soft:#5BA3C4;
  --white:     #FFFFFF;
  --cloud:     #F4F6F8;
  --ink:       #1A1A2E;
  --ink-2:     rgba(26,26,46,0.66);
  --ink-3:     rgba(26,26,46,0.44);
  --line-d:    rgba(255,255,255,0.10);
  --line-d2:   rgba(255,255,255,0.06);
  --line-l:    rgba(26,26,46,0.10);
  --muted:     rgba(244,246,248,0.62);
  --muted-2:   rgba(244,246,248,0.42);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1240px;
  --r: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--cloud);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(46,134,171,0.45); color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--white); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel-soft);
}
.lede { font-size: 19px; line-height: 1.55; color: rgba(244,246,248,0.82); }
a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r);
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease;
}
.btn .arr { font-family: var(--mono); transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--steel); color: var(--white); }
.btn-primary:hover { background: #3A95BB; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(10,22,40,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-d2);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-mark { display: flex; align-items: center; gap: 14px; }
.nav-mark img { width: 32px; height: 32px; }
.nav-mark .name { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--white); line-height: 1; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
  position: relative;
  z-index: 82;
}
.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,246,248,0.72);
  transition: color 0.2s ease; padding: 6px 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--steel);
}
.nav-drop { position: relative; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-trigger .caret { font-size: 9px; transition: transform 0.25s ease; opacity: 0.7; }
.nav-drop:hover .nav-drop-trigger .caret { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 14px); left: -16px;
  min-width: 280px;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-panel a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: rgba(244,246,248,0.78);
  text-transform: none; letter-spacing: 0;
  border-radius: var(--r);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-drop-panel a::after { display: none; }
.nav-drop-panel a .n {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--steel-soft); width: 22px;
}
.nav-drop-panel a:hover { background: rgba(46,134,171,0.12); color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.22s; }
.reveal[data-d="4"] { transition-delay: 0.30s; }

/* Service hero */
.svc-hero {
  padding: 152px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-d2);
}
.svc-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 14% 12%, rgba(46,134,171,0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 90%, rgba(27,79,114,0.22), transparent 60%);
}
.svc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}
.svc-hero .wrap { position: relative; z-index: 1; }
.crumb {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted-2); text-transform: uppercase;
  margin-bottom: 32px;
}
.crumb a { color: var(--steel-soft); transition: color 0.2s ease; }
.crumb a:hover { color: var(--white); }
.crumb .sep { color: rgba(244,246,248,0.3); }

.svc-hero h1 em { font-style: italic; font-weight: 400; color: var(--steel-soft); }
.svc-hero .lede {
  margin-top: 32px; max-width: 680px;
}
.svc-hero .meta {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line-d2);
  padding-top: 32px;
}
.svc-hero .meta > div { display: flex; flex-direction: column; gap: 8px; }
.svc-hero .meta .v { font-family: var(--serif); font-size: 22px; color: var(--white); letter-spacing: -0.01em; }
@media (max-width: 760px) { .svc-hero .meta { grid-template-columns: 1fr 1fr; } }

/* Sections */
section.s {
  padding: clamp(72px, 11vw, 128px) 0;
  position: relative;
}
section.s.dark { background: var(--navy-deep); }
section.s.light { background: var(--cloud); color: var(--ink); }
section.s.light h1, section.s.light h2, section.s.light h3, section.s.light h4 { color: var(--ink); }
section.s.light .label { color: var(--steel); }
section.s.light .lede { color: var(--ink-2); }

section.one-more {
  padding-top: clamp(96px, 13vw, 156px);
}
section.one-more .label {
  font-size: 13px;
  color: var(--white);
}
section.one-more .s-title h2 {
  font-size: clamp(42px, 5.4vw, 72px);
  max-width: 13ch;
}
section.one-more .case {
  border-color: rgba(91,163,196,0.38);
}

.s-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 64px;
  align-items: start; margin-bottom: 64px;
}
@media (max-width: 760px) { .s-head { grid-template-columns: 1fr; gap: 16px; } }
.s-head .label { padding-top: 6px; }
.s-head .s-title h2 { margin-bottom: 20px; max-width: 18ch; }
.s-head .s-title p { max-width: 56ch; }

/* Two column body */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.two-col p { color: rgba(244,246,248,0.78); font-size: 17px; line-height: 1.7; }
section.s.light .two-col p { color: var(--ink-2); }
.two-col p + p { margin-top: 18px; }

/* Capability list */
.caps {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; border-top: 1px solid var(--line-d);
}
section.s.light .caps { border-top-color: var(--line-l); }
.caps .cap {
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid var(--line-d);
  border-right: 1px solid var(--line-d);
  display: grid; grid-template-rows: auto 1fr;
  gap: 14px;
}
section.s.light .caps .cap { border-color: var(--line-l); }
.caps .cap:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 24px; }
.caps .cap:nth-child(2n+1) { padding-right: 24px; }
.caps .cap .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--steel-soft); }
section.s.light .caps .cap .num { color: var(--steel); }
.caps .cap h4 { color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
section.s.light .caps .cap h4 { color: var(--ink); }
.caps .cap p { color: rgba(244,246,248,0.72); font-size: 15px; line-height: 1.6; }
section.s.light .caps .cap p { color: var(--ink-2); }
@media (max-width: 760px) {
  .caps { grid-template-columns: 1fr; }
  .caps .cap { padding: 24px 0 !important; border-right: none !important; }
}

/* Process steps */
.svc-process { display: grid; gap: 0; border-top: 1px solid var(--line-d); }
section.s.light .svc-process { border-top-color: var(--line-l); }
.svc-step {
  display: grid; grid-template-columns: 100px 1fr 1fr;
  gap: 48px; padding: 40px 0;
  border-bottom: 1px solid var(--line-d);
  align-items: start;
  transition: padding 0.3s ease;
}
.svc-step:hover { padding-left: 12px; }
section.s.light .svc-step { border-bottom-color: var(--line-l); }
.svc-step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--steel-soft); padding-top: 8px; }
section.s.light .svc-step .n { color: var(--steel); }
.svc-step h3 { font-size: clamp(24px, 2.4vw, 32px); }
.svc-step p { color: rgba(244,246,248,0.72); font-size: 15px; line-height: 1.65; }
section.s.light .svc-step p { color: var(--ink-2); }
@media (max-width: 760px) {
  .svc-step { grid-template-columns: 1fr; gap: 12px; }
}

/* Deliverables checklist */
.checklist {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-d);
}
section.s.light .checklist { border-top-color: var(--line-l); }
.checklist li {
  list-style: none;
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--line-d);
  font-size: 16px;
  color: rgba(244,246,248,0.85);
}
section.s.light .checklist li { border-bottom-color: var(--line-l); color: var(--ink); }
.checklist li::before {
  content: "✓";
  font-family: var(--mono); font-size: 12px;
  color: var(--steel-soft);
  flex-shrink: 0;
}
section.s.light .checklist li::before { color: var(--steel); }

/* CTA strip */
.cta-strip {
  background: var(--ink);
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line-d);
}
.cta-strip .row {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
}
@media (max-width: 760px) { .cta-strip .row { grid-template-columns: 1fr; } }
.cta-strip h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; max-width: 16ch; }
.cta-strip h2 em { font-style: italic; color: var(--steel-soft); font-weight: 400; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .cta-strip .actions { justify-content: flex-start; } }

/* Other services nav */
.other-svc {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-d);
}
section.s.light .other-svc { border-top-color: var(--line-l); }
.other-svc a {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line-d);
  display: grid; grid-template-rows: auto 1fr auto;
  gap: 16px;
  transition: background 0.3s ease;
}
section.s.light .other-svc a { border-right-color: var(--line-l); }
.other-svc a:hover { background: rgba(46,134,171,0.05); }
.other-svc a:last-child { border-right: none; padding-right: 0; }
.other-svc a:not(:first-child) { padding-left: 24px; padding-right: 24px; }
.other-svc a:last-child { padding-left: 24px; padding-right: 0; }
.other-svc .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--steel-soft); }
section.s.light .other-svc .n { color: var(--steel); }
.other-svc h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.other-svc .arr { font-family: var(--mono); font-size: 12px; color: var(--steel-soft); letter-spacing: 0.18em; text-transform: uppercase; transition: transform 0.25s ease; }
.other-svc a:hover .arr { transform: translateX(6px); }
@media (max-width: 760px) {
  .other-svc { grid-template-columns: 1fr; }
  .other-svc a { padding: 24px 0 !important; border-right: none !important; border-bottom: 1px solid var(--line-d); }
}

/* Footer (reuse) */
footer.site-foot {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-d2);
  padding: 64px 0 32px;
}
.foot-top {
  display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line-d2);
}
@media (max-width: 880px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-top .col h4 {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 400;
}
.foot-top .col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-top .col a { color: rgba(244,246,248,0.78); font-size: 15px; transition: color 0.2s ease; }
.foot-top .col a:hover { color: var(--white); }
.foot-brand { display: flex; flex-direction: column; gap: 20px; max-width: 320px; }
.foot-brand .mark { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark img { width: 32px; height: 32px; }
.foot-brand .mark span { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--white); }
.foot-brand p { color: rgba(244,246,248,0.62); font-size: 14px; line-height: 1.65; }
.foot-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.foot-bottom .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.18em; text-transform: uppercase;
}

/* Visual feature block (signature) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }
.feature .visual {
  aspect-ratio: 1/1;
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
section.s.light .feature .visual { background: var(--white); border-color: var(--line-l); }
.feature .visual .label-pos {
  position: absolute; top: 24px; left: 24px;
}
.feature .text h2 { margin-bottom: 24px; max-width: 14ch; }
.feature .text h2 em { font-style: italic; color: var(--steel-soft); font-weight: 400; }
.feature .text p { color: rgba(244,246,248,0.78); font-size: 17px; line-height: 1.7; max-width: 50ch; }
section.s.light .feature .text p { color: var(--ink-2); }
.feature .text p + p { margin-top: 18px; }

/* Numerical stats grid */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-d);
}
section.s.light .stats { border-top-color: var(--line-l); }
.stats .stat {
  padding: 40px 24px 40px 0;
  border-right: 1px solid var(--line-d);
  display: grid; gap: 12px;
}
section.s.light .stats .stat { border-right-color: var(--line-l); }
.stats .stat:last-child { border-right: none; padding-right: 0; }
.stats .stat:not(:first-child) { padding-left: 24px; }
.stats .v {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stats .v em { font-style: italic; color: var(--steel-soft); font-weight: 400; }
section.s.light .stats .v { color: var(--ink); }
.stats .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; }
section.s.light .stats .l { color: var(--ink-3); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat { border-right: none !important; padding: 24px 0 !important; border-bottom: 1px solid var(--line-d); }
}

/* Portfolio case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.case {
  grid-column: span 6;
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(14,28,50,0.72);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
section.s.light .case {
  background: rgba(255,255,255,0.76);
  border-color: var(--line-l);
}
.case.wide { grid-column: span 12; }
.case.third { grid-column: span 4; }
a.case:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(46,134,171,0.44);
  background: rgba(20,39,63,0.86);
}
section.s.light a.case:hover,
section.s.light .case:hover {
  background: var(--white);
  border-color: rgba(46,134,171,0.30);
}
.case-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-d);
  background: var(--navy-900);
}
section.s.light .case-cover {
  background: rgba(10,22,40,0.05);
  border-bottom-color: var(--line-l);
}
.case-cover.tall { aspect-ratio: 4 / 5; }
.case-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.case-cover img.contain {
  object-fit: contain;
  padding: 18px;
  background: var(--cloud);
}
.case-cover img.top { object-position: top center; }
.phone-stack {
  min-height: 520px;
  padding: 36px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  background:
    radial-gradient(520px 260px at 50% 42%, rgba(46,134,171,0.24), transparent 68%),
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--navy-900);
}
.phone-shot {
  width: min(24vw, 230px);
  aspect-ratio: 1179 / 2556;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  overflow: hidden;
  background: #050b14;
  box-shadow: 0 28px 70px -28px rgba(0,0,0,0.72);
  transform: translateX(var(--closed-x, 0)) translateY(var(--closed-y, 0)) rotate(var(--closed-r, 0deg));
  transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(.16,1,.3,1), box-shadow 0.45s ease, border-color 0.45s ease;
  transition-delay: var(--delay, 0s);
  margin-left: -112px;
}
.phone-shot:first-child { margin-left: 0; }
.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case:hover .phone-shot,
.phone-stack.is-open .phone-shot,
.phone-stack:hover .phone-shot {
  transform: translateX(var(--open-x, 0)) translateY(var(--open-y, 0)) rotate(var(--open-r, 0deg));
  border-color: rgba(91,163,196,0.48);
  box-shadow: 0 34px 80px -26px rgba(0,0,0,0.82);
}
.phone-shot:nth-child(1) { --closed-x: 70px; --closed-r: -2deg; --open-x: -360px; --open-y: 52px; --open-r: -14deg; --delay: 0s; z-index: 1; }
.phone-shot:nth-child(2) { --closed-x: 46px; --closed-r: -1deg; --open-x: -214px; --open-y: 18px; --open-r: -8deg; --delay: .05s; z-index: 2; }
.phone-shot:nth-child(3) { --closed-x: 22px; --closed-r: 0deg; --open-x: -72px; --open-y: -18px; --open-r: -2deg; --delay: .1s; z-index: 4; }
.phone-shot:nth-child(4) { --closed-x: -6px; --closed-r: 1deg; --open-x: 76px; --open-y: -18px; --open-r: 3deg; --delay: .15s; z-index: 4; }
.phone-shot:nth-child(5) { --closed-x: -30px; --closed-r: 2deg; --open-x: 222px; --open-y: 18px; --open-r: 9deg; --delay: .2s; z-index: 2; }
.phone-shot:nth-child(6) { --closed-x: -54px; --closed-r: 3deg; --open-x: 368px; --open-y: 52px; --open-r: 15deg; --delay: .25s; z-index: 1; }
.phone-stack.count-1 .phone-shot:nth-child(1) { --closed-x: 0; --closed-r: 0deg; --open-x: 0; --open-y: 0; --open-r: 0deg; z-index: 3; }
.phone-stack.count-2 .phone-shot:nth-child(1) { --closed-x: 44px; --closed-r: -2deg; --open-x: -92px; --open-y: 10px; --open-r: -6deg; z-index: 2; }
.phone-stack.count-2 .phone-shot:nth-child(2) { --closed-x: -44px; --closed-r: 2deg; --open-x: 92px; --open-y: 10px; --open-r: 6deg; z-index: 2; }
.phone-stack.count-3 .phone-shot:nth-child(1) { --closed-x: 58px; --closed-r: -2deg; --open-x: -172px; --open-y: 28px; --open-r: -10deg; z-index: 1; }
.phone-stack.count-3 .phone-shot:nth-child(2) { --closed-x: 0; --closed-r: 0deg; --open-x: 0; --open-y: -16px; --open-r: 0deg; z-index: 3; }
.phone-stack.count-3 .phone-shot:nth-child(3) { --closed-x: -58px; --closed-r: 2deg; --open-x: 172px; --open-y: 28px; --open-r: 10deg; z-index: 1; }
.case-body { padding: 28px; }
.case-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-soft);
  margin-bottom: 14px;
}
section.s.light .case-tag { color: var(--steel); }
.case-body h3 { margin-bottom: 12px; }
.case-body p {
  color: rgba(244,246,248,0.72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}
section.s.light .case-body p { color: var(--ink-2); }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-d);
}
section.s.light .case-meta { border-top-color: var(--line-l); }
.case-meta span {
  display: grid;
  gap: 4px;
  min-width: 150px;
}
.case-meta strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
}
section.s.light .case-meta strong { color: var(--ink-3); }
.case-meta b {
  color: rgba(244,246,248,0.86);
  font-size: 14px;
  font-weight: 500;
}
section.s.light .case-meta b { color: var(--ink); }
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-d);
  margin-top: 32px;
}
section.s.light .metric-row { border-top-color: var(--line-l); }
.metric {
  padding: 24px 22px 8px 0;
  border-right: 1px solid var(--line-d);
}
section.s.light .metric { border-right-color: var(--line-l); }
.metric:last-child { border-right: none; }
.metric:not(:first-child) { padding-left: 22px; }
.metric .v {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: var(--white);
}
section.s.light .metric .v { color: var(--ink); }
.metric .k {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.5;
}
section.s.light .metric .k { color: var(--ink-3); }
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,246,248,0.58);
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(600px 240px at 50% 30%, rgba(46,134,171,0.18), transparent 70%),
    var(--navy-900);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
section.s.light .ph {
  color: rgba(26,26,46,0.48);
  background:
    linear-gradient(rgba(26,26,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,46,0.04) 1px, transparent 1px),
    radial-gradient(600px 240px at 50% 30%, rgba(46,134,171,0.14), transparent 70%),
    var(--cloud);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-l);
  border-left: 1px solid var(--line-l);
}
.logo-cell {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  border-right: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: rgba(255,255,255,0.62);
}
@media (max-width: 980px) {
  .case { grid-column: span 12 !important; }
  .phone-stack {
    min-height: auto;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 26px 22px;
    scroll-snap-type: x proximity;
  }
  .phone-shot,
  .case:hover .phone-shot,
  .phone-stack.is-open .phone-shot,
  .phone-stack:hover .phone-shot {
    width: min(56vw, 230px);
    min-width: min(56vw, 230px);
    margin-left: 14px;
    transform: none;
    scroll-snap-align: center;
  }
  .phone-shot:first-child { margin-left: 0; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: none; }
  .metric:nth-child(odd) { padding-left: 0; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
.metric-row,
.logo-grid { grid-template-columns: 1fr; }
  .metric {
    border-right: none;
    border-bottom: 1px solid var(--line-d);
    padding: 22px 0;
  }
  section.s.light .metric { border-bottom-color: var(--line-l); }
  .metric:last-child { border-bottom: none; }
}

/* Phone carousel */
.phone-stack.carousel {
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.phone-stack.carousel .phone-shot {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(23vw, 230px);
  margin-left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px) scale(0.72) rotate(0deg);
  transition:
    transform 0.72s cubic-bezier(.16,1,.3,1),
    opacity 0.38s ease,
    filter 0.38s ease,
    border-color 0.38s ease,
    box-shadow 0.38s ease;
  transition-delay: 0s;
  filter: saturate(0.82) brightness(0.72);
}
.phone-stack.carousel.is-open .phone-shot[data-pos="0"],
.phone-stack.carousel:hover .phone-shot[data-pos="0"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-12px) scale(1.02) rotate(0deg);
  z-index: 6;
  filter: none;
  border-color: rgba(91,163,196,0.66);
}
.phone-stack.carousel.is-open .phone-shot[data-pos="-1"],
.phone-stack.carousel:hover .phone-shot[data-pos="-1"] {
  opacity: 0.96;
  transform: translateX(calc(-50% - 188px)) translateY(8px) scale(0.9) rotate(-8deg);
  z-index: 5;
}
.phone-stack.carousel.is-open .phone-shot[data-pos="1"],
.phone-stack.carousel:hover .phone-shot[data-pos="1"] {
  opacity: 0.96;
  transform: translateX(calc(-50% + 188px)) translateY(8px) scale(0.9) rotate(8deg);
  z-index: 5;
}
.phone-stack.carousel.is-open .phone-shot[data-pos="-2"],
.phone-stack.carousel:hover .phone-shot[data-pos="-2"] {
  opacity: 0.7;
  transform: translateX(calc(-50% - 340px)) translateY(46px) scale(0.75) rotate(-14deg);
  z-index: 4;
}
.phone-stack.carousel.is-open .phone-shot[data-pos="2"],
.phone-stack.carousel:hover .phone-shot[data-pos="2"] {
  opacity: 0.7;
  transform: translateX(calc(-50% + 340px)) translateY(46px) scale(0.75) rotate(14deg);
  z-index: 4;
}
.phone-stack.carousel.is-open .phone-shot[data-pos="-3"],
.phone-stack.carousel:hover .phone-shot[data-pos="-3"] {
  opacity: 0.38;
  transform: translateX(calc(-50% - 470px)) translateY(86px) scale(0.62) rotate(-18deg);
  z-index: 3;
}
.phone-stack.carousel.is-open .phone-shot[data-pos="3"],
.phone-stack.carousel:hover .phone-shot[data-pos="3"] {
  opacity: 0.38;
  transform: translateX(calc(-50% + 470px)) translateY(86px) scale(0.62) rotate(18deg);
  z-index: 3;
}
.phone-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(10,22,40,0.82);
  color: var(--white);
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.phone-nav:hover {
  background: rgba(46,134,171,0.94);
  border-color: rgba(255,255,255,0.62);
  transform: translateY(-50%) scale(1.06);
}
.phone-nav-prev { left: 22px; }
.phone-nav-next { right: 22px; }
@media (max-width: 980px) {
  .phone-stack.carousel {
    min-height: 500px;
    overflow: hidden;
  }
  .phone-stack.carousel .phone-shot,
  .phone-stack.carousel.is-open .phone-shot,
  .phone-stack.carousel:hover .phone-shot {
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: min(56vw, 230px);
    min-width: 0;
    margin-left: 0;
    scroll-snap-align: unset;
  }
  .phone-stack.carousel.is-open .phone-shot[data-pos="-1"],
  .phone-stack.carousel:hover .phone-shot[data-pos="-1"] {
    transform: translateX(calc(-50% - 106px)) translateY(24px) scale(0.74) rotate(-8deg);
  }
  .phone-stack.carousel.is-open .phone-shot[data-pos="1"],
  .phone-stack.carousel:hover .phone-shot[data-pos="1"] {
    transform: translateX(calc(-50% + 106px)) translateY(24px) scale(0.74) rotate(8deg);
  }
  .phone-stack.carousel.is-open .phone-shot[data-pos="-2"],
  .phone-stack.carousel.is-open .phone-shot[data-pos="2"],
  .phone-stack.carousel:hover .phone-shot[data-pos="-2"],
  .phone-stack.carousel:hover .phone-shot[data-pos="2"] {
    opacity: 0.24;
  }
  .phone-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
}

/* General page patterns */
.service-grid,
.price-grid,
.blog-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.price-grid { grid-template-columns: repeat(4, 1fr); }
.blog-grid { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 980px) {
  .service-grid,
  .price-grid,
  .blog-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

.panel {
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 28px;
  min-height: 100%;
}
section.s.light .panel { border-color: var(--line-l); background: rgba(255,255,255,0.62); }
.panel .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-soft);
  margin-bottom: 18px;
}
section.s.light .panel .eyebrow { color: var(--steel); }
.panel h3,
.panel h4 { margin-bottom: 12px; }
.panel p { color: rgba(244,246,248,0.72); font-size: 15px; line-height: 1.65; }
section.s.light .panel p { color: var(--ink-2); }
.blog-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.blog-card:hover {
  border-color: rgba(46,134,171,0.44);
  transform: translateY(-3px);
}
.blog-card .read-more {
  align-self: end;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.blog-card .arr { transition: transform 0.2s ease; display: inline-block; }
.blog-card:hover .arr { transform: translateX(4px); }
.article-wrap {
  max-width: 780px;
}
.blog-article .article-wrap p {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.8;
}
.blog-article .article-wrap p + p {
  margin-top: 22px;
}
.article-back {
  margin-top: 36px;
  color: var(--ink);
  border-color: var(--line-l);
}
.article-back:hover {
  background: rgba(26,26,46,0.04);
  border-color: var(--ink);
}
.panel ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.panel li {
  color: rgba(244,246,248,0.82);
  font-size: 14px;
  line-height: 1.55;
}
section.s.light .panel li { color: var(--ink-2); }
.panel li::before {
  content: "/";
  color: var(--steel-soft);
  margin-right: 10px;
  font-family: var(--mono);
}
section.s.light .panel li::before { color: var(--steel); }
.price {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  color: var(--white);
  line-height: 1;
  margin-bottom: 18px;
}
section.s.light .price { color: var(--ink); }
.price small {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-3);
}
.quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  color: var(--white);
  max-width: 22ch;
}
.light .quote,
section.s.light .quote { color: var(--ink); }
.testimonial-rotator {
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 28px;
}
.testimonial-quote {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-quote.active {
  opacity: 1;
  transform: none;
}
.testimonial-dots {
  display: flex;
  gap: 10px;
}
.testimonial-dots span {
  width: 28px;
  height: 2px;
  background: rgba(26, 31, 36, 0.24);
  transition: background 0.3s ease, width 0.3s ease;
}
.testimonial-dots span.active {
  width: 44px;
  background: var(--ink);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact-list a,
.contact-list span {
  display: block;
  color: rgba(244,246,248,0.84);
  font-size: 18px;
}
section.s.light .contact-list a,
section.s.light .contact-list span { color: var(--ink); }
.tally-frame {
  margin-top: 22px;
  overflow: hidden;
}
.tally-frame iframe {
  display: block;
  width: 100%;
  min-height: 681px;
  border: 0;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted-2);
}
section.s.light .contact-form label { color: var(--ink-3); }
.contact-form .form-full,
.contact-form .form-status,
.contact-form button {
  grid-column: 1 / -1;
}
.contact-form .field-label {
  display: block;
  font: inherit;
  color: inherit;
}
.contact-form .form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font: 500 15px/1.4 var(--sans);
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
section.s.light .contact-form input,
section.s.light .contact-form select,
section.s.light .contact-form textarea {
  border-color: rgba(26,26,46,0.14);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
}
.contact-form input,
.contact-form select {
  height: 50px;
  padding: 0 14px;
}
.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.contact-form textarea {
  min-height: 138px;
  resize: vertical;
  padding: 14px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--steel);
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(46,134,171,0.14);
}
section.s.light .contact-form input:focus,
section.s.light .contact-form select:focus,
section.s.light .contact-form textarea:focus {
  background-color: var(--white);
}
.contact-form textarea::placeholder { color: rgba(244,246,248,0.42); }
section.s.light .contact-form textarea::placeholder { color: var(--ink-3); }
.contact-form button {
  justify-self: start;
  margin-top: 4px;
}
.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.contact-form .form-status {
  min-height: 20px;
  margin: 0;
  font: 500 14px/1.4 var(--sans);
  letter-spacing: 0;
  color: var(--ink-3);
}
.contact-form .form-status[data-state="success"] { color: #247a4b; }
.contact-form .form-status[data-state="error"] { color: #9f342f; }
@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form button {
    justify-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 880px) {
  .nav {
    background: rgba(10,22,40,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav-row {
    height: 72px;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .nav-mark { min-width: 0; }
  .nav-mark .name {
    max-width: calc(100vw - 152px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; flex: 0 0 auto; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(86vw, 360px);
    height: 100vh;
    min-height: 100dvh;
    padding: 96px 28px 28px;
    overflow-y: auto;
    background: rgba(10,22,40,0.98);
    border-left: 1px solid var(--line-d);
    box-shadow: -28px 0 80px -42px rgba(0,0,0,0.9);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }
  .nav.menu-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links a {
    display: flex;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-d2);
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .nav-links a.active::after { display: none; }
  .nav-drop { width: 100%; }
  .nav-drop-trigger .caret { margin-left: auto; }
  .nav-drop-panel {
    position: static;
    display: grid;
    min-width: 0;
    padding: 4px 0 10px 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-drop-panel a {
    padding: 10px 0;
    border-bottom: 0;
    font-size: 13px;
    color: rgba(244,246,248,0.66);
  }
  .nav-cta { display: none; }
  .svc-hero {
    padding-top: 132px;
    padding-bottom: 72px;
  }
  .svc-hero h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .svc-hero .lede {
    font-size: 18px;
    max-width: 100%;
  }
}

@media (max-width: 460px) {
  .wrap { padding: 0 22px; }
  .nav-mark img {
    width: 30px;
    height: 30px;
  }
  .nav-mark .name { font-size: 14px; }
  .crumb {
    gap: 10px;
    flex-wrap: wrap;
    letter-spacing: 0.14em;
  }
}
