/* ==========================================================
   BOXCO INTERIORS — Luxury Interior Design Studio
   Premium Website Stylesheet
   ========================================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  --black: #0c0c0c;
  --dark: #131313;
  --dark2: #1a1a1a;
  --dark3: #222;
  --gray: #888;
  --light-gray: #bbb;
  --cream: #f4efe9;
  --warm: #faf8f5;
  --white: #fff;
  --gold: #c4a265;
  --gold-light: #d4b87a;
  --gold-dark: #a8894f;

  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(3.2rem, 7.5vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 4.5vw, 4rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.1rem);
  --fs-sm: clamp(0.78rem, 0.9vw, 0.875rem);
  --fs-xs: clamp(0.65rem, 0.75vw, 0.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: min(90rem, 90vw);
  --gutter: clamp(1.25rem, 3vw, 3rem);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--light-gray);
  background: var(--black);
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- 3. Grain Overlay ---------- */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(8) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(-10%, 5%); }
  70% { transform: translate(8%, 10%); }
  90% { transform: translate(-3%, 15%); }
}

/* ---------- 4. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.preloader-logo {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--white);
}
.preloader-bar {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.preloader-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader-counter {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--gray);
}

/* ---------- 5. Custom Cursor ---------- */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
}
@media (pointer: fine) {
  .cursor { display: block; }
  * { cursor: none !important; }
}
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor.hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--gold);
}

/* ---------- 6. Layout ---------- */
.container { width: var(--container); max-width: 1440px; margin: 0 auto; }
.section { padding: clamp(5rem, 10vw, 10rem) 0; }

/* ---------- 7. Typography ---------- */
.label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.heading-lg {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.section-intro { margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-intro .heading-lg { margin-bottom: 0; }

/* ---------- 8. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 2.2rem;
  border: 1px solid var(--gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  overflow: hidden;
  transition: color 0.45s var(--ease);
}
.btn-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn-fill { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--black); }
.btn-label, .btn-icon { position: relative; z-index: 1; }
.btn-icon { transition: transform 0.35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }

.btn.btn-light { border-color: var(--white); color: var(--white); }
.btn.btn-light .btn-fill { background: var(--white); }
.btn.btn-light:hover { color: var(--black); }

/* ---------- 9. Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 0.85rem 0;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.header-inner {
  width: var(--container);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: baseline; gap: 0.5rem; }
.logo-main {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--white);
}
.logo-sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Nav */
.nav { display: flex; gap: 2.5rem; }
.nav-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-gray);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Header CTA */
.header-cta {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s;
}
.header-cta:hover { color: var(--gold-light); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}
.burger-line {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger.open .burger-line:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.open .burger-line:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- 10. Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-link:hover { color: var(--gold); }
.mobile-footer {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--gray);
}
.mobile-footer a { transition: color 0.3s; }
.mobile-footer a:hover { color: var(--gold); }
.mobile-socials { display: flex; gap: 1.5rem; margin-top: 1rem; }

/* ---------- 11. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.line-wrap { display: block; overflow: hidden; }
.line-inner {
  display: block;
  /* initial offset handled by GSAP to avoid transform conflicts */
}
.hero-body {
  max-width: 32rem;
  font-size: var(--fs-body);
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 2px;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 8s var(--ease-out);
}
.hero-img-wrap.revealed img { transform: scale(1); }
/* image reveal handled via JS clip-path */
.hero-caption {
  display: block;
  margin-top: 1rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--gray);
  text-align: right;
}

/* Hero bottom */
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 3rem;
  width: var(--container);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-cue-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.scroll-cue-dot {
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 1px;
  background: var(--gold);
  animation: scrollDot 2s var(--ease-in-out) infinite;
}
@keyframes scrollDot {
  0% { left: -10px; }
  100% { left: 48px; }
}
.hero-est {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--gray);
}

/* ---------- 12. About ---------- */
.about { background: var(--cream); color: var(--dark); }
.about .label { color: var(--gold-dark); }
.about .heading-lg { color: var(--black); }
.about p { color: #555; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}
.about-visual { position: relative; }
.about-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
/* about image reveal handled via JS clip-path */
.about-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold);
  opacity: 0.3;
  z-index: -1;
  border-radius: 2px;
}
.about-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1.2;
}
.stat-num sup { font-size: 0.5em; }
.stat-text {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-top: 0.35rem;
}

