/* ─────────────────────────────────────────────────────────────────────────
   ZK Digital — V2 redesign preview (served at /v2, layered on style.css)

   Color discipline: backgrounds, body type, nav, and buttons stay ink and
   paper. Color enters only through the work — product accents, imagery,
   and hairline details. One studio accent; one accent per lab product.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Studio accent: brass/cognac — warm, editorial, sits well with Fraunces
     on both ink and cream. Alternatives if it doesn't feel right:
     forest green 152 35% 32% · petrol teal 190 45% 35% · ink blue 215 45% 38% */
  --zk-accent: 28 42% 58%;
}

/* Per-product accents */
body.zk-v2 .zk-product-card--kobsmart    { --card-accent: 152 60% 42%; }
body.zk-v2 .zk-product-card--saft        { --card-accent: 173 58% 45%; }
body.zk-v2 .zk-product-card--strangeloop { --card-accent: 9 73% 58%; }
body.zk-v2 .zk-product-card--cosmiic     { --card-accent: 247 84% 74%; }
body.zk-v2 .zk-product-card--ambient     { --card-accent: 212 65% 60%; }
body.zk-v2 .zk-product-card--wiing       { --card-accent: 27 45% 62%; }

body.zk-v2 ::selection { background: hsl(var(--zk-accent) / 0.35); }

/* ─────────────────────────────────────────────────────────────────────────
   LANGUAGE TOGGLE (DA / EN) — flat mono text, reads like the nav
   ───────────────────────────────────────────────────────────────────────── */
.zk-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1;
}

/* keep the parent theme's button reset (#c36) out */
.zk-lang:hover,
.zk-lang:focus,
.zk-lang:active { background: none; border: none; outline: none; }
.zk-lang:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }

.zk-lang__opt {
  padding: 0 0.55em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  transition: color var(--transition);
}

.zk-lang__opt + .zk-lang__opt { border-left: 1px solid var(--gray-700); }

/* active language is bright; the other lifts toward white on hover */
html[data-lang="en"] .zk-lang__opt[data-lang-opt="en"],
html[data-lang="da"] .zk-lang__opt[data-lang-opt="da"] { color: var(--white); }
.zk-lang:hover .zk-lang__opt { color: var(--gray-200); }
html[data-lang="en"] .zk-lang:hover .zk-lang__opt[data-lang-opt="en"],
html[data-lang="da"] .zk-lang:hover .zk-lang__opt[data-lang-opt="da"] { color: var(--white); }

/* bigger in the mobile overlay */
.zk-lang--menu .zk-lang__opt { font-size: 1rem; padding: 0 0.7em; }

/* header is tight on small screens — language lives in the mobile menu there */
@media (max-width: 768px) {
  .zk-header .zk-lang { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO — drafting-grid lines + rising particles
   ───────────────────────────────────────────────────────────────────────── */
.zk-v2-gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.zk-v2-gridlines span {
  position: absolute;
  display: block;
  background: rgba(250, 250, 250, 0.14);
  will-change: transform, opacity;
}

.zk-v2-gridlines span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(250, 250, 250, 0.3), transparent);
  opacity: 0;
  animation: zkV2Shimmer 1100ms ease-out forwards;
}

