/* 100 Roses Tattoo Parlour – static site */

:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-bg-soft: #1a1a1a;
  --color-text: #ffffff;
  --color-muted: #b0b0b0;
  --color-accent: #b8966d;
  --color-accent-hover: #c9a87e;
  --color-border: rgba(255, 255, 255, 0.12);
  --font-display: "Oswald", sans-serif;
  --font-body: "Poppins", sans-serif;
  --header-h: 9rem;
  --max: 1170px;
  --ease: 0.25s ease;
  --focus: 0 0 0 3px rgba(184, 150, 109, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184, 150, 109, 0.2);
  overflow-x: clip;
}

body.is-nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
  margin: 0 0 1rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10000;
  background: var(--color-accent);
  color: #111;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

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

.section--elevated {
  background: var(--color-bg-elevated);
}

.section__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.section__lead {
  color: var(--color-muted);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.section__header .section__title {
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  text-decoration: none;
}

.btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}

.btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wa-link .btn__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn--primary {
  background: var(--color-accent);
  color: #111;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #111;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost:hover {
  background: var(--color-accent);
  color: #111;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  transition: background-color var(--ease), padding var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  padding-top: calc(2.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.15rem;
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo {
  justify-self: center;
  display: block;
  line-height: 0;
}

.logo img {
  width: min(170px, 44vw);
  height: auto;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.65));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav--left {
  justify-content: flex-start;
}

