:root {
  --bg: #0b0d10;
  --bg-2: #12161b;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.72);
  --muted-strong: rgba(245, 241, 234, 0.88);
  --accent: #d8a15d;
  --accent-2: #e7c7a0;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 161, 93, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(231, 199, 160, 0.12), transparent 24%),
    linear-gradient(180deg, #090b0e 0%, var(--bg) 40%, #101419 100%);
}

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

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

.site-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(11, 13, 16, 0.96);
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.18);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:not(.nav-cta) {
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(245, 241, 234, 0.32);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: rgba(245, 241, 234, 0.06);
  border-color: rgba(245, 241, 234, 0.5);
  transform: translateY(-1px);
}

.hero,
.services,
.work,
.contact {
  margin-top: 0;
}

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  isolation: isolate;
  background: #0f1216;
}

h2,
h3,
p {
  margin-top: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.18) 0%, rgba(11, 13, 16, 0.52) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0.08) 55%, rgba(11, 13, 16, 0.65) 100%);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.02);
}

.services {
  padding: 24px 0 0;
}

.work {
  padding: 32px 0 36px;
  margin-top: 28px;
  background: #f4efe6;
  color: #1b1b1b;
}

.work .eyebrow {
  color: #6f6354;
}

.work .section-head h2 {
  color: #1b1b1b;
}

.section-head {
  max-width: 92ch;
  padding: 0 20px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.services .section-head h2 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  margin-bottom: 18px;
}

.services .section-head {
  max-width: none;
  width: 100%;
}

.section-lead {
  margin: 14px auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.feature-list {
  margin-top: 22px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.08fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: 0;
}

.feature-row.reverse {
  grid-template-columns: 1.08fr minmax(320px, 0.92fr);
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-image {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-image img {
  min-height: 150px;
}

.feature-copy {
  max-width: 42rem;
  padding-right: clamp(8px, 1vw, 18px);
}

.feature-kicker {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.05;
}

.feature-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.portfolio-grid {
  margin-top: 16px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  position: relative;
  display: block;
  min-height: 170px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  box-shadow: 0 12px 28px rgba(27, 27, 27, 0.08);
  background: #fff;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 241, 234, 0.02) 0%, rgba(11, 13, 16, 0.42) 100%);
}

.portfolio-card img {
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-card div {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 16px;
}

.portfolio-card span {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0 8px;
  justify-items: center;
  text-align: center;
}

.contact > div {
  width: 100%;
  max-width: none;
  padding: 0 clamp(20px, 5vw, 72px);
}

.contact > div > p:not(.eyebrow) {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  text-wrap: balance;
}

.contact p:last-child {
  color: var(--muted);
}

.contact h2 {
  margin-bottom: 18px;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.contact .button {
  margin-top: 18px;
}

.contact .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(245, 241, 234, 0.22);
  border-radius: 8px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
}

.contact .button-secondary:hover {
  background: rgba(245, 241, 234, 0.06);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  padding: 28px 20px 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  .feature-copy {
    padding-right: 0;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-image {
    order: 0;
  }

  .feature-copy {
    order: 1;
  }

  .contact > div > p:not(.eyebrow) {
    max-width: 100%;
  }

  .feature-copy p:last-child {
    width: auto;
    white-space: normal;
  }

  .feature-row,
  .feature-row.reverse,
  .contact {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-visual {
    min-height: 640px;
    margin-top: 8px;
  }

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