/* ============================================================
   Ankit Kedia — Multi-page site, 4 switchable themes
   All colors flow from CSS variables set per [data-theme].
   ============================================================ */

/* ---------- THEME: midnight navy + copper (default) ---------- */
:root {
  --bg: #F5F3EE;
  --bg-alt: #ECE9E1;
  --surface: #FFFFFF;
  --ink: #121826;
  --muted: rgba(18,24,38,.62);
  --line: rgba(18,24,38,.12);
  --primary: #101D33;
  --primary-2: #1A2C4A;
  --primary-3: #0A1424;
  --primary-ink: #F2EFE8;
  --primary-muted: rgba(242,239,232,.62);
  --primary-line: rgba(242,239,232,.14);
  --accent: #B87333;
  --accent-ink: #FFF7EC;
  --accent-2: #9A5F28;
  --tile: #E5E1D7;
  --shadow: 0 25px 60px rgba(10,20,36,.30);
  --wm: rgba(242,239,232,.09);
}

/* ---------- THEME: white & grey ---------- */
[data-theme="white"] {
  --bg: #FFFFFF;
  --bg-alt: #F4F4F4;
  --surface: #FAFAFA;
  --ink: #161616;
  --muted: rgba(22,22,22,.60);
  --line: rgba(22,22,22,.12);
  --primary: #232323;       /* dark grey hero */
  --primary-2: #303030;
  --primary-3: #171717;
  --primary-ink: #F5F5F5;
  --primary-muted: rgba(245,245,245,.60);
  --primary-line: rgba(245,245,245,.14);
  --accent: #161616;        /* monochrome: black accent */
  --accent-ink: #FFFFFF;
  --accent-2: #2E2E2E;
  --tile: #EDEDED;
  --shadow: 0 25px 60px rgba(0,0,0,.18);
  --wm: rgba(245,245,245,.08);
}

/* ---------- THEME: stone (#D7D7D3 greige) ---------- */
[data-theme="stone"] {
  --bg: #D7D7D3;
  --bg-alt: #CDCDC8;
  --surface: #E6E6E2;
  --ink: #1C1C19;
  --muted: rgba(28,28,25,.62);
  --line: rgba(28,28,25,.14);
  --primary: #34342F;       /* deep warm grey hero */
  --primary-2: #44443E;
  --primary-3: #24241F;
  --primary-ink: #EDEDEA;
  --primary-muted: rgba(237,237,234,.62);
  --primary-line: rgba(237,237,234,.14);
  --accent: #1C1C19;        /* near-black accent */
  --accent-ink: #E6E6E2;
  --accent-2: #34342F;
  --tile: #C6C6C0;
  --shadow: 0 25px 60px rgba(30,30,26,.25);
  --wm: rgba(237,237,234,.08);
}

/* ---------- THEME: charcoal + electric lime ---------- */
[data-theme="charcoal"] {
  --bg: #0E0F0E;
  --bg-alt: #131513;
  --surface: #181A18;
  --ink: #EDEDE8;
  --muted: rgba(237,237,232,.60);
  --line: rgba(237,237,232,.13);
  --primary: #101110;
  --primary-2: #1A1C1A;
  --primary-3: #090A09;
  --primary-ink: #EDEDE8;
  --primary-muted: rgba(237,237,232,.60);
  --primary-line: rgba(237,237,232,.13);
  --accent: #A3E635;
  --accent-ink: #0E0F0E;
  --accent-2: #84CC16;
  --tile: #1D201D;
  --shadow: 0 25px 60px rgba(0,0,0,.55);
  --wm: rgba(237,237,232,.07);
}

/* ---------- THEME: refined orange ---------- */
[data-theme="orange"] {
  --bg: #FAF7F2;
  --bg-alt: #F1EDE5;
  --surface: #FFFFFF;
  --ink: #141210;
  --muted: rgba(20,18,16,.62);
  --line: rgba(20,18,16,.12);
  --primary: #C93E0E;
  --primary-2: #E8501A;
  --primary-3: #9C2F0A;
  --primary-ink: #FFF6F0;
  --primary-muted: rgba(255,246,240,.72);
  --primary-line: rgba(255,246,240,.18);
  --accent: #E8501A;
  --accent-ink: #FFF6F0;
  --accent-2: #C93E0E;
  --tile: #EDE7DD;
  --shadow: 0 25px 60px rgba(80,25,5,.28);
  --wm: rgba(255,246,240,.12);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.pill .ast { color: var(--accent); }

.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.section-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.section-title .fade { color: var(--muted); opacity: .55; }
.section-sub { margin-top: 16px; max-width: 560px; font-size: 15px; line-height: 1.7; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; border: 0;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); padding: 15px 26px; transition: filter .25s ease; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: var(--bg); padding: 15px 26px; transition: opacity .25s ease; }
.btn-dark:hover { opacity: .85; }
.btn-ghost { border: 1px solid var(--line); padding: 14px 26px; transition: border-color .25s, color .25s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }

