/* ============================================================
   CubbyHaus Designs — Ultra-Trendy 2026 CSS
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --color-dark: #0d0d0d;
  --color-dark-surface: #151515;
  --color-light: #f5f0ea;
  --color-light-alt: #ece5db;
  --color-accent: #c9a87e;
  --color-accent-hover: #b8935f;
  --color-sage: #8b9d83;
  --color-text-dark: #1a1a1a;
  --color-text-light: #e8e2da;
  --color-text-muted: #8a8580;
  --color-border-dark: rgba(255,255,255,0.08);
  --color-border-light: rgba(0,0,0,0.08);

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 80px;
  --container-max: 1400px;
  --container-pad: clamp(20px, 5vw, 80px);
}


/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

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

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


/* ---------- SECTION THEMING ---------- */
.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}
.section--light {
  background: var(--color-light);
  color: var(--color-text-dark);
}

.section-header { margin-bottom: clamp(48px, 6vw, 80px); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: italic;
  color: var(--color-accent);
}
.section-title--lg {
  font-size: clamp(32px, 4.5vw, 60px);
}


/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  width: 0%;
  z-index: 10001;
  pointer-events: none;
}


/* ---------- GRAIN OVERLAY ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}


/* ---------- CUSTOM CURSOR ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo);
  }
  .cursor__ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
  }
  .cursor__label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
  }
  .cursor.hovering .cursor__dot { width: 0; height: 0; }
  .cursor.hovering .cursor__ring { width: 80px; height: 80px; border-color: rgba(255,255,255,0.8); }
  .cursor.viewing .cursor__dot { width: 0; height: 0; }
  .cursor.viewing .cursor__ring { width: 100px; height: 100px; border-color: var(--color-accent); }
  .cursor.viewing .cursor__label { opacity: 1; }
}


/* ---------- ARCHED H LOGO ---------- */
.logo-h { overflow: visible; }

/* Sizing variants */
.logo-h--nav {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}
.logo-h--footer {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.logo-h--preloader {
  width: clamp(56px, 10vw, 88px);
  height: auto;
  color: var(--color-text-light);
}

/* ---- Preloader draw-on animation ---- */
/* Left stem draws down */
.logo-h--preloader .logo-h__stem-l {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: logoDrawOn 0.6s var(--ease-out-expo) 0.2s forwards;
}
/* Arch sweeps across */
.logo-h--preloader .logo-h__arch {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: logoDrawOn 0.8s var(--ease-out-expo) 0.6s forwards;
}
/* Right stem draws down */
.logo-h--preloader .logo-h__stem-r {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: logoDrawOn 0.6s var(--ease-out-expo) 1.1s forwards;
}
/* Doorway glow fills in */
.logo-h--preloader .logo-h__glow {
  opacity: 0;
  animation: logoGlowIn 1s ease 1.5s forwards;
}

@keyframes logoDrawOn {
  to { stroke-dashoffset: 0; }
}
@keyframes logoGlowIn {
  to { opacity: 1; }
}

/* ---- Nav logo hover — doorway glow ---- */
.nav__logo .logo-h__glow {
  transition: opacity 0.5s var(--ease-out-expo);
}
.nav__logo:hover .logo-h__glow {
  opacity: 1 !important;
  transition: opacity 0.5s var(--ease-out-expo);
}

/* ---- Footer logo hover — doorway glow ---- */
.footer__logo .logo-h__glow {
  transition: opacity 0.5s var(--ease-out-expo);
}
.footer__logo:hover .logo-h__glow {
  opacity: 1 !important;
  transition: opacity 0.5s var(--ease-out-expo);
}

/* Footer lockup */
.footer__logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
}
.footer__logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.5;
}


/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader__mark {
  position: relative;
}
.preloader__text {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderTextIn 0.7s var(--ease-out-expo) 1.5s forwards;
}
.preloader__name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.25em;
}
.preloader__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 6px;
}

@keyframes preloaderTextIn {
  to { opacity: 1; transform: translateY(0); }
}


/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(245,240,234,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border-light);
}
.nav.dark-section {
  color: var(--color-text-light);
}
.nav.dark-section.scrolled {
  background: rgba(13,13,13,0.85);
  box-shadow: 0 1px 0 var(--color-border-dark);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}
