/*
Theme Name: Patrick Neukirchen
Version: 2.1.0
Description: Vollständig bearbeitbare Website im vorhandenen Design.
Requires PHP: 8.1
*/
:root {
  --bg: #000;
  --panel: #0b0b0b;
  --panel-strong: #111;
  --text: #fff;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #fff;
  --accent-2: #fff;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: default;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.binary-trail {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.binary-particle {
  position: fixed;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.26);
  transform: translate3d(var(--x), var(--y), 0);
  animation: binary-fade 720ms ease-out forwards;
}
.page-shell {
  min-height: 100vh;
}

.download-entry-link {
  position: absolute;
  top: clamp(18px, 4vw, 34px);
  right: clamp(20px, 5vw, 72px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #000;
  background: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease;
}

.download-entry-link:hover,
.download-entry-link:focus-visible {
  transform: translateY(-2px);
  background: #e9e9e9;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  min-height: 92vh;
  padding: clamp(28px, 6vw, 80px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(28px, 6vw, 80px);
  right: clamp(28px, 6vw, 80px);
  bottom: 0;
  height: 1px;
  background: var(--line);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62vw, 520px);
  perspective: 900px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(52vw, 430px);
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: rotate(0deg);
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(56vw, 460px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
  opacity: 0.65;
  pointer-events: none;
}

.brand-frame,
.portrait-frame {
  position: relative;
  width: min(44vw, 360px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 999px;
  transform-style: preserve-3d;
  transition: transform 260ms ease, filter 260ms ease;
  animation: settle 900ms ease both;
}

.brand-frame::after,
.portrait-frame::after {
  content: none;
}

.brand-frame.is-active,
.portrait-frame.is-active {
  filter: contrast(1.18);
}

.brand-frame img,
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  filter: grayscale(1) contrast(1.08) drop-shadow(0 26px 44px var(--shadow));
  transform: translateZ(24px);
}

.brand-frame img {
  border: 0;
  filter: drop-shadow(0 26px 44px var(--shadow));
}

.hero-content {
  max-width: 720px;
  animation: rise 800ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button span {
  position: relative;
  z-index: 1;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-18deg) translateX(-140%);
  transition: transform 520ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.button:hover::after,
.button:focus-visible::after {
  transform: skewX(-18deg) translateX(520%);
}

.button.primary {
  background: var(--text);
  color: #000;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.button.secondary span {
  color: #fff;
}

.profile-section {
  padding: clamp(42px, 8vw, 100px) clamp(28px, 6vw, 80px);
}

.about-section {
  padding: clamp(42px, 8vw, 100px) clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.tool-type {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-warning {
  margin-bottom: 0;
  color: var(--text) !important;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(300px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-image {
  display: grid;
  place-items: center;
}

.about-image img {
  width: min(36vw, 260px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.92);
  filter: grayscale(1) contrast(1.08);
}

.about-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.about-copy p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.client-strip {
  padding: 30px clamp(22px, 6vw, 86px) 26px;
  background: #070707;
  border-top: 1px solid var(--line);
}

.client-strip-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.client-strip-label {
  margin: 0 0 20px;
  color: #777;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.client-logos {
  overflow: hidden;
}

.client-logo-track {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 8vw, 88px);
}

.client-logo-group[aria-hidden="true"] { display: none; }

.client-logo-card {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 4px;
  color: #fff;
  text-decoration: none;
  border: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.client-logo-card:hover,
.client-logo-card:focus-visible {
  transform: translateY(-4px);
  opacity: 1;
}

.client-logo-card:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.client-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
  filter: grayscale(1) saturate(0) contrast(1.08);
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.client-logo-card:hover .client-logo,
.client-logo-card:focus-visible .client-logo { opacity: 1; }
.client-logo--wide { width: min(240px, 100%); }
.client-logo--compact { max-width: 105px; }

.site-footer {
  display: flex;
  justify-content: center;
  padding: 30px clamp(28px, 6vw, 80px) 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.legal-content a,
.back-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  opacity: 1;
}

.legal-content a:hover,
.legal-content a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(28px, 6vw, 80px);
}

.downloads-page {
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  margin-bottom: clamp(36px, 7vw, 72px);
  color: var(--muted);
  font-weight: 700;
}

.downloads-page .back-link {
  margin: clamp(28px, 6vw, 80px) clamp(28px, 6vw, 80px) 0;
}

.downloads-hero {
  padding: clamp(42px, 7vw, 86px) clamp(28px, 6vw, 80px) clamp(36px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}

.downloads-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
}

.downloads-list {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(38px, 7vw, 88px) clamp(28px, 6vw, 80px);
}

.download-tool {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  max-width: 1060px;
  min-height: 260px;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 720ms ease;
}

.download-tool:hover::before {
  transform: translateX(120%);
}

.download-icon-button,
.download-tool-content {
  position: relative;
  z-index: 1;
}

.download-icon-button {
  display: grid;
  gap: 10px;
  place-items: center;
  width: 132px;
  min-height: 154px;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.download-icon-button:hover,
.download-icon-button:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.download-icon-button img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.download-icon-button span {
  color: #000;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-tool h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

.download-tool p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.download-meta span {
  padding: 7px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.download-links a:hover,
.download-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
}

.legal-content {
  max-width: 860px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.legal-content h1 {
  margin-bottom: clamp(34px, 6vw, 58px);
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.legal-content section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.legal-content p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  hyphens: auto;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.profile-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-copy p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.info-grid {
  display: grid;
  gap: 10px;
}

.info-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.info-card:hover::before {
  transform: translateX(120%);
}

.info-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card strong {
  text-align: right;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

@keyframes drift {
  from {
    transform: translate3d(-8px, 8px, 0) scale(1);
  }
  to {
    transform: translate3d(8px, -8px, 0) scale(1.03);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(0.94) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

body.effects-ready .reveal,
body.effects-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-item:nth-child(2).is-visible {
  transition-delay: 100ms;
}

.reveal-item:nth-child(3).is-visible {
  transition-delay: 200ms;
}

body.is-clicking .brand-frame,
body.is-clicking .portrait-frame {
  transform: scale(0.985) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@keyframes binary-fade {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) scale(0.9);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(1.08);
  }
}

@media (max-width: 820px) {
  .legal-page {
    padding: 26px 18px 44px;
  }

  .legal-content {
    width: 100%;
    max-width: 100%;
  }

  .legal-content h1 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
    line-height: 1;
  }

  .legal-content h2 {
    font-size: clamp(1.25rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .legal-content p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero,
  .section-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    gap: 34px;
  }

  .hero-visual {
    order: -1;
    min-height: 205px;
  }

  .hero-visual::before {
    width: min(58vw, 245px);
    border-width: 4px;
  }

  .hero-visual::after {
    width: min(62vw, 265px);
  }

  .hero-visual img {
    width: 100%;
  }

  .brand-frame,
  .portrait-frame {
    width: min(54vw, 220px);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .download-entry-link {
    position: relative;
    top: auto;
    right: auto;
    margin: 18px 18px 0 auto;
    width: max-content;
  }

  .download-tool {
    grid-template-columns: 1fr;
  }

  .download-icon-button {
    width: 108px;
  }

  .download-icon-button img {
    width: 76px;
    height: 76px;
  }

  .about-image {
    justify-content: start;
  }

  .about-image img {
    width: min(58vw, 220px);
  }

  .info-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-card strong {
    text-align: left;
  }

  .binary-trail {
    display: none;
  }
}

/* Kontaktassistent */
.assistant-launcher {
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 9px;
  color: #fff;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  backdrop-filter: blur(16px);
  animation: assistant-nudge 7s ease-in-out infinite;
}

.assistant-launcher:hover,
.assistant-launcher:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
  animation-play-state: paused;
}

.assistant-launcher:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.assistant-launcher-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: #000;
}

.assistant-launcher-logo img { width: 100%; height: 100%; object-fit: cover; }
.assistant-launcher-copy { display: grid; gap: 1px; text-align: left; }
.assistant-launcher-copy small { color: #aaa; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.assistant-launcher-copy strong { font-size: 0.92rem; }

@keyframes assistant-nudge {
  0%, 82%, 100% { transform: translateY(0); }
  87% { transform: translateY(-7px); }
  91% { transform: translateY(2px); }
  95% { transform: translateY(-3px); }
}

.contact-assistant {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  color: #161616;
  background: #f6f5f1;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.66);
}

.contact-assistant::backdrop { background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(8px); }
.contact-assistant[open] { animation: assistant-enter 180ms ease-out both; }
@keyframes assistant-enter { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.assistant-shell { display: flex; min-height: min(690px, calc(100vh - 32px)); flex-direction: column; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid #dddcd7; }
.assistant-brand { display: flex; align-items: center; gap: 14px; }
.assistant-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #000; }
.assistant-brand div { display: grid; gap: 3px; }
.assistant-brand span { color: #727272; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.assistant-brand strong { font-size: clamp(1rem, 2.5vw, 1.32rem); }
.assistant-close { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #333; background: transparent; border: 1px solid #d5d4ce; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.assistant-close:hover { color: #fff; background: #111; border-color: #111; }

.assistant-progress { height: 4px; overflow: hidden; background: #e1e0da; }
.assistant-progress span { display: block; width: 14.285%; height: 100%; background: #111; transition: width 220ms ease; }
.assistant-step-count { margin: 16px 28px 0; color: #747474; font-size: 0.76rem; font-weight: 700; }
.assistant-content { min-height: 0; flex: 1; overflow: auto; padding: 14px 28px 26px; }
.assistant-step { display: none; }
.assistant-step.is-active { display: block; animation: assistant-step-in 180ms ease both; }
@keyframes assistant-step-in { from { opacity: 0; transform: translateX(8px); } }
.assistant-step .section-kicker { margin-bottom: 8px; color: #666; }
.assistant-step h3 { margin: 0 0 24px; font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.12; letter-spacing: -0.035em; }

.assistant-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.assistant-options label { position: relative; cursor: pointer; }
.assistant-options input { position: absolute; opacity: 0; pointer-events: none; }
.assistant-options label > span { display: flex; min-height: 54px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid #d8d7d1; border-radius: 12px; font-weight: 750; transition: 150ms ease; }
.assistant-options--cards label > span { min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: center; }
.assistant-options label > span small { margin-top: 4px; color: #797979; font-size: 0.75rem; font-weight: 500; line-height: 1.35; }
.assistant-options input:checked + span { color: #fff; background: #111; border-color: #111; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.assistant-options input:checked + span small { color: #c8c8c8; }
.assistant-options input:focus-visible + span { outline: 2px solid #111; outline-offset: 3px; }

.assistant-field { display: grid; gap: 8px; margin-top: 16px; }
.assistant-field > span { color: #555; font-size: 0.76rem; font-weight: 750; }
.assistant-field input,
.assistant-field textarea { width: 100%; padding: 14px 15px; color: #161616; background: #fff; border: 1px solid #d1d0ca; border-radius: 11px; font: inherit; resize: vertical; }
.assistant-field input:focus,
.assistant-field textarea:focus { outline: 2px solid #111; outline-offset: 2px; }
.assistant-character-hint { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: #777; font-size: 0.74rem; }
.assistant-character-hint strong { color: #9d2b2b; font-weight: 800; }
.assistant-character-hint.is-complete strong { color: #246d42; }
.assistant-field--short { max-width: 250px; }
.assistant-count-choice { display: flex; align-items: flex-end; gap: 18px; margin-top: 6px; }
.assistant-count-choice .assistant-toggle { min-height: 49px; align-items: center; margin: 16px 0 0; padding: 10px 14px; background: #fff; border: 1px solid #d1d0ca; border-radius: 11px; }
.assistant-count-choice .assistant-toggle input { margin-top: 0; }
.assistant-choice-divider { padding-bottom: 15px; color: #888; font-size: 0.75rem; font-weight: 750; text-transform: uppercase; }
.assistant-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #424242; font-size: 0.85rem; line-height: 1.5; cursor: pointer; }
.assistant-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: #111; }
.assistant-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.assistant-summary { margin-top: 22px; padding: 16px 18px; background: #eae9e4; border-radius: 12px; font-size: 0.82rem; line-height: 1.55; }
.assistant-summary strong { display: block; margin-bottom: 7px; color: #111; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.assistant-summary dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; margin: 0; }
.assistant-summary dt { color: #747474; }
.assistant-summary dd { margin: 0; font-weight: 650; }
.assistant-consent { padding-top: 4px; }
.assistant-consent a { color: inherit; }
.assistant-mail-note { margin: 12px 0 0 28px; color: #777; font-size: 0.72rem; line-height: 1.45; }

.assistant-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 24px; background: #eeede8; border-top: 1px solid #d9d8d2; }
.assistant-action-buttons { display: flex; justify-content: flex-end; gap: 12px; }
.assistant-validation { min-height: 20px; margin: 0; color: #a92727; font-size: 0.78rem; font-weight: 750; line-height: 1.35; }
.assistant-actions .button { min-width: 112px; cursor: pointer; }
.assistant-back { color: #222; background: transparent; border: 1px solid #c9c8c2; }
.assistant-back[hidden], .assistant-next[hidden], .assistant-submit[hidden] { display: none; }
.assistant-submit { display: none; }
.assistant-submit.is-visible { display: inline-flex; }

body.assistant-open { overflow: hidden; }

.assistant-success { min-height: min(690px, calc(100vh - 32px)); padding: clamp(34px, 8vw, 76px); text-align: center; place-content: center; }
.assistant-success:not([hidden]) { display: grid; justify-items: center; }
.assistant-success-mark { display: grid; width: 74px; height: 74px; margin-bottom: 26px; place-items: center; color: #fff; background: #111; border-radius: 50%; font-size: 2rem; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22); }
.assistant-success h3 { max-width: 550px; margin: 4px 0 18px; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.04em; }
.assistant-success > p:not(.section-kicker) { max-width: 560px; margin: 0 0 28px; color: #5d5d5d; line-height: 1.7; }

@media (max-width: 620px) {
  .client-strip { padding-inline: 0; }
  .client-strip-label { padding-inline: 22px; }
  .client-logo-track { width: max-content; justify-content: flex-start; gap: 28px; }
  .client-logo-track.is-ready { animation: client-logo-marquee 28s linear infinite; }
  .client-logo-track:hover,
  .client-logo-track:focus-within { animation-play-state: paused; }
  .client-logo-group { gap: 28px; }
  .client-logo-group[aria-hidden="true"] { display: flex; }
  .client-logo-card { min-height: 62px; }
  .client-logo--wide { width: min(190px, 58vw); }
  .client-logo--compact { max-width: 78px; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .assistant-launcher { right: 14px; bottom: 14px; padding-right: 14px; }
  .assistant-launcher-copy small { display: none; }
  .contact-assistant {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    border: 1px solid #d2d0ca;
    border-radius: 17px;
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
  .assistant-shell { height: 100%; min-height: 0; }
  .assistant-header,
  .assistant-progress,
  .assistant-step-count,
  .assistant-actions { flex: 0 0 auto; }
  .assistant-header { padding: 14px 16px; }
  .assistant-brand img { width: 42px; height: 42px; }
  .assistant-content { padding: 12px 18px 22px; }
  .assistant-step-count { margin-left: 18px; }
  .assistant-options, .assistant-contact-grid { grid-template-columns: 1fr; }
  .assistant-count-choice { display: grid; gap: 2px; }
  .assistant-choice-divider { padding: 0; text-align: center; }
  .assistant-field--short { max-width: none; }
  .assistant-options label > span, .assistant-options--cards label > span { min-height: 54px; }
  .assistant-summary dl { grid-template-columns: 1fr; gap: 1px; }
  .assistant-summary dd { margin-bottom: 7px; }
  .assistant-actions { grid-template-columns: 1fr; padding: 12px 16px 14px; }
  .assistant-action-buttons { justify-content: space-between; }
  .assistant-actions .button { min-width: 0; padding-inline: 16px; }
  .assistant-success { min-height: 0; height: 100%; overflow-y: auto; padding: 28px 22px; }
}

@keyframes client-logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 14px)); }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-launcher { animation: none; }
  .contact-assistant[open], .assistant-step.is-active { animation: none; }
  .client-logo-track.is-ready { animation: none; }
  .client-logo-group[aria-hidden="true"] { display: none; }
  .client-logos { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.reference-button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.reference-button:hover {
  color: #000;
  background: #fff;
}

.reference-section {
  padding: clamp(74px, 10vw, 132px) clamp(22px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.075), transparent 28%),
    #070707;
}

.reference-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.reference-copy {
  max-width: none;
}

.reference-copy--current {
  padding-bottom: clamp(42px, 7vw, 74px);
}

.reference-copy--parallel {
  padding: clamp(36px, 6vw, 70px) 0 clamp(42px, 7vw, 74px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.reference-project-divider {
  height: 1px;
  margin: 0 0 clamp(54px, 8vw, 92px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

body.effects-ready .reference-copy,
body.effects-ready .project-slideshow {
  opacity: 1;
  transform: none;
}

.reference-copy h2 {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.reference-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.reference-header--current {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
}

.reference-intro {
  min-width: 0;
}

.reference-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 18px 18px 16px;
  min-height: 238px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #151c1a, #0b0f0e);
  border: 1px solid rgba(215, 226, 217, 0.28);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.reference-client:hover,
.reference-client:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.reference-client:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.reference-client-label {
  align-self: flex-start;
  color: #b8c5bd;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reference-client-logo {
  display: grid;
  width: 100%;
  min-height: 142px;
  place-items: center;
  padding: 6px;
}

.reference-client-logo img {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
}

.reference-client-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  padding-top: 12px;
  color: #eef4ef;
  border-top: 1px solid rgba(238, 244, 239, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
}

.reference-client-logo--wide {
  min-height: 142px;
  padding: 6px 0;
}

.reference-client-logo--wide img {
  max-width: 350px;
}

.reference-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.project-features li {
  position: relative;
  padding-left: 22px;
  color: #e7e7e7;
  line-height: 1.55;
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  transform: rotate(45deg);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfcfcf;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-slideshow {
  position: relative;
  margin-top: 52px;
  padding: 12px 12px 48px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.slides-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #121212;
}

.project-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 420ms ease, transform 520ms ease, visibility 420ms;
}

.project-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.project-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.project-slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.slide-control {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #000;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.slide-control:hover { background: #fff; transform: scale(1.05); }
.slide-control.previous { left: 28px; }
.slide-control.next { right: 28px; }

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slide-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #555;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.current-project-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  margin: clamp(34px, 6vw, 66px) 0 0;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(145deg, #141414, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.current-project-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  background: #181818;
}

.current-project-preview figcaption {
  color: #bdbdbd;
  font-size: 0.92rem;
  line-height: 1.65;
}

.slide-dot.is-active { width: 24px; background: #fff; }

.privacy-note {
  position: absolute;
  right: 18px;
  bottom: 16px;
  margin: 0;
  color: #8f8f8f;
  font-size: 0.7rem;
}

@media (max-width: 820px) {
  .reference-header { grid-template-columns: 1fr; }
  .reference-header--current { grid-template-columns: 1fr; }
  .reference-client { width: min(390px, 100%); }
  .project-features { grid-template-columns: 1fr; }
  .current-project-preview { grid-template-columns: 1fr; }
  .slides-viewport { aspect-ratio: 16 / 9; }
  .slide-control { width: 40px; height: 40px; }
  .slide-control.previous { left: 20px; }
  .slide-control.next { right: 20px; }
  .privacy-note { display: none; }
  .project-slideshow { padding-bottom: 44px; }
}
.assistant-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.assistant-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.contact-assistant [hidden] {
  display: none !important;
}

/* Post content uses the exact existing project typography. */
.reference-lead > :first-child{margin-top:0}.reference-lead > :last-child{margin-bottom:0}.reference-lead > p{margin:0 0 1em}.pn-post-editor .pn-panel{border:0;padding:16px 0}.pn-post-editor [role=status]{display:block;margin:10px 0}
