:root {
  /* The Social Craftery brand palette — extracted from the official logo PDF. */
  --bg: #16140F;
  --bg-2: #1C1914;
  --text: #F7F5F0;
  --muted: #87857F;
  --muted-2: #9C978E;
  --accent: #E67339;
  --accent-hover: #D16022;
  --accent-glow: rgba(230, 115, 57, .22);
  --accent-glow-soft: rgba(230, 115, 57, .12);
  --border: rgba(247, 245, 240, .12);
  --border-strong: rgba(247, 245, 240, .22);
  --card: #1F1B15;
  --premium-dark: #F7F5F0;
  --glass: rgba(247, 245, 240, .90);
  --glass-strong: rgba(247, 245, 240, .96);
  --glass-border: rgba(255, 255, 255, .32);
  --max: 1180px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --ease-magnetic: cubic-bezier(.23, 1, .32, 1);
  --ease-editorial: cubic-bezier(.19, 1, .22, 1);

  /* Elevation stack — dark-on-dark shadows barely register, so these read
     darker/more opaque than the old light-theme values to stay visible. */
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 64px rgba(0, 0, 0, .45);
  --shadow-card: 0 1px 1px rgba(0, 0, 0, .25), 0 18px 48px rgba(0, 0, 0, .4);
  --shadow-lift: 0 8px 20px rgba(0, 0, 0, .35), 0 32px 72px rgba(0, 0, 0, .5);
  --shadow-float: 0 2px 4px rgba(0, 0, 0, .25), 0 40px 100px rgba(0, 0, 0, .45);
  --shadow-glow: 0 20px 48px var(--accent-glow), 0 4px 14px rgba(0, 0, 0, .35);

  --cursor-size: 34px;
  --cursor-dot: 6px;
  --grid-line: rgba(247, 245, 240, .06);
}

* { box-sizing: border-box; }

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

html {
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
    cursor: none;
  }
}

body.menu-open { overflow: hidden; }
body.is-loading { overflow: hidden; }

body.is-ready { overflow-x: hidden; }

/* ── Ambient Background ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(230, 115, 57, .07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(247, 245, 240, .04) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #1C1914 50%, var(--bg) 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  animation: orbFloat 22s var(--ease-soft) infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(230, 115, 57, .12);
}

.orb-2 {
  width: 360px;
  height: 360px;
  bottom: 20%;
  left: -100px;
  background: rgba(247, 245, 240, .05);
  animation-delay: -8s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  top: 45%;
  right: 15%;
  background: rgba(230, 115, 57, .08);
  animation-delay: -14s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.06); }
}

/* ── Page Loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease-soft), visibility .6s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.loader-logo .brand-mark {
  width: 56px;
  height: 56px;
  font-size: 18px;
  animation: loaderPulse 1.2s var(--ease-soft) infinite alternate;
}

.loader-text {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
}

@keyframes loaderPulse {
  from { transform: scale(1); box-shadow: 0 0 0 rgba(230, 115, 57, 0); }
  to { transform: scale(1.04); box-shadow: 0 0 32px var(--accent-glow); }
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #FF9D5C);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 99;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus { transform: translateY(0); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(247, 245, 240, .08);
  background: rgba(22, 20, 15, .72);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(247, 245, 240, .14);
  background: rgba(22, 20, 15, .92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 78px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: opacity .3s var(--ease);
}

.brand:hover { opacity: .8; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}

.brand-mark svg {
  width: 68%;
  height: 68%;
  overflow: visible;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav-link-underline {
  position: relative;
}

.nav-links a:not(.btn) {
  position: relative;
  transition: color .3s var(--ease);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease-soft);
}

.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-links a.is-active:not(.btn) { color: var(--text); }
.nav-links a.is-active:not(.btn)::after {
  transform: scaleX(1);
  transform-origin: left center;
  background: var(--accent);
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.menu-button:hover { transform: scale(1.05); border-color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-magnetic), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255,255,255,.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.btn:hover::before { opacity: 1; }

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(247, 245, 240, .3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 24px var(--accent-glow-soft);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%);
  opacity: .8;
  pointer-events: none;
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, var(--shadow-glow);
}

.hero-actions .btn:hover,
.nav-links .btn:hover {
  transform: none;
  box-shadow: none;
}

.hero-actions .btn.primary:hover,
.nav-links .btn.primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, var(--shadow-glow);
}

.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }

.magnetic-btn { transform-style: preserve-3d; }

/* ── Custom Cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.cursor-dot {
  width: var(--cursor-dot);
  height: var(--cursor-dot);
  background: var(--text);
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring {
  width: var(--cursor-size);
  height: var(--cursor-size);
  border: 1px solid rgba(247, 245, 240, .35);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .3s var(--ease), width .35s var(--ease-soft), height .35s var(--ease-soft), border-color .35s var(--ease-soft), background .35s var(--ease-soft);
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  opacity: 1;
}

.cursor-ring.is-active {
  width: 64px;
  height: 64px;
  background: rgba(247, 245, 240, .08);
  border-color: rgba(247, 245, 240, .25);
}

.cursor-ring.is-hidden,
.cursor-dot.is-hidden {
  opacity: 0;
}

/* ── Layout ── */
.section {
  padding: 148px 24px;
  position: relative;
}