/* horizontals draw left → right, one after another */
.zk-v2-gridlines__h {
  height: 1px;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: left center;
  animation: zkV2DrawX 1100ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.zk-v2-gridlines__h--one   { top: 22%; animation-delay: 200ms; }
.zk-v2-gridlines__h--two   { top: 50%; animation-delay: 420ms; }
.zk-v2-gridlines__h--three { top: 78%; animation-delay: 640ms; }
.zk-v2-gridlines__h--one::after   { animation-delay: 200ms; }
.zk-v2-gridlines__h--two::after   { animation-delay: 420ms; }
.zk-v2-gridlines__h--three::after { animation-delay: 640ms; }

/* verticals draw top → bottom, after the horizontals land */
.zk-v2-gridlines__v {
  width: 1px;
  top: 0;
  bottom: 0;
  transform: scaleY(0);
  transform-origin: center top;
  animation: zkV2DrawY 1200ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.zk-v2-gridlines__v--one   { left: 22%; animation-delay: 900ms; }
.zk-v2-gridlines__v--two   { left: 50%; animation-delay: 1120ms; }
.zk-v2-gridlines__v--three { left: 78%; animation-delay: 1340ms; }
.zk-v2-gridlines__v--one::after   { animation-delay: 900ms; }
.zk-v2-gridlines__v--two::after   { animation-delay: 1120ms; }
.zk-v2-gridlines__v--three::after { animation-delay: 1340ms; }

@keyframes zkV2DrawX {
  0%   { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes zkV2DrawY {
  0%   { transform: scaleY(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.9; }
}

@keyframes zkV2Shimmer {
  0%   { opacity: 0; }
  30%  { opacity: 0.25; }
  100% { opacity: 0; }
}

.zk-v2-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* faint warm bloom — the studio accent's only appearance in the hero */
.zk-v2-heroglow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 26% 70%, hsl(var(--zk-accent) / 0.12), transparent 55%);
}

/* Rotator concludes instead of looping: three quick reads, then the line
   that holds — "We build what's missing." */
body.zk-v2 .zk-hero__rotator span {
  animation: zkV2Cycle 2s var(--ease) both;
  animation-delay: calc(var(--zk-title-index) * 2s);
  text-decoration: underline;
  text-decoration-color: hsl(var(--zk-accent) / 0.85);
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.14em;
}

body.zk-v2 .zk-hero__rotator span:last-child {
  animation: zkV2Final 0.8s var(--ease) forwards;
  animation-delay: 6s;
}

@keyframes zkV2Cycle {
  0%   { opacity: 0; transform: translateY(115%); }
  16%  { opacity: 1; transform: translateY(0); }
  84%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-115%); }
}

@keyframes zkV2Final {
  from { opacity: 0; transform: translateY(115%); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.zk-v2 .zk-hero__rotator span { animation: none; opacity: 0; }
  body.zk-v2 .zk-hero__rotator span:last-child { opacity: 1; transform: none; }
  .zk-v2-gridlines span { animation: none; transform: none; opacity: 0.75; }
  .zk-v2-gridlines span::after { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   WHO WE WORK WITH — logo band (sizes inherited from style.css / V1)
   ───────────────────────────────────────────────────────────────────────── */
body.zk-v2 .zk-v2-clients {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* bridge line — hands the logo band off to "Start with the problem." */
.zk-v2-bridge {
  max-width: 40rem;
  margin: clamp(2.75rem, 5vw, 4rem) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--gray-400);
}

/* ─────────────────────────────────────────────────────────────────────────
   SERVICES — scannable 2×2 grid
   ───────────────────────────────────────────────────────────────────────── */

body.zk-v2 .zk-v2-services { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* the "none of these fit?" note reads as a centered closing line, not a sparse row */
body.zk-v2 .zk-services__note {
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}

body.zk-v2 .zk-services__note p {
  font-size: 1.05rem;
  color: var(--gray-700);
}

body.zk-v2 .zk-services__note a {
  display: inline-flex;
  align-items: center;
  padding-bottom: 3px;
  border-bottom: 1px solid hsl(var(--zk-accent));
  font-size: 1.05rem;
  transition: border-color var(--transition), color var(--transition);
}

body.zk-v2 .zk-services__note a:hover { color: hsl(var(--zk-accent)); }

.zk-v2-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.zk-v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(15rem, 22vw, 18rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}

/* accent edge sweeps in on hover */
.zk-v2-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--zk-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.zk-v2-card:hover::before,
.zk-v2-card:focus-visible::before { transform: scaleX(1); }

.zk-v2-card:hover,
.zk-v2-card:focus-visible {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: translateY(-0.25rem);
}

.zk-v2-card__type {
  margin-bottom: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zk-v2-card h3 {
  max-width: 22rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.zk-v2-card__desc {
  max-width: 26rem;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.55;
  transition: color var(--transition);
}

.zk-v2-card:hover .zk-v2-card__desc,
.zk-v2-card:focus-visible .zk-v2-card__desc { color: var(--gray-200); }

.zk-v2-card__foot {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.zk-v2-card__foot span {
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zk-v2-card__foot b { font-size: 0.85rem; }

@media (max-width: 760px) {
  .zk-v2-services-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   PRODUCT LAB — per-product accents
   ───────────────────────────────────────────────────────────────────────── */

body.zk-v2 .zk-product-card__status { color: hsl(var(--card-accent, var(--zk-accent))); }

.zk-product-card__status--live {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.zk-product-card__status--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--card-accent, var(--zk-accent)));
}

/* each card glows faintly in its own color */
body.zk-v2 .zk-product-card__preview {
  box-shadow: inset 0 0 120px hsl(var(--card-accent, 0 0% 60%) / 0.08);
}

body.zk-v2 .zk-product-card--link:hover .zk-product-card__cta {
  border-color: hsl(var(--card-accent, var(--zk-accent)));
}

body.zk-v2 .zk-product-card--cosmiic .zk-cosmiic-flower,
body.zk-v2 .zk-product-card--cosmiic .zk-cosmiic-reading {
  color: hsl(var(--card-accent));
}

body.zk-v2 .zk-product-card--ambient .zk-ambient-wave span {
  background: hsl(var(--card-accent));
}

body.zk-v2 .zk-product-card--saft .zk-saf-t-chip {
  color: hsl(var(--card-accent));
  border-color: hsl(var(--card-accent) / 0.5);
}

body.zk-v2 .zk-product-card--strangeloop .zk-loop-subtitle {
  color: hsl(var(--card-accent));
}

/* inline CTAs read as a centered moment: accent rule, warm glow, button beneath */
body.zk-v2 .zk-inline-cta {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  border-color: #2a2a2a;
}

body.zk-v2 .zk-inline-cta--light { border-color: var(--gray-200); }

/* warm bloom from the top edge */
body.zk-v2 .zk-inline-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 90% at 50% 0%, hsl(var(--zk-accent) / 0.12), transparent 70%);
}

/* short accent rule centered on the top edge */
body.zk-v2 .zk-inline-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: hsl(var(--zk-accent));
}

body.zk-v2 .zk-inline-cta > * {
  position: relative;
  z-index: 1;
}

body.zk-v2 .zk-inline-cta__label {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
}

body.zk-v2 .zk-inline-cta__copy {
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   CLIENT BUILDS — in-development assistant panel (CSS art, no screenshot)
   ───────────────────────────────────────────────────────────────────────── */
.zk-v2-assistant {
  width: min(24rem, 92%);
  padding: 1.4rem 1.5rem 1.25rem;
  border: 1px solid rgba(10, 10, 10, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(250, 250, 250, 0.06), transparent 40%),
    var(--gray-900);
  color: var(--white);
  box-shadow: 0 1.25rem 2.75rem rgba(10, 10, 10, 0.28);
}

.zk-v2-assistant__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(250, 250, 250, 0.12);
}

.zk-v2-assistant__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--zk-accent));
}

.zk-v2-assistant__bar b {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.zk-v2-assistant__q {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.zk-v2-assistant__a {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(250, 250, 250, 0.12);
  border-radius: 0.6rem;
  background: rgba(250, 250, 250, 0.04);
}

.zk-v2-assistant__a i {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--zk-accent));
}

.zk-v2-assistant__a p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray-400);
}

