/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F0EDE8;
  --text: #1A1A1A;
  --text-light: #6B6B6B;
  --accent-1: #E8453C;   /* Warm red */
  --accent-2: #2D5BE3;   /* Vivid blue */
  --accent-3: #F7C948;   /* Sunny yellow */
  --accent-4: #1DB954;   /* Fresh green */
  --accent-5: #8B5CF6;   /* Playful purple */
  --accent-6: #EC4899;   /* Pop pink */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --nav-height: 72px;
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: clamp(20px, 5vw, 80px);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

::selection {
  background: var(--accent-3);
  color: var(--text);
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--bg);
  display: block; margin-bottom: 24px;
}
.loader-bar {
  width: 200px; height: 2px; background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loader-progress {
  height: 100%; width: 0%; background: var(--accent-3);
  border-radius: 2px; transition: width 0.1s linear;
}

/* ===== CUSTOM CURSOR ===== */
.cursor, .cursor-follower {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor { width: 8px; height: 8px; background: var(--accent-1); }
.cursor-follower {
  width: 36px; height: 36px; border: 1.5px solid var(--accent-1);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-follower.hover { width: 56px; height: 56px; border-color: var(--accent-3); }

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
}

/* ===== NAV ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 var(--side-pad);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.6; }
.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent-1);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent-1); }

/* Mobile toggle */
.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span {
  display: block; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 56px); color: var(--bg);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--accent-3); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-height) + 40px) var(--side-pad) 60px;
  position: relative; overflow: hidden;
}
/* When hero image is re-enabled, restore: grid-template-columns: 1.1fr 0.9fr; */
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  align-items: center; gap: clamp(32px, 4vw, 80px);
  position: relative; z-index: 2;
}
.hero-content { position: relative; z-index: 2; }

/* Hero image (disabled for now — remove display:none to re-enable) */
.hero-image {
  display: none;
  position: relative; justify-content: center; align-items: center;
  opacity: 0; transform: translateY(30px) scale(0.97);
}
.hero-image.visible { opacity: 1; transform: translateY(0) scale(1); transition: opacity 1s ease 1.4s, transform 1s ease 1.4s; }
.hero-image-wrap {
  position: relative; z-index: 2;
  max-width: 420px; width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.hero-image-wrap img {
  width: 100%; display: block;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: center 10%;
}
.hero-image-accent {
  position: absolute; z-index: 1;
  width: 120%; height: 120%; top: -10%; left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,0.25) 0%, rgba(232,69,60,0.12) 40%, transparent 65%);
  filter: blur(30px);
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; margin-bottom: 20px; }
  .hero-image-wrap { max-width: 260px; margin: 0 auto; }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
}
.hero-line { display: block; overflow: hidden; }
.hero-word {
  display: inline-block;
  transform: translateY(100%); opacity: 0;
}
.hero-word.italic {
  font-style: italic; color: var(--accent-1);
}
.hero-dot { color: var(--accent-3); }
.hero-sub {
  margin-top: 28px; font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400; color: var(--text-light);
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transform: translateY(20px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 40px; left: var(--side-pad);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-light);
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 48px; background: var(--text-light); position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent-1);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* Hero shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; opacity: 0;
}
.shape-1 {
  width: clamp(200px, 30vw, 500px); height: clamp(200px, 30vw, 500px);
  background: radial-gradient(circle, rgba(247,201,72,0.25) 0%, transparent 70%);
  top: 10%; right: 5%;
}
.shape-2 {
  width: clamp(150px, 20vw, 350px); height: clamp(150px, 20vw, 350px);
  background: radial-gradient(circle, rgba(232,69,60,0.2) 0%, transparent 70%);
  bottom: 20%; right: 25%;
}
.shape-3 {
  width: clamp(100px, 15vw, 250px); height: clamp(100px, 15vw, 250px);
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  top: 30%; left: 60%;
}
.shape-4 {
  width: clamp(180px, 25vw, 400px); height: clamp(180px, 25vw, 400px);
  background: radial-gradient(circle, rgba(29,185,84,0.15) 0%, transparent 70%);
  bottom: 10%; left: 10%;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  padding: 24px 0; border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.marquee {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-light);
  flex-shrink: 0; padding-right: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-pad) var(--side-pad);
}
.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-label {
  display: inline-block; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-1); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;
}

