/* ============================================================
   PK neuralnetworks — Global styles
   ============================================================ */

:root {
  /* Brand */
  --pk-sage: #a6bfc2;
  --pk-sage-deep: #6b8c90;
  --pk-sage-soft: #c9dadc;
  --pk-sage-ink: #2f4548;

  /* Surfaces — light */
  --bg: #f6f4ef;
  --bg-card: #ffffff;
  --bg-elev: #fbfaf6;
  --ink: #131a1c;
  --ink-2: #4a5558;
  --ink-3: #7c878a;
  --line: rgba(19, 26, 28, 0.08);
  --line-strong: rgba(19, 26, 28, 0.16);

  /* Surfaces — dark */
  --bg-dark: #0c1112;
  --bg-dark-2: #131a1c;
  --ink-dark: #ecefef;
  --ink-dark-2: #a8b3b4;
  --ink-dark-3: #6c7779;
  --line-dark: rgba(236, 239, 239, 0.1);
  --line-dark-strong: rgba(236, 239, 239, 0.18);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--pk-sage);
  color: #0c1112;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(880px, calc(100% - 48px));
  margin-inline: auto;
}

section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pk-sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.dark .eyebrow {
  color: var(--pk-sage);
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7.4vw, 108px);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}

.dark .lede {
  color: var(--ink-dark-2);
}

/* ============================================================
   Liquid Glass Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(960px, calc(100% - 32px));
}

/* Outer wrapper — soft drop shadow only, separated from the glass surface */
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(19, 26, 28, 0.08),
    0 10px 30px -10px rgba(19, 26, 28, 0.18),
    0 2px 6px -2px rgba(19, 26, 28, 0.08);
  transition: background 0.5s var(--ease);
}

/* Soft bottom refraction — no top sheen, no white rim */
.nav-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.18) 100%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

.nav-inner > * { position: relative; z-index: 2; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 14px;
  padding-right: 4px;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: -4px 0;
}

.nav-brand small {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  margin-left: 2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 450;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0.85;
}

.nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 450;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 2px rgba(19, 26, 28, 0.18);
}

