:root {
  --red: #782236;
  --red-dark: #560204;
  --red-soft: #f3dde3;
  --ink: #19171a;
  --ink-soft: #4c474b;
  --muted: #6d676b;
  --paper: #f4f3ef;
  --paper-2: #e8e7e2;
  --white: #ffffff;
  --line: rgba(25, 23, 26, 0.14);
  --line-red: rgba(120, 34, 54, 0.22);
  --shadow-soft: 0 24px 70px rgba(25, 23, 26, 0.13);
  --shadow-red: 0 22px 60px rgba(120, 34, 54, 0.2);
  --display: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --body: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --tap-target: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 2%, rgba(120, 34, 54, 0.09), transparent 24rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

p,
h3,
span,
li {
  overflow-wrap: anywhere;
}

h2 {
  overflow-wrap: normal;
  word-break: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--line-red);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 34, 54, 0.12);
  background: rgba(232, 232, 228, 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand,
.footer-brand {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: clamp(156px, 17vw, 292px);
  height: auto;
  flex: 0 0 auto;
}

.main-nav {
  justify-self: end;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(25, 23, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.main-nav a,
.site-footer nav a {
  text-decoration: none;
}

.main-nav a {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  background: var(--red-soft);
  color: var(--red);
  transform: translateY(-1px);
}

.main-nav .nav-contact {
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.main-nav .nav-contact:hover {
  background: var(--red-dark);
  color: var(--white);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: imageDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 10, 13, 0.91), rgba(12, 10, 13, 0.66) 44%, rgba(12, 10, 13, 0.24)),
    linear-gradient(0deg, rgba(12, 10, 13, 0.52), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(112px, 12vh, 122px);
  padding-bottom: clamp(54px, 10vh, 96px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--red-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--red);
}

.section-title .kicker,
.section-head .kicker {
  font-size: 0.95rem;
  line-height: 1.1;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--display);
  line-height: 1.04;
}

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(3.4rem, 7.3vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.026em;
  hyphens: manual;
}

.hero-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  line-height: 1.04;
}

.hero-title-first,
.hero-title-second {
  display: inline;
}

.hero-title-second::before {
  content: "";
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.9rem);
  font-weight: 760;
  letter-spacing: -0.024em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: max(48px, var(--tap-target));
  min-width: 172px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.button-light:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: var(--red);
  animation: cuePulse 1.8s ease-in-out infinite;
}

.statement,
.section,
.profile-section,
.contact-section {
  padding: clamp(72px, 10vw, 136px) 0;
}

.statement {
  background: var(--white);
}

.statement-grid,
.profile-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.section-title,
.section-head {
  position: relative;
}

.precision-word {
  display: inline;
  overflow-wrap: normal;
}

.precision-word span {
  overflow-wrap: normal;
}

.section-title::before,
.section-head::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.28em;
  width: 4px;
  height: 74px;
  border-radius: 999px;
  background: var(--red);
}

.statement-copy p,
.profile-copy p,
.contact-section p,
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

blockquote {
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head {
  margin-bottom: 40px;
  max-width: 760px;
}

.section-head p {
  margin: 18px 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 322px;
  padding: 26px;
  display: grid;
  grid-template-rows: 56px 1fr;
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(243, 221, 227, 0.34)),
    var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(120, 34, 54, 0.28);
  box-shadow: var(--shadow-soft);
}

.service-card:focus-visible {
  outline: 3px solid rgba(120, 34, 54, 0.34);
  outline-offset: 4px;
}

