/*
Theme Name: Unovarg
Theme URI: https://unovarg.com
Author: Unovarg Design Studio
Author URI: https://unovarg.com
Description: A premium interior design studio theme — warm, minimal, and editorial.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unovarg
Tags: one-page, portfolio, custom-colors, custom-menu, featured-images, full-width-template
*/

/* ============ TOKENS ============ */
:root {
  --cream: #F7F6F1;
  --cream-2: #F1EFE8;
  --ink: #1C1A16;
  --ink-soft: #4A4640;
  --taupe: #8C8272;
  --line: #E3DFD5;
  --dark: #141310;
  --dark-2: #1D1B17;
  --white: #FFFFFF;
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
}

em {
  font-style: italic;
  font-weight: 400;
}

.body-text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  max-width: 480px;
}

.body-text.light {
  color: rgba(255, 255, 255, .65);
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  margin-bottom: 16px;
}

.eyebrow.small {
  margin-bottom: 10px;
}

.eyebrow-light {
  color: rgba(255, 255, 255, .5);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: #35312A;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

.link-arrow {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-content {
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  will-change: transform, opacity;
  animation: loaderPulse 2.2s ease-in-out infinite alternate;
}

.loader-content img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.loader-text {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: .05em;
}

/* Luxury animated line beneath logo during load */
.loader-line {
  width: 90px;
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  margin-top: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  animation: loaderShimmer 1.6s infinite ease-in-out;
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.82;
  }
  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes loaderShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  padding: 28px 0;
  transition: background-color .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease);
}

/* Scrim so nav text stays legible over light/dark photo areas before scrolling */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  opacity: 1;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.nav.scrolled::before {
  opacity: 0;
}

.nav.scrolled {
  padding: 16px 0;
  background: rgba(247, 246, 241, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-logo-link,
.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: .01em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
  display: inline-flex;
  align-items: center;
}

.custom-logo-link img {
  width: auto;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  transition: filter .45s var(--ease);
}

.nav.scrolled .custom-logo-link,
.nav.scrolled .logo {
  color: var(--ink);
  text-shadow: none;
}


.logo.light {
  color: var(--cream);
}

/* WP Admin Bar Fix */
body.admin-bar .nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .nav {
    top: 46px;
  }
}

.nav-links {
  display: flex;
  gap: 38px;
}

.nav-links a {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--ink-soft);
  text-shadow: none;
}

.nav-cta {
  padding: 13px 26px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background .4s var(--ease);
}

.nav.scrolled .nav-toggle span {
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: var(--ink);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 100px 40px;
  transition: right .5s var(--ease);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

/* WP nav menu reset inside mobile-menu */
.mobile-menu .menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu .menu a {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

/* WP nav menu reset inside nav-links */
.nav-links .menu {
  list-style: none;
  display: flex;
  gap: 38px;
}

.nav-links .menu li {
  display: block;
}

.nav-links .menu a {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}

.nav-links .menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.nav-links .menu a:hover::after {
  width: 100%;
}

.nav.scrolled .nav-links .menu a {
  color: var(--ink-soft);
  text-shadow: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  transform: scale(1.15);
}

/* Hero video — fills the container exactly like the image */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* no scale — video is already full res */
}

/* On mobile, autoplay may be blocked — poster image covers it */
@media (max-width: 768px) {
  .hero-video {
    object-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, .35) 0%, rgba(20, 18, 15, .15) 40%, rgba(20, 18, 15, .55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 26px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .7);
  z-index: 2;
}

.hero-scroll span {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, .5);
  position: relative;
  overflow: hidden;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  50% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.hero-scroll p {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ============ ABOUT ============ */
.about {
  padding: 140px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 90px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 26px;
  max-width: 480px;
}

.about-stats {
  display: flex;
  gap: 56px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--ink);
}

.stat-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 6px;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

/* ============ SERVICES ============ */
.services {
  padding: 100px 0 120px;
  background: var(--cream-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  max-width: 620px;
}

.services-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.services-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 10px 40px;
}

.service-card {
  width: 280px;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 20px 0 8px;
}

.service-card p {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
}

.service-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}

.service-img img {
  transition: transform .7s var(--ease);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ============ PORTFOLIO ============ */
.portfolio {
  padding: 120px 0;
  background: var(--cream);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 20px;
}

/* Base item — position context for overlay */
.p-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: block;          /* works for both <a> and <div> */
  cursor: default;
}

a.p-item {
  cursor: pointer;
}

/* Image zoom on hover */
.p-item img {
  transition: transform .85s var(--ease);
  will-change: transform;
}

.p-item:hover img {
  transform: scale(1.09);
}