.nav-cta:hover {
  background: var(--pk-sage-ink);
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  margin-left: auto;
  background: rgba(19, 26, 28, 0.05);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-menu-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile */
@media (max-width: 820px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
  .nav.open .nav-mobile {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(19, 26, 28, 0.08);
  border-radius: 22px;
  box-shadow:
    0 12px 40px -8px rgba(19, 26, 28, 0.18),
    0 2px 8px -2px rgba(19, 26, 28, 0.08);
}

.nav-mobile a,
.nav-mobile button {
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.nav-mobile a:hover,
.nav-mobile button:hover {
  background: rgba(19, 26, 28, 0.05);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--pk-sage-ink);
}

.btn-accent {
  background: var(--pk-sage);
  color: var(--pk-sage-ink);
}
.btn-accent:hover {
  background: var(--pk-sage-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(19, 26, 28, 0.04);
  border-color: var(--line-strong);
}

.dark .btn-ghost {
  color: var(--ink-dark);
  border-color: var(--line-dark-strong);
}
.dark .btn-ghost:hover {
  background: rgba(236, 239, 239, 0.06);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   Hero (homepage)
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 strong {
  font-weight: 500;
  color: var(--pk-sage-deep);
  font-style: italic;
  font-family: "Geist", serif;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Decorative ambient blobs behind hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.hero-blob.a {
  width: 520px;
  height: 520px;
  background: var(--pk-sage);
  top: -120px;
  right: -120px;
  opacity: 0.5;
}

.hero-blob.b {
  width: 380px;
  height: 380px;
  background: #d8c8b4;
  bottom: -80px;
  left: -60px;
  opacity: 0.45;
}

/* ============================================================
   Hero variants (toggled via Tweaks)
   ============================================================ */

/* Variant: statement — phones hidden, single column, huge headline */
.hero[data-variant="statement"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero[data-variant="statement"] .phone-stack {
  display: none;
}
.hero[data-variant="statement"] h1 {
  font-size: clamp(64px, 11vw, 168px);
  letter-spacing: -0.045em;
  max-width: 16ch;
}
.hero[data-variant="statement"] .lede {
  margin-inline: auto;
}
.hero[data-variant="statement"] .hero-cta {
  justify-content: center;
}
.hero[data-variant="statement"] .eyebrow {
  margin-inline: auto;
}

/* Variant: ambient — phones hidden, centered, extra glow blobs */
.hero[data-variant="ambient"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero[data-variant="ambient"] .phone-stack {
  display: none;
}
.hero[data-variant="ambient"] h1 {
  font-size: clamp(56px, 8.5vw, 132px);
  max-width: 18ch;
}
.hero[data-variant="ambient"] .lede {
  margin-inline: auto;
}
.hero[data-variant="ambient"] .hero-cta {
  justify-content: center;
}
.hero[data-variant="ambient"] .eyebrow {
  margin-inline: auto;
}
.hero[data-variant="ambient"] .hero-blob.a {
  width: 720px;
  height: 720px;
  top: -200px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.55;
  filter: blur(110px);
}
.hero[data-variant="ambient"] .hero-blob.b {
  width: 520px;
  height: 520px;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
  filter: blur(120px);
}
/* Extra third blob for ambient */
.hero[data-variant="ambient"] .hero-bg::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--pk-sage);
  filter: blur(100px);
  opacity: 0.3;
  top: 40%;
  right: 8%;
}

/* ============================================================
   Phone mockup (hero visual + content page)
   ============================================================ */

.phone-stack {
  position: relative;
  display: grid;
  place-items: center;
  height: 560px;
}

.phone {
  position: absolute;
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1a2225 0%, #0c1112 100%);
  padding: 12px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(19, 26, 28, 0.4),
    0 10px 30px -10px rgba(19, 26, 28, 0.2);
  transition: transform 0.5s var(--ease);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #0c1112;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

.phone.left {
  transform: translateX(-110px) rotate(-6deg) scale(0.85);
  z-index: 1;
  opacity: 0.85;
}
.phone.right {
  transform: translateX(110px) rotate(6deg) scale(0.85);
  z-index: 1;
  opacity: 0.85;
}
.phone.center {
  z-index: 3;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Reel/feed inside phone */
.feed {
  height: 100%;
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #1d2a2c 0%, #0c1112 60%);
}

.feed .tile {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pk-sage-deep), var(--pk-sage));
}

.feed-top-bar {
  position: absolute;
  top: 44px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.feed-card {
  position: absolute;
  top: 80px;
  left: 14px;
  right: 14px;
  bottom: 70px;
  border-radius: 22px;
  background: #0f1719;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.feed-card .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pk-sage), #d8c8b4);
}

.feed-card .body {
  flex: 1;
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(166, 191, 194, 0.55), transparent 60%),
    radial-gradient(120% 80% at 90% 90%, rgba(216, 200, 180, 0.45), transparent 60%),
    #1a2426;
  position: relative;
  overflow: hidden;
}

.feed-card .body::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -8deg,
    rgba(255, 255, 255, 0.06) 0 14px,
    rgba(255, 255, 255, 0) 14px 28px
  );
}

.feed-card .body .center-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
}

.feed-card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c8d0d1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.feed-card .meta .dot {
  width: 4px;
  height: 4px;
  background: var(--pk-sage);
  border-radius: 999px;
}

.feed-tabbar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  height: 44px;
  align-items: center;
}

.feed-tabbar .tab {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.feed-tabbar .tab.on {
  background: var(--pk-sage);
}

/* ============================================================
   Service cards (homepage)
   ============================================================ */

.services {
  background: var(--bg-dark);
  color: var(--ink-dark);
  position: relative;
  overflow: hidden;
}

.dark {
  background: var(--bg-dark);
  color: var(--ink-dark);
}

.services-header {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}

@media (max-width: 820px) {
  .services-header {
    grid-template-columns: 1fr;
  }
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 820px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

.svc-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, #161e20 0%, #10171a 100%);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 460px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--pk-sage-deep);
}

.svc-card h3 {
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.svc-card p {
  color: var(--ink-dark-2);
  max-width: 42ch;
}

.svc-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--pk-sage);
}

.svc-card .visual {
  margin-top: auto;
  position: relative;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #0a0f10;
}

.svc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-dark-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.svc-card .arrow-box {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(166, 191, 194, 0.15);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease);
}
.svc-card:hover .arrow-box {
  background: var(--pk-sage);
  color: var(--bg-dark);
}

