:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e7e7e2;
  --dark: #161616;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.section { padding: 88px 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-sub {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

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

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.hero {
  background: linear-gradient(135deg, #f2f2ee 0%, #ffffff 55%, #ecece8 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 42px 0;
}

.pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  color: #4d4d4d;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 20px 0 22px;
  max-width: 760px;
}

.hero p {
  max-width: 680px;
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  max-width: 620px;
}

.highlight-item {
  color: #333;
  font-size: 15px;
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-media img,
.card {
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-media img:nth-child(2) { margin-top: 34px; }
.hero-media img:nth-child(3) { margin-top: -8px; }

.info-card {
  background: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.info-card h3 {
  font-size: 34px;
  line-height: 1.05;
  margin: 14px 0;
}

.info-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.stats strong {
  font-size: 28px;
  display: block;
  margin-bottom: 4px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding: 30px 0;
}

.strip-grid h3 {
  margin: 0 0 6px;
  font-size: 30px;
}

.strip-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid-4,
.grid-3,
.grid-portfolio {
  display: grid;
  gap: 24px;
  margin-top: 46px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-portfolio { grid-template-columns: repeat(3, 1fr); }

.service-card,
.process-card,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.service-card h3,
.process-card h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.service-card p,
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f2f2f0;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.portfolio-section {
  background: var(--dark);
  color: #fff;
}

.portfolio-section .eyebrow,
.portfolio-section .section-intro {
  color: rgba(255,255,255,0.68);
}

.portfolio-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.before-after-card {
  cursor: default;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,251,0.94));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 22px 44px rgba(0,0,0,0.2);
}

.before-after-card:hover {
  transform: none;
  box-shadow: 0 22px 44px rgba(0,0,0,0.2);
}

.before-after-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 20px 20px 0;
  border-radius: 30px;
  background: #dfe5ec;
  box-shadow:
    inset 0 0 0 1px rgba(18,23,31,0.06),
    0 12px 30px rgba(15,23,42,0.08);
}

.before-after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-image-before {
  filter: saturate(0.55) brightness(0.96) contrast(0.92);
}

.before-after-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--before-width, 50%);
  overflow: hidden;
  border-right: 2px solid rgba(255,255,255,0.96);
  box-shadow: 14px 0 22px rgba(15,23,42,0.08);
}

.before-after-overlay .before-after-image {
  width: 100%;
  min-width: 100%;
}

.before-after-media::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--before-width, 50%);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 0 1px rgba(17,17,17,0.04), 0 0 24px rgba(255,255,255,0.5);
  z-index: 2;
  pointer-events: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: var(--before-width, 50%);
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 34px rgba(15,23,42,0.18);
  pointer-events: none;
}

.before-after-handle::before,
.before-after-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #2a2f38;
}

.before-after-handle::before {
  left: 24px;
  transform: translateY(-50%) rotate(-45deg);
  border-left: 3px solid #2a2f38;
}

.before-after-handle::after {
  right: 24px;
  transform: translateY(-50%) rotate(135deg);
  border-left: 3px solid #2a2f38;
}

.before-after-handle span {
  position: absolute;
  inset: 16px auto 16px 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(42,47,56,0.18);
}

.before-after-badge {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(39,44,53,0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.before-label {
  left: 18px;
}

.after-label {
  right: 18px;
}

.before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.portfolio-copy {
  padding: 22px;
}

.before-after-card .portfolio-copy {
  color: #121826;
}

.before-after-card .portfolio-tag {
  color: rgba(18,24,38,0.52);
}

.before-after-card .portfolio-copy p {
  color: rgba(18,24,38,0.68);
}

.portfolio-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 8px;
  font-weight: 700;
}

.portfolio-copy h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.portfolio-copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.68);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  width: min(1180px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #111;
  border-radius: 24px;
  padding: 20px;
  position: relative;
}

.lightbox-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lightbox-header {
  color: #fff;
  margin: 12px 0 20px;
  padding: 0 4px;
}

.lightbox-header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

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

.lightbox-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.step-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
  margin-top: 48px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  color: #333;
  font-size: 16px;
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details a:hover {
  opacity: 0.7;
}