.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out-expo);
}
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  padding: 10px 24px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--color-text-dark);
  color: var(--color-light);
}
.nav.dark-section .nav__link--cta:hover {
  background: var(--color-text-light);
  color: var(--color-dark);
}

.nav__link--active::after { width: 100%; }

/* Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
  z-index: 1001;
}
.nav__toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
  transform-origin: center;
}
.nav__toggle.active .nav__toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__toggle.active .nav__toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}


/* ---------- MOBILE MENU OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.menu-overlay__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-overlay__link {
  font-family: var(--font-heading);
  font-size: clamp(42px, 10vw, 72px);
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.2;
  transition: color 0.3s;
  overflow: hidden;
}
.menu-overlay__link span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out-expo);
}
.menu-overlay.open .menu-overlay__link span {
  transform: translateY(0);
}
.menu-overlay.open .menu-overlay__link:nth-child(1) span { transition-delay: 0.1s; }
.menu-overlay.open .menu-overlay__link:nth-child(2) span { transition-delay: 0.15s; }
.menu-overlay.open .menu-overlay__link:nth-child(3) span { transition-delay: 0.2s; }
.menu-overlay.open .menu-overlay__link:nth-child(4) span { transition-delay: 0.25s; }

.menu-overlay__link:hover { color: var(--color-accent); }

.menu-overlay__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s var(--ease-out-expo);
}
.menu-overlay.open .menu-overlay__footer {
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay__footer a { transition: color 0.3s; }
.menu-overlay__footer a:hover { color: var(--color-accent); }


/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-light);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -10%;
  right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: var(--color-sage);
  bottom: 10%;
  left: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: #c4956a;
  top: 40%;
  left: 40%;
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -30px) scale(0.9); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
}
.hero__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}
.hero__eyebrow-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line-inner {
  display: block;
  transform: translateY(110%);
}
.hero__line--accent em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.hero__scroll span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--color-border-light);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}
.btn__arrow {
  display: flex;
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.btn--primary {
  padding: 16px 36px;
  background: var(--color-text-dark);
  color: var(--color-light);
  border-radius: 100px;
}
.btn--primary:hover { background: var(--color-accent); color: #fff; }

.section--dark .btn--primary {
  background: var(--color-text-light);
  color: var(--color-dark);
}
.section--dark .btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--outline {
  padding: 16px 36px;
  border: 1px solid var(--color-text-dark);
  border-radius: 100px;
  color: var(--color-text-dark);
}
.btn--outline:hover {
  background: var(--color-text-dark);
  color: var(--color-light);
}

.btn--large {
  padding: 22px 52px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 100px;
  font-size: 16px;
}
.btn--large:hover { background: var(--color-accent-hover); }


/* ---------- MARQUEE ---------- */
.marquee {
  padding: 24px 0;
  background: var(--color-dark);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
}
.marquee__content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.marquee__content span {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--color-text-light);
  padding: 0 24px;
  letter-spacing: 0.02em;
}
.marquee__dot {
  color: var(--color-accent) !important;
  font-size: 14px !important;
  padding: 0 12px !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ---------- WORK / PORTFOLIO ---------- */
.work {
  padding: clamp(80px, 10vw, 140px) 0;
}
.work__scroller {
  overflow: hidden;
  padding-top: 20px;
}
.work__track {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding: 0 var(--container-pad);
  will-change: transform;
}
.work__card {
  flex-shrink: 0;
  width: clamp(300px, 50vw, 700px);
  cursor: pointer;
}
.work__card-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.6s var(--ease-out-expo);
}
.work__card:hover .work__card-img { transform: scale(0.97); }
.work__card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.work__card-info {
  padding: 20px 4px;
}
.work__card-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  margin-bottom: 4px;
}
.work__card-loc {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 300;
}

@media (max-width: 768px) {
  .work__track {
    flex-direction: column;
    gap: 32px;
  }
  .work__card {
    width: 100%;
  }
  .work__card-img {
    aspect-ratio: 3/4;
  }
}


