:root {
  --bg: #070607;
  --bg-2: #0d090b;
  --surface: #100d10;
  --panel: #151013;
  --panel-soft: color-mix(in srgb, var(--panel) 86%, white 14%);
  --text: #f7f1e8;
  --muted: #c9bfb3;
  --subtle: #9f9388;
  --accent: #8f2d46;
  --accent-dark: #5f1d30;
  --gold: #c59b4a;
  --border: rgba(245, 230, 205, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --container: 1160px;
  --header-height: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent) 26%, transparent) 0, transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  min-width: 154px;
  padding: 0.2rem 0;
}

.site-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

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

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

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(4.3rem, 11vw, 9.8rem);
}

.hero-lede {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.88rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  transform: rotate(-2deg);
}

.hero-image,
.about-image {
  position: relative;
  width: 100%;
  min-height: 480px;
  max-height: 700px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-editorial .hero-image {
  aspect-ratio: 4 / 3;
  object-position: 50% 44%;
}

.theme-corporate .hero-image {
  aspect-ratio: 4 / 5;
  object-position: 50% 42%;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-label {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.55rem, 5.4vw, 5.6rem);
}

.section-heading p:not(.section-label),
.about-copy p,
.contact-copy p {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.process-step,
.lead-form {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, white 6%), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.service-card {
  min-height: 230px;
  padding: 1.45rem;
}

.service-card h3,
.process-step h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.service-card p,
.process-step p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.about {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.split-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
}

.about-image {
  aspect-ratio: 4 / 5;
  object-position: 50% 36%;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-step {
  padding: 1.45rem;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 3rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-grid {
  align-items: start;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.form-field {
  display: grid;
  gap: 0.48rem;
}

.form-field.full,
.button.full,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0.9rem 1rem;
}

textarea {
  resize: vertical;
}

select {
  color: var(--muted);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: #050506;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer-logo {
  width: 174px;
  max-height: 116px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

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

.delay-1 {
  transition-delay: 110ms;
}

.delay-2 {
  transition-delay: 190ms;
}

.delay-3 {
  transition-delay: 270ms;
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 20px auto 20px;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg) 94%, white 6%);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .hero-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 620px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: auto;
    padding: 0.36rem 0.52rem;
  }

  .site-logo {
    width: 30px;
    height: 30px;
  }

  .brand-wordmark {
    font-size: 0.82rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 20vw, 5.25rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-image,
  .about-image {
    min-height: 420px;
    border-radius: 22px;
  }

  .service-grid,
  .process-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
