:root {
  --bg: #f7f2eb;
  --bg-soft: #fcfaf6;
  --text: #231b15;
  --muted: #6b5a4d;
  --line: rgba(35, 27, 21, 0.12);
  --accent: #b28b67;
  --accent-deep: #8a684a;
  --shadow: 0 24px 60px rgba(30, 22, 16, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(178, 139, 103, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f4ee 0%, #f4ede4 30%, #fbf8f3 100%);
}

img {
  max-width: 100%;
}

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

section {
  padding: 96px 8.5%;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-intro {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-intro h2,
.contact-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero {
  min-height: 100vh;
  padding: 24px 3.5vw 36px;
  color: #fffaf4;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(27, 19, 14, 0.28), rgba(27, 19, 14, 0.58)),
    url(heroimg.jpeg) center/cover no-repeat;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2vw;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.logo-image {
  display: block;
  width: min(340px, 42vw);
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter:
    brightness(1.05)
    contrast(1.12)
    saturate(0.92)
    drop-shadow(0 10px 22px rgba(14, 9, 6, 0.22));
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.08);
  backdrop-filter: blur(12px);
}

.navlinks a {
  padding: 10px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navlinks a:hover {
  background: rgba(255, 250, 244, 0.16);
}

.simple-hero {
  min-height: calc(100vh - 110px);
  display: grid;
  align-content: center;
  gap: 24px;
  max-width: 760px;
  padding: 48px 2vw 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.86);
}

.line {
  width: 64px;
  height: 1px;
  background: rgba(255, 250, 244, 0.8);
}

.simple-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.simple-hero p {
  max-width: 620px;
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 250, 244, 0.9);
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.primary-link {
  background: #fffaf4;
  color: #2b2119;
}

.secondary-link {
  border: 1px solid rgba(255, 250, 244, 0.55);
  color: #fffaf4;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.secondary-link:hover {
  background: rgba(255, 250, 244, 0.12);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero-note span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.1);
  border: 1px solid rgba(255, 250, 244, 0.14);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about {
  display: grid;
  gap: 42px;
  overflow-x: clip;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 36px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 22px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 760px;
}

.about-aside {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
}

.about-aside p {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
}

.about-aside p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.services {
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(37, 28, 22, 0.96), rgba(28, 21, 16, 0.98)),
    radial-gradient(circle at top right, rgba(178, 139, 103, 0.28), transparent 30%);
  color: #f8f3ec;
}

.services-intro {
  max-width: 820px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 26px 22px;
  border: 1px solid rgba(255, 243, 232, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.08), rgba(255, 248, 240, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 248, 240, 0.08);
  overflow: hidden;
}

.service-card span {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 243, 232, 0.58);
}

.service-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.05;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 243, 232, 0.78);
  overflow-wrap: anywhere;
}

#portfolio {
  display: grid;
  gap: 56px;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(193, 164, 126, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(70, 56, 42, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f3ee 0%, #ffffff 55%);
}

.portfolio-heading {
  display: grid;
  gap: 12px;
  text-align: center;
}

.portfolio-heading h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portfolio-project {
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(42, 37, 32, 0.1);
}

.portfolio-project:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
}

.portfolio-project:nth-of-type(even) .project-copy {
  order: 2;
  text-align: right;
}

.portfolio-project:nth-of-type(even) .projectimg {
  order: 1;
}

.project-copy {
  position: sticky;
  top: 32px;
}

.project-copy h2 {
  max-width: 9ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.project-copy::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 18px;
  background: rgba(36, 29, 23, 0.28);
}

.portfolio-project:nth-of-type(even) .project-copy::after {
  margin-left: auto;
}

.projectimg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.projectimg img {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px;
  background: #fcfaf7;
  border: 1px solid rgba(42, 37, 32, 0.09);
  box-shadow: 0 16px 28px rgba(36, 29, 23, 0.09);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.projectimg img:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 24px 36px rgba(36, 29, 23, 0.14);
  filter: saturate(1.04);
}

.projectimg img:nth-child(3n + 1) {
  transform: rotate(-1.2deg);
}

.projectimg img:nth-child(3n + 2) {
  transform: translateY(18px) rotate(1deg);
}

.projectimg img:nth-child(3n) {
  transform: translateY(-8px) rotate(-0.6deg);
}

footer {
  padding: 0 8.5% 34px;
  background: #201813;
  color: #f8f3ec;
  overflow-x: clip;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  padding: 88px 0 44px;
  border-bottom: 1px solid rgba(255, 243, 232, 0.14);
}

.contact-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.contact-grid {
  display: grid;
  gap: 18px;
}

.contact-grid div {
  padding: 22px 24px;
  border: 1px solid rgba(255, 243, 232, 0.12);
  border-radius: 24px;
  background: rgba(255, 243, 232, 0.04);
}

.contact-grid h3 {
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 243, 232, 0.58);
}

.contact-grid p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.footer-note {
  padding-top: 22px;
  text-align: center;
  color: rgba(255, 243, 232, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.footer-actions {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 243, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 243, 232, 0.04);
  color: rgba(255, 243, 232, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 243, 232, 0.1);
}

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

  .about-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .portfolio-project,
  .portfolio-project:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-project:nth-of-type(even) .project-copy,
  .portfolio-project:nth-of-type(even) .projectimg {
    order: initial;
    text-align: left;
  }

  .project-copy {
    position: static;
  }

  .project-copy h2 {
    max-width: none;
  }

  .portfolio-project:nth-of-type(even) .project-copy::after {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 76px 6%;
  }

  .hero,
  .about,
  .services,
  #portfolio,
  footer,
  .navbar,
  .about-layout,
  .services-grid,
  .portfolio-project,
  .projectimg,
  .contact,
  .contact-grid,
  .contact-grid div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero {
    padding: 18px 4.5vw 28px;
  }

  .navbar {
    flex-direction: column;
    padding: 0;
  }

  .logo-image {
    width: min(280px, 72vw);
  }

  .navlinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    padding: 10px;
    border-radius: 28px;
  }

  .navlinks a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-align: center;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .simple-hero {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    padding: 56px 0 18px;
  }

  .hero-kicker {
    display: grid;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    max-width: 100%;
  }

  .hero-kicker span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .line {
    width: 42px;
  }

  .simple-hero h1,
  .simple-hero p,
  .hero-actions,
  .hero-kicker span {
    max-width: 100%;
    min-width: 0;
  }

  .hero-actions a {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-note {
    gap: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projectimg {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .projectimg img,
  .projectimg img:hover,
  .projectimg img:nth-child(3n + 1),
  .projectimg img:nth-child(3n + 2),
  .projectimg img:nth-child(3n) {
    transform: none;
  }

  .contact-grid p {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .footer-note {
    overflow-wrap: anywhere;
  }
}