/* ---------- ABOUT ---------- */
.about {
  padding: clamp(80px, 10vw, 160px) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 120px);
}
.about__content { max-width: 540px; }
.about__text {
  margin: 28px 0 40px;
}
.about__text p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--color-text-muted);
}
.about__text p + p { margin-top: 16px; }

.about__visual {
  position: relative;
  height: clamp(400px, 45vw, 600px);
}
.about__image {
  position: absolute;
  border-radius: 12px;
}
.about__image--1 {
  width: 65%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}
.about__image--2 {
  width: 55%;
  height: 65%;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 4px solid var(--color-light);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__visual {
    height: 350px;
    order: -1;
  }
}


/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--color-border-light);
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-dark);
}
.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  color: var(--color-accent);
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}


/* ---------- SERVICES ---------- */
.services {
  padding: clamp(80px, 10vw, 160px) 0;
}
.services__list {
  max-width: 900px;
}
.services__item {
  border-bottom: 1px solid var(--color-border-dark);
}
.services__item:first-child {
  border-top: 1px solid var(--color-border-dark);
}
.services__item-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  padding: clamp(20px, 3vw, 32px) 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.services__item-header:hover { color: var(--color-accent); }

.services__item-num {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--color-accent);
  min-width: 28px;
}
.services__item-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.services__item-toggle {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.services__item-toggle::before,
.services__item-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease-out-expo);
}
.services__item-toggle::before {
  width: 16px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.services__item-toggle::after {
  width: 1px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.services__item.open .services__item-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.services__item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
  padding: 0 0 0 clamp(44px, 5vw, 60px);
}
.services__item.open .services__item-body {
  max-height: 200px;
  padding-bottom: clamp(20px, 3vw, 32px);
}
.services__item-body p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 600px;
}


/* ---------- PROCESS ---------- */
.process {
  padding: clamp(80px, 10vw, 160px) 0;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.process__step {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  background: var(--color-light-alt);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.process__step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.process__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.4;
}
.process__step-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  margin-bottom: 12px;
}
.process__step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process__grid { grid-template-columns: 1fr; }
}


/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: clamp(80px, 10vw, 160px) 0;
}
.testimonials__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  max-width: 800px;
}
.testimonial {
  position: relative;
}
.testimonial__mark {
  font-family: var(--font-heading);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.6;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: 8px;
}
.testimonial__text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
  letter-spacing: -0.01em;
}
.testimonial__author {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.testimonial__role {
  font-size: 13px;
  color: var(--color-text-muted);
}


/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: clamp(100px, 14vw, 200px) 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, #b8935f 40%, var(--color-sage) 100%);
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 90px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cta-section__title em {
  font-style: italic;
}


/* ---------- CONTACT ---------- */
.contact {
  padding: clamp(80px, 10vw, 160px) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__detail-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.contact__detail a,
.contact__detail span {
  font-size: 16px;
  transition: color 0.3s;
}
.contact__detail a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}


/* ---------- FORM ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.form__group {
  position: relative;
}
.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-dark);
  outline: none;
  transition: border-color 0.3s;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-bottom-color: var(--color-accent);
}
.form__group textarea { resize: vertical; min-height: 100px; }
.form__group select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form__group label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}
.form__group input:focus ~ label,
.form__group input:not(:placeholder-shown) ~ label,
.form__group textarea:focus ~ label,
.form__group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.form__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}
.form__group input:focus ~ .form__line,
.form__group textarea:focus ~ .form__line,
.form__group select:focus ~ .form__line {
  width: 100%;
}


/* ---------- FOOTER ---------- */
.footer {
  padding: clamp(48px, 5vw, 80px) 0 clamp(24px, 3vw, 40px);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--color-border-dark);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-light);
}
.footer__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3vw, 32px);
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer__socials {
  display: flex;
  gap: 24px;
}
.footer__socials a { transition: color 0.3s; }
.footer__socials a:hover { color: var(--color-accent); }

@media (max-width: 600px) {
  .footer__top, .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}


/* ---------- REVEAL ANIMATIONS (initial states) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}


/* ---------- MAGNETIC BUTTON ---------- */
@media (hover: hover) and (pointer: fine) {
  .magnetic {
    transition: transform 0.3s var(--ease-out-expo);
  }
}