/* ============================================================
   HEADER / NAV (shared across pages; sits on --primary)
   ============================================================ */
.site-header { background: var(--primary); color: var(--primary-ink); }
.site-header.overlay { background: transparent; position: relative; z-index: 30; }
.nav {
  max-width: 1320px; margin: 0 auto; padding: 26px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.nav-logo sup { font-size: 9px; }
.nav-links { display: flex; gap: 34px; font-size: 14px; align-items: center; }
.nav-links a { position: relative; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%; background: var(--accent);
}
.nav-cta { background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.nav-cta:hover { filter: brightness(1.08); }
.nav-cta::after { display: none !important; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--primary-ink); margin: 6px 0; }

/* ============================================================
   PAGE HERO (inner pages) + HOME HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--primary-2) 0%, var(--primary) 55%, var(--primary-3) 100%);
  color: var(--primary-ink);
  position: relative; overflow: hidden;
}
.page-hero .container { padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 2; }
.page-hero .crumb { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-muted); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { margin-top: 14px; font-size: clamp(2.8rem, 8vw, 6.5rem); }
.page-hero .lede { margin-top: 18px; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--primary-muted); }
.page-hero .wm {
  position: absolute; right: -2%; bottom: -14%; z-index: 1;
  font-size: clamp(6rem, 22vw, 18rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.03em; color: var(--wm); user-select: none; pointer-events: none; line-height: 1;
}

/* HOME hero */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--primary-2) 0%, var(--primary) 45%, var(--primary-3) 100%);
  color: var(--primary-ink);
}
.hh-lines span { position: absolute; background: var(--primary-line); }
.hh-lines .v1 { left: 8%; top: 0; height: 100%; width: 1px; }
.hh-lines .v2 { right: 8%; top: 0; height: 100%; width: 1px; }
.hh-lines .h1 { left: 0; top: 88px; width: 100%; height: 1px; }
.cross { position: absolute; z-index: 2; color: var(--primary-muted); font-size: 20px; user-select: none; pointer-events: none; }
.home-hero .c1 { left: 7.2%; top: 108px; } .home-hero .c2 { right: 7.2%; top: 108px; }

