
/* Base & Variables */
:root {
  --bg-dark: #F5F0E8;
  --bg-card: #FAFAF7;
  --accent-blue: #C4A882;
  --accent-blue-hover: #b8956e;
  --accent-glow: rgba(196, 168, 130, 0.3);
  --text-main: #1A1A1A;
  --text-muted: #5A5A5A;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #F5F0E8;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Disable default cursor for non-touch devices */
  cursor: none !important;
}

/* Re-enable default cursor on mobile/touch */
@media (hover: none) and (pointer: coarse) {

  body,
  * {
    cursor: auto !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

a,
button,
input,
textarea,
select {
  cursor: none !important;
  /* Hide default for interactive elements too */
}

@media (hover: none) and (pointer: coarse) {

  a,
  button,
  input,
  textarea,
  select {
    cursor: pointer !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.terminal-title,
.bracket {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 100px 0;
}

/* ================= Custom Cursor ================= */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #C4A882;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, 
              background 0.3s, border-radius 0.3s;
  mix-blend-mode: multiply;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid #C4A882;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.25,1,0.5,1),
              height 0.4s cubic-bezier(0.25,1,0.5,1),
              border-radius 0.4s,
              background 0.3s,
              border-color 0.3s,
              opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cursor-ring span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: transparent;
  letter-spacing: 0.05em;
  transition: color 0.2s, opacity 0.2s;
  white-space: nowrap;
  pointer-events: none;
}

/* On button/CTA hover: expand to pill with text */
.cursor-ring.on-cta {
  width: 80px;
  height: 36px;
  border-radius: 50px;
  background: rgba(196,168,130,0.12);
  border-color: #C4A882;
}
.cursor-ring.on-cta span {
  color: #C4A882;
}

/* On heading/text hover: shrink to tiny warm dot */
.cursor-ring.on-text {
  width: 8px;
  height: 8px;
  background: #C4A882;
  border-color: transparent;
  opacity: 0.7;
}

/* On project card hover: expand to view pill */
.cursor-ring.on-card {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(196,168,130,0.15);
  border-color: #C4A882;
}
.cursor-ring.on-card span {
  color: #C4A882;
  font-size: 12px;
}

/* On nav link hover: medium dot */
.cursor-ring.on-nav {
  width: 48px;
  height: 48px;
  background: rgba(196,168,130,0.1);
}

/* ================= Global Utilities ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #C4A882;
  width: 0%;
  z-index: 9999;
}

.highlight {
  color: var(--accent-blue);
  text-shadow: 0 0 15px var(--accent-glow);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: var(--transition-normal);
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: #2C2C2C;
  color: #FFFFFF;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border: none;
}

.btn-primary:hover {
  background-color: #C4A882;
  box-shadow: none;
}


.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid rgba(232, 234, 240, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background-color: rgba(79, 142, 247, 0.05);
  box-shadow: 0 0 15px rgba(79, 142, 247, 0.3);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Ripple Animation */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* 3D Tilt Card Base */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-icon rect,
.logo-icon circle,
.logo-icon line,
.logo-icon path {
  transition: stroke 0.3s ease;
}

.logo:hover .logo-icon rect,
.logo:hover .logo-icon circle,
.logo:hover .logo-icon line,
.logo:hover .logo-icon path {
  stroke: #C4A882;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  color: #1A1A1A;
}

/* Glitch Effect */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F5F0E8;
  opacity: 0;
}

.glitch.active-glitch::before {
  left: 2px;
  text-shadow: -1px 0 red;
  animation: glitch-anim-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  opacity: 1;
}

.glitch.active-glitch::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  animation: glitch-anim-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  opacity: 1;
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
  }

  20% {
    clip-path: inset(60% 0 10% 0);
  }

  40% {
    clip-path: inset(40% 0 50% 0);
  }

  60% {
    clip-path: inset(80% 0 5% 0);
  }

  80% {
    clip-path: inset(10% 0 70% 0);
  }

  100% {
    clip-path: inset(30% 0 40% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 60% 0);
  }

  20% {
    clip-path: inset(30% 0 20% 0);
  }

  40% {
    clip-path: inset(70% 0 10% 0);
  }

  60% {
    clip-path: inset(20% 0 50% 0);
  }

  80% {
    clip-path: inset(50% 0 30% 0);
  }

  100% {
    clip-path: inset(5% 0 80% 0);
  }
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3A3A3A;
  transition: var(--transition-fast);
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: #C4A882;
  transition: width 0.3s cubic-bezier(0.25,1,0.5,1);
}

