:root {
  color-scheme: dark;
  --color-bg: #0b0b0c;
  --color-ink: #f5f1ea;
  --color-ink-soft: #c7c1b8;
  --color-accent: #c9a66b;
  --color-accent-2: #e9d9b6;
  --color-panel: #111114;
  --color-panel-light: #f6f4ef;
  --color-ink-dark: #121212;
  --color-border: rgba(245, 241, 234, 0.12);
  --halo-x: 50%;
  --halo-y: 35%;
  --font-display: "Canela", "Cormorant Garamond", "Playfair Display", serif;
  --font-body: "Satoshi", "Neue Haas Grotesk", "Helvetica Neue", sans-serif;
  --max-width: 1200px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 40px 100px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: radial-gradient(circle at var(--halo-x) var(--halo-y), rgba(201, 166, 107, 0.28), transparent 24%),
    radial-gradient(circle at calc(var(--halo-x) + 12%) calc(var(--halo-y) + 8%), rgba(88, 126, 196, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.88), rgba(7, 7, 9, 0.98));
  opacity: 1;
}

body::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 180px 180px, 180px 180px, 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.2;
  animation: hero-grid 26s linear infinite;
}

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

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

main {
  padding-top: 5.5rem;
}

body.home main {
  padding-top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section-light {
  background: transparent;
  color: inherit;
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-subtitle {
  color: inherit;
  opacity: 0.7;
  max-width: 720px;
}

.link-underline {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  background: transparent;
  background-color: transparent;
  background-image: none;
  border-bottom: 0;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: transparent;
}

.site-logo img {
  height: 58px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
  flex-wrap: wrap;
  background: transparent;
}

.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f5f1ea;
  background: transparent;
  border: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

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

.site-logo {
  transition: transform 0.4s ease;
}

.site-header--scrolled {
  background: radial-gradient(circle at var(--halo-x) var(--halo-y), rgba(201, 166, 107, 0.18), transparent 30%),
    radial-gradient(circle at calc(var(--halo-x) + 10%) calc(var(--halo-y) + 6%), rgba(88, 126, 196, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.88), rgba(7, 7, 9, 0.97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8.5rem var(--gutter) 6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --hero-x: 50%;
  --hero-y: 35%;
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: screen;
  filter: blur(0.3px) saturate(1.1);
}

.hero-overlay {
  display: none;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.2;
  transform: translate3d(0, 0, 0);
  animation: hero-grid 18s linear infinite;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: perspective(900px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
  transition: transform 0.4s ease;
}

.hero-logo {
  width: clamp(260px, 38vw, 460px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  opacity: 0;
  animation: logo-reveal 1.2s ease forwards;
}

.hero-meta {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  opacity: 0.7;
  animation: fade-up 1.1s ease forwards;
  animation-delay: 0.4s;
}

.hero-tagline {
  max-width: 560px;
  font-size: 1rem;
  color: var(--color-ink-soft);
  opacity: 0;
  animation: fade-up 1.2s ease forwards;
  animation-delay: 0.6s;
}


.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 234, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cta span {
  position: relative;
  z-index: 1;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(201, 166, 107, 0.8), rgba(233, 217, 182, 0.9));
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}

.cta:hover {
  border-color: transparent;
  color: #101010;
}

.cta:hover::after {
  transform: translateX(0);
}

.cta--ghost {
  border-color: rgba(0, 0, 0, 0.2);
  color: inherit;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: rgba(9, 9, 12, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.portfolio-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portfolio-grid--large {
  margin-top: 2.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #121216;
  min-height: 260px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.9) contrast(1.05);
}

.portfolio-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio-item:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.1);
}

.portfolio-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: inherit;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn[aria-pressed="true"],
.filter-btn:hover {
  background: var(--color-accent);
  color: #111;
  border-color: transparent;
}

.services-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(16, 16, 20, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.process-list,
.values-list {
  display: grid;
  gap: 1.5rem;
}

.process-list h3,
.values-list h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  display: none;
}

.page-hero__content {
  position: relative;
  max-width: 760px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(12, 12, 16, 0.9);
  color: inherit;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.25);
}

.field-error {
  font-size: 0.75rem;
  color: #f1b9a5;
  min-height: 1rem;
}

.form-status {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-status--success {
  background: rgba(72, 112, 88, 0.2);
  border: 1px solid rgba(90, 170, 120, 0.4);
  color: #cde8d8;
}

.form-status--error {
  background: rgba(150, 70, 70, 0.2);
  border: 1px solid rgba(190, 90, 90, 0.4);
  color: #f1b9a5;
}

.contact-details {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 3rem var(--gutter);
  border-top: 1px solid rgba(245, 241, 234, 0.1);
  background: rgba(9, 9, 10, 0.8);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-title {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes hero-title-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-grid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-6%, -6%, 0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .nav-menu {
    justify-content: center;
    gap: 1.4rem;
  }

  .nav-link {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .site-logo img {
    height: 46px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 8rem;
  }

  .hero-meta {
    letter-spacing: 0.22em;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

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

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