/* ==========================================================================
   DIMIDIUM — FRONT PAGE STYLESHEET
   Dark / Cinematic Design Language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dark palette */
  --bg:          #080b14;
  --bg-alt:      #0d1120;
  --glass:       rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border:      rgba(255, 255, 255, 0.09);
  --border-med:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text:        #edeae5;
  --muted:       rgba(237, 234, 229, 0.55);
  --subtle:      rgba(237, 234, 229, 0.30);

  /* Brand */
  --accent:      #e85d3c;
  --accent-dark: #c44828;

  /* Legacy aliases used in section headings / buttons */
  --ink:    var(--text);
  --paper:  var(--bg);

  /* Fonts */
  --ff-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --ff-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius:    4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --pill:      100px;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur:      260ms;
  --dur-slow: 560ms;

  /* Layout */
  --nav-h:     72px;
  --max-w:     1280px;
  --pad-x:     clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 10vw, 140px);
}

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

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

.fp-body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fp-body img { max-width: 100%; height: auto; display: block; }
.fp-body a   { color: var(--text); text-decoration: none; }
.fp-body ul  { list-style: none; }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.fp-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.fp-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.fp-label--light { color: rgba(237,234,229,.4); }

.fp-section-heading {
  font-family: var(--ff-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 18px;
}
.fp-section-heading--light { color: var(--text); }

.fp-section-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
}

.fp-section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.fp-section-head--center { text-align: center; }
.fp-section-head--center .fp-section-desc { margin-inline: auto; }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--pill);
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}

/* White/light button — primary CTA on dark bg */
.fp-btn--light,
a.fp-btn--light        { background: var(--text); border-color: var(--text); color: var(--bg); }
.fp-btn--light:hover,
a.fp-btn--light:hover  { background: #fff; border-color: #fff; transform: translateY(-2px); color: var(--bg); }

/* Glass button — secondary CTA */
.fp-btn--glass,
a.fp-btn--glass        { background: rgba(255,255,255,0.1); border-color: var(--border-med); color: var(--text); backdrop-filter: blur(8px); }
.fp-btn--glass:hover,
a.fp-btn--glass:hover  { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); color: var(--text); }

/* Accent button */
.fp-btn--accent,
a.fp-btn--accent        { background: var(--accent); border-color: var(--accent); color: #fff; }
.fp-btn--accent:hover,
a.fp-btn--accent:hover  { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); color: #fff; }

/* Outline button */
.fp-btn--outline,
a.fp-btn--outline       { background: transparent; border-color: var(--border-med); color: var(--text); }
.fp-btn--outline:hover,
a.fp-btn--outline:hover { border-color: var(--text); transform: translateY(-2px); color: var(--text); }

/* Ghost button (text-only with border) */
.fp-btn--ghost,
a.fp-btn--ghost         { background: transparent; border-color: var(--border-med); color: var(--text); }
.fp-btn--ghost:hover,
a.fp-btn--ghost:hover   { background: var(--glass-hover); transform: translateY(-2px); color: var(--text); }

/* Primary (dark bg, light text — for light-bg contexts) */
.fp-btn--primary,
a.fp-btn--primary        { background: var(--text); border-color: var(--text); color: var(--bg); }
.fp-btn--primary:hover,
a.fp-btn--primary:hover  { background: #fff; border-color: #fff; transform: translateY(-2px); color: var(--bg); }

.fp-btn--lg { padding: 17px 38px; font-size: 15px; }

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.fp-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.fp-nav--scrolled {
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.fp-nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.fp-nav__logo { display: flex; align-items: center; }
.fp-nav__logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }

.fp-nav__wordmark {
  font-family: var(--ff-serif);
  font-size: 21px;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Center pill: primary-menu pulled out of flow and centered */
.fp-nav__menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-nav__menu #fp-primary-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-med);
  border-radius: var(--pill);
  padding: 5px 6px;
}

.fp-nav__menu #fp-primary-menu li a {
  display: block;
  padding: 8px 18px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 450;
  color: rgba(237, 234, 229, 0.75);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.fp-nav__menu #fp-primary-menu li a:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

/* CTA pill — white button on dark nav */
.fp-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--text);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
a.fp-nav__cta { color: var(--bg); }
.fp-nav__cta:hover {
  background: #fff;
  transform: translateY(-1px);
}
a.fp-nav__cta:hover { color: var(--bg); }

/* Mobile toggle */
.fp-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}
.fp-nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}

/* Admin bar */
.admin-bar .fp-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .fp-nav { top: 46px; } }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.fp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--nav-h) + 60px) 120px;
}

/* Background layer */
.fp-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Default atmospheric gradient when no image is set */
.fp-hero__bg:not([style]) {
  background-image:
    radial-gradient(ellipse 70% 70% at 20% 40%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 65%, rgba(232, 93, 60, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, #0c1230 0%, #070a18 40%, #080b10 100%);
}

.fp-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 11, 20, 0.30) 0%,
    rgba(8, 11, 20, 0.55) 60%,
    rgba(8, 11, 20, 0.80) 100%
  );
}

