/* ============================================================
   DIGITAL CRAFT CONSULTANCY — main.css
   Brand Guidelines v1.0: Navy & Cream backgrounds only.
   Lime = CTA accent only (≤10% of layout). Georgia serif headings.
   ============================================================ */

:root {
  --navy: #2F4550;
  --navy-deep: #243740;
  --navy-ink: #1C2B33;
  --blue: #4A90B8;
  --blue-soft: rgba(74, 144, 184, 0.16);
  --cream: #F7F5F0;
  --cream-dim: #EDEAE2;
  --ink: #1C2B33;
  --lime: #A8D400;
  --cream-70: rgba(247, 245, 240, 0.72);
  --cream-40: rgba(247, 245, 240, 0.4);
  --cream-12: rgba(247, 245, 240, 0.12);
  --navy-70: rgba(47, 69, 80, 0.72);
  --navy-12: rgba(47, 69, 80, 0.12);
  --navy-06: rgba(47, 69, 80, 0.06);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Calibri, Inter, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -18px rgba(28, 43, 51, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(28, 43, 51, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blue); color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: inherit;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  z-index: 1000; transition: width 80ms linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 320ms var(--ease), box-shadow 320ms var(--ease),
              backdrop-filter 320ms var(--ease);
}
.site-header.scrolled {
  background: rgba(36, 55, 64, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}
.header-inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream); font-family: var(--serif);
  font-size: 1.05rem; line-height: 1.1; letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 44px; height: auto; flex: none; }
.brand .brand-name span { display: block; font-size: 0.78em; opacity: 0.85; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--cream-70); font-size: 0.95rem; letter-spacing: 0.02em;
  position: relative; padding: 6px 0; transition: color 200ms;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform 320ms var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--cream); text-decoration: none; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--cream);
  transition: transform 280ms var(--ease), opacity 200ms;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; border: 1.5px solid transparent;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
              background 240ms, color 240ms, border-color 240ms;
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-lime { background: var(--lime); color: var(--navy-ink); }
.btn-lime:hover { box-shadow: 0 14px 34px -12px rgba(168, 212, 0, 0.55); }
.btn-ghost-light { border-color: var(--cream-40); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); background: var(--cream-12); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { box-shadow: var(--shadow-sm); }
.btn-ghost-dark { border-color: var(--navy-70); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy-06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(74, 144, 184, 0.24), transparent 65%),
    radial-gradient(900px 620px at 12% 92%, rgba(74, 144, 184, 0.14), transparent 60%),
    linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 58%, #35505d 100%);
  color: var(--cream);
  padding: calc(var(--header-h) + 48px) 0 90px;
  overflow: hidden;
}
.hero-sub-page { min-height: 62svh; padding-bottom: 70px; }

