/* ===== Orbith — light grey / black / magenta, big grotesque type ===== */

:root {
  --bg: #efefef;
  --ink: #000;
  --paper: #fff;
  --dark: #0a0a0a;
  --grey: #7b7b7b;
  --accent: #ff34f3;
  --radius: 26px;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.75, 0, 0.25, 1);
  --fs-100: clamp(2.5rem, 7.1vw, 7.5rem);
  --fs-60: clamp(2.2rem, 4.26vw, 4.375rem);
  --fs-32: clamp(1.5rem, 1.8vw, 2.1875rem);
  --spacing: clamp(4.125rem, 11vw, 10.5rem);
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* Giant section headings — "Our *Services*" pattern */
.giant {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}
.giant em {
  font-style: normal;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--bg); border-color: var(--bg); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ===== Navigation + glow ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem var(--pad-x);
}
.nav__logo {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.nav__logo sup { font-size: 0.5em; font-weight: 500; }
.nav__links {
  display: flex;
  gap: 1.8rem;
  margin: 0 auto;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav__links a { text-decoration: none; position: relative; padding: 0.2rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* nav CTA stays hidden until the hero CTA is scrolled past */
.nav__cta {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.show-cta .nav__cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav__burger { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--dark);
  color: var(--bg);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  padding: var(--pad-x);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: grid; gap: 1.1rem; }
.mobile-menu nav a {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mobile-menu .btn--dark { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem var(--pad-x) 3rem;
  overflow: clip;
}
/* organic gradient blobs glowing behind the header and hero */
.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* fade the blobs out before the hero ends so they never cut hard
     against the next section */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 94%);
}
.blob {
  position: absolute;
  border-radius: 46% 54% 62% 38% / 52% 44% 56% 48%;
  filter: blur(clamp(48px, 6vw, 90px));
  will-change: transform, border-radius;
}
.blob--pink {
  top: -22%;
  right: -14%;
  width: clamp(340px, 58vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 38% 38%,
    rgba(255, 52, 243, 0.5),
    rgba(247, 78, 161, 0.32) 55%,
    transparent 78%);
  animation: blobDrift1 16s ease-in-out infinite alternate;
}
.blob--violet {
  top: 6%;
  left: -18%;
  width: clamp(300px, 50vw, 780px);
  aspect-ratio: 1.05;
  background: radial-gradient(circle at 55% 40%,
    rgba(70, 48, 255, 0.38),
    rgba(0, 194, 255, 0.2) 58%,
    transparent 78%);
  animation: blobDrift2 20s ease-in-out infinite alternate;
}
.blob--peach {
  top: -14%;
  left: 28%;
  width: clamp(260px, 42vw, 640px);
  aspect-ratio: 1.15;
  background: radial-gradient(circle at 45% 50%,
    rgba(255, 122, 24, 0.32),
    rgba(255, 52, 243, 0.14) 60%,
    transparent 80%);
  animation: blobDrift3 24s ease-in-out infinite alternate;
}
@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 46% 54% 62% 38% / 52% 44% 56% 48%; }
  to { transform: translate(-7%, 10%) scale(1.14) rotate(14deg); border-radius: 58% 42% 44% 56% / 42% 58% 46% 54%; }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 52% 48% 40% 60% / 56% 50% 50% 44%; }
  to { transform: translate(9%, -6%) scale(1.18) rotate(-12deg); border-radius: 40% 60% 58% 42% / 46% 42% 58% 54%; }
}
@keyframes blobDrift3 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 60% 40% 50% 50% / 48% 60% 40% 52%; }
  to { transform: translate(-5%, 12%) scale(1.1) rotate(18deg); border-radius: 44% 56% 62% 38% / 58% 44% 56% 42%; }
}
.hero__top, .hero__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
/* liquid glass badges */
.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 18px rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06);
}
.hero__badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero__title {
  position: relative;
  font-size: clamp(2rem, 4.9vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 2.5rem 0;
}
.hero__title em {
  font-style: normal;
  font-weight: 600;
}
.hero__spark { color: var(--accent); font-weight: 600; }
.hero__line {
  display: block;
  overflow: hidden;
  /* room for descenders (g, p, y) so the clip doesn't cut them */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero__line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: riseUp 1s var(--ease) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: 0.05s; }
.hero__line:nth-child(2) > span { animation-delay: 0.14s; }
.hero__line:nth-child(3) > span { animation-delay: 0.23s; }
.hero__line:nth-child(4) > span { animation-delay: 0.32s; }
@keyframes riseUp { to { transform: translateY(0); } }
.hero__scroll { font-size: 0.95rem; color: var(--grey); }

/* ===== Showreel ===== */
.reel { padding: 0 var(--pad-x); }
.reel__media {
  position: relative;
  height: clamp(320px, 78vh, 760px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel__gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 55% at 25% 30%, #ff34f3cc, transparent 70%),
    radial-gradient(45% 60% at 75% 65%, #4630ffb3, transparent 70%),
    radial-gradient(60% 70% at 55% 20%, #ff7a18a6, transparent 70%),
    #0a0a0a;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(8deg) scale(1.12); }
}
.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__badge {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.5rem);
  width: clamp(120px, 13vw, 170px);
  height: clamp(120px, 13vw, 170px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.reel__badge text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.42em;
  fill: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reel__play {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.reel__media:hover .reel__play { transform: scale(1.15); background: var(--accent); }

/* ===== Sections ===== */
.section { padding: var(--spacing) var(--pad-x) 0; }
main > .section:last-of-type { padding-bottom: var(--spacing); }

/* ===== Services — sticky stacking cards ===== */
.services { display: grid; }
.service {
  position: sticky;
  top: calc(var(--nav-h) + var(--i) * 2.6rem);
  margin-bottom: 2.5rem;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.09);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  min-height: min(62vh, 560px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-content: start;
}
.service:last-child { margin-bottom: 0; }
.service__head { display: grid; gap: 1.2rem; align-content: start; }
.service__num {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}
.service__head h3 {
  font-weight: 600;
  font-size: var(--fs-60);
  letter-spacing: -0.03em;
}
.service__body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 0.4rem;
}
.service__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.service__tags li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}
.service__body p {
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  max-width: 40rem;
}
.service__link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: color 0.3s var(--ease);
}
.service__link span { transition: transform 0.4s var(--ease); }
.service__link:hover { color: var(--accent); }
.service__link:hover span { transform: translateX(6px); }

/* ===== Work — featured banner + 2×2 grid ===== */
.work__intro { max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.work__intro h3 { font-size: var(--fs-32); margin-bottom: 1rem; }
.work__intro p { color: rgba(0, 0, 0, 0.7); }
.project { text-decoration: none; display: block; }
.project--featured { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.project__media {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.project--featured .project__media { aspect-ratio: 16 / 7.5; }
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s var(--ease);
}
.project:hover .project__media::after { background: rgba(0, 0, 0, 0.18); }
.project__mark {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.6s var(--ease);
}
.project--featured .project__mark { font-size: clamp(2.2rem, 6vw, 5rem); }
.project:hover .project__mark { transform: scale(1.06); }
.project__media--a { background: linear-gradient(120deg, #ff34f3, #ff7a18); }
.project__media--b { background: linear-gradient(120deg, #4630ff, #00c2ff); }
.project__media--c { background: linear-gradient(120deg, #0f7b4d, #b7f24e); }
.project__media--d { background: linear-gradient(120deg, #16060f, #f74ea1); }
.project__media--e { background: linear-gradient(120deg, #1f2937, #7fd8f5); }
.project__meta { padding: 1.4rem 0.2rem 0; max-width: 52rem; }
.project__title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.project__title h3 { font-size: var(--fs-32); }
.project__year { color: var(--grey); font-size: 0.95rem; }
.project__meta > p { color: rgba(0, 0, 0, 0.7); font-size: 1.05rem; margin-bottom: 0.9rem; }
.project__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.project__tags li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.work__grid .project__title h3 { font-size: clamp(1.3rem, 1.6vw, 1.8rem); }
.work__grid .project__meta > p { font-size: 0.98rem; }

/* ===== Reviews ===== */
.section--full { padding-right: 0; }
.quotes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-right: var(--pad-x);
}
.quotes__head .giant { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.quotes__nav { display: flex; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.quotes__nav button {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.2rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.quotes__nav button:hover { background: var(--ink); color: #fff; }
.quotes {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: var(--pad-x);
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 min(560px, 86vw);
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 2.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 300px;
}
.quote blockquote {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.quote figcaption { margin-top: auto; display: grid; gap: 0.15rem; font-size: 0.95rem; }
.quote figcaption span { color: var(--grey); }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: var(--spacing) var(--pad-x) 2rem;
}
.footer__cta {
  text-align: center;
  padding-bottom: var(--spacing);
}
.footer__kicker { color: rgba(239, 239, 239, 0.6); margin-bottom: 1.5rem; }
.footer__email {
  display: block;
  width: fit-content;
  margin-inline: auto;
  font-size: clamp(1.9rem, 6.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.4s var(--ease);
}
.footer__email:hover { color: var(--accent); }
.footer__actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(239, 239, 239, 0.15);
}
.footer__col { display: grid; gap: 0.55rem; align-content: start; font-size: 0.98rem; }
.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(239, 239, 239, 0.5);
  margin-bottom: 0.4rem;
}
.footer__col a { text-decoration: none; width: fit-content; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col p { color: rgba(239, 239, 239, 0.7); }
.footer__logo { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; }
.footer__logo sup { font-size: 0.5em; font-weight: 500; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(239, 239, 239, 0.15);
  font-size: 0.85rem;
  color: rgba(239, 239, 239, 0.55);
}
.footer__legal i { font-style: normal; color: var(--accent); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0.6rem 0.2rem;
    z-index: 101;
  }
  .nav__burger span {
    width: 28px; height: 1.5px;
    background: currentColor;
    transition: transform 0.4s var(--ease);
  }
  .nav__burger[aria-expanded="true"] { color: var(--bg); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .hero { padding-top: 5.5rem; }
  .hero__badge--right { display: none; }

  .service {
    grid-template-columns: 1fr;
    top: calc(4.5rem + var(--i) * 1.6rem);
    min-height: 0;
  }
  .work__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quotes__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
