:root {
  --bg: #f5efe6;
  --bg-soft: #eee4d7;
  --panel: #fbf7f1;
  --ink: #171513;
  --muted: #6f675d;
  --line: rgba(23, 21, 19, 0.12);
  --accent: #bb6c2f;
  --accent-soft: rgba(187, 108, 47, 0.12);
  --container: 1180px;
  --shadow: 0 24px 60px rgba(51, 35, 18, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(187, 108, 47, 0.1), transparent 24%),
    linear-gradient(180deg, #f6f0e8 0%, #f1e8dc 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(187, 108, 47, 0.95), rgba(187, 108, 47, 0.45));
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 240, 232, 0.9);
  border-bottom: 1px solid rgba(23, 21, 19, 0.07);
  box-shadow: 0 12px 30px rgba(28, 18, 10, 0.04);
}

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

.brand {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: 72px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 64vh;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    radial-gradient(circle at 18% 20%, rgba(187, 108, 47, 0.24), transparent 24%),
    linear-gradient(rgba(8, 7, 6, 0.2), rgba(8, 7, 6, 0.58));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 640px;
  color: #fff;
  margin-left: 8px;
  padding: 32px 32px 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.28), rgba(12, 10, 9, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.18);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  font-weight: 800;
  line-height: 0.92;
  max-width: 12ch;
  margin: 0;
  letter-spacing: -0.06em;
}

h1 span {
  display: block;
}

h1 span:last-child {
  white-space: nowrap;
}

.hero-text {
  max-width: 32ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points span {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button-secondary--solid {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 78px 0;
  scroll-margin-top: 104px;
}

.section-directions {
  background: rgba(255, 255, 255, 0.18);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
}

.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.section-head h2,
.contact-banner__copy h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

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

.direction-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.direction-card:hover,
.direction-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(51, 35, 18, 0.14);
  border-color: rgba(187, 108, 47, 0.22);
}

.direction-image {
  aspect-ratio: 4 / 3;
}

.direction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-card h3,
.pricing-row__head h3,
.process-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.direction-card h3,
.direction-card p {
  padding-inline: 22px;
}

.direction-card h3 {
  padding-top: 20px;
}

.direction-card p,
.pricing-row p,
.process-card p,
.contact-banner__copy p,
.contact-link,
.footer-note,
.footer-legal p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.direction-card p {
  padding-bottom: 24px;
}

.portfolio-grid {
  column-count: 4;
  column-gap: 22px;
}

.portfolio-item {
  margin: 0 0 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  break-inside: avoid;
  background: rgba(255, 255, 255, 0.44);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  transition: transform 260ms ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-within img {
  transform: scale(1.03);
}

.section-pricing {
  background: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(23, 21, 19, 0.08);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
}

.section-benefits {
  background: rgba(255, 255, 255, 0.16);
}

.section-process {
  background: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.section-process .section-label {
  color: var(--accent);
}

.section-process .section-head {
  text-align: center;
}

.section-process .section-head h2 {
  color: var(--ink);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.benefit-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

.benefit-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.pricing-list {
  display: grid;
  gap: 18px;
}

.pricing-row {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.pricing-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.pricing-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pricing-row__head span {
  color: var(--accent);
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.process-card {
  min-height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 8px 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-icon {
  width: 124px;
  height: 124px;
  margin: 0 auto 28px;
  object-fit: contain;
  filter: invert(43%) sepia(42%) saturate(1081%) hue-rotate(345deg) brightness(92%) contrast(90%);
}

.process-card h3 {
  color: var(--ink);
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.process-card p {
  max-width: 18ch;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 380px);
  gap: 44px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(187, 108, 47, 0.12), transparent 28%),
    linear-gradient(135deg, #1f1b18, #38261a);
  color: #fff;
  border-radius: 34px;
  padding: 42px 48px;
  box-shadow: 0 28px 80px rgba(46, 28, 10, 0.18);
}

.contact-banner__copy h2 {
  max-width: 14ch;
}

.contact-banner__copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  font-size: 1.06rem;
}

.contact-banner__actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 13px;
  margin-top: 8px;
}

.contact-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 16px 17px;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-input:focus {
  outline: none;
  border-color: rgba(187, 108, 47, 0.65);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.contact-textarea {
  min-height: 116px;
  resize: vertical;
}

.contact-direct {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.contact-link {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.86);
  transition: color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
}

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(23, 21, 19, 0.1);
  background: rgba(255, 255, 255, 0.18);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(23, 21, 19, 0.9);
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-counter {
  position: absolute;
  left: 24px;
  top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-legal {
  display: grid;
  gap: 8px;
}

@media (max-width: 1100px) {
  .directions-grid,
  .benefits-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    column-count: 3;
  }

  .section-head--split,
  .contact-banner,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .contact-banner {
    gap: 28px;
    padding: 36px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(246, 240, 232, 0.98);
    border: 1px solid rgba(23, 21, 19, 0.08);
  }

  .site-nav a::after {
    bottom: -4px;
  }

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

  .hero,
  .hero-inner {
    min-height: 58vh;
  }

  .brand-logo img {
    width: 58px;
  }

  .hero-inner {
    justify-content: center;
    text-align: center;
    padding-bottom: 42px;
  }

  .hero-copy {
    margin-left: 0;
    max-width: 100%;
    width: min(100%, 420px);
    padding: 22px 18px 20px;
  }

  .hero-copy h1 {
    margin: 0 auto;
    width: 100%;
    max-width: none;
    font-size: clamp(1.6rem, 6.2vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-copy h1 span:last-child {
    white-space: normal;
  }

  .hero-text {
    margin: 18px auto 0;
    max-width: 26ch;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-points {
    justify-content: center;
  }

  .section {
    padding: 58px 0;
  }

  .directions-grid,
  .benefits-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    column-count: 2;
  }

  .process-card {
    padding-inline: 0;
  }

  .process-card p {
    max-width: 30ch;
  }

  .contact-form {
    width: 100%;
  }

  .portfolio-item {
    margin-bottom: 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    width: min(100%, 340px);
    padding: 18px 16px;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.1;
  }

  .hero-text {
    max-width: 23ch;
    font-size: 0.95rem;
  }

  .portfolio-grid {
    column-count: 1;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}
