:root {
  --ink: #191714;
  --paper: #f7f1e8;
  --muted: #776f65;
  --line: rgba(25, 23, 20, 0.14);
  --accent: #9d2235;
  --accent-dark: #641320;
  --gold: #c79745;
  --night: #12100f;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(25, 23, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(157, 34, 53, 0.06), transparent 38%),
    var(--paper);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 16, 15, 0.78), transparent);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 241, 232, 0.88);
  box-shadow: 0 10px 30px rgba(25, 23, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-header.is-scrolled .site-nav {
  color: rgba(25, 23, 20, 0.68);
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

section {
  min-height: 100vh;
  padding: clamp(86px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(34px, 5vw, 56px);
  min-height: 100svh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 16, 15, 0.96) 0%, rgba(18, 16, 15, 0.82) 46%, rgba(18, 16, 15, 0.34) 100%),
    linear-gradient(180deg, rgba(18, 16, 15, 0.2) 0%, rgba(18, 16, 15, 0.88) 100%),
    url("https://images.unsplash.com/photo-1505686994434-e3cc5abf1330?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(4.1rem, 13vw, 10rem);
  line-height: 0.86;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6vw, 5.5rem);
  line-height: 0.96;
}

.lead {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.button.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-strip div {
  min-height: 104px;
  padding: 20px clamp(14px, 2vw, 26px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-strip strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}

.about {
  display: grid;
  align-content: center;
  gap: clamp(36px, 6vw, 72px);
}

.section-heading {
  max-width: 980px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-grid p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.42rem);
  line-height: 1.72;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-height: 150px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.work {
  display: grid;
  align-content: center;
  gap: clamp(34px, 6vw, 68px);
  background: #fffaf1;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 46px rgba(25, 23, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(25, 23, 20, 0.16);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  padding: 24px;
}

.project-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contacts {
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(18, 16, 15, 0.78), rgba(18, 16, 15, 0.86)),
    url("https://images.unsplash.com/photo-1513106580091-1d82408b8cd6?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: end;
  padding-top: 12vh;
}

.contact-panel h2 {
  max-width: 950px;
}

.contact-list {
  display: grid;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.contact-list a {
  width: fit-content;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.section-reveal {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
}

.section-reveal.from-left {
  transform: translateX(-72px);
}

.section-reveal.from-right {
  transform: translateX(72px);
}

.section-reveal.from-bottom {
  transform: translateY(72px);
}

.section-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
    background-position: 58% center;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  section {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .hero {
    min-height: 100vh;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.9rem);
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-strip div:last-child {
    border-bottom: 0;
  }

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

  .stats div {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

}

@media (max-width: 460px) {
  .site-header {
    display: grid;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
