/* ============================================
   KM CONTENT — Design System
   ============================================ */

:root {
  /* Core palette — fresh, editorial cream/taupe with a pop of neon lime */
  --bg: #ebe5d3;          /* deeper cream/beige so neon green pops without tricks */
  --bg-elev: #e2dbc6;     /* slightly deeper for cards */
  --bg-elev-2: #cdc4ad;   /* deepest warm neutral / taupe */
  --ink: #0a0a0a;         /* near-black, the primary text color */
  --ink-dim: #4a4842;     /* warm dark brown-gray */
  --ink-mute: #8a857a;    /* muted taupe */
  --line: #bfb7a0;        /* taupe line */
  --line-soft: #d4ccb4;   /* softer line */

  /* Section background variants */
  --bg-rose: #ccc4ad;     /* deeper taupe — used for accent sections */
  --bg-warm: #ddd3ba;     /* warm sand — for alternating sections */

  /* Accents — variable names kept as "--magenta" for drop-in compatibility,
     but these are now neon lime values. The accent is used sparingly for emphasis:
     buttons, italic signature words, hovers, checkmarks. */
  --magenta: #e6ff6d;         /* neon highlighter green — the signature accent */
  --magenta-soft: #eeff8c;    /* lighter for hover state */
  --magenta-deep: #c8e842;    /* deeper for strong contrast */
  --coral: #3a3a3a;           /* deep charcoal — secondary accent used on dark backgrounds */
  --glow: rgba(230, 255, 109, 0.35);

  /* Typography */
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: "Fraunces", "Times New Roman", serif; /* used only for the pink italic accent */
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Layout */
  --container: 1360px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture overlay — adds texture to dark bg */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Ambient glow behind hero */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* The signature italic accent — kept as Fraunces italic on purpose */
.italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--magenta);
  letter-spacing: -0.02em;
  /* Soft drop shadow — Canva-style, lifts the neon green off the page */
  text-shadow: 0.03em 0.04em 0.12em rgba(10, 10, 10, 0.35);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 2;
}

/* ============================================
   Section background variants
   Apply these to any section to break up the page rhythm.
   ============================================ */

.section-warm {
  background: var(--bg-warm);
}

.section-rose {
  background: var(--bg-rose);
}

/* Cards inside section-warm / section-rose need a contrasting elevation */
.section-warm .process-card,
.section-warm .package:not(.featured),
.section-warm .project,
.section-warm .contact-item,
.section-warm .form,
.section-warm .contact-note {
  background: var(--bg);
}

.section-rose .process-card,
.section-rose .package:not(.featured),
.section-rose .project,
.section-rose .contact-item,
.section-rose .form,
.section-rose .contact-note {
  background: var(--bg);
}

/* Button "secondary" style inside section-warm should invert so it stays visible */
.section-warm .btn-secondary:hover,
.section-rose .btn-secondary:hover {
  background: var(--bg);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  background: rgba(235, 229, 211, 0.7);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(235, 229, 211, 0.9);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.logo .dot {
  color: var(--magenta);
}

.logo .content {
  /* Keep the little italic accent in the logo — still Fraunces italic for the signature look */
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 1.1rem;
  margin-left: 0.2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--ink-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--magenta);
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--ink);
}

.mobile-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.mobile-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--magenta);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--magenta-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-dim);
  background: var(--bg-elev);
}

.btn .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   Hero (home)
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem;
  position: relative;
  isolation: isolate;
}

/* Soft gradient wash — cream with subtle green and taupe blobs, fades to cream at bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(230, 255, 109, 0.3), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(168, 158, 138, 0.25), transparent 55%),
    linear-gradient(160deg, #efe9d8 0%, #ebe5d3 50%, #e0d9c2 100%);
}

/* Smooth fade-out at the bottom so the hero blends into the cream body */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-eyebrow {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(100%);
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 0.4s; }