/* ---------- SKIP LINK (A11y) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 100001;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}


/* ---------- FOCUS VISIBLE (A11y) ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.section--dark :focus-visible {
  outline-color: var(--color-accent);
}


/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201,168,126,0.3);
}
.section--dark ~ .back-to-top,
.back-to-top.on-dark {
  background: var(--color-light);
  color: var(--color-dark);
}


/* ---------- PORTFOLIO CARD ENHANCEMENTS ---------- */
.work__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 1;
}
.work__card:hover .work__card-overlay {
  opacity: 1;
}
.work__card-cta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.95);
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-out-expo);
  z-index: 2;
}
.work__card:hover .work__card-cta {
  opacity: 1;
  transform: translateY(0);
}
.work__card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 12px;
}


/* ---------- TESTIMONIAL ENHANCEMENTS ---------- */
.testimonial__stars {
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.testimonial__mark { display: none; }
.testimonial {
  padding: clamp(32px, 4vw, 48px);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-dark);
  transition: border-color 0.4s, background 0.4s;
}
.testimonial:hover {
  border-color: rgba(201,168,126,0.2);
  background: rgba(255,255,255,0.06);
}
.testimonial__author {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}


/* ---------- SELECT DROPDOWN ARROW ---------- */
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8580' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 28px;
}


/* ---------- FORM VALIDATION ---------- */
.form__group input:invalid:not(:placeholder-shown):not(:focus),
.form__group textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: #e74c3c;
}
.form__group input:valid:not(:placeholder-shown),
.form__group textarea:valid:not(:placeholder-shown) {
  border-bottom-color: var(--color-sage);
}
.form__success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.form__success.visible {
  display: block;
  animation: formSuccessIn 0.6s var(--ease-out-expo);
}
.form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.form__success-text {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 8px;
}
.form__success-sub {
  font-size: 15px;
  color: var(--color-text-muted);
}
@keyframes formSuccessIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ---------- PROCESS CARD ACCENTS ---------- */
.process__step {
  border-top: 3px solid transparent;
}
.process__step:nth-child(1) { border-top-color: var(--color-accent); }
.process__step:nth-child(2) { border-top-color: var(--color-sage); }
.process__step:nth-child(3) { border-top-color: #c4956a; }
.process__step:nth-child(4) { border-top-color: #86C4BA; }

.process__step:nth-child(1) .process__num { color: var(--color-accent); }
.process__step:nth-child(2) .process__num { color: var(--color-sage); }
.process__step:nth-child(3) .process__num { color: #c4956a; }
.process__step:nth-child(4) .process__num { color: #86C4BA; }


/* ---------- ABOUT IMAGE ENHANCEMENT ---------- */
.about__image--1::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.about__image--2::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.about__image {
  overflow: hidden;
}


/* ---------- HERO ENHANCEMENT ---------- */
.hero__content .btn {
  opacity: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-light), transparent);
  pointer-events: none;
  z-index: 0;
}


/* ---------- FOOTER SOCIAL ICONS ---------- */
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  transition: all 0.3s var(--ease-out-expo);
}
.footer__socials a:hover {
  border-color: var(--color-accent);
  background: rgba(201,168,126,0.1);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.footer__socials a svg {
  display: block;
}


/* ---------- CTA SECTION ENHANCEMENT ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.06;
  pointer-events: none;
}


/* ---------- MOBILE MENU ENHANCEMENT ---------- */
.menu-overlay__link {
  position: relative;
}
.menu-overlay__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}
.menu-overlay__link:hover::after {
  width: 60%;
}


/* ---------- BUTTON RIPPLE ---------- */
.btn {
  overflow: hidden;
}
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: btnRipple 0.6s ease-out;
  pointer-events: none;
}
@keyframes btnRipple {
  to { transform: scale(4); opacity: 0; }
}


/* ---------- NAV LOGO HOVER GLOW ---------- */
.nav__logo {
  transition: opacity 0.3s;
}
.nav__logo:hover .nav__logo-text {
  color: var(--color-accent);
  transition: color 0.3s;
}


/* ---------- RESPONSIVE REFINEMENTS ---------- */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
    --container-pad: 20px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .testimonial {
    padding: 24px;
  }
  .testimonial__author {
    flex-direction: row;
  }
}