.nav-links a:hover {
  color: #1A1A1A;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #1A1A1A;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #1A1A1A;
  font-size: 1.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-normal);
  z-index: 998;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

.mobile-link {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 10px 0;
  color: #1A1A1A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
  color: #C4A882;
}

/* ================= Hero Section — Editorial ================= */
.hero-editorial {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #F5F0E8;
  padding: 80px 5% 60px;
}

/* ---- Parallax Layers ---- */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

/* Layer 1: Large blush circle */
.deco-blush-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #F2D9D9 0%, rgba(242, 217, 217, 0) 70%);
  top: -10%;
  right: -5%;
  opacity: 0;
  animation: fadeInSoft 0.8s 0.1s ease-out forwards;
}

/* Layer 2: Sage blob */
.deco-sage-blob {
  position: absolute;
  width: 350px;
  bottom: -5%;
  left: -3%;
  opacity: 0;
  animation: fadeInSoft 0.8s 0.2s ease-out forwards;
}

/* Layer 3: Rotating star */
.deco-star-rotate {
  position: absolute;
  width: 55px;
  top: 22%;
  right: 15%;
  animation: fadeInSoft 0.8s 0.3s ease-out forwards, slowSpin 20s linear infinite;
  opacity: 0;
}

/* Layer 4: Hand-drawn circle */
.deco-hand-circle {
  position: absolute;
  width: 180px;
  top: 18%;
  left: 8%;
  animation: fadeInSoft 0.8s 0.3s ease-out forwards, slowSpin 25s linear infinite reverse;
  opacity: 0;
}

/* Layer 5: Floating skill pills */
.skill-pill {
  position: absolute;
  background: #FAFAF7;
  border: 1px solid rgba(196, 168, 130, 0.35);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3A3A3A;
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  opacity: 0;
  animation: fadeInDrift 0.8s ease-out forwards, pillFloat var(--pill-float-dur, 7s) ease-in-out infinite alternate;
}

.pill-1 { top: 15%; right: 8%;  transform: rotate(-2deg); --pill-float-dur: 7s;  animation-delay: 1.2s, 1.2s; }
.pill-2 { top: 60%; right: 12%; transform: rotate(3deg);  --pill-float-dur: 8s;  animation-delay: 1.35s, 1.35s; }
.pill-3 { top: 75%; left: 10%;  transform: rotate(-1deg); --pill-float-dur: 9s;  animation-delay: 1.5s, 1.5s; }
.pill-4 { top: 35%; right: 3%;  transform: rotate(2deg);  --pill-float-dur: 7.5s; animation-delay: 1.65s, 1.65s; }

.skill-pill:hover {
  transform: rotate(0deg) scale(1.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.skill-pill.wiggle {
  animation: pillWiggle 0.4s ease-in-out;
}

@keyframes pillFloat {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(8px, -12px); }
  100% { transform: translate(-5px, 6px); }
}

@keyframes pillWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%  { transform: rotate(4deg); }
  50%  { transform: rotate(-4deg); }
  75%  { transform: rotate(2deg); }
}

/* ---- Scattered Doodles ---- */
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: fadeInSoft 0.6s ease-out forwards;
}

.doodle-arrow {
  width: 35px;
  top: 12%;
  left: 28%;
  animation-delay: 1.4s;
}

.doodle-small-star {
  width: 22px;
  bottom: 18%;
  right: 22%;
  animation-delay: 1.5s;
}

.doodle-wave {
  width: 65px;
  bottom: 28%;
  left: 5%;
  animation-delay: 1.6s;
}

/* ---- Hero Content ---- */
.hero-ed-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-ed-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.08;
  color: #1A1A1A;
  letter-spacing: -2px;
  margin-bottom: 8px;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.headline-word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
}

.headline-word.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hw-1.visible { transition-delay: 0.4s; }
.hw-2.visible { transition-delay: 0.5s; }
.hw-3.visible { transition-delay: 0.6s; }

.underlined-word {
  position: relative;
  display: inline-block;
}

/* ---- Hand-Drawn SVG Underline ---- */
.hand-underline {
  display: block;
  width: clamp(200px, 40vw, 340px);
  margin: -5px auto 30px;
  overflow: visible;
}