/* Visual A: layered window for webdesign */
.viz-window {
  position: absolute;
  inset: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2426 0%, #11181a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.viz-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.viz-window .dots {
  position: absolute;
  top: 7px;
  left: 10px;
  display: flex;
  gap: 5px;
}
.viz-window .dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.viz-window .dots span:nth-child(1) { background: #f0a787; }
.viz-window .dots span:nth-child(2) { background: #e6c47a; }
.viz-window .dots span:nth-child(3) { background: var(--pk-sage); }
.viz-window .blocks {
  position: absolute;
  top: 38px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.viz-window .blocks .row {
  display: flex;
  gap: 8px;
}
.viz-window .blocks .r {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 10px;
  flex: 1;
}
.viz-window .blocks .r.short { flex: 0 0 28%; }
.viz-window .blocks .r.sage { background: var(--pk-sage); opacity: 0.7; }
.viz-window .blocks .big {
  flex: 1;
  background: linear-gradient(135deg, rgba(166, 191, 194, 0.4), rgba(166, 191, 194, 0.05));
  border-radius: 8px;
  border: 1px solid rgba(166, 191, 194, 0.2);
}

/* Visual B: stacked content tiles */
.viz-tiles {
  position: absolute;
  inset: 16px;
  display: flex;
  gap: 8px;
}
.viz-tiles .tile {
  flex: 1;
  border-radius: 12px;
  background: #14191b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.viz-tiles .tile::before {
  content: "";
  position: absolute;
  inset: 0;
}
.viz-tiles .tile:nth-child(1)::before {
  background:
    radial-gradient(100% 80% at 30% 30%, rgba(166, 191, 194, 0.45), transparent 60%),
    repeating-linear-gradient(-8deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px);
}
.viz-tiles .tile:nth-child(2)::before {
  background:
    radial-gradient(80% 60% at 70% 80%, rgba(216, 200, 180, 0.35), transparent 60%),
    repeating-linear-gradient(8deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px);
}
.viz-tiles .tile:nth-child(3)::before {
  background:
    radial-gradient(100% 80% at 50% 50%, rgba(166, 191, 194, 0.25), transparent 60%),
    repeating-linear-gradient(-16deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px);
}
.viz-tiles .tile span {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Process / How-we-work
   ============================================================ */

.process {
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.process-step {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.process-step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--pk-sage-deep);
}

.process-step h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

.process-step p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================================
   Portfolio (homepage teaser + portfolio page)
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2729 0%, #0e1415 100%);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink-dark);
  text-decoration: none;
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pk-sage);
}

.work-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  margin-top: 8px;
}

.work-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dark-2);
  letter-spacing: 0.05em;
}

.work-card.span-3 { grid-column: span 3; }
.work-card.span-2 { grid-column: span 2; }
.work-card.span-4 { grid-column: span 4; }

@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card.span-3,
  .work-card.span-2,
  .work-card.span-4 { grid-column: span 2; }
}

.work-card .preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}
.work-card > * { position: relative; z-index: 1; }

.work-card .preview.a {
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(166, 191, 194, 0.6), transparent 60%),
    radial-gradient(80% 60% at 90% 90%, rgba(216, 200, 180, 0.4), transparent 60%),
    repeating-linear-gradient(-12deg, rgba(255,255,255,0.03) 0 16px, transparent 16px 32px);
}
.work-card .preview.b {
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(216, 200, 180, 0.5), transparent 60%),
    radial-gradient(80% 60% at 30% 90%, rgba(166, 191, 194, 0.4), transparent 60%);
}
.work-card .preview.c {
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(166, 191, 194, 0.4), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px);
}
.work-card .preview.d {
  background:
    radial-gradient(80% 80% at 60% 60%, rgba(216, 200, 180, 0.4), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px);
}
.work-card .preview.e {
  background:
    radial-gradient(80% 60% at 20% 80%, rgba(166, 191, 194, 0.5), transparent 60%);
}

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--bg);
}

