/* ==========================================================================
   TECHIE ZEST — SECTION STYLES
   Homepage sections + shared inner-page section patterns.
   ========================================================================== */

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative; padding-block: clamp(2rem, 1rem + 2.2vw, 3rem) var(--section-y); overflow: hidden;
  background: radial-gradient(circle at 88% 24%, color-mix(in srgb, var(--emerald) 8%, transparent), transparent 28%),
              radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 22%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__eyebrow { margin-bottom: var(--space-lg); }
.hero h1 { margin-bottom: var(--space-lg); max-width: 15ch; }
.hero h1 .accent { color: var(--emerald); }
.hero__lead { max-width: 48ch; margin-bottom: var(--space-xl); }
.hero__actions { margin-bottom: var(--space-xl); }

/* small proof line */
.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-lg); border-top: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  color: var(--text-soft); font-size: var(--step--1);
}
.hero__proof span { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.hero__proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__proof b { color: var(--navy-ink); font-weight: var(--weight-bold); }

/* ---- Digital intelligence system visualization ---------------------- */
.hero__visual { position: relative; }
.sysviz { position: relative; width: 100%; aspect-ratio: 1 / 1.05; }
.sysviz__canvas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* slow, restrained orbital motion */
.sysviz__orbit { transform-box: view-box; transform-origin: 280px 300px; animation: tzOrbit 60s linear infinite; }
@keyframes tzOrbit { to { transform: rotate(360deg); } }
.sysviz__pulse { transform-box: fill-box; transform-origin: center; animation: tzPulse 2.6s ease-in-out infinite; }
@keyframes tzPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* floating status labels */
.tz-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 0.8em; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  animation: tzFloat 7s var(--ease) infinite;
}
.tz-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 18%, transparent); }
.tz-chip__dot--navy { background: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 16%, transparent); }
.tz-chip__dot--gold { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.tz-chip__k { color: var(--text-faint); text-transform: uppercase; }
.tz-chip__v { color: var(--navy-ink); font-weight: var(--weight-medium); }
.tz-chip--a1 { left: 0; top: 15%; }
.tz-chip--a2 { right: 0; top: 9%; }
.tz-chip--a3 { left: 0; top: 53%; animation-delay: 1.4s; }
.tz-chip--a4 { right: -2%; top: 43%; animation-delay: 0.7s; }
.tz-chip--a5 { left: 20%; bottom: 6%; animation-delay: 2.1s; }
@keyframes tzFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.sysviz__caption {
  position: absolute; left: 50%; bottom: -0.25rem; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .sysviz__orbit, .sysviz__pulse, .tz-chip { animation: none; }
}

/* ======================================================================
   POSITIONING
   ====================================================================== */
.positioning__statement { font-size: var(--step-3); line-height: 1.18; letter-spacing: var(--tracking-tight); max-width: 20ch; color: var(--navy-ink); font-weight: var(--weight-bold); }
.positioning__statement .em { color: var(--emerald); }
.positioning__body { max-width: 46ch; }
.positioning__pillars { list-style: none; display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.positioning__pillars li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: baseline; padding-top: var(--space-md); border-top: 1px solid var(--line); }
.positioning__pillars .k { font-weight: var(--weight-semi); color: var(--navy-ink); }

/* ======================================================================
   PROOF — verified numbers, editorial
   ====================================================================== */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.proof__item { padding-top: var(--space-md); border-top: 2px solid var(--gold); position: relative; }
.proof__item::after { content: ""; position: absolute; top: -2px; left: 0; width: 28%; height: 2px; background: var(--emerald); }
.proof__num { font-family: var(--font-serif); font-weight: var(--weight-semi); font-size: var(--step-5); line-height: 1; color: var(--navy-ink); letter-spacing: var(--tracking-tight); font-variant-numeric: lining-nums tabular-nums; }
.proof__num .suffix { color: var(--emerald); }
.proof__label { margin-top: var(--space-sm); color: var(--text-soft); }
.proof__sub { font-size: var(--step--1); color: var(--text-faint); }

/* ======================================================================
   SERVICES — centered intro + 3×2 card grid
   Premium through typography, spacing, alignment and restraint — not
   decoration. Six equal-height cards; whole card is one clickable link.
   ====================================================================== */
.svc-head { margin-inline: auto; margin-bottom: clamp(3rem, 2.2rem + 2.4vw, 4rem); }
.svc-head h2 { max-width: 20ch; margin-inline: auto; margin-bottom: var(--space-md); }
.svc-head__lead { max-width: 60ch; margin-inline: auto; color: var(--text-soft); }

.svc-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 0.8rem + 0.9vw, 1.5rem);
}