/* ---------- 13. Services ---------- */
.services { background: var(--dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.svc {
  position: relative;
  padding: clamp(1.8rem, 2.5vw, 2.8rem);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc:hover { background: var(--dark2); }
.svc:hover::before { transform: scaleX(1); }
.svc-idx {
  font-family: var(--serif);
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  transition: color 0.5s var(--ease);
}
.svc:hover .svc-idx { color: rgba(196,162,101,0.25); }
.svc-name {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}
.svc-desc {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.7;
}
.svc-arrow {
  margin-top: auto;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc:hover .svc-arrow { opacity: 1; transform: translateX(0); }

/* ---------- 14. Portfolio ---------- */
.portfolio { background: var(--warm); color: var(--dark); }
.portfolio .label { color: var(--gold-dark); }
.portfolio .heading-lg { color: var(--black); }

.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 3vw, 3rem);
  flex-wrap: wrap;
}
.filter {
  padding: 0.55rem 1.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  transition: all 0.35s var(--ease);
}
.filter:hover, .filter.active { color: var(--black); border-color: var(--gold); background: rgba(196,162,101,0.1); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(220px, 22vw, 320px);
  gap: 1.25rem;
}
.folio-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.folio-item:nth-child(2) { grid-column: span 5; }
.folio-item:nth-child(3) { grid-column: span 5; }
.folio-item:nth-child(4) { grid-column: span 4; }
.folio-item:nth-child(5) { grid-column: span 4; }
.folio-item:nth-child(6) { grid-column: span 4; }

.folio-item { overflow: hidden; border-radius: 2px; }
.folio-item.hidden { display: none; }
.folio-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.folio-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.folio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.folio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2vw, 2rem);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.folio-item:hover .folio-img img { transform: scale(1.08); }
.folio-item:hover .folio-overlay { opacity: 1; }
.folio-cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.folio-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.folio-cta {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}
.folio-link:hover .folio-cta { color: var(--gold); }

/* ---------- 15. Process ---------- */
.process { overflow: hidden; }
.process-rail { overflow: hidden; padding: 0 0 0 calc((100vw - var(--container)) / 2 + var(--gutter)); }
.process-track {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2rem);
  padding: 2rem 0 4rem;
  width: max-content;
}
.process-card {
  width: clamp(280px, 28vw, 380px);
  flex-shrink: 0;
  padding: clamp(1.8rem, 2.5vw, 2.5rem);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.process-card:hover { border-color: rgba(196,162,101,0.3); background: rgba(255,255,255,0.02); }
.process-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}
.process-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
}
.process-name {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--white);
}
.process-desc {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- 16. Testimonials ---------- */
.testimonials { background: var(--cream); color: var(--dark); }
.testimonials .label { color: var(--gold-dark); }
.testimonials .heading-lg { color: var(--black); }

.testi-wrap { max-width: 48rem; }
.testi-stage { position: relative; min-height: 240px; }
.testi-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.testi-slide.active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }
.testi-quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--dark);
  margin-bottom: 2rem;
}
.testi-author { display: flex; flex-direction: column; gap: 0.25rem; }
.testi-name {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.04em;
}
.testi-project {
  font-size: var(--fs-xs);
  color: var(--gold-dark);
  letter-spacing: 0.06em;
}
.testi-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testi-arr {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  color: var(--dark);
}
.testi-arr:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,162,101,0.08); }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.3s;
}
.testi-dot.active { background: var(--gold-dark); transform: scale(1.25); }

/* ---------- 17. CTA ---------- */
.cta {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-dim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.72);
}
.cta-inner { position: relative; z-index: 2; max-width: 42rem; }
.cta-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.cta-body {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ---------- 18. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.info-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.info-block p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--light-gray);
}
.info-block a { transition: color 0.3s; }
.info-block a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.25); }
.field select { color: rgba(255,255,255,0.25); }
.field select:valid { color: var(--white); }
.field select option { background: var(--dark); color: var(--white); }
.field textarea { resize: vertical; min-height: 100px; }

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--dark);
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(1.5rem, 2vw, 2rem);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-tagline {
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.7;
  max-width: 28rem;
}
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--gray);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: clamp(1.5rem, 2vw, 2rem);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}
.logo-footer .logo-main { font-size: 1.1rem; }

/* ---------- 20. Reveal / Animation Helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-split-heading] .word { display: inline-block; overflow: hidden; }
[data-split-heading] .word-inner { display: inline-block; transform: translateY(110%); }
[data-split-heading] .word-inner.revealed { transform: translateY(0); transition: transform 0.7s var(--ease); }
/* image reveal transitions via clip-path in JS */

/* ---------- 21. Responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 1.8rem; }
  .portfolio-grid {
    grid-auto-rows: clamp(180px, 18vw, 260px);
  }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 80%; }
  .hero-img-wrap { aspect-ratio: 4/3; }

  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 80%; }
  .about-accent { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(200px, 30vw, 300px);
  }
  .folio-item:nth-child(1),
  .folio-item:nth-child(2),
  .folio-item:nth-child(3),
  .folio-item:nth-child(4),
  .folio-item:nth-child(5),
  .folio-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .hero { padding-top: 5.5rem; }
  .hero-visual { max-width: 100%; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .services-grid { grid-template-columns: 1fr; background: none; border: none; gap: 0; }
  .svc { border: 1px solid rgba(255,255,255,0.06); border-bottom: none; }
  .svc:last-child { border-bottom: 1px solid rgba(255,255,255,0.06); }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .process-card { width: 280px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 1.5rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .testi-stage { min-height: 300px; }
}
