:root {
  --cream: #f6f1ea;
  --cream-soft: rgba(246, 241, 234, 0.85);
  --ink: #1c1a18;
  --ink-soft: #55504a;
  --red: #8a1c1c;
  --red-dark: #6e1616;
  --serif: 'Playfair Display', Georgia, serif;
  --serif-plain: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Jost', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(28, 26, 24, 0.08);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 48px;
}

.logo-horizontal {
  height: 76px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-family: var(--serif-plain);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(460px, 74vh, 700px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 6, 5, 0.4) 0%,
    rgba(8, 6, 5, 0.22) 30%,
    rgba(8, 6, 5, 0) 60%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 9%;
  padding: 0 24px;
  color: var(--cream);
}

.hero-logo {
  width: 180px;
  margin-bottom: 18px;
}

.hero-divider {
  width: 64px;
  height: 2px;
  background: var(--red);
  margin: 0 0 22px;
}

.hero-content h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.18;
  margin: 0 0 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--serif-plain);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 16px 31px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: background 0.25s ease, gap 0.25s ease;
}

.cta-button:hover {
  background: var(--red-dark);
  gap: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(246, 241, 234, 0.55);
  position: relative;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(246, 241, 234, 0.85);
  border-bottom: 1px solid rgba(246, 241, 234, 0.85);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Work section */

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--cream);
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.work-image {
  position: absolute;
  top: 0;
  left: 34%;
  width: 66%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.work-fade {
  position: absolute;
  inset: 0;
  left: 34%;
  background: linear-gradient(
    100deg,
    var(--cream) 0%,
    var(--cream) 12%,
    var(--cream-soft) 24%,
    rgba(246, 241, 234, 0) 52%
  );
}

.work-text {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 6%;
}

.work-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.work-text p {
  font-family: var(--serif-plain);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.work-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.work-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 56px 20px;
}

.footer-logo {
  width: 150px;
  margin: 0 auto 20px;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(246, 241, 234, 0.65);
  margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .work {
    grid-template-columns: 1fr;
  }

  .work-card {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .work-text {
    position: static;
    width: 100%;
    height: auto;
    padding: 32px 7% 24px;
  }

  .work-image {
    position: static;
    width: 100%;
    height: 280px;
    margin: 0 0 28px;
    box-shadow: none;
  }

  .work-fade {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 16px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(28, 26, 24, 0.08);
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 260px;
  }

  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid rgba(28, 26, 24, 0.06);
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    margin-left: 6%;
  }
}

@media (max-width: 520px) {
  .hero-logo {
    width: 150px;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .work-image {
    height: 220px;
  }
}