.underline-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

.underline-path.drawn {
  animation: drawUnderline 0.8s 0.9s ease-out forwards;
}

@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

/* ---- Subtitle ---- */
.hero-ed-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #3A3A3A;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ed-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 1s ease-out, transform 0.6s 1s ease-out;
}

/* ---- CTA Buttons ---- */
.hero-ed-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ed-ctas.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 1.1s ease-out, transform 0.6s 1.1s ease-out;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-filled {
  background-color: #2C2C2C;
  color: #FAFAF7;
  border: none;
}

.cta-filled:hover {
  background-color: #3A3A3A;
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(44, 44, 44, 0.25);
}

.cta-outlined {
  background-color: transparent;
  color: #2C2C2C;
  border: 1.5px solid rgba(44, 44, 44, 0.25);
}

.cta-outlined:hover {
  border-color: #2C2C2C;
  background-color: rgba(44, 44, 44, 0.04);
  transform: scale(1.03);
}

/* ---- Keyframes ---- */
@keyframes fadeInSoft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInDrift {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Responsive: Hero Editorial ---- */
@media (max-width: 768px) {
  .hero-editorial {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    min-height: auto;
  }

  .hero-ed-headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .hero-ed-subtitle {
    font-size: 1rem;
  }

  .hero-ed-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-pill {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .parallax-layer {
    display: none !important;
  }

  .doodle {
    display: none !important;
  }

  .skill-pill {
    display: none;
  }
}

/* Disable parallax on touch devices */
@media (hover: none) and (pointer: coarse) {
  .parallax-layer {
    transform: none !important;
  }
}


/* ================= About Section — Editorial ================= */
.about-editorial {
  background-color: #FAFAF7;
  position: relative;
}

.about-ed-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

/* ---- Section Label ---- */
.about-ed-label {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #C4A882;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(
    90deg, 
    #C4A882 0%, 
    #C4A882 50%, 
    transparent 50%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.about-ed-label:hover {
  background-position: 0% 0;
  -webkit-text-fill-color: transparent;
}

.about-ed-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1A1A1A;
  line-height: 1.15;
  margin-bottom: 4px;
}

.about-underline {
  display: block;
  width: clamp(160px, 30vw, 280px);
  margin-bottom: 32px;
  overflow: visible;
}

.about-underline-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.about-underline-path.drawn {
  animation: drawUnderline 0.8s ease-out forwards;
}

/* ---- Doodles ---- */
.about-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.about-doodle-star {
  width: 20px;
  top: 40px;
  right: 52%;
}

.about-doodle-wave {
  width: 55px;
  bottom: 60px;
  left: 5%;
}

/* ---- Paragraphs ---- */
.about-ed-para {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #3A3A3A;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-ed-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: #C4A882;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: 8px;
}

/* ---- Slide-in Animations ---- */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Skills Column ---- */
.about-skills-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #6A6A6A;
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.about-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid #2C2C2C;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2C2C2C;
  background: transparent;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
}

.about-pill.visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--pill-rotation, 0deg));
}

.about-pill:hover {
  transform: scale(1.05) rotate(0deg) !important;
}

.about-pill[data-color='blush']:hover {
  background-color: #F2D9D9;
  border-color: #E8C4C4;
  color: #6A3A3A;
}

.about-pill[data-color='sage']:hover {
  background-color: #D9E8D9;
  border-color: #B8D4B8;
  color: #3A5A3A;
}

.about-pill[data-color='blue']:hover {
  background-color: #D9E4F2;
  border-color: #B8CCE8;
  color: #3A4A6A;
}

/* ---- Counter Row ---- */
.about-counters {
  display: flex;
  gap: 40px;
  padding-top: 10px;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.about-counter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-counter-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #1A1A1A;
  line-height: 1;
}

.about-counter-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #8A8A8A;
  font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .about-ed-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-ed-text {
    margin-bottom: 40px;
  }

  .about-ed-heading {
    font-size: 2rem;
  }

  .about-ed-para {
    font-size: 0.95rem;
  }

  .about-pills-wrap {
    justify-content: center;
  }

  .about-counters {
    flex-wrap: wrap;
    gap: 20px;
  }

  .about-counter-item {
    min-width: 33%;
    flex: 1 1 33%;
  }

  .about-counter-value {
    font-size: 1.5rem;
  }

  .about-doodle-star {
    display: none;
  }

  .about-doodle-wave {
    display: none;
  }
}

