/* ============================================================
   Wigo zTech — design system
   Original brand palette (deep space + violet/blue) fused with
   editorial restraint: Space Grotesk display, Newsreader italic
   accents, mono labels, grid-globe brand layer.
   ============================================================ */

:root {
  --bg: #05060A;
  --bg-2: #0A0C13;
  --fg: rgba(255, 255, 255, 0.95);
  --fg-2: rgba(255, 255, 255, 0.58);
  --fg-3: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  --brand: #8B5CF6;
  --brand-2: #2563FF;
  --violet-light: #A78BFA;
  --veil: 5, 6, 10;
  --em-grad: linear-gradient(94deg, #A78BFA 0%, #818CF8 45%, #60A5FA 100%);

  /* product accents (dark-tuned) */
  --studio: #E28A5F;
  --vance: #67C08E;
  --sic: #A78BFA;
  --nilo: #7EB6E8;
  --meetscribe: #E3B341;
  --reception: #E38BA5;
  --hubs: #9FB0C7;
  --kipata: #56C7BE;

  --display: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Geist", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --max: 1800px;
  --gutter: clamp(22px, 5vw, 104px);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.35); }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.serif { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }

.display {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.headline {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em;
}

.subhead {
  font-size: clamp(23px, 2.8vw, 32px);
  letter-spacing: -0.015em;
}

/* premium accent: violet-to-blue gradient in the display face */
.em {
  font-weight: 600;
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad {
  background: linear-gradient(92deg, #A78BFA 10%, #5B8CFF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 58ch;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-3);
}

p { color: var(--fg-2); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: var(--fg);
}
.wordmark b { font-weight: 600; }
.wordmark .z { color: var(--violet-light); }
.wordmark .wmark {
  width: 34px;
  height: auto;
  flex: none;
  margin-right: 10px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}

/* Anthropic-style collapse: brand name folds away on scroll, logo remains */
.brand-text {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled .brand-text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-10px);
}
.site-footer .brand-text { max-width: none; opacity: 1; transform: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--fg-2);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--violet-light);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #fff;
  color: #05060A;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.88); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--fg); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 6, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-family: var(--display);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links.open a::after { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(140px, 20vh, 200px);
  padding-bottom: clamp(60px, 9vh, 110px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero .display { margin: 20px 0 26px; max-width: 17ch; }
.hero .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.family-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* edge fade so items enter/exit softly */
.family-strip .marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.family-strip .marquee-track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: marquee 42s linear infinite;
}
.family-strip:hover .marquee-track { animation-play-state: paused; }
.family-strip a {
  flex: none;
  padding: 0 30px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color 0.2s;
}
.family-strip a:hover { color: var(--fg); }
.family-strip a i {
  font-style: normal;
  color: var(--violet-light);
  margin-right: 9px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.section.tinted { background: var(--bg-2); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .headline { margin: 16px 0 18px; }

/* featured product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.product-card .glyph {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}
.product-card h3 {
  font-size: clamp(25px, 2.5vw, 32px);
  margin-bottom: 6px;
  color: var(--fg);
}
.product-card .role {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.product-card p { max-width: 46ch; font-size: 15.5px; }
.product-card .card-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card .more {
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .more .arr { transition: transform 0.2s; }
.product-card:hover .more .arr { transform: translateX(4px); }

.chip {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

/* product glows — original site's radial accent language */
.wash-studio     { background: radial-gradient(circle at 88% -10%, rgba(226, 138, 95, 0.16), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-vance      { background: radial-gradient(circle at 88% -10%, rgba(103, 192, 142, 0.15), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-sic        { background: radial-gradient(circle at 88% -10%, rgba(139, 92, 246, 0.2), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-nilo      { background: radial-gradient(circle at 88% -10%, rgba(126, 182, 232, 0.16), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-meetscribe { background: radial-gradient(circle at 88% -10%, rgba(227, 179, 65, 0.14), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-reception  { background: radial-gradient(circle at 88% -10%, rgba(227, 139, 165, 0.15), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-hubs       { background: radial-gradient(circle at 88% -10%, rgba(159, 176, 199, 0.14), transparent 58%), rgba(255, 255, 255, 0.02); }
.wash-kipata     { background: radial-gradient(circle at 88% -10%, rgba(86, 199, 190, 0.15), transparent 58%), rgba(255, 255, 255, 0.02); }

.wash-studio .role, .wash-studio .more { color: var(--studio); }
.wash-vance .role, .wash-vance .more { color: var(--vance); }
.wash-sic .role, .wash-sic .more { color: var(--sic); }
.wash-nilo .role, .wash-nilo .more { color: var(--nilo); }
.wash-meetscribe .role, .wash-meetscribe .more { color: var(--meetscribe); }
.wash-reception .role, .wash-reception .more { color: var(--reception); }
.wash-hubs .role, .wash-hubs .more { color: var(--hubs); }
.wash-kipata .role, .wash-kipata .more { color: var(--kipata); }

/* compact product rows */
.product-rows { border-top: 1px solid var(--line); }
.product-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.product-row:hover { background: rgba(255, 255, 255, 0.02); }
.product-row h3 { font-size: 22px; }
.product-row p { font-size: 15px; max-width: 60ch; }
.product-row .arr-lg {
  font-size: 22px;
  color: var(--fg-3);
  transition: transform 0.2s, color 0.2s;
}
.product-row:hover .arr-lg { transform: translateX(4px); color: var(--fg); }
@media (max-width: 720px) {
  .product-row { grid-template-columns: 1fr auto; }
  .product-row p { grid-column: 1 / -1; }
}

/* statement */
.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 26ch;
  color: var(--fg);
}

/* principles list */
.principles { border-top: 1px solid var(--line); margin-top: 8px; }
.principle {
  display: grid;
  grid-template-columns: 90px minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.principle .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-light); opacity: 0.8; padding-top: 6px; }
.principle h3 { font-size: 22px; }
.principle p { font-size: 15.5px; max-width: 56ch; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 56px 1fr; }
  .principle p { grid-column: 2; }
}

/* feature grid (product pages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 32px 28px 36px;
  background: var(--bg);
  transition: background 0.4s ease;
}
.feature:hover { background: rgba(255, 255, 255, 0.015); }
.section.tinted .feature { background: var(--bg-2); }
.section.tinted .feature:hover { background: rgba(255, 255, 255, 0.02); }
.feature h3 { font-size: 20px; margin: 14px 0 10px; }
.feature p { font-size: 14.5px; }
.feature .f-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--fg-3); }

/* steps */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 80px minmax(0, 300px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--violet-light);
  opacity: 0.8;
  padding-top: 5px;
}
.step h3 { font-size: 21px; }
.step p { font-size: 15px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 48px 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- product page hero ---------- */

.p-hero {
  padding-top: clamp(130px, 18vh, 180px);
  padding-bottom: clamp(56px, 8vh, 96px);
  position: relative;
}
.p-hero .glyph-lg {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}
.p-hero .meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.p-hero h1 { max-width: 17ch; margin-bottom: 22px; }
.p-hero .lede { margin-bottom: 34px; max-width: 62ch; }

/* hero glows sit over the globe, not solid walls */
.p-hero.wash-studio     { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(226, 138, 95, 0.1), transparent 65%); }
.p-hero.wash-vance      { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(103, 192, 142, 0.1), transparent 65%); }
.p-hero.wash-sic        { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(139, 92, 246, 0.14), transparent 65%); }
.p-hero.wash-nilo      { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(126, 182, 232, 0.11), transparent 65%); }
.p-hero.wash-meetscribe { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(227, 179, 65, 0.1), transparent 65%); }
.p-hero.wash-reception  { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(227, 139, 165, 0.1), transparent 65%); }
.p-hero.wash-hubs       { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(159, 176, 199, 0.1), transparent 65%); }
.p-hero.wash-kipata     { background: radial-gradient(ellipse 90% 80% at 25% 30%, rgba(86, 199, 190, 0.1), transparent 65%); }

.accent-studio { color: var(--studio); }
.accent-vance { color: var(--vance); }
.accent-sic { color: var(--sic); }
.accent-nilo { color: var(--nilo); }
.accent-meetscribe { color: var(--meetscribe); }
.accent-reception { color: var(--reception); }
.accent-hubs { color: var(--hubs); }
.accent-kipata { color: var(--kipata); }

/* studio trio */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.trio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
}
.trio-card .eyebrow { display: block; margin-bottom: 18px; }
.trio-card h3 { font-size: 24px; margin-bottom: 10px; }
.trio-card p { font-size: 15px; }

/* prev / next */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pager a {
  padding: 36px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.pager a:hover { background: rgba(255, 255, 255, 0.025); }
.pager a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pager .serif { font-size: 23px; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band .headline { margin: 16px auto 18px; max-width: 20ch; }
.cta-band .lede { margin: 0 auto 36px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vh, 80px) 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { font-size: 15px; color: var(--fg-2); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--fg); }
.footer-brand p { font-size: 15px; max-width: 30ch; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-3);
}

/* ---------- brand globe ---------- */

.globe-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.globe-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* the original site's depth veils, top and bottom */
.globe-layer::before, .globe-layer::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 200px;
  z-index: 1;
}
.globe-layer::before { top: 0; background: linear-gradient(to bottom, rgba(var(--veil), 0.92), transparent); }
.globe-layer::after { bottom: 0; background: linear-gradient(to top, rgba(var(--veil), 0.95), transparent); }

@media (max-width: 900px) {
  .globe-layer canvas { opacity: 0.6; }
}

main, .site-footer { position: relative; z-index: 1; }

main, .site-footer { transition: opacity 0.45s ease; }
body.leaving main, body.leaving .site-footer { opacity: 0; }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- theme toggle ---------- */

.theme-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-btn:hover { color: var(--fg); border-color: var(--fg-3); transform: rotate(12deg); }
.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
html[data-theme="light"] .theme-btn .sun { display: block; }
html[data-theme="light"] .theme-btn .moon { display: none; }

/* ---------- stats ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--bg); padding: 42px 28px 38px; }
.section.tinted .stat { background: var(--bg-2); }
.stat .n {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .l {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- service / insight card footers ---------- */

.f-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.f-foot .tag { color: var(--vance); }
a.feature { display: block; }

/* ---------- pull quote ---------- */

.pull-quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 30ch;
  color: var(--fg);
}
.pull-quote footer {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- premium theme transition (View Transitions API) ---------- */
/* the whole viewport cross-dissolves as one image, so nothing passes through a
   washed-out mid-state — a clean, cohesive fade between dark and light */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  mix-blend-mode: normal;
}
/* both layers simply fade (no scale/slide) for a calm, high-end feel */
::view-transition-old(root) { animation-name: wigo-fade-out; }
::view-transition-new(root) { animation-name: wigo-fade-in; }
@keyframes wigo-fade-out { to { opacity: 0; } }
@keyframes wigo-fade-in { from { opacity: 0; } }

/* ---------- light mode ---------- */

html[data-theme="light"] {
  --bg: #FCFBF8;
  --bg-2: #F3F1EA;
  --fg: rgba(26, 24, 20, 0.96);
  --fg-2: rgba(26, 24, 20, 0.60);
  --fg-3: rgba(26, 24, 20, 0.40);
  --line: rgba(26, 24, 20, 0.13);
  --line-soft: rgba(26, 24, 20, 0.07);
  --violet-light: #5B45DE;
  --veil: 252, 251, 248;
  --em-grad: linear-gradient(94deg, #6D28D9 0%, #4F46E5 52%, #2563EB 100%);

  --studio: #C05A2E;
  --vance: #1E7A4C;
  --sic: #5B47E0;
  --nilo: #2E6CA6;
  --meetscribe: #96700F;
  --reception: #B04A66;
  --hubs: #57687F;
  --kipata: #1E8C82;
}

html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .site-header { background: rgba(252, 251, 248, 0.82); }

html[data-theme="light"] .btn { background: #1A1814; border-color: #1A1814; color: #FCFBF8; }
html[data-theme="light"] .btn:hover { background: #34302A; border-color: #34302A; }
html[data-theme="light"] .btn.ghost { background: transparent; border-color: rgba(26, 24, 20, 0.24); color: var(--fg); }
html[data-theme="light"] .btn.ghost:hover { background: rgba(26, 24, 20, 0.05); border-color: rgba(26, 24, 20, 0.42); }

html[data-theme="light"] .chip { border-color: rgba(26, 24, 20, 0.16); color: rgba(26, 24, 20, 0.6); background: #FFFFFF; }

/* clean white cards with a soft branded corner + gentle shadow */
html[data-theme="light"] .product-card {
  background: #FFFFFF;
  border-color: rgba(26, 24, 20, 0.09);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04), 0 6px 20px -14px rgba(26, 24, 20, 0.14);
}
html[data-theme="light"] .product-card:hover {
  border-color: rgba(26, 24, 20, 0.16);
  box-shadow: 0 2px 4px rgba(26, 24, 20, 0.05), 0 18px 40px -20px rgba(26, 24, 20, 0.28);
}
html[data-theme="light"] .wash-studio     { background: radial-gradient(circle at 88% -12%, rgba(192, 90, 46, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-vance      { background: radial-gradient(circle at 88% -12%, rgba(30, 122, 76, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-sic        { background: radial-gradient(circle at 88% -12%, rgba(91, 71, 224, 0.11), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-nilo       { background: radial-gradient(circle at 88% -12%, rgba(46, 108, 166, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-meetscribe { background: radial-gradient(circle at 88% -12%, rgba(150, 112, 15, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-reception  { background: radial-gradient(circle at 88% -12%, rgba(176, 74, 102, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-hubs       { background: radial-gradient(circle at 88% -12%, rgba(87, 104, 127, 0.10), transparent 55%), #FFFFFF; }
html[data-theme="light"] .wash-kipata     { background: radial-gradient(circle at 88% -12%, rgba(30, 140, 130, 0.11), transparent 55%), #FFFFFF; }

/* product-page hero tints — soft, on paper */
html[data-theme="light"] .p-hero.wash-studio     { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(192, 90, 46, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-vance      { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(30, 122, 76, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-sic        { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(91, 71, 224, 0.08), transparent 60%); }
html[data-theme="light"] .p-hero.wash-nilo       { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(46, 108, 166, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-meetscribe { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(150, 112, 15, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-reception  { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(176, 74, 102, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-hubs       { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(87, 104, 127, 0.07), transparent 60%); }
html[data-theme="light"] .p-hero.wash-kipata     { background: radial-gradient(ellipse 92% 80% at 22% 26%, rgba(30, 140, 130, 0.08), transparent 60%); }

html[data-theme="light"] .product-card .glyph,
html[data-theme="light"] .p-hero .glyph-lg { background: #FFFFFF; border-color: rgba(26, 24, 20, 0.1); box-shadow: 0 1px 2px rgba(26, 24, 20, 0.05); }
html[data-theme="light"] .trio-card { background: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04), 0 6px 20px -16px rgba(26, 24, 20, 0.16); }
html[data-theme="light"] .family-strip a { color: rgba(26, 24, 20, 0.5); }
html[data-theme="light"] .family-strip a:hover { color: var(--fg); }
html[data-theme="light"] .product-row:hover { background: rgba(26, 24, 20, 0.025); }
html[data-theme="light"] .feature:hover,
html[data-theme="light"] .section.tinted .feature:hover { background: rgba(26, 24, 20, 0.02); }
html[data-theme="light"] .pager a:hover { background: rgba(26, 24, 20, 0.03); }
html[data-theme="light"] .nav-links.open { background: rgba(252, 251, 248, 0.98); }
html[data-theme="light"] .social a { border-color: rgba(26, 24, 20, 0.14); }
html[data-theme="light"] ::selection { background: rgba(91, 69, 222, 0.18); }
html[data-theme="light"] .wordmark .wmark { filter: drop-shadow(0 0 7px rgba(124, 58, 237, 0.28)); }

/* ---------- social links ---------- */

.footer-grid ul.social {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 10px;
  margin-top: 22px;
  width: max-content;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.social a:hover {
  color: var(--fg);
  border-color: var(--fg-3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="light"] .social a:hover { background: rgba(21, 20, 26, 0.04); }
.social svg { width: 16px; height: 16px; fill: currentColor; display: block; }

/* social buttons sitting inside a hero/CTA row */
.hero-ctas .social { margin-top: 0; }
