:root {
  --bg: #0d0d0d;
  --bg-elevated: #161616;
  --bg-card: rgba(22, 22, 22, 0.88);
  --gold: #c9a24d;
  --gold-bright: #da9e42;
  --gold-deep: #a87531;
  --gold-dim: #8a6430;
  --text: #ffffff;
  --text-muted: #b7b7b7;
  --text-soft: #8f8f8f;
  --line: rgba(201, 162, 77, 0.28);
  --border: rgba(255, 255, 255, 0.12);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: color 0.25s var(--ease);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  color: var(--gold);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.55);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-solid {
  background: rgba(28, 28, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-solid:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  background-size: 160% 160%;
  border-color: transparent;
  color: #121212;
  animation: goldShift 6s ease infinite;
}

.btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(201, 162, 77, 0.28);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  padding: 0.85rem 1.25rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  animation: fadeDown 0.8s var(--ease) both;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.brand {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(201, 162, 77, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

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

.nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: none;
}

.nav-toggle {
  position: relative;
  z-index: 110;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 12, 0.55);
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.25s ease, top 0.3s var(--ease);
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 22px; }
.nav-toggle-bar:nth-child(3) { top: 29px; }

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

body.nav-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3.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%;
  animation: heroZoom 18s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.45) 48%, rgba(8, 8, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.15) 35%, rgba(8, 8, 8, 0.75) 100%);
}

.hero-content,
.feature-cards {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.hero-content {
  max-width: 640px;
  padding-bottom: 1rem;
}

.hero-anim {
  opacity: 0;
  animation: fadeUp 0.85s var(--ease) calc(var(--d) * 0.12s + 0.15s) forwards;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShift 5s ease infinite;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
}

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

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.feature-card:hover {
  border-color: var(--line);
  transform: translateY(-6px);
  background: rgba(28, 28, 28, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}

.feature-card:hover .feature-icon {
  transform: translateY(-3px) scale(1.08);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
}

/* Portfolio */
.portfolio {
  padding: 4.5rem 1.25rem 5rem;
  background: var(--bg);
}

.portfolio-head {
  margin-bottom: 2.5rem;
}

.portfolio-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: min(100%, var(--container));
  margin: 0 auto 2.25rem;
}

.portfolio-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

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

.portfolio-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.92));
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.portfolio-card:hover .portfolio-copy {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.portfolio-copy p {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
}

/* Services */
.services {
  padding: 5rem 1.25rem;
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 77, 0.08), transparent 55%),
    var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  width: min(100%, var(--container));
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-muted);
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.service-item {
  padding: 1.75rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 13, 0.55);
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service-item:hover {
  border-color: var(--line);
  transform: translateY(-5px);
  background: rgba(20, 20, 20, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.service-num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: letter-spacing 0.35s var(--ease), transform 0.35s var(--ease);
}

.service-item:hover .service-num {
  letter-spacing: 0.22em;
  transform: translateX(2px);
}

.service-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.service-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 300;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.about-media {
  overflow: hidden;
  min-height: 480px;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.about-media:hover img {
  transform: scale(1.04);
}

.about-copy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.about-copy h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.about-copy > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
}

.about-points {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* Contact */
.contact {
  padding: 0 1.25rem 5.5rem;
}

.contact-panel {
  display: block;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(201, 162, 77, 0.08), transparent 40%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-copy {
  max-width: 36rem;
}

.contact-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.contact-copy h2 em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

.contact-copy > p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.contact-meta a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-meta a:hover {
  color: var(--gold);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.footer-brand span {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes goldShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

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

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

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

  .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .feature-cards,
  .services-grid,
  .about,
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .about-media,
  .about-media img {
    min-height: 320px;
  }
}

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: min(100%, 360px);
    height: 100dvh;
    padding: 6.5rem 1.75rem 2.5rem;
    background: #0f0f0f;
    border-left: 1px solid rgba(201, 162, 77, 0.22);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav a {
    width: 100%;
    padding: 1rem 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(18px);
    transition: color 0.2s ease, opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.12s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.16s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.2s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.24s; }
  .nav.is-open a:nth-child(6) { transition-delay: 0.28s; }

  .nav-cta {
    display: block;
    margin-top: 1.5rem;
    padding: 0.95rem 1.1rem !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-size: 0.9rem !important;
    text-align: center;
  }

  .brand-text strong {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .brand-text small {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 6.5rem 1rem 2.5rem;
    gap: 2.5rem;
  }

  .feature-cards,
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 340px;
  }

  .contact-panel {
    padding: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
