:root {
  --wp-teal: #174f5c;
  --wp-teal-deep: #0f3a44;
  --wp-stone: #eef1ea;
  --wp-ink: #1c1d1d;
  --wp-charcoal: #373839;
  --wp-muted: #737373;
  --wp-white: #ffffff;
  --wp-border: rgba(23, 79, 92, 0.14);
  --font-heading: "Bodoni Moda", "Times New Roman", serif;
  --font-sub: "Cormorant Garamond", "Palatino Linotype", serif;
  --font-body: "Anek Tamil", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(15, 58, 68, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--wp-ink);
  background: var(--wp-stone);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wp-teal);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  background: transparent;
  color: var(--wp-white);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(238, 241, 234, 0.92);
  color: var(--wp-ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--wp-border);
}

.site-header.is-scrolled .logo-white,
.site-header.is-solid .logo-white {
  opacity: 0;
}

.site-header.is-scrolled .logo-black,
.site-header.is-solid .logo-black {
  opacity: 1;
}

.header-inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  min-width: 7.5rem;
}

.brand img {
  height: 2.55rem;
  width: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.logo-black {
  opacity: 0;
}

.logo-white {
  opacity: 1;
}

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

.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-cta {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
  text-align: center;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--wp-teal);
  color: var(--wp-white);
}

.btn-primary:hover {
  background: var(--wp-teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-light {
  background: var(--wp-white);
  color: var(--wp-teal);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  margin-top: calc(var(--header-h) * -1);
  display: grid;
  place-items: end start;
  color: var(--wp-white);
  overflow: hidden;
  background: var(--wp-charcoal);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s linear;
}

.hero.is-ready .hero-media img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 58, 68, 0.35) 0%,
    rgba(15, 58, 68, 0.55) 45%,
    rgba(15, 58, 68, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  max-width: 38rem;
}

.eyebrow {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.08rem;
  max-width: 34rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  color: var(--wp-teal);
}

.section-head p {
  margin: 0;
  color: var(--wp-charcoal);
}

.section-dark {
  background: var(--wp-charcoal);
  color: var(--wp-stone);
}

.section-dark .section-head h2 {
  color: var(--wp-stone);
}

.section-teal {
  background: var(--wp-teal);
  color: var(--wp-white);
}

.section-teal .section-head h2 {
  color: var(--wp-white);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card-quiet {
  padding: 1.5rem 0;
  border-top: 1px solid var(--wp-border);
}

.card-quiet h3 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  color: var(--wp-teal);
}

.card-quiet p {
  margin: 0;
  color: var(--wp-charcoal);
}

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

.teaser-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--wp-charcoal);
  color: white;
}

.teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.teaser-card:hover img {
  transform: scale(1.05);
}

.teaser-card span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.teaser-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(15, 58, 68, 0.75));
}

.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dual-cta article {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dual-cta h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background: linear-gradient(160deg, #123f4a, var(--wp-teal) 55%, #2a6570);
  color: white;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  opacity: 0.95;
}

/* Portfolio */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  border: 1px solid var(--wp-border);
  background: transparent;
  color: var(--wp-teal);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--wp-teal);
  color: white;
  border-color: var(--wp-teal);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d7ddd4;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  color: white;
}

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

.project-card:hover img {
  transform: scale(1.04);
}

.project-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem;
  background: linear-gradient(transparent, rgba(15, 58, 68, 0.85));
}

.project-meta small {
  display: block;
  opacity: 0.85;
  font-family: var(--font-sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.project-card[hidden] {
  display: none !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 24, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  width: min(980px, 100%);
  max-height: 90vh;
  display: grid;
  gap: 0.75rem;
}

.lightbox-stage {
  position: relative;
  background: #0b1518;
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.lightbox-stage img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: auto;
  margin: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-caption {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.lightbox-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.lightbox-thumbs button.is-active {
  border-color: white;
}

.lightbox-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-size: 0.92rem;
  color: var(--wp-charcoal);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--wp-border);
  background: white;
  padding: 0.8rem 0.9rem;
  border-radius: 2px;
  color: var(--wp-ink);
}

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

.form-note {
  color: var(--wp-muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
}

.form-status.is-ok {
  color: var(--wp-teal);
}

.form-status.is-err {
  color: #8a2f2f;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list a {
  color: var(--wp-teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Footer */
.site-footer {
  background: #121314;
  color: #d8ddd6;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: white;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #9aa19a;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media img,
  .teaser-card img,
  .project-card img,
  .btn {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3,
  .teaser-grid,
  .portfolio-grid,
  .dual-cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(238, 241, 234, 0.98);
    color: var(--wp-ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
    box-shadow: var(--shadow);
  }

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

  .nav-cta {
    margin-left: 0;
    flex-direction: column;
  }

  .site-header.nav-open {
    background: rgba(238, 241, 234, 0.98);
    color: var(--wp-ink);
  }

  .site-header.nav-open .logo-white {
    opacity: 0;
  }

  .site-header.nav-open .logo-black {
    opacity: 1;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .portfolio-grid,
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