.hero-bridge {
  position: absolute; inset: auto 0 0 0; width: 100%; height: auto;
  opacity: 0.5; pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(247, 245, 240, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
}
.hero .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 22px;
}
.hero .eyebrow { color: #8fc3e0; }
.eyebrow::before {
  content: ""; width: 34px; height: 1.5px; background: currentColor; opacity: 0.7;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: #A9CFE4; }
.hero-lede { max-width: 54ch; font-size: 1.12rem; color: var(--cream-70); margin: 22px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* staggered entrance */
.hero [data-stagger] { opacity: 0; transform: translateY(28px); animation: rise 900ms var(--ease) forwards; }
.hero [data-stagger="1"] { animation-delay: 80ms; }
.hero [data-stagger="2"] { animation-delay: 200ms; }
.hero [data-stagger="3"] { animation-delay: 340ms; }
.hero [data-stagger="4"] { animation-delay: 480ms; }
.hero [data-stagger="5"] { animation-delay: 620ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Stats band ---------- */
.stats-band { margin-top: 70px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--cream-12); border: 1px solid var(--cream-12);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(28, 43, 51, 0.35); padding: 26px 26px 22px; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--cream); line-height: 1;
}
.stat b .unit { font-size: 0.55em; color: var(--blue); display: inline; }
.stat > span { font-size: 0.85rem; color: var(--cream-70); display: block; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy .eyebrow { color: #8fc3e0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 700px; margin-bottom: 54px; }
.section-head p { color: inherit; opacity: 0.78; font-size: 1.05rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--navy-12);
  border-radius: var(--radius); padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue); }
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--blue); transform: scaleY(0); transform-origin: bottom;
  transition: transform 380ms var(--ease);
}
.card:hover::before { transform: scaleY(1); }
.card h3 { color: var(--navy); }
.card p { color: var(--navy-70); font-size: 0.97rem; margin-bottom: 0; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background 300ms, color 300ms;
}
.card:hover .card-icon { background: var(--navy); color: var(--cream); }
.card .card-icon svg { width: 26px; height: 26px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 600; font-size: 0.9rem;
}
.card .card-link svg { width: 14px; height: 14px; transition: transform 240ms var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* dark cards (on navy) */
.card-dark {
  background: rgba(28, 43, 51, 0.4); border: 1px solid var(--cream-12);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform 320ms var(--ease), border-color 320ms, background 320ms;
}
.card-dark:hover { transform: translateY(-5px); border-color: var(--blue); background: rgba(28, 43, 51, 0.6); }
.card-dark h3 { color: var(--cream); font-size: 1.2rem; }
.card-dark p { color: var(--cream-70); font-size: 0.95rem; margin: 0; }
.card-dark .num {
  font-family: var(--serif); font-size: 1rem; color: var(--blue);
  display: block; margin-bottom: 14px;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--cream-12);
  padding: 18px 0; background: var(--navy-deep);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-size: 1rem; color: #A9CFE4;
  white-space: nowrap; display: flex; align-items: center; gap: 56px;
}
.marquee-track span:nth-child(even) { color: var(--cream-70); }
.marquee-track span::after { content: "◆"; font-size: 0.5rem; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pricing / services ---------- */
.tier-toggle-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--navy-12); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 48px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 40;
}
.tier-toggle { display: flex; background: var(--cream-dim); border-radius: 100px; padding: 4px; }
.tier-toggle button {
  border: 0; background: none; padding: 10px 22px; border-radius: 100px;
  font-weight: 600; font-size: 0.9rem; color: var(--navy-70);
  transition: background 260ms var(--ease), color 260ms;
}
.tier-toggle button.active { background: var(--navy); color: var(--cream); }
.tier-note { font-size: 0.85rem; color: var(--navy-70); max-width: 52ch; margin: 0; }

.service-block { margin-bottom: 74px; }
.service-block:last-of-type { margin-bottom: 0; }
.service-block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.service-block-head .idx { font-family: var(--serif); color: var(--blue); font-size: 1.1rem; }
.service-block-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); }
.service-block-head::after { content: ""; flex: 1; height: 1px; background: var(--navy-12); }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg {
  background: #fff; border: 1px solid var(--navy-12); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms;
}
.pkg:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--blue); }
.pkg h3 { font-size: 1.18rem; color: var(--navy); margin: 0; }
.pkg p { font-size: 0.93rem; color: var(--navy-70); margin: 0; flex: 1; }
.pkg .price {
  font-family: var(--serif); font-size: 1.55rem; color: var(--navy);
  transition: opacity 200ms;
}
.pkg .price.swap { opacity: 0; }
.pkg .price small { font-size: 0.55em; color: var(--navy-70); font-family: var(--sans); }
.pkg .pkg-cta { font-size: 0.88rem; font-weight: 600; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--navy-12); }
.accordion details { border-bottom: 1px solid var(--navy-12); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy);
  transition: color 200ms;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--blue); }