.hero-title .italic {
  /* Pink italic accent keeps its Fraunces look inside the hero title */
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--magenta);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: fade-up 0.8s ease 0.8s forwards;
}

.hero-sub em {
  color: var(--ink);
  font-family: var(--font-italic);
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s ease 1s forwards;
}

/* Decorative asterisk/star element */
.hero-deco {
  position: absolute;
  top: 25%;
  right: 8%;
  font-family: var(--font-italic);
  font-size: 6rem;
  color: var(--magenta);
  opacity: 0.3;
  animation: spin-slow 20s linear infinite;
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-deco { display: none; }
}

/* ============================================
   Marquee
   ============================================ */

.marquee {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  align-items: center;
}

.marquee-item {
  /* Non-accent marquee items are now the clean sans */
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item.accent {
  /* Pink italic accent words stay as Fraunces italic */
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--magenta);
}

.marquee-star {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--magenta);
}

/* ============================================
   Page headers (About, Services, Portfolio, Contact)
   ============================================ */

.page-header {
  padding: 12rem 0 4rem;
  position: relative;
}

/* -------- Full-bleed background hero (Contact, Portfolio) -------- */

.page-header.hero-bleed {
  padding: 0;
  margin-top: 0;
  min-height: min(78vh, 720px);
  display: flex;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.page-header.hero-bleed .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-header.hero-bleed .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Per-page crop focal points — keep the subject in frame */
.page-header.hero-bleed.hero-center .hero-bg img {
  object-position: 50% 35%;
}

.page-header.hero-bleed.hero-offset .hero-bg img {
  object-position: 65% 75%;
}

/* Consistent dark overlay across the full photo — editorial feel, text always readable */
.page-header.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 12, 15, 0.38);
}

.page-header.hero-bleed .container {
  width: 100%;
  padding-top: 10rem;
  padding-bottom: 4rem;
  align-self: stretch;
  display: flex;
}

/* Centered variant — used for Contact (soft sunset sky) */
.page-header.hero-bleed.hero-center .container {
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.page-header.hero-bleed.hero-center .page-title,
.page-header.hero-bleed.hero-center .page-intro,
.page-header.hero-bleed.hero-center .eyebrow {
  color: #fff;
}

.page-header.hero-bleed.hero-center .eyebrow {
  opacity: 0.9;
}

.page-header.hero-bleed.hero-center .page-intro {
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.page-header.hero-bleed.hero-center .page-title .italic {
  color: var(--magenta);
}

/* Offset variant — used for Portfolio (title anchored bottom-left, over the misty sky) */
.page-header.hero-bleed.hero-offset .container {
  align-items: flex-end;
  padding-bottom: 4rem;
}

.page-header.hero-bleed.hero-offset .hero-offset-text {
  max-width: 640px;
}

.page-header.hero-bleed.hero-offset .eyebrow {
  color: var(--magenta);
}

.page-header.hero-bleed.hero-offset .page-title {
  color: #fff;
}

.page-header.hero-bleed.hero-offset .page-intro {
  color: rgba(255, 255, 255, 0.92);
}

.page-header.hero-bleed.hero-offset .page-title .italic {
  color: var(--magenta);
}

/* Mild secondary gradient at bottom for extra text contrast on offset layouts */
.page-header.hero-bleed.hero-offset::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 12, 15, 0) 50%, rgba(20, 12, 15, 0.35) 100%);
  pointer-events: none;
}

/* Tighter title size inside bleed heroes so it sits comfortably */
.page-header.hero-bleed .page-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  padding-bottom: 0.12em;
}

/* -------- Split variant (Services) — text + standalone image side by side -------- */

.page-header.has-image .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: end;
}

.page-header.has-image .page-hero-img {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 30px 60px -30px rgba(42, 31, 35, 0.25);
}

.page-header.has-image .page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header.has-image .page-title {
  font-size: clamp(3rem, 8vw, 7rem);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.08em;
}