.cta-card {
  background: var(--bg-dark);
  color: var(--ink-dark);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 820px) {
  .cta-card { grid-template-columns: 1fr; }
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--pk-sage);
  filter: blur(120px);
  opacity: 0.35;
  right: -100px;
  top: -200px;
}

.cta-card > * { position: relative; }

.cta-card h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.cta-card .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 821px) {
  .cta-card .actions { align-items: flex-end; }
}

/* ============================================================
   Footer
   ============================================================ */

footer.foot {
  background: var(--bg-dark);
  color: var(--ink-dark);
  padding: 80px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.foot-brand img {
  width: 36px;
  filter: brightness(1.2);
}

.foot-brand p {
  color: var(--ink-dark-2);
  font-size: 14px;
}

.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dark-3);
  margin: 0 0 18px 0;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a,
.foot-col button {
  color: var(--ink-dark);
  text-decoration: none;
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.foot-col a:hover,
.foot-col button:hover {
  color: var(--pk-sage);
}

.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-dark-3);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--pk-sage); }

/* ============================================================
   Subpage hero
   ============================================================ */

.subhero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.subhero h1 {
  font-size: clamp(48px, 6.5vw, 96px);
  max-width: 14ch;
}

.subhero .lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 22px);
}

/* ============================================================
   Feature lists
   ============================================================ */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 820px) {
  .feat-grid { grid-template-columns: 1fr; }
}

.feat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.dark .feat {
  background: #141b1d;
  border-color: var(--line-dark);
}

.feat .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pk-sage), var(--pk-sage-soft));
  display: grid;
  place-items: center;
  color: var(--pk-sage-ink);
}

.dark .feat .icon {
  background: rgba(166, 191, 194, 0.15);
  color: var(--pk-sage);
}

.feat h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

.feat p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.dark .feat p {
  color: var(--ink-dark-2);
}

/* ============================================================
   Two-up section
   ============================================================ */

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 820px) {
  .two-up { grid-template-columns: 1fr; }
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bullet-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.dark .bullet-list li { color: var(--ink-dark-2); }

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pk-sage-deep);
  margin-top: 9px;
  margin-left: 8px;
}

.dark .bullet-list li::before { background: var(--pk-sage); }

/* ============================================================
   Document pages (Impressum, Datenschutz)
   ============================================================ */

.doc {
  padding: clamp(120px, 16vw, 180px) 0 80px;
}

.doc h1 {
  font-size: clamp(40px, 5vw, 72px);
  margin-bottom: 48px;
}

.doc h2 {
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 40px 0 12px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 24px 0 8px;
}

.doc p,
.doc address {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  font-style: normal;
  margin: 0 0 12px;
}

.doc address {
  white-space: pre-line;
}

.doc .placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 32px;
  background: var(--bg-elev);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 32px;
}

/* Generator content (privacy policy) — lists, tables, links, code */
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--pk-sage-deep);
}

.doc a {
  color: var(--pk-sage-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 140, 144, 0.3);
  transition: border-color 0.2s var(--ease);
  word-break: break-word;
}

.doc a:hover {
  border-bottom-color: var(--pk-sage-deep);
}

.doc strong {
  color: var(--ink);
  font-weight: 500;
}

/* Summary boxes from the generator render as bordered tables —
   re-skin them into clean callout cards */
.doc table {
  width: 100%;
  border-collapse: collapse;
  border: 0 !important;
  margin: 8px 0 28px;
  background: var(--bg-elev);
  border-radius: 16px;
  overflow: hidden;
}

.doc table td,
.doc table th {
  border: 0 !important;
  padding: 24px !important;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  vertical-align: top;
}

.doc table strong {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pk-sage-deep);
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Add comfortable rhythm between generator H2 sections */
.doc h2 {
  margin-top: 52px;
  padding-top: 8px;
}

.doc h2:first-of-type {
  margin-top: 40px;
}