.svc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.75rem, 1.3rem + 0.9vw, 2.15rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.svc-card:hover { border-color: color-mix(in srgb, var(--emerald) 28%, var(--line)); transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.svc-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--space-lg); }
.svc-card__icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 13px;
  background: #F7F9FC; color: var(--navy);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
/* stroke-only line icons — beat the global `svg { fill: currentColor }` */
.svc-card__icon svg { width: 25px; height: 25px; fill: none; }
.svc-card:hover .svc-card__icon { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); background: color-mix(in srgb, var(--emerald) 7%, var(--white)); }
.svc-card__idx { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); line-height: 1; }

.svc-card__title { font-size: var(--step-1); font-weight: var(--weight-bold); color: var(--navy-ink); letter-spacing: var(--tracking-flat); margin-bottom: var(--space-sm); }
.svc-card__desc { color: var(--text-soft); font-size: var(--step-0); line-height: 1.55; margin-bottom: var(--space-md); }

.svc-card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-bottom: var(--space-lg); }
.svc-card__tags li {
  font-size: 0.78rem; font-weight: var(--weight-medium); color: var(--text-soft);
  padding: 0.34em 0.72em; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #FBFCFE;
}

.svc-card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-weight: var(--weight-semi); font-size: var(--step-0); color: var(--navy);
  transition: color var(--dur) var(--ease);
}
.svc-card__more svg { transition: transform var(--dur) var(--ease); }
.svc-card:hover .svc-card__more { color: var(--emerald-deep); }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }

.svc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: clamp(2.75rem, 2rem + 2.4vw, 3.5rem);
}

@media (prefers-reduced-motion: reduce) { .svc-card:hover { transform: none; } }

/* ======================================================================
   AI AUTOMATION — operational workflow interface
   ====================================================================== */
.ai-flow {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-lift);
}
.ai-flow__bar { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #FBFCFE, color-mix(in srgb, var(--emerald) 5%, #FBFCFE)); }
.ai-flow__dots { display: flex; gap: 6px; }
.ai-flow__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ai-flow__title { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); }
.ai-flow__live { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--step--1); color: var(--emerald-deep); }
.ai-flow__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulseNode 1.8s ease-in-out infinite; }

.ai-flow__body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.ai-step { position: relative; padding: var(--space-lg) var(--space-md); border-right: 1px solid var(--line); }
.ai-step:last-child { border-right: 0; }
/* flow connector — chevron in the divider shows the hand-off between steps */
.ai-step:not(:last-child)::after {
  content: ""; position: absolute; right: -7px; top: 3.9rem;
  width: 12px; height: 12px; background: var(--white);
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  transform: rotate(45deg); z-index: 2; transition: border-color var(--dur) var(--ease);
}
.ai-flow[data-inview="true"] .ai-step:not(:last-child)::after { border-color: var(--emerald); }
.ai-step__n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); }
.ai-step__icon { width: 34px; height: 34px; margin: var(--space-sm) 0; color: var(--navy); }
.ai-step__label { font-weight: var(--weight-semi); color: var(--navy-ink); font-size: var(--step-0); }
.ai-step__meta { margin-top: var(--space-2xs); font-size: var(--step--1); color: var(--text-faint); }
.ai-step__status { margin-top: var(--space-sm); display: inline-flex; align-items: center; gap: var(--space-3xs); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .02em; color: var(--emerald-deep); }
.ai-step__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
/* progressive activation */
.ai-step { opacity: .45; transition: opacity var(--dur-slow) var(--ease); }
.ai-flow[data-inview="true"] .ai-step { opacity: 1; }
.ai-flow[data-inview="true"] .ai-step:nth-child(1){ transition-delay: 0ms;}
.ai-flow[data-inview="true"] .ai-step:nth-child(2){ transition-delay: 220ms;}
.ai-flow[data-inview="true"] .ai-step:nth-child(3){ transition-delay: 440ms;}
.ai-flow[data-inview="true"] .ai-step:nth-child(4){ transition-delay: 660ms;}
.ai-flow[data-inview="true"] .ai-step:nth-child(5){ transition-delay: 880ms;}
.ai-flow__foot { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; padding: var(--space-md); border-top: 1px solid var(--line); color: var(--text-faint); font-size: var(--step--1); }

/* ======================================================================
   FEATURED WORK
   ====================================================================== */
.work-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.work-featured__visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line)); background: linear-gradient(160deg, #0E3F86, #0A2E60); aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow-lift); }
.work-featured__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-featured__eyebrow { margin-bottom: var(--space-md); }
.work-featured__title { font-size: var(--step-3); margin-bottom: var(--space-md); }
.work-cs { list-style: none; display: grid; gap: var(--space-md); margin: var(--space-lg) 0; }
.work-cs li { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.work-cs .k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-faint); }
/* Honest "case studies in preparation" band — intentional, not a placeholder */
.work-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl);
  padding-top: var(--space-lg); border-top: 1px solid var(--line);
}
.work-note__text { max-width: 70ch; color: var(--text-soft); }

