:root {
  --bg: #18130f;
  --panel: #211a14;
  --panel-soft: #2b221a;
  --line: rgba(228, 211, 180, 0.18);
  --line-soft: rgba(228, 211, 180, 0.1);
  --text: #e2d4bd;
  --muted: #bfae96;
  --faint: #897866;
  --white: #f5ead6;
  --accent: #b8794d;
  --container: 1100px;
  --side: clamp(22px, 4.4vw, 54px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(180, 121, 77, 0.13), transparent 28%),
    linear-gradient(180deg, #1a140f 0%, var(--bg) 42%, #120f0c 100%);
  color: var(--text);
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

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

.container {
  width: min(var(--container), calc(100% - (var(--side) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  background: rgba(24, 19, 15, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: clamp(21px, 2vw, 29px);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
}

.nav {
  display: flex;
  gap: clamp(34px, 5.4vw, 66px);
  align-items: center;
  font-size: 15px;
  color: var(--white);
}

.nav a {
  position: relative;
  padding: 27px 0 24px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.section-line {
  border-top: 1px solid var(--line-soft);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 48%;
  filter: saturate(0.78) contrast(1.02) brightness(0.72);
  transform: scale(1.05);
  transform-origin: 70% 45%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(24, 19, 15, 0.98) 0%, rgba(24, 19, 15, 0.88) 35%, rgba(24, 19, 15, 0.2) 70%, rgba(24, 19, 15, 0.08) 100%),
    linear-gradient(180deg, rgba(24, 19, 15, 0.08) 0%, rgba(24, 19, 15, 0.2) 64%, rgba(24, 19, 15, 0.95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #d7b38f;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  max-width: 665px;
  font-size: clamp(52px, 6vw, 78px);
}

.lead {
  max-width: 540px;
  margin: 27px 0 33px;
  color: var(--text);
  font-size: 17px;
}

.outline-button {
  min-width: 214px;
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 25px;
  border: 1px solid rgba(245, 234, 214, 0.3);
  color: var(--white);
  font-size: 16px;
  background: rgba(76, 50, 34, 0.22);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.outline-button:hover {
  border-color: rgba(245, 234, 214, 0.6);
  background: rgba(180, 121, 77, 0.18);
  transform: translateY(-1px);
}

.outline-button.compact {
  min-width: 168px;
  min-height: 50px;
  margin-top: 22px;
}

.arrow {
  font-size: 27px;
  line-height: 1;
}

.portfolio {
  padding: 52px 0 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}

.section-head .eyebrow {
  margin-bottom: 15px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(38px, 4.1vw, 56px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  padding: 0 3px 33px 0;
  color: var(--white);
  font-size: 16px;
  white-space: nowrap;
}

.text-link span:last-child {
  font-size: 28px;
}

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

.work-card {
  min-width: 0;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 1.24;
  object-fit: cover;
  border: 1px solid rgba(228, 211, 180, 0.18);
  filter: brightness(0.88) contrast(1.02) saturate(0.84);
}

.work-card:nth-child(1) img {
  object-position: 47% 52%;
}

.work-card:nth-child(2) img {
  object-position: 41% 50%;
}

.work-card:nth-child(3) img {
  object-position: 49% 50%;
}

.work-card:nth-child(4) img {
  object-position: 49% 50%;
}

.work-card h3 {
  margin: 13px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.about {
  background:
    radial-gradient(circle at 37% 43%, rgba(180, 121, 77, 0.17), transparent 30%),
    var(--panel);
}

.about-inner {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about-image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.about-image img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 24%;
  filter: brightness(0.82) contrast(1.04) saturate(0.82);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(33, 26, 20, 0) 52%, rgba(33, 26, 20, 0.94) 100%);
}

.about-copy {
  width: min(415px, 100%);
  align-self: center;
  justify-self: center;
  padding: 22px 0 18px;
}

.about-copy .eyebrow {
  margin-bottom: 19px;
}

.about-copy p:not(.eyebrow),
.contact-copy p {
  color: var(--text);
  font-size: 16px;
}

.about-copy p:not(.eyebrow) {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.42;
}

.about-copy .outline-button.compact {
  min-height: 42px;
  margin-top: 17px;
}

.contact {
  position: relative;
  overflow: hidden;
  background: #17110d;
}

.contact-floor {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 17, 13, 0.94), rgba(23, 17, 13, 0.58) 52%, rgba(23, 17, 13, 0.96)),
    radial-gradient(ellipse at 35% 74%, rgba(180, 121, 77, 0.22), transparent 37%),
    linear-gradient(90deg, transparent 0 49.7%, rgba(226, 204, 166, 0.18) 49.8% 50.2%, transparent 50.3%),
    repeating-linear-gradient(0deg, rgba(245, 234, 214, 0.045) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(245, 234, 214, 0.035) 0 1px, transparent 1px 88px);
  opacity: 0.85;
}

.contact-floor::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 19%;
  height: 170px;
  border: 1px solid rgba(226, 204, 166, 0.13);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  min-height: 255px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.contact-copy {
  align-self: center;
  padding: 28px 38px 28px 6px;
}

.contact-copy .eyebrow {
  margin-bottom: 17px;
}

.contact-copy h2 {
  max-width: 490px;
}

.contact-copy p {
  max-width: 510px;
  margin: 20px 0 0;
}

.contact-list {
  align-self: center;
  padding: 18px 0 17px 52px;
  border-left: 1px solid var(--line);
}

.contact-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

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

.contact-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.contact-icon svg,
.socials svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.location {
  font-size: 46px;
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
}

.contact-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-row span span {
  color: var(--text);
  font-size: 16px;
}

.row-arrow {
  color: var(--white);
  font-size: 26px;
}

.footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  background: #120f0c;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer p {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.socials a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 1280px) {
  :root {
    --container: 1120px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 66px;
  }

  .menu-toggle {
    width: 42px;
    height: 38px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--white);
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin-left: auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px var(--side) 18px;
    background: rgba(24, 19, 15, 0.98);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 0;
  }

  .nav a::after {
    bottom: 8px;
    right: auto;
    width: 32px;
  }

  .hero,
  .hero-inner {
    min-height: 600px;
  }

  .hero-media img {
    object-position: 64% 48%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(24, 19, 15, 0.97) 0%, rgba(24, 19, 15, 0.82) 48%, rgba(24, 19, 15, 0.28) 100%),
      linear-gradient(180deg, rgba(24, 19, 15, 0.2) 0%, rgba(24, 19, 15, 0.34) 54%, rgba(24, 19, 15, 0.97) 100%);
  }

  h1 {
    max-width: 430px;
  }

  .section-head {
    align-items: start;
  }

  .text-link {
    padding-bottom: 15px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

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

  .about-image {
    min-height: 360px;
  }

  .about-image::after {
    background: linear-gradient(180deg, rgba(33, 26, 20, 0) 50%, rgba(33, 26, 20, 0.95) 100%);
  }

  .about-copy {
    justify-self: start;
    width: min(540px, 100%);
    padding: 0 0 52px;
  }

  .contact-copy {
    padding: 42px 0 12px;
  }

  .contact-list {
    padding: 8px 0 42px;
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 26px 0;
    text-align: left;
  }

  .footer p {
    text-align: left;
  }

  .socials {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  :root {
    --side: 20px;
  }

  .hero,
  .hero-inner {
    min-height: 580px;
  }

  .hero-media img {
    object-position: 66% 45%;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 16px;
  }

  .section-head {
    display: block;
  }

  .text-link {
    margin-top: 18px;
    padding-bottom: 0;
  }

  .portfolio {
    padding-top: 40px;
  }

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

  .work-card img {
    aspect-ratio: 1 / 1.1;
  }

  .about-image {
    min-height: 330px;
  }

  .contact-row {
    grid-template-columns: 42px 1fr 24px;
    gap: 14px;
  }

  .contact-row span span {
    font-size: 14px;
  }
}