.nav--right {
  justify-content: flex-end;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  justify-self: end;
  background: transparent;
  border: 1px solid var(--color-border);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    justify-self: start;
    grid-column: 1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
  }

  .nav {
    display: none;
  }

  .site-header.is-open .nav-mobile {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom, 0px));
  max-height: min(70dvh, calc(100dvh - var(--header-h)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile a {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.nav-mobile a:hover {
  color: var(--color-accent);
  background: var(--color-bg-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(7rem + env(safe-area-inset-top, 0px)) 1.5rem calc(5rem + env(safe-area-inset-bottom, 0px));
  max-width: 48rem;
}

.hero__kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__text {
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__pager {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__pager button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border-left: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__pager button[aria-selected="true"] {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* Welcome */
.welcome {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .welcome {
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
  }
}

.welcome__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.welcome__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.welcome__copy p {
  margin-bottom: 1.5rem;
}

.welcome__copy .btn {
  margin-top: 0.75rem;
}

.welcome__copy .accent {
  color: var(--color-accent);
}

/* Portfolio */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 2.75rem;
}

.filters button {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  position: relative;
}

.filters button::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 1px;
  background: transparent;
}

.filters button[aria-pressed="true"],
.filters button:hover {
  color: var(--color-accent);
}

.filters button[aria-pressed="true"]::after {
  background: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 481 / 400;
}

.portfolio-item[hidden] {
  display: none;
}

.portfolio-item button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(0.15);
}

.portfolio-item button:hover img,
.portfolio-item button:focus-visible img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.portfolio-item button:hover .portfolio-item__overlay,
.portfolio-item button:focus-visible .portfolio-item__overlay {
  opacity: 1;
}

/* Artists */
.artists {
  display: grid;
  gap: 2.5rem 1.75rem;
}

@media (min-width: 700px) {
  .artists {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.75rem 2rem;
  }
}

@media (min-width: 1000px) {
  .artists {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.25rem;
  }
}

.artist-card {
  text-align: center;
}

.artist-card__media {
  overflow: hidden;
  margin-bottom: 1.35rem;
  background: #111;
  aspect-ratio: 3 / 4;
}

.artist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.artist-card:hover img,
.artist-card:focus-within img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.artist-card__role {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.artist-card__name {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Styles */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

@media (min-width: 800px) {
  .styles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.style-card {
  border: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(184, 150, 109, 0.08), transparent 55%),
    var(--color-bg-soft);
  transition: border-color var(--ease), transform var(--ease);
}

.style-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.style-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
}

/* Process */
.process {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 800px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.process__step {
  position: relative;
  padding: 2.25rem 1.6rem 2.4rem;
  border-top: 2px solid var(--color-accent);
  background: var(--color-bg-elevated);
  min-height: 100%;
}

.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.15rem;
}

.process__step h3 {
  text-transform: uppercase;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
}

.process__step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Blog cards */
.blog-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.blog-card {
  background: var(--color-bg-elevated);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-card__media {
  aspect-ratio: 480 / 314;
  overflow: hidden;
  background: #111;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.blog-card__meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
}

.blog-card__title {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.04em;
}

.blog-card__title a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.blog-card__title a:hover {
  color: var(--color-accent);
}

.blog-card__excerpt {
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.7;
}

/* Testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials__viewport {
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 0 1.5rem;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.testimonial blockquote {
  margin: 0 0 1.75rem;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.testimonial cite {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.testimonials__controls button {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.testimonials__controls button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Instagram CTA */
.instagram-cta {
  text-align: center;
  padding: clamp(5rem, 12vw, 7.5rem) 1.5rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/studio/atmosphere.jpg") center / cover;
}

.instagram-cta .section__title {
  margin-bottom: 1.25rem;
}

.instagram-cta .section__lead {
  margin-bottom: 2rem;
}

/* Contact strip */
.contact-strip {
  display: grid;
  gap: 2.5rem;
  text-align: center;
  justify-items: center;
}

@media (min-width: 800px) {
  .contact-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.contact-strip h3 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-strip p {
  margin-bottom: 0;
  line-height: 1.9;
}

.contact-strip a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.contact-strip a:hover {
  color: var(--color-accent);
}

.contact-strip .wa-link {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer__brand img {
  width: 140px;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.15rem;
}

.site-footer a {
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.15rem;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Subpages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(180deg, #151515, var(--color-bg));
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 5vw, 3rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.prose {
  max-width: 48rem;
  margin-inline: auto;
  color: var(--color-muted);
}

.prose h2,
.prose h3 {
  color: #fff;
  margin-top: 2rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overscroll-behavior: contain;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  width: auto;
  height: auto;
}

.lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Cookie banner – full width bar, inset from edges */
.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 3000;
  width: auto;
  max-width: none;
  background: #fff;
  color: #222;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
  display: grid;
  gap: 0.85rem 1.5rem;
  max-height: min(70dvh, 32rem);
  overflow-y: auto;
}

@media (min-width: 900px) {
  .cookie-banner {
    left: max(1.5rem, env(safe-area-inset-left, 0px));
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.35rem 1.75rem;
  }

  .cookie-banner__actions {
    margin: 0;
    justify-content: flex-end;
  }

  .cookie-banner__links,
  .cookie-banner__settings {
    grid-column: 1 / -1;
  }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  color: #111;
  margin: 0 0 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.cookie-banner p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-width: 52rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.25rem 0 0;
}

.cookie-banner .btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
}

.cookie-banner .btn--primary {
  color: #fff;
}

.cookie-banner .btn--muted {
  background: #ececec;
  color: #222;
  border: 0;
}

.cookie-banner .btn--muted:hover {
  background: #ddd;
}

.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.75rem;
}

.cookie-banner__links a {
  color: #555;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0;
}

.cookie-banner__settings {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
}

.cookie-banner__settings[hidden] {
  display: none;
}

.cookie-banner label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  color: #333;
  min-height: 2.75rem;
  font-size: 1rem;
}

.cookie-banner input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2.75rem;
}

/* Referenzen / Backlinks */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .ref-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.ref-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: #fff;
  min-width: 0;
  transition: border-color var(--ease), color var(--ease);
}

.ref-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.ref-card__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.ref-card__domain {
  color: var(--color-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.ref-card:hover .ref-card__domain {
  color: var(--color-accent-hover);
}

.domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.5rem;
}

@media (min-width: 640px) {
  .domain-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .domain-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.domain-list a {
  color: var(--color-muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.domain-list a:hover {
  color: var(--color-accent);
}
