/* IG Spark AI - static portfolio page.
   Layout values follow the existing page's design tokens (dark "meridian" look).
   The hero / closing planet-limb artwork was a raster image on the original and is NOT available;
   it is approximated here with CSS gradients (see .limb below). */

:root {
  --bg: #04060f;
  --surface: #0a101f;
  --panel: #101828;
  --ink: #eef3fb;
  --muted: #9aa8c0;
  --soft: #6f7e98;
  --line: rgba(150, 190, 255, 0.12);
  --line-strong: rgba(150, 190, 255, 0.24);
  --accent: #5aa9ff;
  --accent-ink: #03101f;
  --rim: #9ccdff;
  --deep: #123a78;
  --radius: 8px;
  --btn-radius: 6px;
  --maxw: 1160px;
  --pad: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: Sora, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --band: clamp(280px, 30vw, 660px);
  --gap: clamp(28px, 5vh, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.011em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.site { min-height: 100vh; overflow: clip; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(56px, 9vw, 118px); }
.sec--tight { padding-block: clamp(44px, 6vw, 76px); }

/* ---------- type ---------- */
.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #fff;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.lede { font-size: clamp(1rem, 1.3vw, 1.0625rem); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.head__c { max-width: 620px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--panel); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 16px; height: 66px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: -0.025em; }
.nav__brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color 0.18s, background 0.18s; }
.nav__links a:hover { color: var(--ink); background: var(--panel); }
.nav__burger { display: none; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }

/* ---------- planet-limb artwork (CSS approximation, shared by hero and closing block) ----------
   A bottom-anchored band: stars, a thin luminous rim on a dark limb, and a blue atmospheric haze,
   brightest at the centre. Colours come from the page's own rim / blue / deep tokens. */
:root {
  --limb-art:
    /* stars */
    radial-gradient(circle at 4% 38%, rgba(214, 232, 255, 0.9) 0, transparent 1.4px),
    radial-gradient(circle at 9% 62%, rgba(214, 232, 255, 0.55) 0, transparent 1.3px),
    radial-gradient(circle at 13% 22%, rgba(214, 232, 255, 0.7) 0, transparent 1.2px),
    radial-gradient(circle at 17% 48%, rgba(214, 232, 255, 0.5) 0, transparent 1.2px),
    radial-gradient(circle at 22% 14%, rgba(214, 232, 255, 0.9) 0, transparent 1.3px),
    radial-gradient(circle at 26% 70%, rgba(214, 232, 255, 0.45) 0, transparent 1.2px),
    radial-gradient(circle at 31% 33%, rgba(214, 232, 255, 0.6) 0, transparent 1.2px),
    radial-gradient(circle at 36% 8%, rgba(214, 232, 255, 0.5) 0, transparent 1.1px),
    radial-gradient(circle at 41% 52%, rgba(214, 232, 255, 0.4) 0, transparent 1.1px),
    radial-gradient(circle at 57% 18%, rgba(214, 232, 255, 0.45) 0, transparent 1.1px),
    radial-gradient(circle at 63% 41%, rgba(214, 232, 255, 0.5) 0, transparent 1.2px),
    radial-gradient(circle at 69% 11%, rgba(214, 232, 255, 0.9) 0, transparent 1.3px),
    radial-gradient(circle at 74% 58%, rgba(214, 232, 255, 0.5) 0, transparent 1.2px),
    radial-gradient(circle at 79% 27%, rgba(214, 232, 255, 0.6) 0, transparent 1.2px),
    radial-gradient(circle at 85% 66%, rgba(214, 232, 255, 0.45) 0, transparent 1.1px),
    radial-gradient(circle at 90% 36%, rgba(214, 232, 255, 0.9) 0, transparent 1.3px),
    radial-gradient(circle at 95% 16%, rgba(214, 232, 255, 0.55) 0, transparent 1.2px),
    radial-gradient(circle at 98% 54%, rgba(214, 232, 255, 0.4) 0, transparent 1.1px),
    /* dim the arc towards the sides so the glow reads centred */
    linear-gradient(90deg, rgba(4, 6, 15, 0.9) 0%, rgba(4, 6, 15, 0) 30%, rgba(4, 6, 15, 0) 70%, rgba(4, 6, 15, 0.9) 100%),
    /* the limb: dark body with a thin bright rim and a soft halo above it */
    radial-gradient(ellipse 85% 120% at 50% 162%,
      #050a18 0 96.4%,
      #07132b 98.6%,
      rgba(90, 169, 255, 0.5) 99.1%,
      rgba(156, 205, 255, 0.95) 99.6%,
      rgba(90, 169, 255, 0.35) 100.4%,
      rgba(18, 58, 120, 0.22) 103%,
      transparent 112%),
    /* atmosphere: blue haze rising above the crest, brightest at the centre */
    radial-gradient(ellipse 37% 62% at 50% 55%,
      rgba(20, 90, 210, 0.66) 0%,
      rgba(20, 90, 210, 0.6) 35%,
      rgba(20, 90, 210, 0.55) 62%,
      rgba(20, 90, 210, 0.2) 85%,
      transparent 100%);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(84px, 13vh, 140px) calc(var(--band) + var(--gap));
}
.hero::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: var(--band);
  z-index: -2;
  background: var(--limb-art);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: calc(var(--band) * 0.34);
  z-index: -1;
  background: linear-gradient(to bottom, rgba(4, 6, 15, 0) 0%, rgba(4, 6, 15, 0.62) 60%, #04060f 97%);
}
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 860px; margin-inline: auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 4px;
  background: rgba(90, 169, 255, 0.07);
  border: 1px solid rgba(156, 205, 255, 0.22);
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rim);
}
.hero__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--rim); box-shadow: 0 0 0 3px rgba(156, 205, 255, 0.14), 0 0 14px rgba(156, 205, 255, 0.7); }
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.62; color: rgba(226, 235, 250, 0.68); max-width: 46ch; margin-inline: auto; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- section arcs ---------- */
#work, #services, #pricing { position: relative; isolation: isolate; }
#work::before, #services::before, #pricing::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(150% 100% at 50% 128%, transparent 0 68.6%, rgba(156, 205, 255, 0.34) 68.9% 69.4%, transparent 69.8%),
    linear-gradient(to bottom, transparent 0%, rgba(90, 169, 255, 0.11) 46%, transparent 100%);
}
#services::before {
  background:
    radial-gradient(150% 100% at 50% -34%, transparent 0 61.4%, rgba(156, 205, 255, 0.26) 61.7% 62.2%, transparent 62.6%),
    linear-gradient(to bottom, transparent 0%, rgba(18, 58, 120, 0.3) 34%, transparent 100%);
}