.accordion summary .plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--navy-12); position: relative;
  transition: transform 320ms var(--ease), background 240ms, border-color 240ms;
}
.accordion summary .plus::before, .accordion summary .plus::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 12px; height: 1.5px; background: var(--navy);
  transition: background 240ms;
}
.accordion summary .plus::after { transform: rotate(90deg); }
.accordion details[open] summary .plus { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); }
.accordion details[open] summary .plus::before,
.accordion details[open] summary .plus::after { background: var(--cream); }
.accordion .acc-body { padding: 0 4px 24px; color: var(--navy-70); max-width: 68ch; }

/* ---------- Case studies ---------- */
.case {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--navy-12); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 30px;
  transition: box-shadow 320ms var(--ease), transform 320ms var(--ease);
}
.case:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-visual {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 65%, #3a5765);
  min-height: 300px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 30px;
}
.case-visual .case-tag {
  position: relative; z-index: 2;
  background: var(--cream); color: var(--navy); border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 16px;
}
.case-visual svg.case-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.case-body { padding: 40px 38px; }
.case-body h3 { color: var(--navy); font-size: 1.45rem; }
.case-body .case-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue);
  font-weight: 600;
}
.case-body p { color: var(--navy-70); font-size: 0.98rem; }
.case-body ul { margin: 0; padding-left: 18px; color: var(--navy-70); font-size: 0.95rem; }
.case-body li { margin-bottom: 6px; }
.case:nth-child(even) .case-visual { order: 2; }

/* ---------- Segments (about) ---------- */
.seg-bars { display: grid; gap: 20px; }
.seg { display: grid; grid-template-columns: 170px 1fr 56px; align-items: center; gap: 18px; }
.seg .seg-label { font-weight: 600; color: var(--cream); font-size: 0.95rem; }
.seg .seg-label small { display: block; font-weight: 400; color: var(--cream-70); font-size: 0.8rem; }
.seg .bar { height: 10px; background: var(--cream-12); border-radius: 100px; overflow: hidden; }
.seg .bar i {
  display: block; height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, var(--blue), #6fb3d6);
  transition: width 1200ms var(--ease);
}
.seg.in .bar i { width: var(--w); }
.seg .seg-pct { font-family: var(--serif); color: var(--cream); text-align: right; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Founder ---------- */
.founder {
  display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 56px; align-items: center;
}
.founder-portrait {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  display: grid; place-items: center; position: relative;
  border: 1px solid var(--navy-12);
}
.founder-portrait .monogram {
  font-family: var(--serif); font-size: 6rem; color: var(--cream-40); line-height: 1;
}
.founder-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
.founder-roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.founder-roles li {
  border: 1px solid var(--navy-12); border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy-70); padding: 7px 15px;
}

/* ---------- Mission & Vision panel ---------- */
.mv-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(74, 144, 184, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--cream); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--navy-12);
}
.mv-half {
  padding: clamp(38px, 5vw, 60px) clamp(26px, 4vw, 52px);
  text-align: center;
}
.mv-half + .mv-half { border-left: 1px solid var(--cream-12); }
.mv-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue-soft); color: #a9cfe4;
  display: grid; place-items: center; margin: 0 auto 20px;
}
.mv-icon svg { width: 26px; height: 26px; }
.mv-half h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: #8fc3e0;
  margin-bottom: 16px;
}
.mv-half p {
  font-family: var(--serif); font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.65; color: var(--cream); max-width: 40ch; margin: 0 auto;
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 85% 20%, rgba(74, 144, 184, 0.3), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--cream); border-radius: 22px;
  padding: clamp(44px, 7vw, 84px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--cream-70); margin: 0; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- Contact / brief builder ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 30px; align-items: start; }
.brief-form {
  background: #fff; border: 1px solid var(--navy-12); border-radius: var(--radius);
  padding: 40px 38px; box-shadow: var(--shadow-sm);
}
.brief-form h3 { color: var(--navy); }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy-70); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy-12); background: var(--cream);
  font: inherit; color: var(--ink);
  transition: border-color 200ms, box-shadow 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.brief-preview {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px dashed var(--navy-12);
  font-size: 0.9rem; color: var(--navy-70); white-space: pre-wrap; display: none;
}
.brief-preview.show { display: block; }