/* Hero content — centered */
.fp-hero .fp-container { position: relative; z-index: 1; }

.fp-hero__body {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* Badge / eyebrow pill */
.fp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-med);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  color: rgba(237, 234, 229, 0.8);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.fp-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232, 93, 60, 0.5);
  animation: fp-badge-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes fp-badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 93, 60, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 93, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 93, 60, 0); }
}

.fp-hero__headline {
  font-family: var(--ff-serif);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.fp-hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 44px;
}

.fp-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.fp-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: var(--pad-x);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--subtle);
  transition: color var(--dur) var(--ease);
}
.fp-hero__scroll:hover { color: var(--muted); }

.fp-hero__scroll-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.fp-hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: fp-scroll-pulse 2s ease-in-out infinite;
}

@keyframes fp-scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   MARQUEE
   -------------------------------------------------------------------------- */
.fp-marquee {
  border-block: 1px solid var(--border);
  padding-block: 16px;
  overflow: hidden;
  background: var(--bg-alt);
}

.fp-marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: fp-marquee 32s linear infinite;
}

.fp-marquee__track span {
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.fp-marquee__sep { color: var(--accent) !important; font-weight: 700 !important; }

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

/* --------------------------------------------------------------------------
   SERVICES
   -------------------------------------------------------------------------- */
.fp-services {
  padding-block: var(--section-y);
  background: var(--bg);
}

.fp-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}

.fp-service-card {
  background: var(--bg-alt);
  padding: clamp(32px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}

.fp-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.fp-service-card:hover { background: var(--glass-hover); }
.fp-service-card:hover::after { transform: scaleX(1); }

.fp-service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 28px;
}
.fp-service-card__icon svg { width: 100%; height: 100%; }

.fp-service-card__num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 10px;
}

.fp-service-card__title {
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.fp-service-card__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   WORK
   -------------------------------------------------------------------------- */
.fp-work {
  padding-block: var(--section-y);
  background: var(--bg-alt);
}

.fp-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.fp-work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.fp-project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
}

.fp-project-card__inner { display: block; }

.fp-project-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.fp-project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.fp-project-card:hover .fp-project-card__img-wrap img { transform: scale(1.04); }

.fp-project-card__placeholder { width: 100%; height: 100%; }

.fp-project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 20, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.fp-project-card:hover .fp-project-card__overlay { background: rgba(8, 11, 20, 0.5); }

.fp-project-card__view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fp-project-card:hover .fp-project-card__view-btn { opacity: 1; transform: translateY(0); }

.fp-project-card__meta { padding: 22px 24px 28px; }

.fp-project-card__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.fp-project-card__title {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.fp-project-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.fp-about {
  padding-block: var(--section-y);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.fp-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.fp-about__headline {
  font-family: var(--ff-serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
}

.fp-about__body { font-size: 17px; color: var(--muted); line-height: 1.8; margin-bottom: 40px; }

.fp-about__stats { display: flex; gap: 36px; margin-bottom: 44px; flex-wrap: wrap; }

.fp-stat__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
}

.fp-stat__label { display: block; font-size: 13px; color: var(--muted); font-weight: 450; }

.fp-about__img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.fp-about__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.fp-about__shape { position: absolute; border-radius: 50%; }
.fp-about__shape--a {
  width: 65%;
  height: 65%;
  background: var(--accent);
  opacity: 0.08;
  top: -15%;
  right: -10%;
  animation: fp-float-a 12s ease-in-out infinite;
}
.fp-about__shape--b {
  width: 50%;
  height: 50%;
  background: #6366f1;
  opacity: 0.07;
  bottom: 5%;
  left: 5%;
  border-radius: 35% 65% 60% 40% / 50% 45% 55% 50%;
  animation: fp-float-b 10s ease-in-out infinite;
}
.fp-about__shape--c {
  width: 30%;
  height: 30%;
  background: var(--text);
  opacity: 0.04;
  top: 40%;
  right: 12%;
  border-radius: 60% 40% 35% 65% / 50% 60% 40% 50%;
  animation: fp-float-c 8s ease-in-out infinite;
}

@keyframes fp-float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(8deg); }
}
@keyframes fp-float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-15px) rotate(-14deg); }
}
@keyframes fp-float-c {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(12px) rotate(22deg); }
}

/* --------------------------------------------------------------------------
   PROCESS
   -------------------------------------------------------------------------- */
.fp-process {
  padding-block: var(--section-y);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.fp-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}

.fp-process__step {
  background: var(--bg-alt);
  padding: clamp(28px, 3vw, 48px);
  transition: background var(--dur-slow) var(--ease-out);
}

.fp-process__step:hover { background: var(--glass-hover); }