/* Overlay — fades in */
.p-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 18, 15, 0)   0%,
    rgba(20, 18, 15, .18) 35%,
    rgba(20, 18, 15, .78) 100%
  );
  opacity: 0;
  transition: opacity .5s var(--ease);
  display: flex;
  align-items: flex-end;
}

.p-item:hover .p-overlay, .ow-item:hover .p-overlay {
  opacity: 1;
}

/* Overlay inner — slides up */
.p-overlay-inner {
  padding: 28px 26px;
  transform: translateY(14px);
  transition: transform .5s var(--ease);
  width: 100%;
}

.p-item:hover .p-overlay-inner, .ow-item:hover .p-overlay-inner {
  transform: translateY(0);
}

.p-overlay-eyebrow {
  display: block;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease) .05s, transform .4s var(--ease) .05s;
}

.p-item:hover .p-overlay-eyebrow, .ow-item:hover .p-overlay-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.p-overlay-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease) .1s, transform .4s var(--ease) .1s;
}

.p-item:hover .p-overlay-title, .ow-item:hover .p-overlay-title {
  opacity: 1;
  transform: translateY(0);
}

.p-overlay-desc {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease) .15s, transform .35s var(--ease) .15s;
}

.p-item:hover .p-overlay-desc, .ow-item:hover .p-overlay-desc {
  opacity: 1;
  transform: translateY(0);
}

.p-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease) .2s, transform .35s var(--ease) .2s, border-color .3s;
}

.p-item:hover .p-overlay-cta,
.ow-item:hover .p-overlay-cta {
  opacity: 1;
  transform: translateY(0);
  border-color: #fff;
}

.p-overlay-arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}

.p-item:hover .p-overlay-arrow,
.ow-item:hover .p-overlay-arrow {
  transform: translateX(4px);
}

/* Grid placement — unchanged */
.p1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.p2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.p3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.p4 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.p5 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.p6 {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
}

/* ============ WHY CHOOSE US ============ */
.why {
  background: var(--dark);
  color: var(--white);
  padding: 110px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why h2 {
  color: var(--white);
  margin-bottom: 22px;
  max-width: 460px;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .95rem;
  font-weight: 300;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  flex-shrink: 0;
}

/* ============ JOURNEY ============ */
.journey {
  padding: 130px 0 60px;
  background: var(--cream-2);
}

.journey .section-head {
  margin-bottom: 90px;
}

.journey-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.journey-row.reverse .journey-text {
  order: 2;
}

.journey-row.reverse .journey-num {
  order: 1;
}

.step-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.journey-text h3 {
  margin-bottom: 16px;
}

.journey-text p:last-child {
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
  max-width: 440px;
}

.journey-num {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.4/1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.journey-num span {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 11vw, 10rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-weight: 400;
}

/* Image mode — fills the panel when an image is uploaded */
.journey-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  transition: transform .8s var(--ease);
  display: block;
}

.journey-num:hover .journey-img {
  transform: scale(1.05);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 120px 0;
  background: var(--cream);
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

.testi-card {
  background: var(--cream-2);
  padding: 40px;
  border-radius: 6px;
}

.stars {
  color: #C9A15A;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-size: .9rem;
}

.testi-card p {
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author strong {
  display: block;
  font-size: .9rem;
  font-weight: 500;
}

.testi-author span {
  font-size: .78rem;
  color: var(--taupe);
}

/* ============ FAQ ============ */
.faq {
  padding: 120px 0 130px;
  background: var(--cream-2);
}

.faq-list {
  max-width: 800px;
  margin: 56px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: left;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform .4s var(--ease);
  color: var(--taupe);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  height: 0;
  overflow: hidden;
}

.faq-a p {
  padding: 0 4px 26px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 640px;
}

/* ============ CONTACT ============ */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact .section-head {
  margin-bottom: 56px;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form .wpcf7-form-control {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--ink);
  font-weight: 300;
  outline: none;
  transition: border-color .3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--taupe);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input.field-invalid,
.contact-form select.field-invalid,
.contact-form textarea.field-invalid {
  border-color: #c0392b;
}

.form-row {
  align-items: start;
}

.field-error-msg {
  display: block;
  margin-top: 4px;
  font-size: .76rem;
  color: #c0392b;
  min-height: 16px;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  border: none;
}

.contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .4s var(--ease);
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  border: none;
}

.contact-form .wpcf7-submit:hover {
  background: #35312A;
}

.contact-info h4 {
  font-weight: 400;
  margin-bottom: 26px;
  font-size: 1.2rem;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.info-icon {
  font-size: 1.1rem;
}

.info-item strong {
  display: block;
  font-size: .85rem;
  margin-bottom: 4px;
}

.info-item p {
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.map-box {
  margin-top: 20px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(45%);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 90px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}

.footer-brand p {
  margin-top: 16px;
  font-weight: 300;
  font-size: .9rem;
  max-width: 280px;
  color: rgba(255, 255, 255, .5);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: .9rem;
  font-weight: 300;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .75);
  transition: color .3s;
}

.footer-col a:hover {
  color: #fff;
}

/* WP menu inside footer-col */
.footer-col .menu {
  list-style: none;
}

.footer-col .menu li {
  display: block;
}

.footer-col .menu a {
  display: block;
  font-size: .9rem;
  font-weight: 300;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .75);
  transition: color .3s;
}

.footer-col .menu a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ GENERIC PAGE ============ */
.page-hero {
  padding: 180px 0 100px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 560px;
}

.page-content {
  padding: 80px 0 120px;
  background: var(--cream);
}

.page-content .container {
  max-width: 800px;
}

.page-content h2,
.page-content h3 {
  margin-bottom: 16px;
  margin-top: 40px;
}

.page-content p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.8;
}

/* ============ SINGLE PORTFOLIO PROJECT ============ */

/* Hero */
.project-hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.project-hero.loaded .project-hero-bg img {
  transform: scale(1);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,18,15,.10) 0%,
    rgba(20,18,15,.22) 40%,
    rgba(20,18,15,.72) 100%
  );
}