.page-intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-dim);
  max-width: 560px;
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* ============================================
   About page specifics
   ============================================ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 0 8rem;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}

.about-text h2 .italic {
  display: block;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}

.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--magenta);
  color: var(--bg);
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.about-badge .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-badge .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 500;
}

.about-real {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 5rem 0;
  align-items: start;
}

.about-real h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.about-real p {
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-real strong {
  color: var(--ink);
  font-weight: 500;
}

.about-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.about-fact {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.about-fact:first-child { border-top: 1px solid var(--line-soft); }

.about-fact-num {
  /* Kept as Fraunces italic — small pink accent numeral, part of the signature look */
  font-family: var(--font-italic);
  font-size: 1.6rem;
  color: var(--magenta);
  font-style: italic;
  font-weight: 400;
  /* Match the shadow treatment used elsewhere on green accent text */
  text-shadow: 0.03em 0.04em 0.12em rgba(10, 10, 10, 0.35);
}

.about-fact-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Process section (home & about) */
.process {
  padding: 8rem 0;
  text-align: center;
}

.process-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
  text-align: left;
}

.process-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.process-card:hover {
  border-color: var(--magenta);
  transform: translateY(-4px);
}

.process-card:hover::before { opacity: 1; }

.process-num {
  /* Pink accent numeral — kept as Fraunces italic */
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 3rem;
  color: var(--magenta);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1;
  margin-bottom: 2rem;
  display: block;
  /* Same drop-shadow treatment as .italic — lifts the neon green off beige */
  text-shadow: 0.03em 0.04em 0.12em rgba(10, 10, 10, 0.35);
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.process-card p {
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* ============================================
   CTA strip
   ============================================ */

.cta-strip {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.cta-strip h2 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.cta-strip p {
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Services page
   ============================================ */

.services-list {
  padding: 2rem 0 6rem;
}

.service-row {
  display: grid;
  grid-template-columns: 60px 2.5fr 3fr 2.5fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  transition: all 0.3s ease;
}

.service-row:hover {
  padding-left: 1.5rem;
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.service-name {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.2;
}

.service-desc {
  color: var(--ink-dim);
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-features li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--magenta);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3.5 7l2.5 2.5L10.5 4.5' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px;
}

/* Packages */
.packages {
  padding: 8rem 0;
  text-align: center;
}

.packages-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 1rem 0;
}

.packages-intro {
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 auto 4rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.package {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  position: relative;
  transition: all 0.3s ease;
}

.package.featured {
  background: var(--magenta);
  color: var(--ink);
  border-color: var(--magenta);
  transform: scale(1.02);
}

.package:hover { transform: translateY(-6px); }
.package.featured:hover { transform: scale(1.02) translateY(-6px); }

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-weight: 500;
}

.package-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.package-price .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.package-price .per {
  font-size: 0.85rem;
  opacity: 0.7;
}

.package-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  opacity: 0.85;
}

.package ul {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.package ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.93rem;
}

.package ul li::before {
  content: "✓";
  color: var(--magenta);
  font-weight: 600;
}

.package.featured ul li::before { color: var(--ink); }

.package .btn {
  width: 100%;
  justify-content: center;
}

.package.featured .btn {
  background: var(--bg);
  color: var(--ink);
}

.package.featured .btn:hover { background: var(--bg-elev-2); }

.package:not(.featured) .btn {
  background: transparent;
  border: 1px solid var(--line);
}

/* ============================================
   Portfolio
   ============================================ */

.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 3rem 0 3rem;
  margin-top: 0;
}

.filter {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: transparent;
}

.filter:hover { color: var(--ink); border-color: var(--ink-dim); }

.filter.active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--ink);
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 6rem;
}

.project {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--magenta);
}

.project-image {
  aspect-ratio: 4/3;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
}