.section.soft {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 14%, rgba(28, 25, 20, .6) 86%, transparent 100%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

h1, h2, h3, h4 {
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 118px);
  letter-spacing: -.04em;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: .06em;
}

h2 {
  font-size: clamp(40px, 5.5vw, 78px);
  letter-spacing: -.035em;
  max-width: 900px;
}

h3 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; }
h4 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }

/* Single-word emphasis inside a heading — one focal word per section title. */
.accent-word { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  max-width: 620px;
  margin: 28px 0 0;
  line-height: 1.7;
  letter-spacing: -.005em;
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 78px);
  padding: 64px 24px 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(230, 115, 57, .07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  grid-column: span 7;
  align-self: center;
  position: relative;
  z-index: 2;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-rotate {
  display: block;
  position: relative;
  height: 1.08em;
  color: var(--accent);
  overflow: hidden;
}

.hero-rotate-word {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

.hero-rotate-word.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.hero-rotate-word.is-exiting {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  filter: blur(6px);
}

.hero-visual {
  grid-column: span 5;
  min-height: 580px;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.float-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.float-card {
  position: absolute;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-float);
  will-change: transform;
  animation: floatDrift var(--float-dur, 8s) var(--ease-soft) infinite alternate;
}

.float-card-inner {
  padding: 14px 16px;
  font-size: 11px;
  /* These chips are deliberately opaque light/cream (see --glass) so their
     content stays crisp against the dark page — so their own text needs to
     be dark ink, not the page-level --muted/--text (which are cream here). */
  color: rgba(22, 20, 15, .68);
  display: grid;
  gap: 8px;
}

.float-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bg);
}

.float-instagram {
  top: 8%;
  right: 12%;
  --float-dur: 7s;
  animation-delay: -.5s;
}

.float-instagram .float-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--bg);
  font-size: 13px;
}

.float-analytics {
  top: 22%;
  left: 4%;
  width: 140px;
  --float-dur: 9s;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.mini-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(230, 115, 57, .4) 100%);
  border-radius: 3px 3px 0 0;
  opacity: .85;
}

.float-growth {
  top: 42%;
  right: 0;
  width: 150px;
  --float-dur: 8.5s;
}

.growth-line { width: 100%; height: 36px; color: var(--accent); }
.growth-stat { font-size: 18px; font-weight: 700; color: var(--accent); font-family: Manrope, sans-serif; }

.float-palette {
  bottom: 28%;
  left: 8%;
  --float-dur: 10s;
}

.palette-swatches {
  display: flex;
  gap: 6px;
}

.palette-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(22,20,15,.08);
}