.contact-cards { display: grid; gap: 18px; }
.contact-card {
  background: var(--navy); color: var(--cream); border-radius: var(--radius);
  padding: 28px; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.05rem; color: #8fc3e0; margin-bottom: 6px; }
.contact-card a { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; }
.contact-card p { color: var(--cream-70); font-size: 0.88rem; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream-70); padding: 70px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid var(--cream-12);
}
.site-footer .brand { margin-bottom: 16px; }
.site-footer h4 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--cream-70); font-size: 0.93rem; }
.site-footer a:hover { color: var(--cream); }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--cream-40); max-width: 30ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px; font-size: 0.82rem; color: var(--cream-40);
}

/* ---------- DCC Assistant ---------- */
.assist-root { position: fixed; right: 22px; bottom: 22px; z-index: 950; }
.assist-launcher {
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--lime); color: var(--navy-ink);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform 260ms var(--ease), background 260ms;
  position: relative;
}
.assist-launcher:hover { transform: translateY(-4px) scale(1.05); }
.assist-launcher svg { width: 26px; height: 26px; }
.assist-badge {
  position: absolute; top: 4px; right: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--navy); border: 2px solid var(--lime);
  animation: breathe 2.4s ease-in-out infinite;
}
.wa-float.wa-float-stacked { bottom: 92px; }

.assist-panel[hidden] { display: none; }
.assist-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(370px, calc(100vw - 32px));
  height: min(540px, calc(100svh - 130px));
  display: flex; flex-direction: column;
  background: var(--navy-deep);
  border: 1px solid var(--cream-12); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: assistIn 320ms var(--ease);
}
@keyframes assistIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.assist-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--navy);
  border-bottom: 1px solid var(--cream-12); flex: none;
}
.assist-head-id { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.assist-head-id svg { width: 36px; height: auto; flex: none; }
.assist-head-id strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1rem; line-height: 1.2; }
.assist-head-id span { display: block; font-size: 0.7rem; color: var(--cream-70); }
.assist-close {
  border: 0; background: none; color: var(--cream-70); font-size: 1.6rem;
  line-height: 1; padding: 4px 8px; border-radius: 8px; transition: color 200ms, background 200ms;
}
.assist-close:hover { color: var(--cream); background: var(--cream-12); }

.assist-log {
  flex: 1; overflow-y: auto; padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: var(--cream-12) transparent;
}
.assist-msg {
  max-width: 86%; padding: 11px 14px; border-radius: 14px;
  font-size: 0.9rem; line-height: 1.5; white-space: pre-line;
  animation: msgIn 260ms var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.assist-msg.from-bot {
  background: rgba(74, 144, 184, 0.16); color: var(--cream);
  border: 1px solid var(--cream-12); border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.assist-msg.from-user {
  background: var(--cream); color: var(--ink);
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.assist-typing { display: flex; gap: 5px; padding: 14px 16px; }
.assist-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cream-40);
  animation: typing 1.1s ease-in-out infinite;
}
.assist-typing span:nth-child(2) { animation-delay: 0.15s; }
.assist-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 40% { transform: translateY(-5px); opacity: 1; } }

.assist-wa-btn {
  align-self: flex-start; display: inline-block;
  background: var(--lime); color: var(--navy-ink);
  font-weight: 700; font-size: 0.9rem;
  padding: 11px 20px; border-radius: 100px;
  animation: msgIn 260ms var(--ease);
}
.assist-wa-btn:hover { text-decoration: none; filter: brightness(1.06); }