.project-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project:hover .project-image svg {
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.project-image svg {
  transition: transform 0.6s ease;
}

.project-body {
  padding: 1.5rem 1.8rem 1.8rem;
}

.project-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.project-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.project-metric {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: var(--magenta);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.project h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ============================================
   Portfolio — Featured single-card layout
   Used when only one project is being featured on the portfolio index
   ============================================ */

.portfolio-wrap {
  padding-bottom: 6rem;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.portfolio-meta-note {
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--font-italic);
}

.portfolio-footnote {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-mute);
  padding: 2.5rem 0 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.portfolio-footnote .italic {
  font-size: 1.05rem;
}

/* Grid variant that allows a single wide card */
.portfolio-grid-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/* Featured hero card — image and body side-by-side on wide screens */
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-feature:hover {
  border-color: var(--magenta);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(42, 31, 35, 0.35);
}

.project-feature .project-image-lg {
  aspect-ratio: 4/5;
  background: var(--bg-elev-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.project-feature .project-image-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-sm);
}

.project-feature:hover .project-image-lg img {
  transform: scale(1.02);
}

.project-feature .project-body {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.project-feature h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
  line-height: 1.05;
}

.project-feature p {
  font-size: 1rem;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 44ch;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.3rem;
  width: fit-content;
  transition: all 0.25s ease;
}

.project-feature:hover .project-cta {
  color: var(--magenta-deep);
  border-color: var(--magenta-deep);
  gap: 0.75rem;
}

/* ============================================
   Project Detail Page
   ============================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.back-link:hover {
  color: var(--magenta-deep);
  gap: 0.8rem;
}

.back-link .arrow-back {
  transition: transform 0.25s ease;
}

.back-link:hover .arrow-back {
  transform: translateX(-4px);
}

/* ------- Project header ------- */

.project-header {
  padding: 9rem 0 5rem;
  position: relative;
}

.project-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(230, 255, 109, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 70%, rgba(168, 158, 138, 0.2), transparent 55%);
}

.project-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.project-header-text {
  padding-top: 1rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-meta-dot {
  color: var(--magenta-deep);
  font-weight: 700;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  padding-bottom: 0.1em;
}

.project-title .italic {
  display: inline;
}

.project-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 3rem;
}

.project-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.project-spec {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-spec .spec-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.project-spec .spec-value {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

.project-spec .spec-muted {
  color: var(--ink-mute);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.85rem;
}

.project-header-visual {
  position: sticky;
  top: 7rem;
}

.project-header-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(42, 31, 35, 0.3);
  background: var(--bg-elev);
}

.grid-caption {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* ------- Generic section on detail page ------- */

.project-section {
  padding: 6rem 0;
}

.project-overview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.overview-left h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  margin-top: 1rem;
  letter-spacing: -0.03em;
}

.overview-right p {
  font-size: 1.05rem;
  color: var(--ink-dim);
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

.overview-right p:last-child { margin-bottom: 0; }

/* Three-column split (the brief / worked from / created) */

.project-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 2rem 0;
}

.split-block {
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
}

.split-block .eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.split-body {
  font-size: 0.98rem;
  color: var(--ink-dim);
  line-height: 1.7;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.split-list li {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 1.3rem;
  position: relative;
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta-deep);
}

/* ------- Gallery intro ------- */

.gallery-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem;
}

.gallery-heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 1rem 0 1.5rem;
  line-height: 1;
}

.gallery-sub {
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ------- Individual post block ------- */

.post-block {
  max-width: 680px;
  margin: 0 auto 6rem;
}

.post-block:last-child { margin-bottom: 0; }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.post-index {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--magenta-deep);
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
  /* Same drop-shadow treatment as .italic — lifts green off beige */
  text-shadow: 0.03em 0.04em 0.12em rgba(10, 10, 10, 0.35);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.post-desc {
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 48ch;
}

.post-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ------- Single post (non-carousel) ------- */

.single-post {
  display: flex;
  justify-content: center;
}

.single-post-frame {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 30px 60px -25px rgba(42, 31, 35, 0.3);
  border: 1px solid var(--line-soft);
}

.single-post-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Instagram-style Carousel
   ============================================ */

.ig-carousel {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.ig-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(42, 31, 35, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.ig-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.ig-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: block;
}

.ig-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Arrow buttons — subtle, elegant, appear on hover */
.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 10, 10, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.08);
}