.palette-swatches span:nth-child(1) { background: #E67339; }
.palette-swatches span:nth-child(2) { background: #16140F; }
.palette-swatches span:nth-child(3) { background: #F7F5F0; }
.palette-swatches span:nth-child(4) { background: #D16022; }

.float-campaign {
  top: 55%;
  left: 28%;
  width: 130px;
  --float-dur: 7.5s;
}

.campaign-preview {
  display: grid;
  gap: 6px;
}

.campaign-preview span {
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-2), var(--card));
  border: 1px solid var(--border);
}

.float-calendar {
  bottom: 12%;
  right: 18%;
  --float-dur: 9.5s;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.calendar-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.calendar-grid span.active {
  background: var(--accent);
  border-color: var(--accent);
}

.float-timeline {
  top: 12%;
  left: 32%;
  width: 160px;
  --float-dur: 8s;
}

.video-timeline {
  position: relative;
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: stretch;
}

.video-timeline .clip {
  flex: 1;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.video-timeline .clip.accent { background: rgba(230, 115, 57, .15); border-color: rgba(230, 115, 57, .3); }

.video-timeline .playhead {
  position: absolute;
  left: 45%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.float-ai {
  bottom: 38%;
  right: 32%;
  --float-dur: 6.5s;
}

.ai-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--premium-dark), #FFFFFF);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.float-meta {
  bottom: 8%;
  left: 0;
  --float-dur: 10.5s;
}

.meta-logo {
  font-weight: 700;
  font-size: 16px;
  color: #1877F2;
  font-family: Manrope, sans-serif;
}

.float-social {
  top: 68%;
  right: 8%;
  --float-dur: 7s;
}

.social-icons {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--bg);
}

@keyframes floatDrift {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  to { transform: translate3d(var(--dx, 8px), var(--dy, -12px), 0) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

.float-instagram { --rot: -3deg; --dx: 6px; --dy: -10px; }
.float-analytics { --rot: 2deg; --dx: -8px; --dy: -8px; }
.float-growth { --rot: -1deg; --dx: 10px; --dy: -14px; }
.float-palette { --rot: 3deg; --dx: -6px; --dy: -12px; }
.float-campaign { --rot: -2deg; --dx: 8px; --dy: -6px; }
.float-calendar { --rot: 1deg; --dx: -10px; --dy: -8px; }
.float-timeline { --rot: -2deg; --dx: 6px; --dy: -10px; }
.float-ai { --rot: 2deg; --dx: -8px; --dy: -14px; }
.float-meta { --rot: -1deg; --dx: 10px; --dy: -6px; }
.float-social { --rot: 3deg; --dx: -6px; --dy: -10px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .5;
}

.scroll-indicator-text {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: scrollPulse 2s var(--ease-soft) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(.6); opacity: 1; }
}

/* ── Section Head ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 64px;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center h2 {
  max-width: 100%;
}

/* ── Cards ── */
.cards-3, .cards-4 {
  display: grid;
  gap: 24px;
}

.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 220px;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition: transform .5s var(--ease-soft), border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  will-change: transform;
  transform-style: preserve-3d;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(230, 115, 57, .3) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
  pointer-events: none;
}

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

.card:hover {
  border-color: rgba(247, 245, 240, .22);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.card p { color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.card .arrow { color: var(--accent); font-size: 28px; margin: 22px 0; opacity: .8; }

.arrow-chevron {
  color: var(--accent);
  margin: 22px 0;
  opacity: .85;
  width: 22px;
  height: 28px;
}

.arrow-chevron path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.card.gsap-revealed .arrow-chevron path,
.card:hover .arrow-chevron path {
  animation: chevronDraw .6s var(--ease-soft) forwards;
}

@keyframes chevronDraw {
  to { stroke-dashoffset: 0; }
}

/* Inverted contrast card: the page base is now dark, so what used to be the
   "dark accent card" flips to a light/cream accent card to keep the same
   alternating-rhythm pattern against the surrounding dark cards. */
.card.dark-card {
  background: linear-gradient(145deg, #FFFFFF 0%, var(--premium-dark) 100%);
  border-color: rgba(22, 20, 15, .08);
  color: var(--bg);
}

.card.dark-card p { color: rgba(22, 20, 15, .72); }
.card.dark-card .arrow { color: var(--bg); }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--premium-dark);
  background: var(--premium-dark);
  display: grid;
  place-items: center;
  color: var(--bg);
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}

.service-card:hover .icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.service-card {
  min-height: 240px;
  transition: transform .55s var(--ease-soft), border-color .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}

.service-card:hover {
  transform: translateY(-6px) scale(1.012);
}

.tilt-card { transition: transform .15s linear, box-shadow .5s var(--ease-soft), border-color .5s var(--ease-soft); }

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.showcase {
  min-height: 400px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 24px;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  box-shadow: var(--shadow-card);
}

.showcase.dark {
  background: linear-gradient(145deg, #FFFFFF 0%, var(--premium-dark) 100%);
  color: var(--bg);
}

.mock-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.mock-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(247, 245, 240, .12);
  background: rgba(247, 245, 240, .04);
  transition: transform .7s var(--ease-soft), background .7s var(--ease-soft);
}

.showcase:not(.dark) .mock-tile { background: var(--bg); border-color: var(--border); }

.showcase:hover .mock-tile:nth-child(odd) { transform: translateY(-4px); }
.showcase:hover .mock-tile:nth-child(even) { transform: translateY(4px); }

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  opacity: .75;
  font-size: 13px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.showcase:hover .pill { opacity: 1; }

.showcase h3 { font-size: 26px; margin-bottom: 12px; }
.showcase > div:first-child p { color: var(--muted); font-size: 16px; }
.showcase.dark > div:first-child p { color: rgba(22, 20, 15, .72); }
.showcase.dark .eyebrow { color: rgba(22, 20, 15, .6); }

.showcase-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}

.showcase.dark .showcase-media { border-color: rgba(22, 20, 15, .18); }

.showcase-media.portrait {
  aspect-ratio: 3 / 4;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, clip-path;
}

.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}

.showcase-stat { display: flex; flex-direction: column; gap: 4px; }

.showcase-stat-num {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--accent);
}