.project-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 70px;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--white);
}

.project-hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.project-meta-value {
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  font-weight: 300;
}

.project-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 780px;
}

.project-overview-line {
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: 1.75;
}

/* Breadcrumb */
.project-breadcrumb {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.project-breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .3s;
}

.project-breadcrumb a:hover {
  color: #fff;
}

.project-breadcrumb span {
  color: rgba(255,255,255,.35);
}

/* Project body */
.project-body {
  padding: 100px 0;
  background: var(--cream);
}

.project-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 100px;
}

.project-intro-label {
  position: sticky;
  top: 120px;
}

.project-intro-label .eyebrow {
  margin-bottom: 14px;
}

.project-intro-label h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  margin-bottom: 30px;
  max-width: 340px;
}

.project-intro-label .project-specs {
  list-style: none;
  border-top: 1px solid var(--line);
}

.project-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}

.project-spec-item dt {
  color: var(--taupe);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-spec-item dd {
  color: var(--ink);
  font-weight: 300;
  text-align: right;
}

.project-intro-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 640px;
}

.project-intro-text p:first-child {
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 400;
}

/* Image Gallery */
.project-gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Gallery hero — show full image with contain, no fixed aspect-ratio */
.project-gallery-hero {
  border-radius: 6px;
  overflow: hidden;
  /* No forced aspect-ratio — the image defines its own height */
  margin-bottom: 20px;
  background: var(--cream-2); /* subtle bg visible with contain */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-gallery-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* full image always visible, no cropping */
  transition: transform 1s var(--ease);
}

.project-gallery-hero:hover img {
  transform: scale(1.02);
}

/* Gallery 3-image row — CSS columns: each column sizes to its own image, no crop */
.project-gallery-grid {
  columns: 3;
  column-gap: 16px;
  margin-bottom: 16px;
}

.project-gallery-item {
  break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform .8s var(--ease);
}

.project-gallery-item:hover img {
  transform: scale(1.03);
}

/* Gallery wide — full image visible, no panoramic crop */
.project-gallery-wide {
  border-radius: 4px;
  overflow: hidden;
  /* No forced aspect-ratio */
  background: var(--cream-2);
}

.project-gallery-wide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* full image always visible */
  transition: transform .8s var(--ease);
}

.project-gallery-wide:hover img {
  transform: scale(1.02);
}

/* Challenges & Solutions */
.project-challenge {
  padding: 100px 0;
  background: var(--cream-2);
}

.project-challenge-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.project-challenge-col h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.project-challenge-col p {
  font-size: .95rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Next Project / CTA */
.project-cta {
  background: var(--dark);
  padding: 110px 0;
}

.project-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.project-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 560px;
}

.project-cta p {
  margin-top: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  font-size: .95rem;
}

.project-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

/* Responsive — single project */
@media (max-width: 1024px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-intro-label {
    position: static;
  }

  .project-challenge-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-cta-inner {
    grid-template-columns: 1fr;
  }

  .project-cta-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .project-hero {
    height: 70vh;
  }

  .project-hero-content,
  .project-breadcrumb {
    padding-left: 24px;
    padding-right: 24px;
  }

  .project-hero-content {
    padding-bottom: 48px;
  }

  .project-breadcrumb {
    top: 80px;
  }

  .project-body {
    padding: 70px 0;
  }

  .project-intro {
    padding: 0 24px;
    margin-bottom: 60px;
  }

  .project-gallery {
    padding: 0 24px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-challenge {
    padding: 70px 0;
  }

  .project-challenge-inner {
    padding: 0 24px;
  }

  .project-cta {
    padding: 80px 0;
  }

  .project-cta-inner {
    padding: 0 24px;
  }
}

/* ============ 404 ============ */
.error-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--cream);
}