.fp-process__num {
  font-family: var(--ff-serif);
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 400;
  color: var(--subtle);
  line-height: 1;
  margin-bottom: 44px;
  transition: color var(--dur-slow) var(--ease-out);
}

.fp-process__step:hover .fp-process__num { color: var(--accent); }

.fp-process__title {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  transition: color var(--dur-slow) var(--ease-out);
}

.fp-process__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.fp-testimonials {
  padding-block: var(--section-y);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.fp-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fp-testimonial {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.fp-testimonial:hover {
  background: var(--glass-hover);
  border-color: var(--border-med);
}

.fp-testimonial__mark {
  display: block;
  font-family: var(--ff-serif);
  font-size: 64px;
  line-height: 0.65;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.fp-testimonial__quote {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  quotes: none;
}

.fp-testimonial__author { display: flex; flex-direction: column; gap: 3px; }
.fp-testimonial__name   { font-size: 14px; font-weight: 600; color: var(--text); }
.fp-testimonial__role   { font-size: 12px; color: var(--subtle); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.fp-cta {
  padding-block: var(--section-y);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.fp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(232,93,60,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.fp-cta__inner {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.fp-cta__headline {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.fp-cta__sub { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 44px; }

.fp-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fp-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: color var(--dur) var(--ease);
}
a.fp-cta__link       { color: var(--subtle); }
a.fp-cta__link:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.fp-footer {
  background: #03040a;
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
}

.fp-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}

.fp-footer__logo-link { display: inline-flex; margin-bottom: 18px; }
.fp-footer__logo-link img { height: 24px; width: auto; filter: brightness(0) invert(0.8); }

.fp-footer__wordmark {
  font-family: var(--ff-serif);
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--text);
}

.fp-footer__tagline { font-size: 13px; color: var(--subtle); line-height: 1.6; max-width: 240px; }

.fp-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.fp-footer__nav-head {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 18px;
}

.fp-footer__nav-col ul { display: flex; flex-direction: column; gap: 10px; }

.fp-footer__nav-col ul li a       { font-size: 14px; color: var(--muted); transition: color var(--dur) var(--ease); }
.fp-footer__nav-col ul li a:hover { color: var(--text); }

.fp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fp-footer__copy,
.fp-footer__made { font-size: 12px; color: var(--subtle); }

/* --------------------------------------------------------------------------
   SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.fp-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.fp-anim--d1 { transition-delay: 0.1s; }
.fp-anim--d2 { transition-delay: 0.2s; }
.fp-anim--d3 { transition-delay: 0.34s; }
.fp-anim.is-visible { opacity: 1; transform: none; }

.fp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fp-reveal--right { transform: translateX(28px); }
.fp-reveal--d1 { transition-delay: 0.11s; }
.fp-reveal--d2 { transition-delay: 0.22s; }
.fp-reveal--d3 { transition-delay: 0.33s; }
.fp-reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   RESPONSIVE — tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fp-services__grid     { grid-template-columns: 1fr; }
  .fp-process__grid      { grid-template-columns: repeat(2, 1fr); }
  .fp-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .fp-footer__top        { grid-template-columns: 1fr; }
  .fp-footer__nav        { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Nav: pill becomes a mobile drawer */
  .fp-nav__toggle { display: flex; }

  .fp-nav__menu {
    display: none;
    position: fixed;
    inset-block: var(--nav-h) 0;
    inset-inline: 0;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    padding: 28px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 899;
    border-top: 1px solid var(--border);
  }
  .fp-nav__menu.is-open { display: flex; }

  /* Unpin the center pill on mobile — reflow into drawer */
  .fp-nav__menu #fp-primary-menu {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    border-radius: 0;
  }

  .fp-nav__menu #fp-primary-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .fp-nav__menu #fp-primary-menu li a {
    padding: 16px 0;
    font-family: var(--ff-serif);
    font-size: 22px;
    border-radius: 0;
    display: block;
    width: 100%;
    color: var(--text);
  }
  .fp-nav__menu #fp-primary-menu li a:hover { background: none; color: var(--accent); }
  .fp-nav__cta { margin: 24px 0 0; width: 100%; justify-content: center; }

  /* Hero */
  .fp-hero__sub { margin-inline: auto; }
  .fp-hero__scroll { display: none; }

  /* Sections */
  .fp-work__head   { flex-direction: column; align-items: flex-start; }
  .fp-work__grid   { grid-template-columns: 1fr; }
  .fp-about__inner { grid-template-columns: 1fr; }
  .fp-testimonials__grid { grid-template-columns: 1fr; }
  .fp-process__grid { grid-template-columns: repeat(2, 1fr); }
  .fp-footer__nav  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .fp-process__grid { grid-template-columns: 1fr; }
  .fp-footer__nav   { grid-template-columns: 1fr; }
  .fp-about__stats  { gap: 20px; }
}