.showcase.dark .showcase-stat-num { color: var(--bg); }

.showcase-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.showcase.dark .showcase-stat-label { color: rgba(22, 20, 15, .6); }

.showcase-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.showcase.dark .showcase-note { color: rgba(22, 20, 15, .5); }

/* ── Timeline ── */
.section-process { overflow: hidden; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.timeline-line {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--border);
  z-index: 0;
  overflow: hidden;
  border-radius: 999px;
}

.timeline-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #FF9D5C);
  border-radius: inherit;
  transition: width .1s linear;
}

.step {
  position: relative;
  padding-top: 80px;
  z-index: 1;
}

.step-content {
  opacity: .4;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}

.step.is-visible .step-content {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: Manrope, sans-serif;
  transition: transform .5s var(--ease-soft), background .5s var(--ease-soft), border-color .5s var(--ease-soft), color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

.step.is-visible .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.step:hover .step-num { transform: scale(1.08); }

/* ── Testimonials ── */
.testimonial {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

.testimonial-mark svg { width: 18px; height: 18px; }

.stars { color: var(--accent); font-size: 14px; letter-spacing: .1em; }

/* ── FAQ ── */
.faq {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background .4s var(--ease-soft);
}

.faq-item:hover { background: rgba(247, 245, 240, .04); }

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 78px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  gap: 24px;
  transition: color .3s var(--ease);
}

.faq-question:hover { color: var(--accent); }

.faq-question span:last-child {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 18px;
  color: var(--accent);
  transition: transform .45s var(--ease-soft), border-color .35s var(--ease), background .35s var(--ease);
}

.faq-question:hover span:last-child { border-color: var(--accent); }

/* grid-rows 0fr→1fr expand: no hardcoded height, so any answer length is safe */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  opacity: 0;
  transition: grid-template-rows .5s var(--ease-soft), opacity .4s var(--ease);
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  line-height: 1.7;
}

.faq-answer p { margin: 0 0 24px; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-item.active .faq-question span:last-child {
  transform: rotate(135deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── CTA Band ── */
.cta-band {
  text-align: center;
  padding: 168px 24px;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(230, 115, 57, .09) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 { margin: 0 auto; }
.cta-band .lead { margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 20, .5) 100%);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
}

.footer-brand p {
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 280px;
  line-height: 1.65;
}

.footer-brand .footer-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.footer-location svg { color: var(--accent); flex-shrink: 0; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer h4 {
  font-size: 13px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}

.footer a, .footer p {
  color: var(--muted);
  margin: 10px 0;
  font-size: 14px;
  display: block;
  position: relative;
  width: fit-content;
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-soft);
}

.footer a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Grid Overlay (decorative, aria-hidden) ── */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
}

/* ── Service / Blog / Contact pages ── */
.service-hero {
  padding: 92px 24px 68px;
  position: relative;
  overflow: hidden;
}

.service-hero h1 { font-size: clamp(48px, 8vw, 104px); }
.service-hero .container { position: relative; z-index: 1; }

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrap h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin-top: 56px;
}

