:root {
  --bg: #f4e8d6;
  --bg-deep: #e5c6a0;
  --wood: #7a4c2d;
  --wood-dark: #4b2d1a;
  --clay: #c96d33;
  --cream: #fff4e5;
  --ink: #2c1d13;
  --muted: #5c4a3c;
  --radius: 20px;
  --shadow: 0 16px 36px rgba(69, 36, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #fff8ef 0, #f8e8d5 32%, transparent 60%),
    radial-gradient(circle at 88% 8%, #f0c396 0, transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #efd8bd 55%, #f6ebdc 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.wood-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    100deg,
    #5f361d 0,
    #5f361d 2px,
    transparent 2px,
    transparent 8px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, #f6ebdc 75%, transparent);
  border-bottom: 1px solid rgba(80, 42, 20, 0.1);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(170px, 21vw, 250px);
  height: clamp(52px, 6.2vw, 76px);
  padding-block: 4px;
  box-sizing: border-box;
  overflow: visible;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: left center;
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: 0.25s ease;
}

.site-header nav a:hover {
  background: rgba(121, 75, 44, 0.12);
  color: var(--wood-dark);
}

main {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  padding: clamp(1.6rem, 2vw, 2.4rem);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 244, 229, 0.95), rgba(241, 202, 162, 0.7));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -90px;
  top: -110px;
  background: radial-gradient(circle, rgba(201, 109, 51, 0.38), transparent 70%);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Alegreya", serif;
  line-height: 1.1;
  margin-top: 0.6rem;
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

p {
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

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

.btn.primary {
  background: linear-gradient(130deg, #8f532b, #bd6f35);
  color: #fff;
}

.btn.ghost {
  border: 1px solid rgba(75, 45, 26, 0.28);
  color: var(--wood-dark);
  background: rgba(255, 255, 255, 0.5);
}

.portfolio,
.process,
.contact {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 245, 232, 0.82);
  border: 1px solid rgba(120, 71, 43, 0.13);
  box-shadow: 0 8px 20px rgba(71, 38, 21, 0.1);
}

.thumb {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.thumb:hover {
  transform: scale(1.02);
}

.thumb:focus-visible {
  outline: 3px solid rgba(201, 109, 51, 0.9);
  outline-offset: 3px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 246, 236, 0.86), rgba(236, 205, 172, 0.7));
  border: 1px solid rgba(85, 49, 27, 0.12);
}

.step span {
  font-family: "Alegreya", serif;
  color: var(--clay);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 243, 224, 0.9), rgba(227, 189, 146, 0.84));
  box-shadow: var(--shadow);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-info a {
  text-decoration: none;
  color: var(--wood-dark);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(74, 43, 23, 0.18);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

footer {
  text-align: center;
  padding: 1.1rem 1rem 2.2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.visible {
  animation: enter 0.75s ease forwards;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 10, 5, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #2c1d13;
}

@keyframes enter {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .logo img {
    width: 185px;
    height: auto;
    transform: none;
  }

  .logo {
    width: auto;
    height: auto;
    overflow: visible;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero::after {
    display: none;
  }
}