.assist-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 10px; flex: none; }
.assist-chips button {
  border: 1px solid var(--cream-12); background: none; color: #a9cfe4;
  font-size: 0.78rem; font-weight: 600; padding: 7px 13px; border-radius: 100px;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.assist-chips button:hover { background: var(--cream-12); color: var(--cream); border-color: var(--blue); }

.assist-form {
  display: flex; gap: 8px; padding: 10px 12px; flex: none;
  border-top: 1px solid var(--cream-12); background: var(--navy);
}
.assist-input {
  flex: 1; border: 1px solid var(--cream-12); border-radius: 100px;
  background: rgba(28, 43, 51, 0.6); color: var(--cream);
  padding: 11px 16px; font: inherit; font-size: 0.9rem;
}
.assist-input::placeholder { color: var(--cream-40); }
.assist-input:focus { outline: none; border-color: var(--blue); }
.assist-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; flex: none;
  background: var(--lime); color: var(--navy-ink);
  display: grid; place-items: center;
  transition: transform 200ms var(--ease), filter 200ms;
}
.assist-send:hover { transform: scale(1.07); filter: brightness(1.06); }
.assist-send svg { width: 18px; height: 18px; }

.assist-note {
  margin: 0; padding: 6px 14px 10px; font-size: 0.66rem;
  color: var(--cream-40); background: var(--navy); flex: none;
}

@media (max-width: 480px) {
  .assist-panel {
    position: fixed; right: 10px; left: 10px; bottom: 88px;
    width: auto; height: min(560px, calc(100svh - 110px));
  }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform 260ms var(--ease), background 260ms;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: var(--blue); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Page hero breadcrumbs ---------- */
.crumb { font-size: 0.85rem; color: var(--cream-40); margin-bottom: 18px; display: block; }
.crumb a { color: var(--cream-70); }

/* ---------- Honesty note ---------- */
.note-strip {
  border-left: 3px solid var(--blue); background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; color: var(--navy-70); font-size: 0.95rem; max-width: 760px;
}

/* ---------- Imagery ---------- */
.img-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.case-visual .img-cover { z-index: 0; }
.case-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(36, 55, 64, 0.72), rgba(36, 55, 64, 0.18) 60%),
    linear-gradient(to top, rgba(28, 43, 51, 0.6), transparent 45%);
}
.case-visual .case-tag { z-index: 2; }

.photo-band {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--cream);
  padding: clamp(90px, 12vw, 150px) 0;
}
.photo-band .img-cover { opacity: 0.55; }
.photo-band .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(36, 55, 64, 0.94) 25%, rgba(36, 55, 64, 0.55) 65%, rgba(47, 69, 80, 0.35));
}
.photo-band .container { position: relative; z-index: 2; }
.photo-band h2 { max-width: 18ch; }
.photo-band p { color: var(--cream-70); max-width: 56ch; font-size: 1.08rem; }
.photo-band .eyebrow { color: #8fc3e0; }

.split-media { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.1; box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.media-frame:hover img { transform: scale(1.045); }
.media-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(47, 69, 80, 0.3), transparent 55%);
}
.media-frame .frame-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(28, 43, 51, 0.72); color: var(--cream);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 100px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 17px;
}

.service-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 230px; margin-bottom: 28px;
}
.service-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(36, 55, 64, 0.82) 10%, rgba(36, 55, 64, 0.25) 60%, transparent);
}
.service-figure .fig-label {
  position: absolute; left: 30px; bottom: 24px; z-index: 2;
  color: var(--cream); font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.01em;
}
.service-figure .fig-label small {
  display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #a9cfe4; margin-bottom: 6px;
}