.content-wrap h3 { margin-top: 36px; font-size: 28px; }
.content-wrap p, .content-wrap li { color: var(--muted); font-size: 18px; line-height: 1.75; }
.content-wrap a { color: var(--accent); box-shadow: 0 1px 0 currentColor; transition: opacity .3s var(--ease); }
.content-wrap a:hover { opacity: .7; }

.content-wrap > p:first-of-type {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -.005em;
}

.content-wrap ul { padding-left: 22px; }
.content-wrap li { margin: 10px 0; }
.content-wrap li::marker { color: var(--accent); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label { color: var(--muted); font-size: 14px; }

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  padding: 14px 16px;
  outline: 0;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

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

/* Honeypot: kept in normal flow (not display:none) so it still reads as a
   real field to naive bots, but invisible and unreachable for real users. */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
}

.form-status {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form-status.is-success { color: #34D399; }
.form-status.is-error { color: var(--accent); }

.btn.primary[aria-busy="true"] {
  opacity: .7;
  cursor: not-allowed;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  animation: whatsappPulse 3.2s var(--ease-soft) infinite;
}

.btn.whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 0 var(--accent-glow-soft); }
  50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 10px rgba(230, 115, 57, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp { animation: none; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trusted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 24px;
}

.trusted-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.logo-placeholder {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(247, 245, 240, .06);
}

.phone-stack { position: absolute; inset: 0; }

.phone {
  width: min(280px, 45vw);
  aspect-ratio: 9 / 18.5;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--card);
  padding: 12px;
  box-shadow: var(--shadow-float);
  position: absolute;
  transition: transform .5s var(--ease);
}

.phone.one { right: 140px; top: 26px; transform: rotate(-7deg); }
.phone.two { right: 0; top: 112px; transform: rotate(6deg); }
.phone.three { right: 78px; bottom: 8px; transform: rotate(-1deg); }

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  display: grid;
  grid-template-rows: 56px 1fr;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.feed-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feed-card {
  min-height: 88px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feed-card.dark { background: var(--text); color: var(--bg); }
.feed-card.accent { background: var(--accent); color: var(--bg); }
.feed-card.photo { padding: 0; overflow: hidden; }
.feed-card.photo img { width: 100%; height: 100%; object-fit: cover; }
.feed-line { height: 7px; border-radius: 999px; background: currentColor; opacity: .22; }
.feed-line.short { width: 58%; }

/* ── Reveal States (GSAP managed) ── */
[data-reveal].reveal-pending {
  opacity: 0;
}

[data-reveal].gsap-revealed {
  opacity: 1;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ambient-orb,
  .float-card,
  .scroll-indicator-line,
  .loader-logo .brand-mark {
    animation: none !important;
  }

  .page-loader { display: none !important; }

  [data-reveal],
  [data-reveal].reveal-pending {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .step-content { opacity: 1 !important; transform: none !important; }
  .step-num { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--bg) !important; }
  .hero-rotate-word { position: static !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-rotate-word:not(:first-child) { display: none; }
  .hero-rotate { height: auto; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 78px 16px auto;
    background: rgba(24, 21, 16, .97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-soft);
  }

  body.menu-open .nav-links { display: flex; }
  .menu-button { display: grid; place-items: center; }

  .hero { padding-top: 48px; min-height: auto; }
  .hero-copy, .hero-visual { grid-column: span 12; }
  .hero-visual { min-height: 480px; margin-top: 20px; }
  .scroll-indicator { display: none; }

  .float-instagram { right: 5%; }
  .float-analytics { left: 0; }
  .float-timeline { left: 20%; }

  .trusted-inner, .footer-inner, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .blog-grid, .two-col, .portfolio-grid { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-line { display: none; }

  .step {
    padding: 0 0 40px 78px;
    min-height: auto;
  }

  .step::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }

  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }

  .section-head { display: block; }
  .section-head p { margin-top: 20px; }

}

@media (max-width: 620px) {
  .nav { padding: 0 16px; }
  .section { padding: 80px 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-visual { min-height: 400px; }
  .float-card { transform: scale(.9); }
  .footer-links { grid-template-columns: 1fr; }
  .mock-feed { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 90px 16px; }
  .btn:not(.whatsapp):not(.nav-links .btn) { width: 100%; }
  h1 { font-size: clamp(42px, 12vw, 64px); }
}