.work-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--space-xl); }
.work-card { display: grid; gap: var(--space-sm); }
.work-card__visual { aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--line); background: #F4F6FA; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.work-card__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card:hover .work-card__visual { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-card__meta { display: flex; gap: var(--space-sm); font-size: var(--step--1); color: var(--text-faint); }
.work-card h3 { font-size: var(--step-1); }

/* ======================================================================
   WHY TECHIE ZEST — four principles
   ====================================================================== */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.principle { padding-top: var(--space-md); border-top: 1px solid var(--line-strong); }
.principle__n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--emerald); }
.principle h3 { font-size: var(--step-1); margin: var(--space-sm) 0; }
.principle p { color: var(--text-soft); font-size: var(--step-0); }

/* ======================================================================
   PROCESS — connecting line
   ====================================================================== */
.process { position: relative; }
.process__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); margin-top: var(--space-xl); }
.process__line { position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); }
.process__line-fill { position: absolute; top: 11px; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--navy), var(--emerald)); transition: width 1.2s var(--ease); }
.process[data-inview="true"] .process__line-fill { width: 100%; }
.process-step { position: relative; }
.process-step__dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); position: relative; z-index: 1; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.process[data-inview="true"] .process-step__dot { border-color: var(--emerald); }
.process[data-inview="true"] .process-step__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--emerald); }
.process-step__n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); margin-top: var(--space-md); }
.process-step h3 { font-size: var(--step-1); margin: var(--space-2xs) 0 var(--space-2xs); }
.process-step p { font-size: var(--step--1); color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) { .process__line-fill { transition: none; } }

/* ======================================================================
   INSIGHTS — editorial
   ====================================================================== */
.insights__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.article-feature { display: grid; gap: var(--space-md); }
.article-feature__visual { aspect-ratio: 16/10; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: #F4F6FA; position: relative; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.article-feature__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-feature:hover .article-feature__visual { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); font-size: var(--step--1); color: var(--text-faint); align-items: center; }
.article-feature h3 { font-size: var(--step-2); }
.article-feature p { color: var(--text-soft); max-width: 54ch; }

.article-list { list-style: none; display: grid; gap: var(--space-lg); align-content: start; }
.article-row { display: grid; gap: var(--space-2xs); padding: 0 var(--space-sm) var(--space-lg); border-left: 2px solid transparent; border-bottom: 1px solid var(--line); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.article-row:last-child { border-bottom: 0; }
.article-row:hover { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, transparent); }
.article-row h3 { font-size: var(--step-1); }
.article-row p { font-size: var(--step--1); color: var(--text-soft); }

/* ======================================================================
   ABOUT PREVIEW
   ====================================================================== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-preview__facts { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.about-preview__facts .n { font-family: var(--font-serif); font-weight: var(--weight-semi); font-size: var(--step-3); color: var(--navy-ink); line-height: 1; }
.about-preview__facts .l { font-size: var(--step--1); color: var(--text-faint); margin-top: var(--space-2xs); }
.about-preview__visual { aspect-ratio: 1/1; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line)); overflow: hidden; position: relative; background: linear-gradient(160deg,#F4F6FA,#fff); box-shadow: var(--shadow-lift); }
.about-preview__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ======================================================================
   CTA — dark navy
   ====================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; text-align: center; max-width: 54ch; margin-inline: auto; }
.cta-band h2 { font-size: var(--step-4); margin-bottom: var(--space-md); max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.cta-band__sub { color: var(--text-invert-soft); font-family: var(--font-mono); letter-spacing: 0.04em; margin-bottom: var(--space-xl); }
.cta-band__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.cta-band__art { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.cta-band__art svg { width: 100%; height: 100%; }

/* ======================================================================
   SHARED — inner page hero + generic pieces
   ====================================================================== */
.page-hero { padding-block: clamp(2rem, 1rem + 2.2vw, 3rem) var(--space-2xl); }
.page-hero .breadcrumbs { margin-bottom: var(--space-lg); }
.page-hero h1 { max-width: 20ch; margin-bottom: var(--space-md); }
.page-hero .lead { max-width: 60ch; }

.faq { list-style: none; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.faq__item:has(.faq__q[aria-expanded="true"]) { background: color-mix(in srgb, var(--emerald) 4%, transparent); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) 0; font-size: var(--step-1); font-weight: var(--weight-semi); color: var(--navy-ink); }
.faq__q .faq__icon { flex: none; transition: transform var(--dur) var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--emerald); }
.faq__a { padding-bottom: var(--space-lg); color: var(--text-soft); max-width: 68ch; }
.faq__a[hidden] { display: none; }