/* ---------- Hero grid & interactive panel ---------- */
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.85;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.08; pointer-events: none;
  filter: blur(2px) saturate(0.55) brightness(0.8);
  transform: scale(1.03);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-panel {
  background: rgba(28, 43, 51, 0.45);
  border: 1px solid var(--cream-12);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.hero-panel .panel-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8fc3e0; margin: 0 0 18px;
}
.hero-panel .panel-title::after { content: ""; flex: 1; height: 1px; background: var(--cream-12); }
.hero-panel .panel-lede {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.4;
  color: var(--cream); margin: 0 0 10px;
}
.hero-panel p { color: var(--cream-70); font-size: 0.92rem; margin: 0; }
.hero-panel .panel-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: #a9cfe4;
}
.hero-panel .panel-link svg { width: 14px; height: 14px; transition: transform 240ms var(--ease); }
.hero-panel .panel-link:hover svg { transform: translateX(4px); }

/* rotating slides inside a panel */
[data-carousel] .slide { display: none; }
[data-carousel] .slide.active { display: block; animation: slideFade 500ms var(--ease); }
@keyframes slideFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-dots { display: flex; gap: 8px; margin-top: 20px; }
.panel-dots button {
  width: 26px; height: 4px; border-radius: 100px; border: 0; padding: 0;
  background: var(--cream-12); transition: background 260ms;
}
.panel-dots button.active { background: var(--lime); }
.panel-dots button:hover { background: var(--cream-40); }

/* tier toggle variant on dark panel */
.hero-panel .tier-toggle { background: rgba(247, 245, 240, 0.1); margin-bottom: 18px; }
.hero-panel .tier-toggle button { color: var(--cream-70); }
.hero-panel .tier-toggle button.active { background: var(--cream); color: var(--navy); }
.hero-panel .price {
  font-family: var(--serif); font-size: 2rem; color: var(--cream);
  display: block; margin: 6px 0 2px; transition: opacity 200ms;
}
.hero-panel .price.swap { opacity: 0; }
.hero-panel .price small { font-size: 0.5em; color: var(--cream-70); font-family: var(--sans); }

/* mini stat grid (about hero) */
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-stats div { border: 1px solid var(--cream-12); border-radius: var(--radius-sm); padding: 14px 16px; }
.panel-stats b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; color: var(--cream); line-height: 1.1;
}
.panel-stats b .unit { font-size: 0.6em; color: var(--blue); display: inline; }
.panel-stats div > span { font-size: 0.72rem; color: var(--cream-70); display: block; margin-top: 4px; line-height: 1.4; }

/* quick actions (contact hero) */
.panel-actions { display: grid; gap: 10px; }
.panel-actions a {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--cream-12); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--cream); font-weight: 600; font-size: 0.93rem;
  transition: background 240ms, border-color 240ms, transform 240ms var(--ease);
}
.panel-actions a:hover { background: var(--cream-12); border-color: var(--blue); text-decoration: none; transform: translateX(4px); }
.panel-actions a svg { width: 18px; height: 18px; flex: none; color: #a9cfe4; }
.panel-actions a span small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--cream-70); }

