:root {
  --ink: #111111;
  --paper: #f7f3ea;
  --muted: #6b6258;
  --red: #e63946;
  --yellow: #ffd166;
  --blue: #1d3557;
  --green: #2a9d8f;
  --white: #ffffff;
  --line: rgba(17, 17, 17, .12);
  --shadow: 8px 8px 0 rgba(17, 17, 17, .16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 209, 102, .35), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(230, 57, 70, .14), transparent 24%),
    var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 243, 234, .9);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  border: 3px solid var(--ink);
  background: var(--yellow);
  border-radius: 12px;
  font-size: 22px;
  padding: 6px 10px;
}

.hero,
.page-hero,
.portfolio-detail-hero,
.section,
.cta {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 42px;
  padding: 74px 0;
}

.eyebrow {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(48px, 8vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 24px; }

.hero-copy p:not(.eyebrow),
.page-hero p,
.portfolio-detail-hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  transition: .16s ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.ghost { background: var(--white); }

.hero-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.slider-container {
  width: 100%;
  height: 100%;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  color: var(--paper);
  background-color: var(--ink);
  background-image: 
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%),
    var(--bg-image, repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), rgba(255,255,255,.18) 2px, transparent 3px, transparent 9px));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  right: 34px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: .3s ease;
}

.dot.active {
  background: var(--yellow);
  width: 24px;
}

.hero-slide a {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  z-index: 2;
}

.hero-slide h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-price {
  position: absolute;
  top: 82px;
  right: 28px;
  background: var(--green);
  color: var(--white);
  border: 3px solid var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
  z-index: 10;
}

.hero-slide p {
  color: rgba(255,255,255,.9);
  font-size: 17px;
  max-width: 480px;
  position: relative;
  z-index: 3;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.comic-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  transform: rotate(7deg);
}

.panel-lines {
  position: absolute;
  inset: 26px;
  border: 3px solid rgba(255,255,255,.55);
  border-radius: 24px;
  transform: rotate(-4deg);
}

.hero-card h2 {
  position: relative;
  font-size: clamp(48px, 7vw, 80px);
}

.hero-card p {
  position: relative;
  color: rgba(255,255,255,.85);
  font-size: 18px;
}

.section {
  padding: 72px 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.text-link {
  font-weight: 900;
  color: var(--red);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card,
.service-card,
.contact-card,
.empty-state {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.portfolio-card-body {
  padding: 20px;
}

.portfolio-card span {
  color: var(--red);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.portfolio-card p,
.service-card p,
.empty-state p {
  color: var(--muted);
}

.service-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.contact-card,
.empty-state {
  padding: 24px;
}

.promo-banner {
  background: var(--blue);
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(255,209,102,0.15), transparent 40%),
    linear-gradient(45deg, var(--blue), #2c3e50);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promo-badge-large {
  background: var(--yellow);
  color: var(--ink);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(12deg);
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

.badge-inner {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.badge-inner span { font-size: 16px; font-weight: 900; margin-bottom: 2px; }
.badge-inner strong { font-size: 52px; font-weight: 900; }
.badge-inner small { font-size: 13px; font-weight: 800; text-transform: uppercase; margin-top: 2px; }

.page-hero {
  padding: 84px 0 34px;
}

.search-filter-bar {
  margin-bottom: 34px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.search-input-group {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 300px;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font: inherit;
  font-weight: 500;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--line);
  transition: all .2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 6px 6px 0 var(--blue);
}

.select-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.select-group select {
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  background: var(--white);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
  transition: all .2s ease;
}

.select-group select:hover {
  background: var(--paper);
}

.select-group select:focus {
  outline: none;
  border-color: var(--blue);
}

.portfolio-detail-hero {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 38px;
  align-items: center;
  padding: 64px 0 34px;
}

.portfolio-detail-hero img {
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.hero-gallery {
  position: relative;
  cursor: pointer;
  transition: transform .2s ease;
}

.hero-gallery:hover {
  transform: scale(1.02);
}

.hero-gallery-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(17, 17, 17, .8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.review-inline {
  margin: 20px 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.review-inline strong {
  font-size: 15px;
  color: var(--ink);
}

.review-inline em {
  color: var(--ink);
}

.review-inline .review-stars {
  font-size: 18px;
  letter-spacing: 2px;
  margin-right: 6px;
}

.review-inline .review-divider {
  margin: 0 8px;
  color: var(--line);
}

.review-inline .review-author {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-meta span {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta a:hover {
  text-decoration: underline;
}

.content-text {
  font-size: 18px;
  color: var(--muted);
}

.gallery-grid figcaption {
  padding: 12px 16px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  text-align: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.lightbox-content p {
  color: #fff;
  margin: 12px 0 0;
  font-size: 15px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 14px;
  line-height: 1;
  z-index: 10;
  transition: background .2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.client-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 420px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.client-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, .16);
}

.client-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper);
}

.client-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-card-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  background: var(--blue);
}

.client-card-info h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.cta {
  margin-block: 48px 84px;
  padding: 42px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta p { color: rgba(255,255,255,.75); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: var(--paper);
}

.site-footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .hero,
  .split,
  .portfolio-detail-hero {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero { min-height: auto; padding-top: 46px; }
  .hero-card { min-height: 360px; }

  .promo-banner {
    flex-direction: column;
    padding: 42px 32px;
    text-align: center;
  }

  .promo-badge-large {
    width: 140px;
    height: 140px;
    transform: rotate(0) !important;
    animation: none;
  }

  .badge-inner strong { font-size: 38px; }
}

@media (max-width: 640px) {
  h1 { font-size: 42px; }
  .portfolio-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    gap: 6px;
  }

  .section-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 32px;
    padding: 6px 12px;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-input-group {
    min-width: 100%;
  }

  .select-group {
    flex-direction: column;
    align-items: stretch;
  }
}
