/* ---------- Design tokens ---------- */
:root {
  --black: #0a0a0a;
  --light: #f2efe9;
  --text-on-dark: #f5f5f0;
  --text-on-dark-muted: #b9b6b0;
  --text-on-light: #171614;
  --text-on-light-muted: #5c5954;

  --orange: #FF6807;
  --pink: #FF1B6C;
  --blue: #233CE6;

  --font-display: 'Anton', sans-serif;
  --font-script: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1120px;
  --ease-elegant: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

em {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.wink {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--pink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease-elegant), box-shadow 0.35s var(--ease-elegant);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 27, 108, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(255, 27, 108, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(245, 245, 240, 0.4);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark {
  background: var(--black);
  color: var(--text-on-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-dark:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }

/* ---------- Grain texture ---------- */
.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.blob-orange { width: 18px; height: 18px; background: var(--orange); top: 18%; left: 8%; }
.blob-magenta { width: 60px; height: 90px; border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%; background: transparent; border: 5px solid var(--pink); top: 12%; right: 10%; }
.blob-purple { width: 50px; height: 80px; border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%; background: transparent; border: 5px solid var(--blue); bottom: 10%; right: 18%; }
.blob-outline-light { width: 70px; height: 100px; border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%; background: transparent; border: 5px solid rgba(255,255,255,0.5); top: 14%; left: 10%; }

/* ---------- Curved section dividers ("hills") ---------- */
/* A shallow ellipse in the *current* section's own background color, pulled
   up so it overlaps the section above — the same trick that gives the
   logo's floreios their soft, rounded feel, applied to the seams between
   sections instead of a hard horizontal edge. */
.hill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -68%);
  width: 145vw;
  height: clamp(70px, 11vw, 160px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hill--light { background: var(--light); }
.hill--black { background: var(--black); }
.hill--cta { background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 55%, var(--blue) 100%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: header-slide-in 0.7s var(--ease-elegant) both;
}
@keyframes header-slide-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-link {
  position: relative;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-elegant);
}
.nav-link:hover { color: var(--text-on-dark); }
.nav-link:hover::after { transform: scaleX(1); }

.btn-brand {
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--orange));
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 27, 108, 0.35);
  transition: transform 0.35s var(--ease-elegant), box-shadow 0.35s var(--ease-elegant), background-position 0.5s ease;
}
.btn-brand:hover {
  background-position: 100% 50%;
  box-shadow: 0 14px 32px rgba(255, 27, 108, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-on-dark);
  transition: transform 0.4s var(--ease-elegant), opacity 0.3s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

/* Mouse-following glow */
.hero-glow {
  position: absolute;
  z-index: 1;
  width: 560px;
  height: 560px;
  left: var(--mx, 50%);
  top: var(--my, 40%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pink) 35%, transparent) 0%, transparent 70%);
  pointer-events: none;
  transition: left 0.3s ease-out, top 0.3s ease-out, opacity 0.4s ease;
  opacity: 0;
}
.hero:hover .hero-glow,
.hero.glow-active .hero-glow { opacity: 1; }

/* Staggered entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-fade-up 0.9s var(--ease-elegant) forwards;
}
.hero-anim--1 { animation-delay: 0.1s; }
.hero-anim--2 { animation-delay: 0.32s; }
.hero-anim--3 { animation-delay: 0.54s; }
.hero-anim--4 { animation-delay: 0.76s; }
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: min(300px, 62vw);
  height: auto;
  margin: 0 auto 28px;
  animation-name: hero-fade-up, logo-pulse;
  animation-duration: 0.9s, 3.2s;
  animation-timing-function: var(--ease-elegant), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-delay: 0.1s, 1.4s;
  animation-iteration-count: 1, infinite;
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 18px rgba(255,255,255,0.18)); }
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-title .strike {
  text-decoration: line-through;
  text-decoration-color: var(--text-on-dark-muted);
  color: var(--text-on-dark-muted);
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue), var(--orange));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s linear infinite;
}
@keyframes gradient-flow {
  to { background-position: -300% 0; }
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-elegant) forwards;
  animation-delay: 1s;
}
.scroll-indicator-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(245, 245, 240, 0.45);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-indicator-mouse span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--text-on-dark);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .hero-logo, .scroll-indicator { animation: none; opacity: 1; transform: none; }
  .hero-title .highlight { animation: none; }
  .scroll-indicator-mouse span { animation: none; }
}

/* ---------- Sections shared ---------- */
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