/* ---------- Connection globe (home band) ---------- */
.band-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.globe-wrap {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.globe-wrap canvas {
  display: block; max-width: 100%;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4));
}
.globe-caption {
  margin-top: 6px; font-size: 0.9rem; font-weight: 600;
  color: var(--cream-70); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  background: rgba(28, 43, 51, 0.55);
  border: 1px solid var(--cream-12); border-radius: 100px;
  padding: 9px 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.globe-caption .dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.globe-caption .dot.on { background: var(--lime); box-shadow: 0 0 10px rgba(168, 212, 0, 0.8); animation: breathe 2.4s ease-in-out infinite; }
.globe-caption .dot.off { background: var(--blue); }
@keyframes breathe { 50% { opacity: 0.45; } }
.globe-hint {
  margin-top: 10px; font-size: 0.75rem; color: var(--cream-40);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Footer contact icons ---------- */
.footer-contact li a, .footer-contact li > span {
  display: flex; align-items: flex-start; gap: 10px;
}
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--cream-12); display: grid; place-items: center;
  color: var(--cream-70); transition: background 240ms, color 240ms, border-color 240ms, transform 240ms var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--cream); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid, .values-grid, .process-grid, .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case, .founder, .contact-layout, .cta-band, .split-media, .hero-grid, .band-grid { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
  .case-visual { min-height: 200px; }
  .cta-band .cta-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  /* rhythm: tighter vertical spacing so sections breathe without dead scroll */
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-bottom: 56px; }
  .hero-sub-page { min-height: auto; padding-bottom: 48px; }
  .hero-grid, .band-grid, .split-media { gap: 32px; }
  .stats-band { margin-top: 44px; }

  /* stats: keep value and unit on one line, slim the cells */
  .stat { padding: 18px 16px 16px; }
  .stat b { font-size: clamp(1.7rem, 8vw, 2.1rem); white-space: nowrap; }
  .stat > span { font-size: 0.8rem; margin-top: 6px; }

  /* panels */
  .hero-panel { padding: 24px 22px 22px; }
  .panel-stats { gap: 10px; }
  .panel-stats div { padding: 12px 12px; }

  /* mission & vision: stack, divider rotates to horizontal */
  .mv-panel { grid-template-columns: 1fr; }
  .mv-half + .mv-half { border-left: 0; border-top: 1px solid var(--cream-12); }
  .mv-half { padding: 32px 26px; }
  .mv-half p { max-width: 44ch; }

  /* footer: centred brand · Explore and Services 50/50, both centred · contact centred below */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; padding-bottom: 26px; }
  .footer-grid > div:nth-child(1) {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-bottom: 22px; border-bottom: 1px solid var(--cream-12);
  }
  .footer-grid > div:nth-child(1) .brand { margin-bottom: 10px; }
  .footer-grid > div:nth-child(1) .footer-tagline { max-width: 32ch; font-size: 0.9rem; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { text-align: center; }
  .footer-grid > div:nth-child(3) { border-left: 1px solid var(--cream-12); }
  .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1; text-align: center;
    border-top: 1px solid var(--cream-12); padding-top: 22px;
  }
  .footer-grid > div:nth-child(4) ul { justify-items: center; gap: 10px; }
  .footer-contact li a, .footer-contact li > span { justify-content: center; align-items: center; }
  .footer-contact svg { margin-top: 0; }
  .site-footer h4 { margin-bottom: 12px; font-size: 0.72rem; }
  .site-footer ul { gap: 8px; }
  .site-footer a { font-size: 0.88rem; }
  .footer-contact a, .footer-contact li > span { word-break: break-word; }
  .site-footer .brand .brand-name { white-space: nowrap; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 18px; }

  /* services: the figure already names the section, drop the duplicate head */
  .service-block-head { display: none; }
  .service-block { margin-bottom: 56px; }
  .service-figure { height: 170px; margin-bottom: 20px; }
  .service-figure .fig-label { left: 20px; bottom: 18px; font-size: 1.25rem; padding-right: 16px; }
  .service-figure .fig-label small { font-size: 0.62rem; letter-spacing: 0.16em; }

  /* cards and forms: slimmer padding at phone width */
  .brief-form { padding: 26px 20px; }
  .case-body { padding: 28px 22px; }
  .card { padding: 26px 22px; }
  .cta-band { padding: 36px 26px; }
  .tier-toggle-wrap { padding: 18px 18px; }

  /* globe caption fits one line more often */
  .globe-caption { font-size: 0.78rem; padding: 8px 14px; }
  .globe-hint { font-size: 0.68rem; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy-deep); padding: 18px 5vw 28px;
    transform: translateY(-130%); transition: transform 360ms var(--ease);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.5);
  }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav-open .main-nav { transform: none; }
  .nav-toggle { display: flex; }
  .site-header { background: rgba(36, 55, 64, 0.92); backdrop-filter: blur(14px); }
  .card-grid, .values-grid, .process-grid, .pkg-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; gap: 8px; }
  .seg .seg-pct { text-align: left; }
  .tier-toggle-wrap { position: static; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero [data-stagger] { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .seg .bar i { width: var(--w); }
}
