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

:root {
  --bg:      #F7F4EF;
  --cream:   #3A4829;
  --green:   #3A4829;
  --accent:  #E8A87C;
  --muted:   #5C6B4A;
  --border:  rgba(58,72,41,0.12);
}

html { scroll-behavior: auto; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

/* ── PAGE CONTENT WRAPPER ──────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* ── PRELOADER ─────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pre-logo {
  position: absolute; top: 28px; right: 52px;
  font-size: 17px; font-weight: 700;
  color: var(--cream); letter-spacing: -0.5px;
  text-decoration: none;
}
.pre-word {
  display: block;
  font-size: clamp(90px, 22vw, 220px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -3px;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  text-align: center;
}
.pre-word.show { opacity: 1; transform: translateY(0); }
#pre-sun {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,0,0.7) 0%, rgba(255,120,0,0.4) 35%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, 10%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
#pre-sun.show { opacity: 1; }
#pre-w3 { color: #C01458; }

/* ── CURSOR ────────────────────────────────────────── */
#orb-cursor {
  width: 520px; height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 36%, rgba(255,210,0,1) 0%, rgba(255,140,0,0.7) 30%, rgba(255,140,0,0.15) 58%, transparent 72%),
    radial-gradient(circle at 68% 65%, rgba(255,40,120,0.9) 0%, rgba(255,90,80,0.55) 30%, rgba(255,90,80,0.1) 58%, transparent 72%);
  filter: blur(36px);
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  will-change: transform;
}

/* ── THREE.JS CANVAS ───────────────────────────────── */
#three-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%;
  padding: 28px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
}
.nav-logo {
  font-size: 17px; font-weight: 700;
  color: var(--cream); text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 15px; font-weight: 400;
  opacity: 0.9; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ── HAMBURGER ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  cursor: pointer; z-index: 200;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  position: fixed; top: 0; left: 0; right: 0;
  height: auto;
  padding: 80px 0 32px;
  background: rgba(247, 244, 239, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu a {
  font-size: 17px;
  font-weight: 600; letter-spacing: -0.3px;
  color: var(--cream); text-decoration: none;
  opacity: 0.85;
  padding: 10px 0;
  width: 100%; text-align: center;
}
.mobile-menu a:hover { opacity: 1; }
.mobile-menu a + a { border-top: 1px solid rgba(58,72,41,0.15); width: 100%; text-align: center; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 72px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: 0;
  margin-bottom: 28px;
  color: var(--muted);
}
.hero-title {
  font-size: clamp(52px, 9.5vw, 136px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -3px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block;
  transform: translateY(105%);
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(24px);
}
.hero-desc {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
  color: var(--muted);
}
.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--bg);
  padding: 18px 38px;
  border-radius: 100px;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  font-family: 'Heebo', sans-serif;
  cursor: none; border: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.btn-main:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 16px 40px rgba(58,72,41,0.2);
}
.scroll-hint {
  position: absolute;
  bottom: 72px; left: 52px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
}
.scroll-hint span {
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; opacity: 0.65;
  writing-mode: vertical-rl;
}
.scroll-hint-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: lineGrow 1.8s ease-in-out infinite;
}
@keyframes lineGrow {
  0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%      { opacity: 0.4; transform: scaleY(1); }
}