/* ---------- About ---------- */
.about {
  position: relative;
  overflow: hidden;
  background: var(--light);
  color: var(--text-on-light);
  /* The .hill--light above pokes up into .hero by 0.68x its own height, and
     the services section's .hill--black pokes up into us by the same amount —
     together that shifts the visible white band up by 1.36x the hill height
     versus this box's own edges. Extra bottom padding cancels that shift so
     the white margin above/below the photo reads as equal. */
  padding: 110px 0 calc(110px + 1.36 * clamp(70px, 11vw, 160px));
}
.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image {
  width: 100%;
  border-radius: 18px 4px 18px 4px;
  display: block;
}
.about-image--color {
  filter: saturate(1.05);
  transition: opacity 0.5s ease;
}
.about-image--pb {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.about-image-wrap:hover .about-image--color,
.about-image-wrap:focus-within .about-image--color {
  opacity: 0;
}
.about-image-wrap:hover .about-image--pb,
.about-image-wrap:focus-within .about-image--pb {
  opacity: 1;
}
.wink-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 27, 108, 0.4);
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-on-light-muted);
  margin-top: 18px;
  max-width: 440px;
}
.about .eyebrow { color: var(--blue); }

/* ---------- Services ---------- */
.services {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 130px 0 120px;
}
.services > .container { position: relative; z-index: 2; }
.services-heading {
  text-align: center;
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: service;
}
.service-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid color-mix(in srgb, var(--accent, var(--orange)) 20%, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  padding: 44px 36px 36px;
  overflow: hidden;
  counter-increment: service;
  transition: transform 0.5s var(--ease-elegant), border-color 0.5s var(--ease-elegant), background 0.5s var(--ease-elegant), box-shadow 0.5s var(--ease-elegant);
}
.service-card::before {
  content: "0" counter(service);
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent, var(--orange)) 35%, transparent);
  pointer-events: none;
}
.service-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--orange)) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(10px);
  transition: opacity 0.5s var(--ease-elegant);
  pointer-events: none;
}
.service-card:nth-child(even) { margin-top: 22px; }
.services-grid .service-card:hover {
  transform: translateY(-8px);
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--orange)) 60%, transparent);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--accent, var(--orange)) 45%, transparent);
}
.service-card:hover::after { opacity: 0.22; }

.service-card.accent-orange { --accent: var(--orange); }
.service-card.accent-magenta { --accent: var(--pink); }
.service-card.accent-purple { --accent: var(--blue); }

.service-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent, var(--orange)), color-mix(in srgb, var(--accent, var(--orange)) 55%, black));
  color: #fff;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent, var(--orange)) 55%, transparent);
  transition: transform 0.5s var(--ease-elegant);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* Gentle cascade as the grid reveals */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: 150px 0 140px;
  text-align: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 55%, var(--blue) 100%);
  color: #fff;
}
.cta-content { position: relative; z-index: 2; }
.cta-final em { -webkit-text-fill-color: #fff; background: none; color: #fff; -webkit-text-stroke: 0; }

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  margin-bottom: 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  padding-right: 0.9em;
}
.marquee-track span em {
  text-transform: none;
  font-size: 1.05em;
  margin: 0 0.06em 0 0.28em;
}
.marquee-track span::after {
  content: "\2726";
  -webkit-text-stroke: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.5em;
  margin-left: 0.9em;
}
.marquee-track span i {
  font-style: normal;
  color: #fff;
  -webkit-text-stroke: 0;
  margin-left: 0.35em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 120px 0 0;
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .footer-logo {
  height: 34px;
  margin-bottom: 18px;
}
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  max-width: 300px;
}
.footer-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.98rem;
  width: fit-content;
  position: relative;
  transition: color 0.3s ease, transform 0.35s var(--ease-elegant);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-elegant);
}
.footer-col a:hover { color: #fff; transform: translateX(6px); }
.footer-col a:hover::after { transform: scaleX(1); }

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-on-dark-muted);
  transition: color 0.35s ease, filter 0.35s ease, transform 0.5s var(--ease-elegant);
}
.social-link:hover .social-icon {
  color: var(--pink);
  filter: drop-shadow(0 4px 10px rgba(255, 27, 108, 0.55));
  transform: rotate(-8deg) scale(1.1);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding: 28px 0;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .btn { transition: none; }
  .site-header { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px 24px 20px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease-elegant), opacity 0.35s ease;
  }
  .main-nav.is-open {
    max-height: 340px;
    opacity: 1;
  }
  .nav-link { padding: 12px 4px; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(even) { margin-top: 0; }
  .services-grid .service-card:nth-child(n) { transition-delay: 0s; }
  .blob-magenta, .blob-purple, .blob-outline-light { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand p { max-width: none; }
  .hill { width: 220vw; }
}

@media (max-width: 520px) {
  .btn-outline { padding: 10px 18px; font-size: 0.85rem; }
  .hero { padding-top: 120px; }
  .logo { height: 36px; }
}