.error-404 .err-num {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 14rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 24px;
}

.error-404 h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto 36px;
}

/* ============ REVEAL BASE STATES (JS animates these) ============ */
.reveal,
.reveal-up,
.reveal-scale,
.reveal-left,
.reveal-right {
  will-change: transform, opacity;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {

  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  .p1 {
    grid-column: 1/3;
    grid-row: 1/2;
  }

  .p2 {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  .p3 {
    grid-column: 2/3;
    grid-row: 2/3;
  }

  .p4 {
    grid-column: 1/2;
    grid-row: 3/4;
  }

  .p5 {
    grid-column: 2/3;
    grid-row: 3/4;
  }

  .p6 {
    grid-column: 1/3;
    grid-row: 4/5;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .about {
    padding: 90px 0;
  }

  .about-grid {
    gap: 50px;
  }

  .about-stats {
    gap: 36px;
  }

  .services {
    padding: 70px 0 90px;
  }

  .services-track {
    padding: 0 24px;
    gap: 16px;
  }

  .portfolio {
    padding: 80px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }

  .p1,
  .p2,
  .p3,
  .p4,
  .p5,
  .p6 {
    grid-column: 1/2;
  }

  .p1 {
    grid-row: 1/2;
  }

  .p2 {
    grid-row: 2/3;
  }

  .p3 {
    grid-row: 3/4;
  }

  .p4 {
    grid-row: 4/5;
  }

  .p5 {
    grid-row: 5/6;
  }

  .p6 {
    grid-row: 6/7;
  }

  .why {
    padding: 80px 0;
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .journey {
    padding: 90px 0 30px;
  }

  .journey-row {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }

  .journey-row.reverse .journey-text {
    order: 1;
  }

  .journey-row.reverse .journey-num {
    order: 2;
  }

  .journey-num {
    display: none;
  }

  .testimonials,
  .faq,
  .contact {
    padding: 80px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    padding: 20px 24px;
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================
   OUR WORK — FULL PORTFOLIO ARCHIVE
============================================================ */

/* Homepage "View All" strip */
.portfolio-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.portfolio-view-all-count {
  font-size: .82rem;
  color: var(--taupe);
  letter-spacing: .04em;
}

.portfolio-view-all-count strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── Archive hero ─────────────────────────────────────────── */
.ow-hero {
  padding: 160px 0 90px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}

.ow-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.ow-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  margin: 12px 0 20px;
}

.ow-hero .body-text {
  max-width: 520px;
}

.ow-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ow-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.ow-stat-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 8px;
  font-weight: 500;
}

/* ── Filter bar ───────────────────────────────────────────── */
.ow-filter-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ow-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ow-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.ow-filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ow-filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ── Grid section ─────────────────────────────────────────── */
.ow-grid-section {
  padding: 70px 0 100px;
  background: var(--cream);
}

.ow-result-count {
  font-size: .82rem;
  color: var(--taupe);
  margin-bottom: 36px;
  letter-spacing: .04em;
}

.ow-result-count strong {
  color: var(--ink);
  font-weight: 500;
}

/* Responsive 3-column grid */
.ow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Each project card */
.ow-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-2);
  text-decoration: none;
  height: 100%;
}

/* Image container — uniform 4:3 box */
.ow-item-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
  flex-shrink: 0;
}

.ow-item-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .85s var(--ease);
  will-change: transform;
}

.ow-item:hover .ow-item-img img {
  transform: scale(1.05);
}

/* Reuse the same overlay system as p-item */
.ow-item .p-overlay {
  bottom: 48px; /* leave space for footer strip */
}

/* Card footer — always visible at bottom */
.ow-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  margin-top: auto;
  transition: background .3s;
}

.ow-item:hover .ow-item-footer {
  background: var(--cream-2);
}

.ow-item-title {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.ow-item-cat {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Empty state ──────────────────────────────────────────── */
.ow-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-soft);
  font-weight: 300;
}

.ow-empty p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ── Pagination ───────────────────────────────────────────── */
.ow-pagination {
  margin-top: 70px;
  display: flex;
  justify-content: center;
}

.ow-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.ow-pagination li a,
.ow-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all .3s var(--ease);
}

.ow-pagination li a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ow-pagination li .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ow-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .ow-hero-stat {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .ow-hero {
    padding: 120px 0 60px;
  }

  .ow-filter-bar {
    top: 60px;
    padding: 14px 0;
    overflow-x: auto;
  }

  .ow-filters {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .ow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ow-grid-section {
    padding: 50px 0 70px;
  }
}