.zk-v2-assistant__meta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT — two paths, one promise
   ───────────────────────────────────────────────────────────────────────── */
.zk-v2-contact .zk-section__heading { margin-bottom: 2.5rem; }

.zk-v2-contact-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 56rem;
}

.zk-v2-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: border-color var(--transition), transform var(--transition);
}

.zk-v2-path:hover,
.zk-v2-path:focus-within {
  border-color: hsl(var(--zk-accent));
  transform: translateY(-0.15rem);
}

.zk-v2-path__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.zk-v2-path__copy {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.55;
}

.zk-v2-messy { margin-top: auto; }

.zk-v2-path .zk-contact__email {
  margin-top: 0;
  font-size: clamp(20px, 2.2vw, 28px);
}

/* tighter hand-off into the footer */
body.zk-v2 #contact { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

@media (max-width: 760px) {
  .zk-v2-contact-paths { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER — wordmark anchors the bottom-left
   ───────────────────────────────────────────────────────────────────────── */
.zk-v2-footer { padding: 48px 0; }

.zk-v2-footer .zk-footer__inner { align-items: center; }

.zk-v2-footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.zk-v2-footer__left .zk-logo { font-size: 24px; }

.zk-v2-footer__left p {
  color: var(--gray-400);
  font-size: 13px;
}

.zk-v2-footer__left p span {
  font-family: var(--font-mono);
  font-size: 12px;
}