/* ── MARQUEE ───────────────────────────────────────── */
.marquee {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  direction: ltr;
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  width: max-content;
  direction: ltr;
  animation: ticker 22s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 12px; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  opacity: 0.62; flex-shrink: 0;
}
.marquee-star { color: #7A5C00; opacity: 1 !important; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SERVICES ──────────────────────────────────────── */
.services {
  position: relative; z-index: 1;
  padding: 140px 52px;
}
.sec-label {
  font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; opacity: 0.75;
  margin-bottom: 20px;
}
.sec-title {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 72px;
}
.service-row {
  display: flex; align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  cursor: none; position: relative; overflow: hidden;
  transition: padding 0.3s ease;
}
.service-row:first-of-type { border-top: 1px solid var(--border); }
.service-row::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(58,72,41,0.04);
  transform: translateX(101%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.service-row:hover::after { transform: translateX(0); }
.service-row:hover { padding-right: 16px; }
.svc-num {
  font-size: 20px; opacity: 0.65; font-weight: 400;
  min-width: 52px;
}
.svc-name {
  flex: 1;
  font-size: clamp(22px, 3.2vw, 48px);
  font-weight: 700; letter-spacing: -1px;
  padding: 0 32px;
  display: flex; flex-direction: column; gap: 6px;
}
.svc-desc {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 300; letter-spacing: 0;
  color: var(--muted); opacity: 0.85;
}
.svc-price {
  font-size: 13px; opacity: 0.72; font-weight: 400;
  margin-left: 24px;
}
.svc-arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(58,72,41,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.service-row:hover .svc-arrow {
  background: var(--cream); color: var(--bg);
  border-color: var(--cream);
  transform: rotate(-45deg);
}

/* ── PORTFOLIO ─────────────────────────────────────── */
.portfolio {
  position: relative; z-index: 1;
  padding: 100px 0 140px;
}
.portfolio-head { padding: 0 52px; margin-bottom: 56px; }
.port-scroll {
  display: flex; gap: 20px;
  padding: 0 52px 24px;
  overflow-x: auto; scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.port-scroll::-webkit-scrollbar { display: none; }
.port-scroll.dragging { cursor: grabbing; }
.port-card {
  flex-shrink: 0;
  width: clamp(280px, 36vw, 480px);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}
.port-card-inner {
  width: 100%; height: 100%;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.port-card:hover .port-card-inner { transform: scale(1.03); }
.card-bg {
  position: absolute; inset: 0;
  border-radius: 18px;
}
.card-bg-1 {
  background: linear-gradient(145deg, #E8A87C 0%, #C07490 45%, #4A2060 100%);
}
.card-bg-2 {
  background: linear-gradient(145deg, #3A4829 0%, #5A8A50 50%, #A0D080 100%);
}
.card-bg-3 {
  background: linear-gradient(145deg, #1E2E60 0%, #5A3C8A 50%, #C890E0 100%);
}
.card-noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.card-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.card-cat {
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 6px;
  color: #F7F4EF;
}
.card-title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700; line-height: 1.2;
  color: #F7F4EF;
}
.card-badge {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase;
  color: #F7F4EF;
}

/* ── ABOUT ─────────────────────────────────────────── */
.about {
  position: relative; z-index: 1;
  padding: 140px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-left .about-title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -3px;
  margin-top: 20px;
}
.about-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin-top: 32px;
  display: block;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 64px;
}
.stat-n {
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 900; line-height: 1;
  color: #7A5C00;
}
.stat-suffix { font-size: 0.5em; }
.stat-l { font-size: 13px; opacity: 0.72; margin-top: 6px; }
.about-text {
  font-size: 18px;
  font-weight: 300; line-height: 1.85;
  color: var(--muted);
  padding-top: 72px;
  max-width: 500px;
}
.about-text p + p { margin-top: 28px; }
.about-highlight {
  color: var(--cream); font-weight: 500;
}

/* ── PROCESS ───────────────────────────────────────── */
.process {
  position: relative; z-index: 1;
  padding: 100px 52px 140px;
  border-top: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 72px;
}
.proc-card {
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.35s, background 0.35s;
  position: relative; overflow: hidden;
}
.proc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(232,168,124,0.06) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.proc-card:hover { border-color: rgba(242,237,228,0.25); }
.proc-card:hover::before { opacity: 1; }
.proc-num-bg {
  font-size: 88px; font-weight: 900; line-height: 1;
  opacity: 0.06; margin-bottom: -12px;
  letter-spacing: -4px;
}
.proc-title {
  font-size: 21px; font-weight: 700;
  margin-bottom: 14px; letter-spacing: -0.5px;
}
.proc-desc {
  font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--muted);
}
.proc-badge {
  display: inline-block;
  margin-top: 20px;
  background: rgba(58,72,41,0.1);
  border: 1px solid rgba(58,72,41,0.3);
  color: #3A4829;
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px; font-weight: 500;
}

/* ── CTA ───────────────────────────────────────────── */
.cta {
  position: relative; z-index: 1;
  padding: 160px 52px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 44px;
}
.cta-eyebrow {
  font-size: 14px; letter-spacing: 4px;
  text-transform: uppercase; opacity: 0.9;
}
.cta-heading {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900; line-height: 0.92;
  letter-spacing: -4px;
}
.cta-heading em {
  font-style: normal;
  color: #C01458;
  transition: color 0.5s ease;
  cursor: none;
}
.cta-heading em.sun-on {
  color: #FFFDE0;
}
.cta-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300; color: var(--cream);
  max-width: 420px; line-height: 1.7;
}
.mobile-br { display: none; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 52px;
  display: flex; justify-content: space-between; align-items: center;
}
.foot-copy { font-size: 12px; opacity: 0.72; }
.foot-email {
  font-size: 15px; font-weight: 500;
  color: var(--cream); text-decoration: none;
  opacity: 0.8; transition: opacity 0.2s;
}
.foot-email:hover { opacity: 1; }

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .pre-logo { top: 20px; right: 24px; }
  body { cursor: auto; }
  #cur-dot, #cur-ring { display: none; }

  .hero { padding: 0 24px 56px; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-bottom {
    flex-direction: column; align-items: flex-start; gap: 28px;
  }
  .scroll-hint { left: 24px; }

  .services { padding: 80px 24px; }
  .svc-name { padding: 0 12px; }
  .svc-price { display: none; }

  .portfolio-head { padding: 0 24px; }
  .port-scroll { padding: 0 24px 20px; }

  .about {
    grid-template-columns: 1fr;
    gap: 48px; padding: 80px 24px;
  }
  .about-text { padding-top: 0; }

  .process { padding: 80px 24px 100px; }
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .proc-card { padding: 32px; }

  .cta { padding: 100px 24px; }
  .cta-heading { letter-spacing: -2px; }
  .mobile-br { display: inline; }

  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