.hh-watermark {
  position: absolute; left: 50%; top: 60px; transform: translateX(-50%); z-index: 0;
  width: 100%; text-align: center; white-space: nowrap;
  font-size: clamp(5rem, 17vw, 15rem); font-weight: 900; text-transform: uppercase;
  line-height: 1; letter-spacing: -.02em; color: var(--wm);
  user-select: none; pointer-events: none;
}
.hh-photo {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 5;
  height: min(72vh, 620px); width: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.35));
  user-select: none; pointer-events: none;
}
.hh-inner {
  position: relative; max-width: 1320px; margin: 0 auto;
  min-height: 88vh; padding: 48px 48px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hh-top { position: relative; z-index: 10; display: flex; justify-content: space-between; gap: 32px; }
.hh-tagline { max-width: 330px; margin-top: 80px; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.6; }
.hh-side-card {
  width: 250px; margin-top: 110px;
  background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 14px; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.hh-side-card:hover { transform: translateY(-4px); }
.hh-side-card .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hh-side-card .big { margin-top: 6px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.hh-side-card p { margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.hh-bottom { position: relative; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px; }
.hh-year { font-size: 14px; color: var(--primary-muted); }
.hh-wordmark {
  font-size: clamp(4rem, 12.5vw, 11rem); font-weight: 900; text-transform: uppercase;
  line-height: .8; letter-spacing: -.03em; text-shadow: 0 10px 50px rgba(0,0,0,.15); user-select: none;
}
.talk-card {
  width: 290px; background: #141414; color: #fff;
  border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.talk-card:hover { transform: translateY(-4px); }
.talk-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: linear-gradient(140deg, var(--primary-2), var(--primary)); }
.talk-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.talk-meta { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.talk-label { color: rgba(255,255,255,.5); }
.talk-name { font-weight: 600; }
.talk-role { font-size: 11px; color: rgba(255,255,255,.5); }
.talk-arrow { width: 36px; height: 36px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.on-primary {
  background: linear-gradient(160deg, var(--primary-2), var(--primary) 60%, var(--primary-3));
  color: var(--primary-ink);
}
.section.on-primary .section-title .fade { color: var(--primary-muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* marquee */
.logostrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); display: flex; align-items: center; gap: 24px; padding: 34px 48px; overflow: hidden; }
.logostrip-label { flex-shrink: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.4; }
.marquee-mask { overflow: hidden; width: 100%; }
.marquee-track { display: flex; align-items: center; width: max-content; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span { margin: 0 30px; font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: var(--muted); opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* services grid (home + services page) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-card .num { font-size: 13px; font-weight: 700; color: var(--accent); }
.svc-card h3 { margin-top: 18px; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.svc-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.svc-card .tag { position: absolute; right: 18px; top: 18px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.svc-card.featured { grid-column: span 2; }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--primary-line); border-bottom: 1px solid var(--primary-line); }
.stats-band > div { padding: 44px 32px; border-left: 1px solid var(--primary-line); }
.stats-band > div:first-child { border-left: 0; }
.stats-band .num { font-size: 52px; font-weight: 900; letter-spacing: -.03em; color: var(--primary-ink); }
.stats-band .lbl { margin-top: 6px; font-size: 13px; color: var(--primary-muted); }

/* work cards */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.wc-img { height: 230px; display: flex; align-items: flex-end; padding: 22px; position: relative; transition: filter .4s ease; }
.work-card:hover .wc-img { filter: brightness(1.08); }
.wc-img .mono { font-size: 64px; font-weight: 900; color: rgba(255,255,255,.9); line-height: 1; text-transform: uppercase; }
.wc-img .domain { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: rgba(255,255,255,.75); background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; }
.wc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.wc-name { font-size: 15px; font-weight: 900; text-transform: uppercase; }
.wc-type { margin-top: 3px; font-size: 12px; color: var(--muted); }
.wc-badge { flex-shrink: 0; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wc-arrow { flex-shrink: 0; width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.work-card:hover .wc-arrow { transform: rotate(-45deg); }

/* case study page */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -36px; position: relative; z-index: 5; }
.case-meta .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.case-meta small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-meta b { display: block; margin-top: 6px; font-size: 14px; }
.case-body { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-top: 56px; }
.case-body h2 { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin: 36px 0 14px; }
.case-body h2:first-child { margin-top: 0; }
.case-body p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.case-body ul { margin: 0 0 14px 18px; }
.case-body li { font-size: 15px; line-height: 1.8; color: var(--muted); }
.case-side .card { position: sticky; top: 24px; }
.case-side .card h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.case-side .card ul { list-style: none; }
.case-side .card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.case-side .card li b { color: var(--ink); }
.result-band { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.result-chip { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pc-banner { height: 150px; display: flex; align-items: center; justify-content: center; }
.pc-banner span { font-size: 44px; font-weight: 900; color: rgba(255,255,255,.9); }
.pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.pc-title { margin-top: 10px; font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.pc-ex { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.pc-foot { margin-top: 16px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* article */
.article { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 32px; flex-wrap: wrap; }
.article-meta .cat { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.article h2 { font-size: 26px; font-weight: 900; letter-spacing: -.01em; margin: 40px 0 14px; }
.article h3 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; }
.article p { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 20px; }
.article li { font-size: 15.5px; line-height: 1.85; color: var(--muted); margin-bottom: 6px; }
.article blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 24px 0; font-size: 17px; font-style: italic; }
.article strong { color: var(--ink); }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: linear-gradient(140deg, var(--primary-2), var(--primary)); }
.author-box b { display: block; }
.author-box small { color: var(--muted); }

/* about page */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about-photo { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--primary-2), var(--primary) 60%, var(--primary-3)); padding: 28px 28px 0; }
.about-photo img { margin: 0 auto; }
.about-copy p { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.about-copy p strong { color: var(--ink); }
.timeline { margin-top: 24px; }
.timeline li { list-style: none; display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline .yr { font-weight: 900; color: var(--accent); }
.timeline p { font-size: 14.5px; margin: 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.skill-tags span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }

/* faq */
.faq-list { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); transition: transform .3s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 700px; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.step .n { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 800; border-radius: 8px; }
.step h4 { margin-top: 16px; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.step p { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; }
.info-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.info-tiles .tile { min-height: 104px; background: var(--tile); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.info-tiles small { font-size: 12px; color: var(--muted); }
.info-tiles b { font-size: 14px; }
.form-panel { border-radius: 14px; padding: 36px; background: linear-gradient(150deg, var(--primary-3), var(--primary) 55%, var(--primary-2) 130%); }
.form-card { max-width: 460px; margin: 0 auto; background: var(--surface); border-radius: 10px; padding: 32px; box-shadow: var(--shadow); }
.form-card h4 { text-align: center; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.form-card form { margin-top: 28px; display: grid; gap: 15px; }
.form-card label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; margin-top: 6px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); padding: 11px 12px; font-size: 14px; font-family: inherit; resize: none; border-radius: 4px;
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); }
.form-card button { background: var(--ink); color: var(--bg); border: 0; padding: 14px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; cursor: pointer; font-family: inherit; border-radius: 4px; }
.form-card button:hover { background: var(--accent); color: var(--accent-ink); }
.form-success { margin-top: 24px; border: 1px solid var(--line); background: var(--bg); padding: 22px; text-align: center; border-radius: 8px; }

/* big cta */
.big-cta { text-align: left; }
.big-cta h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.big-cta .btn { margin-top: 28px; }

/* footer */
.site-footer { background: var(--primary-3); color: var(--primary-ink); }
.site-footer .container { padding-top: 56px; padding-bottom: 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand .mark { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.footer-brand .mark span { color: var(--accent); }
.footer-brand p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; color: var(--primary-muted); max-width: 300px; }
.footer-col h5 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: var(--primary-muted); }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--primary-ink); opacity: .85; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--primary-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--primary-muted); }

/* ============================================================
   THEME PICKER (floating)
   ============================================================ */
.theme-picker {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: #141414; border-radius: 999px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.theme-picker .tp-label { color: rgba(255,255,255,.6); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-right: 2px; }
.theme-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .2s ease; }
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { border-color: #fff; }
.theme-dot[data-set="navy"] { background: linear-gradient(135deg, #101D33 50%, #B87333 50%); }
.theme-dot[data-set="charcoal"] { background: linear-gradient(135deg, #131513 50%, #A3E635 50%); }
.theme-dot[data-set="orange"] { background: linear-gradient(135deg, #C93E0E 50%, #F1602B 50%); }
.theme-dot[data-set="white"] { background: linear-gradient(135deg, #232323 50%, #FFFFFF 50%); }
.theme-dot[data-set="stone"] { background: linear-gradient(135deg, #34342F 50%, #D7D7D3 50%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .container, .nav { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; z-index: 40; flex-direction: column; gap: 0; background: var(--primary-3); padding: 10px 24px 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; }
  .nav-burger { display: block; }
  .site-header, .home-hero .site-header { position: relative; }

  .hh-inner { min-height: auto; padding: 28px 24px 36px; }
  .hh-tagline { margin-top: 0; }
  .hh-side-card { display: none; }
  .hh-photo { position: relative; left: auto; transform: none; margin: 24px auto -20px; height: auto; width: 260px; }
  .hh-bottom { grid-template-columns: 1fr; gap: 18px; }
  .hh-wordmark { text-align: center; }
  .talk-card { width: 100%; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-card.featured { grid-column: auto; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band > div { border-left: 0; border-top: 1px solid var(--primary-line); }
  .work-grid, .blog-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .case-body { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logostrip { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .process, .stats-band, .info-tiles, .case-meta, .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECT MEDIA — screenshots, comparison slider, gallery, video
   ============================================================ */

/* work card with real screenshot */
.wc-img.has-shot { padding: 0; overflow: hidden; background: var(--bg-alt); align-items: stretch; }
.wc-img.has-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s cubic-bezier(.22,1,.36,1); }
.work-card:hover .wc-img.has-shot img { transform: scale(1.04); }

/* ---------- before / after comparison ---------- */
.compare-wrap { margin-top: 32px; }
.compare-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.compare-tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .25s ease;
}
.compare-tab:hover { border-color: var(--accent); }
.compare-tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.compare {
  display: none; position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  max-width: 620px; margin: 0 auto; aspect-ratio: 3 / 4;
  user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.compare.on { display: block; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.cmp-after-wrap img { width: auto; height: 100%; max-width: none; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent);
  transform: translateX(-1px); pointer-events: none;
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.cmp-handle span::before, .cmp-handle span::after {
  content: ''; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.cmp-handle span::before { left: 9px; margin-top: -6px; border-right: 7px solid var(--accent-ink); }
.cmp-handle span::after { right: 9px; margin-top: -6px; border-left: 7px solid var(--accent-ink); }
.cmp-tag {
  position: absolute; bottom: 14px; z-index: 3;
  background: rgba(0,0,0,.62); color: #fff; backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.cmp-tag.left { left: 14px; }
.cmp-tag.right { right: 14px; }

/* ---------- video ---------- */
.video-section { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.video-frame {
  border-radius: 16px; overflow: hidden; background: var(--primary-3);
  box-shadow: var(--shadow); max-width: 340px; margin-left: auto;
}
.video-frame video { display: block; width: 100%; height: auto; }

/* ---------- full-page screenshots in browser frame ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 28px; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.shot-scroll { height: 380px; overflow: hidden; position: relative; }
.shot-scroll img { width: 100%; display: block; transition: transform 6s linear; transform: translateY(0); }
.shot:hover .shot-scroll img { transform: translateY(calc(-100% + 380px)); }
.shot figcaption { padding: 14px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- product gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gal-grid.dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gal-item {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 5;
  transition: transform .3s ease, border-color .3s ease;
}
.gal-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lightbox .lb-cap { color: rgba(255,255,255,.75); font-size: 13.5px; text-align: center; max-width: 620px; }
.lb-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.22); }

@media (max-width: 960px) {
  .video-section { grid-template-columns: 1fr; }
  .video-frame { margin: 0 auto; max-width: 300px; }
  .compare { max-width: 100%; }
  .shot-scroll { height: 300px; }
  .shot:hover .shot-scroll img { transform: translateY(calc(-100% + 300px)); }
}

/* ============================================================
   CONTRAST GUARD — elements sitting ON the --primary background.
   In single-hue themes (e.g. orange) --accent equals --primary,
   so accent-coloured items would vanish. Invert them instead.
   ============================================================ */
.site-header .nav-cta,
.section.on-primary .btn-solid,
.page-hero .btn-solid {
  background: var(--primary-ink);
  color: var(--primary);
}
.site-header .nav-cta:hover,
.section.on-primary .btn-solid:hover,
.page-hero .btn-solid:hover { filter: none; opacity: .88; }

.site-header .nav-links a.active::after,
.site-header .nav-links a:hover::after { background: var(--primary-ink); }

.page-hero .crumb a:hover { color: var(--primary-ink); }

.section.on-primary .pill { background: transparent; border-color: var(--primary-line); color: var(--primary-ink); }
.section.on-primary .pill .ast { color: var(--primary-ink); }

/* ============================================================
   PHONE + WHATSAPP
   ============================================================ */

/* click-to-call in the header */
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600;
  color: var(--primary-ink); opacity: .85;
  white-space: nowrap;
}
.nav-phone:hover { opacity: 1; }
.nav-phone::after { display: none !important; }
.nav-phone svg { opacity: .7; }

/* floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 10px 32px rgba(37, 211, 102, .5); }
.wa-float:active { transform: scale(.97); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* contact page action row */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-actions .btn { align-items: center; }
.info-tiles .tile a { border-bottom: 1px solid var(--line); }
.info-tiles .tile a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1100px) {
  .nav-phone span { display: none; }   /* icon only, keeps the nav from wrapping */
}
@media (max-width: 960px) {
  .nav-phone { display: none; }        /* the floating button covers mobile */
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* <picture> is only a wrapper; let the <img> inherit the parent's layout
   so the existing .hh-photo positioning rules keep working unchanged. */
.home-hero picture,
.about-photo picture { display: contents; }