/* ============================================================
   Contact Modal
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 17, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.4s var(--ease);
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(19, 26, 28, 0.05);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}

.modal-close:hover {
  background: rgba(19, 26, 28, 0.1);
}

.modal h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.modal p.lede {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--pk-sage-deep);
  background: #fff;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row small {
  color: var(--ink-3);
  font-size: 12px;
}

.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}

.form-msg.ok {
  display: block;
  background: rgba(166, 191, 194, 0.2);
  color: var(--pk-sage-ink);
  border: 1px solid rgba(166, 191, 194, 0.5);
}

.form-msg.err {
  display: block;
  background: rgba(220, 100, 80, 0.1);
  color: #b14a3a;
  border: 1px solid rgba(220, 100, 80, 0.3);
}

/* ============================================================
   Tweaks panel (vanilla)
   ============================================================ */

#tweaks-toggle-hint {
  display: none;
}

.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  z-index: 150;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(19, 26, 28, 0.2);
  display: none;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}

.tweaks.show { display: flex; }

.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweaks-head strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tweaks-head button {
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(19, 26, 28, 0.06);
  border-radius: 999px;
  cursor: pointer;
}

.tweaks .row { display: flex; flex-direction: column; gap: 6px; }
.tweaks .row label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tweaks .swatches {
  display: flex;
  gap: 6px;
}
.tweaks .swatches button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.tweaks .swatches button.on {
  border-color: var(--ink);
}

.tweaks select,
.tweaks input[type="range"] {
  width: 100%;
}

/* ============================================================
   Logo strip / Stats
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  padding: 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

@media (max-width: 820px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

.stat .n {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .l {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.dark .stat { border-color: var(--line-dark); }
.dark .stat .l { color: var(--ink-dark-2); }

/* ============================================================
   FAQ / Accordion-ish (Webdesign page)
   ============================================================ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }

.tier {
  border-radius: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
}

.tier.featured {
  background: var(--bg-dark);
  color: var(--ink-dark);
  border-color: var(--bg-dark);
}

.tier .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tier.featured .name { color: var(--pk-sage); }

.tier .price {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.tier .price small {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0;
  font-weight: 400;
}
.tier.featured .price small { color: var(--ink-dark-3); }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.tier ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  color: var(--ink-2);
}
.tier.featured ul li { color: var(--ink-dark-2); }

.tier ul li::before {
  content: "✓";
  color: var(--pk-sage-deep);
  font-weight: 600;
}
.tier.featured ul li::before { color: var(--pk-sage); }

.tier .tier-cta { margin-top: auto; }

/* ============================================================
   Cookie-Consent-Banner (consent.js)
   ============================================================ */
.pknn-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  /* WICHTIG: opacity NICHT animieren — manche Engines frieren Transitions/
     Animationen ein und ließen das Banner sonst unsichtbar (opacity 0). Nur
     der Transform-Slide ist animiert; selbst eingefroren bleibt es sichtbar. */
  transition: transform 0.35s var(--ease);
}
.pknn-cookie.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Auf LP/Sitelink-Seiten mit mobilem Sticky-CTA das Banner darüber setzen */
@media (max-width: 940px) {
  .lp-has-sticky .pknn-cookie { bottom: 86px; }
}
.pknn-cookie-inner {
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 0 0.5px rgba(19, 26, 28, 0.08),
    0 24px 60px -18px rgba(19, 26, 28, 0.32);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (max-width: 720px) {
  .pknn-cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
}
.pknn-cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pknn-cookie-text strong { color: var(--ink); font-weight: 500; }
.pknn-cookie-text a {
  color: var(--pk-sage-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 140, 144, 0.35);
}
.pknn-cookie-text a:hover { border-bottom-color: var(--pk-sage-deep); }
.pknn-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .pknn-cookie-actions { justify-content: stretch; }
  .pknn-cookie-actions .pknn-cookie-btn { flex: 1; }
}
.pknn-cookie-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.pknn-cookie-btn:hover { transform: translateY(-1px); }
.pknn-cookie-btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.pknn-cookie-btn.ghost:hover { background: rgba(19, 26, 28, 0.04); }
.pknn-cookie-btn.solid {
  background: var(--pk-sage-deep);
  color: #fff;
}
.pknn-cookie-btn.solid:hover { background: var(--pk-sage-ink); }

/* dezenter Footer-Trigger „Cookie-Einstellungen“ */
.pknn-cookie-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

