:root {
  --bg: #16110c;
  --bg-elevated: #211910;
  --ink: #f3ebe1;
  --ink-muted: #c4b4a2;
  --accent: #d08a45;
  --accent-deep: #9a5a28;
  --line: rgba(243, 235, 225, 0.14);
  --forest: #3f5c48;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(208, 138, 69, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(63, 92, 72, 0.22), transparent 50%),
    linear-gradient(180deg, #1c1510 0%, var(--bg) 40%, #120e0a 100%);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(22, 17, 12, 0.92), rgba(22, 17, 12, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-zoom 12s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.82) 0%, rgba(18, 12, 8, 0.45) 48%, rgba(18, 12, 8, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 12, 8, 0.88) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 22ch;
}

.hero-text {
  margin-top: 1.1rem;
  color: var(--ink-muted);
  max-width: 34ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a120c;
}

.btn-primary:hover {
  background: #e09a55;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.service-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service-item.is-visible {
  opacity: 1;
  transform: none;
}

.service-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.service-item p {
  color: var(--ink-muted);
  max-width: 34ch;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.work-item.is-visible {
  opacity: 1;
  transform: none;
}

.work-item:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.work-item:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; }
.work-item:nth-child(3) { grid-column: span 5; aspect-ratio: 1 / 1; }
.work-item:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }
.work-item:nth-child(n + 5) { grid-column: span 4; aspect-ratio: 4 / 3; }

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.work-item:hover img {
  transform: scale(1.04);
}

.work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(transparent, rgba(12, 8, 5, 0.85));
  transform: translateY(8px);
  opacity: 0.9;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.work-item:hover .work-meta {
  transform: none;
  opacity: 1;
}

.work-meta span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.work-meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(63, 92, 72, 0.14), transparent 45%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.about-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.about-copy > p {
  color: var(--ink-muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.about-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.about-copy li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
}

.about-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
}

.about-figure {
  margin: 0;
  overflow: hidden;
  min-height: 28rem;
}

.about-figure img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.contact {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-panel {
  max-width: 40rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  background:
    linear-gradient(145deg, rgba(208, 138, 69, 0.12), transparent 40%),
    var(--bg-elevated);
  border: 1px solid var(--line);
}

.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.contact-panel > p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.contact-links a,
.contact-links span {
  font-size: 1.05rem;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer [data-footer-brand] {
  font-family: var(--font-display);
  color: var(--ink);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(92vw, 1100px);
  width: 100%;
  background: transparent;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(8, 5, 3, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #0d0a07;
}

.lightbox p {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-display);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    z-index: 45;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(18, 12, 8, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.35rem;
    color: var(--ink);
  }

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

  .work-item:nth-child(n) {
    grid-column: span 12;
    aspect-ratio: 5 / 4;
  }

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

  .about-figure,
  .about-figure img {
    min-height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