form {
  display: grid;
  gap: 14px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin: 6px 2px 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
}

.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.success-popup.active {
  display: flex;
}

.success-box {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.success-box h3 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
}

.success-box p {
  margin: 0 0 20px;
  color: var(--muted);
}

.success-actions {
  display: flex;
  justify-content: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .hero-grid { min-height: auto; }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav { display: none; }
  .header {
    background: rgba(255,255,255,0.96);
  }
  .header-inner {
    min-height: 72px;
    gap: 12px;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .section {
    padding: 68px 0;
  }
  .hero {
    padding-top: 12px;
  }
  .hero-grid {
    gap: 30px;
    padding: 20px 0 36px;
  }
  .pill {
    font-size: 12px;
    padding: 9px 14px;
  }
  .hero h1 {
    font-size: clamp(38px, 12vw, 46px);
    line-height: 1.02;
    margin: 16px 0 18px;
  }
  .hero p, .section-intro {
    font-size: 16px;
  }
  .hero p {
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 10px;
    margin-bottom: 24px;
  }
  .highlights,
  .hero-media,
  .strip-grid,
  .grid-4,
  .grid-3,
  .grid-portfolio { grid-template-columns: 1fr; }
  .highlight-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
  }
  .hero-media {
    gap: 12px;
  }
  .hero-media img,
  .card {
    border-radius: 22px;
  }
  .hero-media img {
    height: 220px;
  }
  .hero-media img:nth-child(2),
  .hero-media img:nth-child(3) { margin-top: 0; }
  .info-card {
    padding: 24px 20px;
  }
  .info-card h3 {
    font-size: 28px;
  }
  .strip-grid {
    text-align: left;
    gap: 12px;
    padding: 22px 0;
  }
  .strip-grid > div {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
  }
  .strip-grid h3 {
    font-size: 24px;
  }
  .grid-4,
  .grid-3,
  .grid-portfolio {
    gap: 18px;
    margin-top: 34px;
  }
  .service-card,
  .process-card,
  .contact-card {
    padding: 22px;
    border-radius: 20px;
  }
  .portfolio-item {
    border-radius: 22px;
  }
  .portfolio-item > img,
  .before-after-media {
    height: 240px;
  }
  .before-after-media {
    margin: 14px 14px 0;
    border-radius: 24px;
  }
  .before-after-badge {
    top: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .before-label {
    left: 12px;
  }
  .after-label {
    right: 12px;
  }
  .portfolio-copy {
    padding: 18px;
  }
  .portfolio-copy h3 {
    font-size: 20px;
  }
  .lightbox {
    align-items: stretch;
    padding: 0;
  }
  .lightbox-inner {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 14px 14px 28px;
  }
  .lightbox-close {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 42px;
    height: 42px;
    backdrop-filter: blur(12px);
  }
  .lightbox-header {
    margin: 8px 0 16px;
    padding: 0 2px;
  }
  .lightbox-header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
  }
  .lightbox-header p {
    font-size: 13px;
  }
  .lightbox-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lightbox-grid img {
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
  }
  .contact-grid {
    gap: 18px;
    margin-top: 34px;
  }
  .contact-details {
    font-size: 15px;
    margin-top: 22px;
  }
  input, textarea {
    padding: 14px 15px;
    border-radius: 16px;
  }
  .btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  .header .btn {
    padding: 10px 14px;
  }
  .success-box {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .success-box h3 {
    font-size: 26px;
  }
  .footer {
    padding: 24px 0 32px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    align-items: flex-start;
    padding: 12px 0;
  }
  .header .btn {
    margin-top: 2px;
  }
  .hero-actions .btn,
  .contact-card .btn,
  form .btn {
    width: 100%;
    text-align: center;
  }
  .highlights {
    gap: 10px;
  }
  .lightbox-inner {
    padding: 12px 12px 24px;
  }
  .lightbox-grid img {
    aspect-ratio: 3 / 2;
  }
  .before-after-handle {
    width: 64px;
    height: 64px;
  }
  .before-after-handle::before {
    left: 18px;
  }
  .before-after-handle::after {
    right: 18px;
  }
  .before-after-handle span {
    inset: 14px auto 14px 50%;
  }
}