.service-icon {
  width: 96px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-icon span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1;
  overflow-wrap: normal;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  min-height: 2.1em;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.service-card:hover .service-link::after,
.service-card:focus-visible .service-link::after {
  transform: translateX(4px);
}

.profile-section {
  background:
    radial-gradient(circle at 86% 18%, rgba(120, 34, 54, 0.1), transparent 20rem),
    var(--paper-2);
}

.portfolio-page {
  padding: 150px 0 92px;
  background:
    radial-gradient(circle at 18% 10%, rgba(120, 34, 54, 0.11), transparent 28rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
}

.portfolio-hero {
  max-width: 860px;
}

.portfolio-hero h1 {
  color: var(--red);
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.portfolio-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.portfolio-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(42px, 7vw, 72px);
}

.portfolio-topic {
  scroll-margin-top: 132px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 221, 227, 0.3)),
    var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-topic:target {
  border-color: rgba(120, 34, 54, 0.48);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.portfolio-topic h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.012em;
}

.portfolio-topic p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--muted);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.topic-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-red);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.topic-links a:hover,
.topic-links a:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(42px, 7vw, 74px);
}

.portfolio-card {
  scroll-margin-top: 132px;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(120, 34, 54, 0.28);
  box-shadow: var(--shadow-soft);
}

.portfolio-card:focus-visible {
  outline: 3px solid rgba(120, 34, 54, 0.34);
  outline-offset: 4px;
}

.portfolio-card:target {
  border-color: rgba(120, 34, 54, 0.52);
  box-shadow: var(--shadow-red);
}

.portfolio-card.featured {
  grid-column: span 2;
}

.portfolio-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.portfolio-card.featured .portfolio-media {
  aspect-ratio: 16 / 9;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 460ms ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.035);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-content .kicker {
  margin-bottom: 10px;
  color: var(--red);
}

.portfolio-content h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  letter-spacing: -0.015em;
}

.portfolio-content p {
  margin: 14px 0 0;
  color: var(--muted);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.portfolio-tags span {
  border: 1px solid var(--line-red);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.portfolio-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.portfolio-card:hover .portfolio-link::after,
.portfolio-card:focus-visible .portfolio-link::after {
  transform: translateX(4px);
}

.portfolio-cta {
  margin-top: clamp(44px, 7vw, 78px);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(243, 221, 227, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ink), var(--red-dark));
  color: var(--white);
}

.portfolio-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.profile-media {
  position: relative;
}

.profile-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--red);
  border-radius: 22px;
}

.profile-media img {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.facts div {
  padding: 18px;
  border-top: 3px solid var(--red);
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.68);
}

.facts strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.95rem;
  line-height: 1;
}

.facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-cta {
  margin-top: 24px;
}