/* ===== WORK GRID ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.work-item:hover { transform: translateY(-4px); }
.work-item-wide { grid-column: span 2; }
.work-img {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.work-img-wide {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1.2;
}
.work-item-wide .work-img { aspect-ratio: 8 / 3; }
.work-img-inner {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-img-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-item:hover .work-img-inner { transform: scale(1.04); }
.work-info {
  display: none;
  visibility: hidden;
  padding: 18px 4px 8px;
}
.work-info h3 {
  display: none;
  visibility: hidden;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 26px); font-weight: 400;
  margin-bottom: 4px;
}
.work-info span {
  display: none;
  visibility: hidden;
  font-size: 13px; color: var(--text-light);
  font-weight: 400; letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item-wide { grid-column: span 1; }
  .work-item-wide .work-img { aspect-ratio: 4 / 3; }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
}
.about-portrait {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  aspect-ratio: 3 / 4; max-width: 420px;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.about-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px); font-weight: 400;
  margin-bottom: 24px; line-height: 1.15;
}
.about-text {
  font-size: clamp(15px, 1.2vw, 17px); color: var(--text-light);
  margin-bottom: 16px; line-height: 1.7; max-width: 520px;
}
.about-stats {
  display: flex; gap: 40px; margin-top: 36px;
}
.stat { text-align: left; }
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px); font-weight: 400;
  color: var(--accent-1); line-height: 1;
}
.stat-plus {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 36px); color: var(--accent-3);
}
.stat-label {
  display: block; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); margin-top: 6px;
}

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
  .about-stats { gap: 24px; }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #FFF; border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 20px; color: var(--accent-2);
}
.service-card:nth-child(2) .service-icon { color: var(--accent-4); }
.service-card:nth-child(3) .service-icon { color: var(--accent-5); }
.service-card:nth-child(4) .service-icon { color: var(--accent-6); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 400; margin-bottom: 12px;
}
.service-card p {
  font-size: 14px; color: var(--text-light); line-height: 1.65;
}

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

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--text); color: var(--bg);
  text-align: center;
}
.testimonial-inner { max-width: 800px; margin: 0 auto; }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px); font-weight: 400;
  line-height: 1.45; font-style: italic;
  margin-bottom: 32px;
}
.testimonial-name {
  font-size: 15px; font-weight: 500; display: block;
}
.testimonial-role {
  font-size: 13px; color: rgba(250,248,245,0.5); display: block; margin-top: 4px;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: start;
}
.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px); font-weight: 400;
  line-height: 1.2; margin-bottom: 20px;
}
.italic { font-style: italic; }
.contact-text {
  font-size: clamp(15px, 1.2vw, 17px); color: var(--text-light);
  margin-bottom: 36px; line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: border-color var(--transition);
}
.contact-link:hover { border-color: var(--accent-1); }
.contact-link-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-light);
}
.contact-link-value {
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 400;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-light);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 16px; padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 8px;
  background: #FFF; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(45,91,227,0.1);
}
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 60px; transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}
.btn-submit:hover {
  background: var(--accent-1); transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 28px var(--side-pad);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 400;
}
.footer-copy { font-size: 13px; color: var(--text-light); }
.footer-right { display: flex; align-items: center; gap: 24px; }
.footer-right a {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; transition: color var(--transition);
}
.footer-right a:hover { color: var(--accent-1); }
.back-to-top {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15); display: flex;
  align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.back-to-top:hover { border-color: var(--accent-1); background: var(--accent-1); color: #FFF; }

/* ===== REVEAL ANIMATION STATES ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