/* ================= Services Section — Editorial ================= */
.services-editorial {
  background-color: #F5F0E8; /* Warm Cream */
  position: relative;
  overflow: hidden;
}

.services-ed-container {
  position: relative;
  z-index: 2;
}

.services-ed-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-ed-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #C4A882;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(90deg, #C4A882 0%, #C4A882 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.services-ed-label:hover {
  background-position: 0% 0;
  -webkit-text-fill-color: transparent;
}

.services-ed-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 4px;
}

.services-underline {
  display: block;
  width: clamp(180px, 35vw, 300px);
  margin: 0 auto;
  overflow: visible;
}

.services-underline-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.services-underline-path.drawn {
  animation: drawUnderline 0.8s ease-out forwards;
}

.services-ed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Service Cards */
.service-card-ed {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s, 
              box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-ed:hover {
  transform: translateY(-6px);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bg-blush { background-color: #F2D9D9; }
.bg-sage  { background-color: #D9E8D9; }
.bg-blue  { background-color: #D9E4F2; }

.service-icon-ed {
  margin-bottom: 24px;
}

.service-icon-ed svg {
  transition: transform 0.5s ease-in-out;
}

.service-card-ed:hover .service-icon-ed svg {
  animation: iconWiggle 0.6s ease-in-out forwards;
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.service-title-ed {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 22px;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.service-desc-ed {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #5A5A5A;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link-ed {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #C4A882;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.service-link-ed:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

/* Doodles */
.service-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

.star-doodle {
  top: 10%;
  left: 5%;
}

.arrow-doodle {
  bottom: 10%;
  right: 5%;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .services-ed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-ed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card-ed {
    padding: 28px;
  }

  .service-title-ed {
    font-size: 1.2rem;
  }
  
  .star-doodle, .arrow-doodle {
    display: none;
  }
}


/* ================= Work Section — Editorial ================= */
.work-editorial {
  background-color: #FAFAF7; /* Soft White */
  position: relative;
  overflow: hidden;
}

.work-ed-header {
  text-align: center;
  margin-bottom: 60px;
}

.work-ed-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #C4A882;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(90deg, #C4A882 0%, #C4A882 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.work-ed-label:hover {
  background-position: 0% 0;
  -webkit-text-fill-color: transparent;
}

.work-ed-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 8px;
}

.work-underline {
  display: block;
  width: clamp(220px, 40vw, 340px);
  margin: 0 auto;
  overflow: visible;
}

.work-underline-path {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
}

.work-underline-path.drawn {
  animation: drawUnderline 0.9s ease-out forwards;
}

.work-disclaimer {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #8A8A8A;
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Magazine Grid */
.work-mag-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  background-color: #eee;
  transition: transform 0.4s ease, border-color 0.4s;
}

.featured-card {
  height: 480px;
  width: 100%;
}

.small-card {
  height: 320px;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-card:hover .work-img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: background 0.4s;
}

.work-info {
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.work-card:hover .work-info {
  transform: translateY(0);
}

.work-category {
  font-family: 'Caveat', cursive;
  color: #C4A882;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 28px;
  margin: 0;
}

.small-card .work-title {
  font-size: 20px;
  font-weight: 600;
}

.work-pill-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #FFFFFF;
  color: #1A1A1A;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  white-space: nowrap;
}

.work-card:hover .work-pill-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* CTA Card */
.cta-card {
  background-color: #F5F0E8; /* Warm Cream */
  border: 2px dashed #C4A882;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  min-height: 320px;
  transition: background-color 0.4s, border-style 0.4s;
}

.cta-card:hover {
  background-color: #F2D9D9; /* Transition to Blush on hover */
  border-style: solid;
}

.cta-card-heading {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.cta-pill-btn {
  background-color: #2C2C2C;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s;
}

.cta-card:hover .cta-pill-btn {
  background-color: #C4A882;
  transform: scale(1.05);
}

/* Doodles */
.work-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.pencil-doodle {
  top: 15%;
  left: 3%;
}

.circle-doodle {
  bottom: 10%;
  right: 5%;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-card {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .work-mag-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .work-row {
    grid-template-columns: 1fr;
  }
  
  .featured-card {
    height: 280px;
  }
  
  .small-card {
    height: 240px;
  }

  .cta-card {
    min-height: 200px;
  }
  
  .work-ed-heading {
    font-size: 1.8rem;
  }
  
  .work-doodle {
    display: none;
  }
}


/* ================= Process Section ("How I Work") ================= */
.process-editorial {
  background-color: #FAFAF7;
  position: relative;
  overflow: hidden;
}

.process-ed-container {
  max-width: 800px;
  margin: 0 auto;
}

.process-ed-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-ed-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #C4A882;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(90deg, #C4A882 0%, #C4A882 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.process-ed-label:hover {
  background-position: 0% 0;
  -webkit-text-fill-color: transparent;
}

.process-ed-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 8px;
}

.process-underline {
  display: block;
  width: clamp(240px, 45vw, 340px);
  margin: 0 auto 24px;
  overflow: visible;
}

.process-underline-path {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
}

.process-underline-path.drawn {
  animation: drawUnderline 0.9s ease-out forwards;
}

.process-ed-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #5A5A5A;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Accordion Steps */
.process-accordion {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 1px;
  border-left: 1px dashed #C4A882;
  z-index: 1;
}

.process-line-fill {
  position: absolute;
  top: 0;
  left: 32px;
  width: 1px;
  background-color: #C4A882;
  z-index: 2;
  transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  height: 0;
}

.process-step {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  transition: background-color 0.3s;
  overflow: hidden;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-header {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  cursor: pointer;
  background-color: #FAFAF7;
  transition: background-color 0.3s;
}

.process-step:not(.active) .process-step-header:hover {
  background-color: #F5F0E8;
}

.process-step-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 48px;
  color: #E8E0D5;
  line-height: 1;
  width: 60px;
  flex-shrink: 0;
}

.process-step-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 22px;
  color: #1A1A1A;
  flex-grow: 1;
  margin: 0;
}

.process-step-icon {
  font-family: 'DM Sans', sans-serif;
  color: #C4A882;
  font-size: 24px;
  font-weight: 400;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-step.active .process-step-icon {
  transform: rotate(45deg);
}

.process-step-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-step.active .process-step-content {
  max-height: 300px;
}

.process-content-inner {
  padding: 0 32px 32px 92px; /* aligns text with the title, leaving left space */
  position: relative;
}

.process-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #3A3A3A;
  line-height: 1.8;
  margin: 0 0 24px 0;
}

.process-doodle {
  width: 40px;
  height: 40px;
  display: block;
  margin-left: auto;
}

/* Pastel Backgrounds for Expanded States */
.process-step[data-step="1"].active { background-color: #F2D9D9; }
.process-step[data-step="1"].active .process-step-header { background-color: transparent; }
.process-step[data-step="1"].active .process-step-content { background-color: transparent; }

.process-step[data-step="2"].active { background-color: #D9E8D9; }
.process-step[data-step="2"].active .process-step-header { background-color: transparent; }
.process-step[data-step="2"].active .process-step-content { background-color: transparent; }

.process-step[data-step="3"].active { background-color: #D9E4F2; }
.process-step[data-step="3"].active .process-step-header { background-color: transparent; }
.process-step[data-step="3"].active .process-step-content { background-color: transparent; }

.process-step[data-step="4"].active { background-color: #F5F0E8; }
.process-step[data-step="4"].active .process-step-header { background-color: transparent; }
.process-step[data-step="4"].active .process-step-content { background-color: transparent; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .process-step {
    padding: 20px;
  }

  .process-line { left: 24px; }
  .process-step-header { padding: 20px 24px; }
  .process-step-num { width: 45px; font-size: 60px; }
  .process-step-title { font-size: 1.1rem; }
  .process-desc { font-size: 0.95rem; }
  .process-content-inner { padding: 0 24px 24px 69px; }
}


/* ================= Contact Section — Editorial ================= */
.contact-editorial {
  background-color: #F5F0E8; /* Warm Cream */
  position: relative;
  overflow: hidden;
}

.contact-ed-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-ed-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #C4A882;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(90deg, #C4A882 0%, #C4A882 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.contact-ed-label:hover {
  background-position: 0% 0;
  -webkit-text-fill-color: transparent;
}

.contact-ed-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 8px;
}

.contact-underline {
  display: block;
  width: clamp(220px, 40vw, 340px);
  margin: 0 auto;
  overflow: visible;
}

.contact-underline-path {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
}

.contact-underline-path.drawn {
  animation: drawUnderline 0.9s ease-out forwards;
}

.contact-ed-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: #5A5A5A;
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* Contact Grid */
.contact-ed-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.contact-email {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-bottom: 10px;
}

.contact-email:hover {
  color: #C4A882;
}

.contact-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #8A8A8A;
  margin-bottom: 40px;
}

/* Social Pills */
.contact-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-pill {
  padding: 10px 24px;
  border: 1.5px solid #2C2C2C;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #2C2C2C;
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
  display: inline-block;
}

/* Random Rotation */
.social-pill:nth-child(1) { transform: rotate(-1.5deg); }
.social-pill:nth-child(2) { transform: rotate(1deg); }
.social-pill:nth-child(3) { transform: rotate(-1deg); }

.social-pill:hover {
  transform: rotate(0deg) scale(1.05);
  border-color: transparent;
}

.linkedin-hover:hover { background-color: #D9E4F2; } /* Powder Blue */
.github-hover:hover { background-color: #D9E8D9; }   /* Pale Sage */
.instagram-hover:hover { background-color: #F2D9D9; }/* Blush Rose */

/* Doodles */
.contact-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.star-sm { top: 40%; left: 5%; }
.wavy-sm { bottom: 30%; left: 35%; }

/* Form Card */
.form-card-ed {
  background-color: #FAFAF7;
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-group-ed {
  margin-bottom: 30px;
}

.form-input-ed {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #D4CFC8;
  background: transparent;
  padding: 12px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  transition: border-color 0.3s;
}

.form-input-ed:focus {
  outline: none;
  border-color: #C4A882;
}

.form-input-ed::placeholder {
  color: #B0A898;
}

textarea.form-input-ed {
  resize: none;
}

.submit-btn-ed {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  background-color: #2C2C2C;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn-ed:hover {
  background-color: #C4A882;
  transform: translateY(-2px);
}

.submit-btn-ed.sending {
  background-color: #8A8A8A;
  cursor: wait;
}

.submit-btn-ed.sent {
  background-color: #27c93f;
  cursor: default;
}

/* Ticker — Updated */
.editorial-ticker {
  background-color: #F2D9D9; /* Blush Rose */
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1A1A1A;
  gap: 20px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer — High Contrast */
.footer-editorial {
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: 'Caveat', cursive;
  color: #C4A882;
  font-size: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #8A8A8A;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-email {
  color: #8A8A8A;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.3s;
}

.footer-email:hover {
  color: #FFFFFF;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  color: #8A8A8A;
  font-size: 20px;
  transition: all 0.3s;
}

.footer-social-icons a:hover {
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  text-align: center;
}

.copyright {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-ed-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-ed-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  .footer-social-icons {
    justify-content: flex-start;
  }

  .footer-bottom {
    text-align: center;
  }
  
  .form-card-ed {
    padding: 28px;
  }
  
  .contact-ed-heading {
    font-size: 1.8rem;
  }

  .contact-email {
    font-size: 1.2rem;
  }

  .contact-social-pills {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-pill {
    transform: none !important;
  }
  
  .contact-doodle {
    display: none;
  }
}

/* ================= Case Study: Bella Roma ================= */

/* Reusable constraints */
.container-sm {
  max-width: 900px;
}

/* 1. Hero Banner */
.cs-hero {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px; /* Offset for navbar */
}

.cs-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cs-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.cs-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 5%;
}

.cs-hero-label {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: #C4A882;
  display: block;
  margin-bottom: 12px;
}

.cs-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 56px);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cs-hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 2. Project Overview Bar */
.cs-overview {
  background-color: #FAFAF7;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cs-overview-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}

.cs-overview-col.divider {
  border-left: 1px solid rgba(0,0,0,0.08);
}

.cs-overview-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-overview-value {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  color: #1A1A1A;
}

.cs-overview-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #C4A882;
  text-decoration: none;
  transition: color 0.3s;
}

.cs-overview-link:hover {
  text-decoration: underline;
  color: #b8956e;
}

@media (max-width: 768px) {
  .cs-overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cs-overview-col {
    padding: 0;
  }
  .cs-overview-col.divider {
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
}

/* 3 & 4. Split Layout Generic */
.cs-problem {
  background-color: #F5F0E8;
}

.cs-split-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.cs-deco-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 120px;
  color: #E8E0D5;
  line-height: 0.8;
  margin-top: -10px;
}

.cs-deco-num.num-dark {
  color: #2A2A2A;
}

.cs-split-content {
  max-width: 650px;
}

.cs-section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: #C4A882;
  display: block;
  margin-bottom: 12px;
}

.cs-section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 32px);
  color: #1A1A1A;
  margin-bottom: 24px;
  line-height: 1.2;
}

.cs-section-heading.heading-light {
  color: #ffffff;
}

.cs-body-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: #3A3A3A;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cs-body-text.text-light {
  color: #A0A0A0;
}

.cs-quote-block {
  border-left: 3px solid #C4A882;
  padding-left: 20px;
  margin: 40px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #1A1A1A;
  background-color: #F2D9D9;
  padding: 24px;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 768px) {
  .cs-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cs-deco-num {
    display: none;
  }
}

/* 4. Process Section specific */
.cs-process {
  background-color: #FAFAF7;
}

.cs-process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-pcard {
  padding: 32px;
  border-radius: 16px;
  transition: transform 0.3s;
}

.cs-pcard:hover {
  transform: translateY(-5px);
}

.cs-pcard-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.cs-pcard-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #5A5A5A;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cs-process-cards {
    grid-template-columns: 1fr;
  }
}

/* 5. Result Section specific */
.cs-result {
  background-color: #1A1A1A;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* Push to align with right side of split layout roughly */
  margin-left: 180px; 
}

.cs-metric-box {
  background-color: #2A2A2A;
  border: 1px solid #3A3A3A;
  padding: 40px 24px;
  border-radius: 16px;
  text-align: center;
}

.cs-metric-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 8px;
}

.cs-metric-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8A8A8A;
}

@media (max-width: 768px) {
  .cs-metrics {
    margin-left: 0;
    grid-template-columns: 1fr 1fr;
  }
}

/* 6. Live Preview Section */
.cs-preview {
  background-color: #F5F0E8;
  text-align: center;
}

.cs-preview-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  color: #1A1A1A;
  margin-bottom: 40px;
}

.cs-browser-mockup {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.cs-browser-header {
  background: #E8E8E8;
  border-bottom: 1px solid #D1D1D1;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-browser-dots {
  display: flex;
  gap: 8px;
}

.b-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.b-dot.red { background-color: #FF5F56; }
.b-dot.yellow { background-color: #FFBD2E; }
.b-dot.green { background-color: #27C93F; }

.cs-browser-address {
  background: #fff;
  border-radius: 6px;
  padding: 4px 16px;
  font-family: monospace;
  font-size: 13px;
  color: #8A8A8A;
  flex-grow: 1;
  text-align: left;
}

.cs-browser-img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-preview-btn-wrap {
  margin-top: 20px;
}

.cs-btn-dark {
  display: inline-block;
  background-color: #2C2C2C;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.3s;
}

.cs-btn-dark:hover {
  background-color: #C4A882;
  transform: translateY(-2px);
}

/* 7. Navigation Footer */
.cs-nav-footer {
  background-color: #FAFAF7;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cs-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cs-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3A3A3A;
  transition: color 0.3s;
  text-decoration: none;
}

.cs-nav-link:hover {
  color: #C4A882;
}

/* ================= COMPREHENSIVE MOBILE FIXES ================= */
@media (max-width: 768px) {

  /* ---- Global Fixes ---- */
  body {
    overflow-x: hidden;
  }

  .section-padding {
    padding: 60px 0;
  }

  .container {
    padding: 0 6%;
  }

  /* All Playfair Display section headings */
  .services-ed-heading,
  .work-ed-heading,
  .process-ed-heading,
  .contact-ed-heading {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  /* Hide all doodles and parallax layers globally */
  .doodle,
  .parallax-layer,
  .about-doodle,
  .service-doodle,
  .work-doodle,
  .process-doodle,
  .contact-doodle {
    display: none !important;
  }

  /* ---- Navbar ---- */
  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav-container {
    padding: 0 6%;
  }

  .hamburger {
    display: block;
  }

  /* ---- Mobile Menu ---- */
  .mobile-menu.active {
    display: flex;
    flex-direction: column;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(12px);
    padding: 80px 6% 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    right: auto;
  }

  .mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1A1A1A;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-menu .btn-primary {
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  /* ---- Case Study Page ---- */
  .cs-hero {
    height: 350px;
  }

  .cs-hero-title {
    font-size: 2rem;
  }

  .cs-nav-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}