.ig-arrow svg {
  width: 18px;
  height: 18px;
}

.ig-arrow-prev { left: 0.9rem; transform: translate(-5px, -50%); }
.ig-arrow-next { right: 0.9rem; transform: translate(5px, -50%); }

.ig-carousel:hover .ig-arrow,
.ig-carousel:focus-within .ig-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.ig-arrow:hover {
  background: #fff;
  transform: translate(0, -50%) scale(1.08) !important;
}

.ig-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* Counter — top right of frame */
.ig-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-carousel:hover .ig-counter,
.ig-carousel:focus-within .ig-counter {
  opacity: 1;
}

/* Always show counter on touch devices so it's not hidden behind hover */
@media (hover: none) {
  .ig-counter { opacity: 1; }
}

/* Dots below the frame */
.ig-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.ig-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.ig-dot:hover {
  background: var(--ink-dim);
  transform: scale(1.15);
}

.ig-dot.active {
  background: var(--magenta-deep);
  width: 22px;
  border-radius: 4px;
}

/* ------- Caption panel ------- */

.caption-panel {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.section-rose .caption-panel {
  background: var(--bg);
}

.caption-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Small tracked uppercase — green was too low-contrast. Use ink for readability
     and pair with a small green dot for visual accent (see ::before below). */
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.caption-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta-deep);
  display: inline-block;
}

.caption-panel p {
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.caption-panel p:last-child { margin-bottom: 0; }

.caption-panel .caption-tags {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  line-height: 1.5;
  word-spacing: 0.1em;
}

/* ------- CTA actions ------- */

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */

.contact-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: block;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-note {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(230, 255, 109, 0.3), transparent);
}

.contact-note h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-note p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* Form */
.form {
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px var(--glow);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}

.form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--ink-dim);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--magenta); }

.footer-col ul li.mute { color: var(--ink-mute); font-size: 0.85rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  to { transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

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

  .nav-cta { display: none; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 2rem;
    border-bottom: 1px solid var(--line-soft);
    gap: 1.5rem;
  }

  .about-intro,
  .about-real,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-header.has-image .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-header.hero-bleed {
    min-height: 60vh;
  }

  .page-header.hero-bleed .container {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .page-header.hero-bleed.hero-offset .container {
    padding-bottom: 3rem;
  }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .package.featured { transform: none; }
  .package.featured:hover { transform: translateY(-6px); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Featured project card stacks on tablet */
  .project-feature {
    grid-template-columns: 1fr;
  }
  .project-feature .project-image-lg {
    aspect-ratio: 4/3;
    padding: 1.5rem;
  }
  .project-feature .project-body {
    padding: 2.5rem 2rem;
  }

  /* Project detail — stack header */
  .project-header-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-header-visual {
    position: static;
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
  .project-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-split {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .service-row:hover { padding-left: 0; }

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

@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }
  .nav { padding: 1rem 1.2rem; }
  .hero { padding: 8rem 0 4rem; }
  .page-header { padding: 8rem 0 2rem; }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Project detail mobile tuning */
  .project-header { padding: 7rem 0 3rem; }
  .project-section { padding: 4rem 0; }
  .project-specs { grid-template-columns: 1fr; }
  .post-header {
    flex-direction: column;
    gap: 1rem;
  }
  .post-tag { align-self: flex-start; }
  .caption-panel { padding: 1.5rem; }

  /* Arrows always visible on small screens (no hover) */
  .ig-arrow {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    width: 36px;
    height: 36px;
  }
  .ig-arrow-prev { left: 0.6rem; }
  .ig-arrow-next { right: 0.6rem; }
  .ig-counter { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .ig-slide {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
}