/* ---------- selected work ---------- */
.worksec { margin-top: clamp(72px, 10vw, 118px); scroll-margin-top: 84px; }
.head + .worksec { margin-top: 8px; }
.worksec__title { margin-bottom: clamp(22px, 3vw, 34px); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface);
  border: 1px solid rgba(150, 190, 255, 0.13);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 20px 44px -26px rgba(0, 0, 0, 0.9);
}
.card__shot { position: relative; display: block; width: 100%; flex: 0 0 auto; aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.card__shot--carousel { aspect-ratio: 4 / 5; }
.card__shot--reel { aspect-ratio: 9 / 16; }
.card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px 17px; }
.card__title { font-size: 15.5px; font-weight: 550; letter-spacing: -0.02em; line-height: 1.35; }
.card__cat { flex-shrink: 0; font-size: 12.5px; color: var(--soft); }
/* placeholder tiles are not interactive, so no hover lift */
.card--soon { cursor: default; }

/* ---------- tools marquee ---------- */
.stack { border-block: 1px solid var(--line); background: var(--surface); padding-block: 22px; overflow: hidden; }
.stack__label { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.stack__view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.stack__track { display: flex; width: max-content; gap: 10px; animation: marquee 34s linear infinite; }
.stack:hover .stack__track { animation-play-state: paused; }
.stack__track span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); white-space: nowrap;
}
.stack__track svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 32px; }
.about__lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -0.03em; text-wrap: balance; }
.about__body { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.about__pic {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.about__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.svc__card {
  display: flex; flex-direction: column; gap: 11px;
  padding: 24px;
  border: 1px solid rgba(150, 190, 255, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 20px 44px -26px rgba(0, 0, 0, 0.9);
}
a.svc__card { transition: transform 0.26s var(--ease), border-color 0.26s, box-shadow 0.26s var(--ease); }
a.svc__card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 38px -24px rgba(0, 0, 0, 0.45); }
.svc__eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.svc__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--panel); color: var(--ink); }
.svc__icon svg { width: 19px; height: 19px; }
.svc__blurb { font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.svc__more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--accent); }

/* ---------- pricing ---------- */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 16px; align-items: start; }
.price__card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}
.price__label { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.price__fig { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.price__per { font-size: 14px; color: var(--soft); }
.price__blurb { font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.price__feats { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.price__feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.price__tick { flex-shrink: 0; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.price__tick svg { width: 11px; height: 11px; }

/* ---------- closing call to action ---------- */
#contact { position: relative; isolation: isolate; background: transparent; }
#contact::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, #04060f 0%, rgba(4, 6, 15, 0.58) 38%, rgba(4, 6, 15, 0.34) 74%, #04060f 99%),
    var(--limb-art);
}
.cta {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 60px);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(9, 15, 30, 0.8);
  border: 1px solid rgba(150, 190, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 36px 76px -36px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  color: #fff;
}
.cta__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.07; letter-spacing: -0.035em; text-wrap: balance; color: #fff; }
.cta__sub { font-size: 1.0625rem; line-height: 1.6; opacity: 0.72; max-width: 52ch; text-wrap: pretty; color: #fff; }

/* ---------- footer ---------- */
.foot { padding-block: 32px 40px; border-top: 1px solid var(--line); margin-top: clamp(48px, 8vw, 96px); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot__note { font-size: 13px; color: var(--soft); }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot__app {
  display: grid; width: 34px; height: 34px; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.foot__app:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.foot__app svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  .about { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
  .about__pic { margin-inline: 0; }
}
@media (max-width: 900px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; gap: 2px;
    padding: 12px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px; font-size: 15px; }
  .nav__burger { display: flex; order: 3; margin-left: auto; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav__cta { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { padding: 14px 22px; }
  .price { grid-template-columns: 1fr; }
  .price__card { padding: 24px 20px; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* play badge on the UGC video tiles (same look as the original: white circle, black triangle) */
.card__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.20); }
.card__playbtn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: rgba(255,255,255,0.95); color: #000; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.3); }
.card__playbtn svg { width: 24px; height: 24px; margin-left: 2px; fill: currentColor; }