.contact-section {
  background:
    radial-gradient(circle at 16% 10%, rgba(120, 34, 54, 0.46), transparent 26rem),
    linear-gradient(135deg, var(--ink), var(--red-dark));
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(243, 221, 227, 0.3);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-red);
  backdrop-filter: blur(10px);
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-photo {
  width: clamp(94px, 12vw, 132px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(243, 221, 227, 0.34);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(12, 10, 13, 0.22);
}

.contact-label {
  margin: 0 0 8px;
  color: var(--red-soft) !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card h3 {
  margin-bottom: 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 12px;
  color: var(--red-soft);
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.contact-method svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-method span {
  overflow-wrap: anywhere;
}

.contact-method:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--red-soft);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.site-footer {
  padding: 30px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--display);
  font-size: 1rem;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer p a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.site-footer p a:hover {
  color: var(--red-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  font-weight: 600;
}

.site-footer nav a:hover {
  color: var(--red-soft);
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 100;
  display: flex;
  max-width: min(580px, calc(100vw - 28px));
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(120, 34, 54, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 56px rgba(31, 27, 29, 0.16);
  color: var(--ink);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.cookie-banner__text {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.38;
}

.cookie-banner__text strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.cookie-banner__text a {
  width: fit-content;
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner__text a:hover {
  color: var(--red-dark);
}

.cookie-banner__button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.cookie-banner__button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(120, 34, 54, 0.16), transparent 28rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
}

.admin-login,
.admin-dashboard {
  width: min(100% - 34px, 1120px);
  margin: 0 auto;
  padding: 120px 0 64px;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-panel,
.admin-table-card,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.admin-panel {
  width: min(100%, 430px);
  padding: clamp(24px, 4vw, 36px);
}

.admin-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-panel h1,
.admin-header h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.admin-panel p {
  color: var(--muted);
}

.admin-panel label {
  display: grid;
  gap: 8px;
  margin: 24px 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.admin-panel input {
  min-height: var(--tap-target);
  padding: 0 14px;
  border: 1px solid var(--line-red);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-error {
  padding: 10px 12px;
  border: 1px solid rgba(120, 34, 54, 0.24);
  border-radius: 10px;
  background: rgba(120, 34, 54, 0.08);
  color: var(--red);
  font-weight: 800;
}

.admin-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-logout {
  min-height: var(--tap-target);
  padding: 0 16px;
  border: 1px solid var(--line-red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article {
  padding: 22px;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}

.admin-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-explain article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-explain h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.admin-explain p {
  color: var(--muted);
  font-size: 0.98rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-table-card {
  overflow: hidden;
  padding: 20px;
}

.admin-table-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.35rem;
}

.admin-table-card table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
}

.admin-table-card td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.admin-table-card td:last-child {
  width: 1%;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.admin-table-card td:nth-child(2) {
  width: 1%;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.admin-table-label {
  position: relative;
  z-index: 1;
}

.admin-bar {
  display: block;
  width: var(--bar-width);
  height: 4px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(120, 34, 54, 0.32);
}

.legal-page {
  min-height: 100vh;
  padding: 150px 0 82px;
  background: var(--paper);
}

.legal-shell {
  max-width: 840px;
}

.legal-shell h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.legal-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-card li {
  overflow-wrap: anywhere;
}

.legal-card li + li {
  margin-top: 6px;
}

.anchor-page {
  padding: 150px 0 92px;
  background:
    radial-gradient(circle at 18% 10%, rgba(120, 34, 54, 0.11), transparent 28rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
}

.anchor-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.anchor-hero h1 {
  color: var(--red);
  font-size: clamp(2.35rem, 4.6vw, 4.6rem);
  line-height: 1.02;
}

.anchor-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.anchor-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.anchor-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 45% center;
}

.anchor-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: clamp(42px, 7vw, 74px);
}

.anchor-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 142px;
  width: 2px;
  background: var(--line-red);
}

.anchor-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
}

.anchor-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 134px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--line-red);
}

.anchor-date {
  position: sticky;
  top: 114px;
  padding: 20px 16px;
  border: 1px solid var(--line-red);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--red);
  font-weight: 900;
  line-height: 1.12;
}

.anchor-date span {
  display: block;
}

.anchor-copy {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 221, 227, 0.26)),
    var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.anchor-brandline {
  display: grid;
  grid-template-columns: clamp(62px, 8vw, 86px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
}

.anchor-logo {
  display: inline-grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(120, 34, 54, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 221, 227, 0.42)),
    var(--white);
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 10px 26px rgba(31, 27, 29, 0.08);
}

.anchor-logo--sero {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
}

.anchor-logo--wynners,
.anchor-logo--robertz {
  background: var(--red);
  color: var(--white);
}

.anchor-logo--apporo {
  color: #315f67;
}

.anchor-logo--build {
  color: #6d5831;
  font-size: clamp(0.95rem, 1.8vw, 1.28rem);
}

.anchor-logo--heilit {
  color: #474747;
}

.anchor-logo--fahrten {
  background: var(--ink);
  color: var(--white);
  font-style: italic;
}

.anchor-copy h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.012em;
}

.anchor-copy h3 {
  margin-top: 12px;
  color: var(--red);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.anchor-copy p:not(.kicker) {
  margin: 18px 0 0;
  color: var(--muted);
}

.anchor-cta {
  margin-top: clamp(44px, 7vw, 78px);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(243, 221, 227, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ink), var(--red-dark));
  color: var(--white);
}

.anchor-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.project-page {
  padding: 150px 0 92px;
  background:
    radial-gradient(circle at 18% 10%, rgba(120, 34, 54, 0.11), transparent 28rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.project-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-copy {
  padding-top: 6px;
}

.project-copy h1 {
  color: var(--red);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.project-copy p {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.project-copy .portfolio-tags {
  margin-bottom: 26px;
}

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

.project-actions .button-light {
  border-color: var(--line-red);
  color: var(--red);
  background: rgba(120, 34, 54, 0.06);
}

.project-actions .button-light:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.project-list-page,
.flycatcher-page {
  padding: 150px 0 92px;
  background:
    radial-gradient(circle at 18% 10%, rgba(120, 34, 54, 0.11), transparent 28rem),
    linear-gradient(180deg, #faf9f6, var(--paper));
}

.project-list-hero {
  max-width: 840px;
}

.project-list-hero h1,
.flycatcher-copy h1 {
  color: var(--red);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.project-list-hero p,
.flycatcher-copy p,
.flycatcher-cta p {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.project-list-grid {
  display: grid;
  margin-top: clamp(34px, 6vw, 64px);
}

.project-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.project-feature-media {
  min-height: 320px;
  background: var(--ink);
}

.project-feature-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-feature-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 46px);
}

.project-feature-copy h2 {
  color: var(--red);
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.project-feature-copy p {
  color: var(--muted);
}

.flycatcher-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.flycatcher-copy h2 {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 3.1rem);
}

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

.flycatcher-actions .button-light,
.flycatcher-cta .button-light {
  border-color: var(--line-red);
  color: var(--red);
  background: rgba(120, 34, 54, 0.06);
}

.flycatcher-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.flycatcher-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.flycatcher-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 4vw, 36px);
  margin-top: clamp(44px, 7vw, 80px);
}

.flycatcher-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flycatcher-checks div,
.flycatcher-market,
.flycatcher-cta {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.flycatcher-checks div {
  position: relative;
  padding: 20px 20px 20px 52px;
  color: var(--ink);
  font-weight: 800;
}

.flycatcher-checks div::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 19px;
  color: var(--red);
  font-weight: 900;
}

.flycatcher-market {
  padding: clamp(24px, 4vw, 34px);
}

.flycatcher-market span {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
}

.flycatcher-market p,
.flycatcher-note {
  color: var(--muted);
}

.flycatcher-note {
  grid-column: 1 / -1;
  margin-top: -10px;
  font-size: 0.95rem;
}

.flycatcher-cta {
  margin-top: clamp(36px, 6vw, 70px);
  padding: clamp(24px, 5vw, 42px);
}

.flycatcher-cta h2 {
  color: var(--red);
  font-size: clamp(2rem, 5vw, 4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 780ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

.delay-3 {
  animation-delay: 360ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageDrift {
  to {
    transform: scale(1.09) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes cuePulse {
  50% {
    transform: translateY(8px);
    opacity: 0.45;
  }
}

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

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .container {
    width: min(1180px, calc(100vw - 40px));
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    width: 100%;
  }

  .header-inner,
  .statement-grid,
  .profile-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px 0 8px;
    min-height: 0;
  }

  .brand-logo {
    width: min(210px, 56vw);
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 5px 0 5px 2px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .button {
    min-height: max(48px, var(--tap-target));
    white-space: normal;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: clamp(112px, 18dvh, 156px);
    padding-bottom: clamp(48px, 8dvh, 62px);
  }

  .scroll-cue {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: auto;
    align-self: center;
    display: inline-block;
  }

  .scroll-cue::after {
    margin-top: 8px;
  }

  .section-title::before,
  .section-head::before {
    left: 0;
    top: -18px;
    width: 56px;
    height: 4px;
  }

  .profile-media::before {
    inset: 14px 0 -14px 14px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .portfolio-page {
    padding-top: 122px;
  }

  .project-page {
    padding-top: 122px;
  }

  .project-list-page,
  .flycatcher-page {
    padding-top: 122px;
  }

  .anchor-page {
    padding-top: 122px;
  }

  .anchor-hero {
    grid-template-columns: 1fr;
  }

  .project-shell {
    grid-template-columns: 1fr;
  }

  .project-feature-card,
  .flycatcher-hero,
  .flycatcher-proof {
    grid-template-columns: 1fr;
  }

  .portfolio-card.featured {
    grid-column: auto;
  }

  .portfolio-card.featured .portfolio-media {
    aspect-ratio: 4 / 3;
  }

  .portfolio-topic,
  .portfolio-card {
    scroll-margin-top: 178px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100dvh - 2px);
  }

  .hero-content {
    padding-top: clamp(112px, 16dvh, 132px);
    padding-bottom: clamp(48px, 6dvh, 56px);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-method {
    min-height: var(--tap-target);
  }
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 26px, 1180px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 12.5vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.3rem);
  }

  .brand-logo {
    width: min(168px, 52vw);
  }

  .brand {
    flex: 0 0 auto;
  }

  .main-nav {
    width: 100%;
    padding: 2px 0 2px 2px;
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 0 8px;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px;
  }

  .cookie-banner__button {
    width: 100%;
  }

  .admin-login,
  .admin-dashboard {
    width: min(100% - 24px, 1120px);
    padding-top: 82px;
  }

  .admin-header,
  .admin-stats,
  .admin-explain,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
    align-items: start;
  }

  .admin-logout {
    width: 100%;
  }

  .statement,
  .section,
  .profile-section,
  .contact-section {
    padding: 68px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .portfolio-topics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-content {
    padding: 20px;
  }

  .service-card,
  .portfolio-topic {
    min-height: 0;
    gap: 24px;
    padding: 23px;
  }

  .profile-media::before {
    inset: 12px -8px -12px 8px;
    border-radius: 18px;
  }

  .profile-media img,
  .contact-card,
  .legal-card {
    border-radius: 18px;
  }

  .contact-method {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  .contact-person {
    align-items: flex-start;
  }

  .contact-photo {
    width: 94px;
    border-radius: 16px;
  }

  .social-links {
    display: flex;
  }

  .social-links a {
    width: var(--tap-target);
    height: var(--tap-target);
  }

  .site-footer nav {
    flex-direction: column;
    gap: 10px;
  }

  .legal-page {
    padding-top: 170px;
  }

  .project-page {
    padding-top: 170px;
  }

  .project-list-page,
  .flycatcher-page {
    padding-top: 170px;
  }

  .anchor-page {
    padding-top: 170px;
  }

  .project-feature-card {
    grid-template-columns: 1fr;
  }

  .project-feature-media {
    min-height: 220px;
  }

  .flycatcher-checks {
    grid-template-columns: 1fr;
  }

  .flycatcher-actions {
    display: grid;
  }

  .anchor-hero-media {
    border-radius: 18px;
  }

  .anchor-hero-media img {
    aspect-ratio: 4 / 3;
    object-position: 42% center;
  }

  .anchor-timeline::before,
  .anchor-card::before {
    display: none;
  }

  .anchor-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .anchor-date {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .anchor-brandline {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .anchor-logo {
    border-radius: 10px;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-content {
    padding-top: clamp(102px, 18vw, 118px);
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(1.95rem, 13vw, 2.45rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-title {
    display: inline;
    flex-wrap: wrap;
  }

  .hero-title-first {
    display: block;
  }

  .hero-title-second {
    display: block;
  }

  .hero-title-second::before {
    content: "-";
    margin-right: 0.12ch;
  }

  .service-card,
  .portfolio-topic,
  .contact-card,
  .legal-card {
    padding: 19px;
  }

  .main-nav a {
    font-size: 0.81rem;
    padding: 0 7px;
  }
}
