/* ==========================================================================
   designthat. — main stylesheet
   Used by every page: index.html, work.html and project.html

   CONTENTS
   1.  Colours (variables)
   2.  Base / reset
   3.  Typography
   4.  Buttons
   5.  Header & navigation menu
   6.  Page sections (shared box style)
   7.  Home: hero video
   8.  Home: "What we do"
   9.  Home: "Selected work"  (9b. Home: "About us")
   10. Contact page
   11. Footer
   12. Work page
   13. Project page
   14. Animations
   15. Mobile (screens 820px wide and smaller)
   ========================================================================== */


/* ==========================================================================
   1. COLOURS (variables)
   Change a colour here and it updates everywhere it's used.
   ========================================================================== */
:root {
  --bg: #1a1a1d;                      /* page background (dark grey) */
  --panel: hsl(247, 86%, 54%);        /* purple boxes / sections */
  --line: #2a2b30;                    /* thin borders */
  --text: #fff;                       /* main text */
  --muted: rgba(255, 255, 255, .72);  /* secondary text (dates, descriptions) */
  --accent: hsl(247, 86%, 54%);       /* purple highlights (buttons, filters) */
  --accent-ink: #fff;                 /* text on top of the accent colour */
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
html {
  scroll-behavior: smooth;   /* smooth scrolling for menu links */
  scroll-padding-top: 110px; /* stops the fixed menu covering section titles */
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  /* Keeps the footer at the bottom of the window on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1 {
  font-size: clamp(46px, 9vw, 140px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 600;
  max-width: 12ch;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -.035em;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 34px;
}

/* Larger intro paragraph */
.lead {
  color: var(--muted);
  max-width: 60ch;
  font-size: 19px;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

/* Standard pill button (purple) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.08);
}

/* Dark grey button ("Send Message") */
.btn.dark {
  background: #222328;
  color: #fff;
}


/* ==========================================================================
   5. HEADER & NAVIGATION MENU
   ========================================================================== */

/* Fixed bar across the top of the page */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  transition: padding .7s cubic-bezier(.2, .9, .2, 1);
}

.bar {
  width: 100%;
  max-width: 1600px; /* stops the menu stretching on very wide screens */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: max-width .7s cubic-bezier(.2, .9, .2, 1), border-radius .7s, padding .7s, background .5s, box-shadow .7s;
}

/* "Island" style: the menu shrinks into a floating pill once you scroll
   (the .island class is added by script.js) */
header.island {
  padding-top: 14px;
}

header.island .bar {
  max-width: 860px;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  background: rgba(32, 33, 37, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

/* Logo */
.logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* Menu links */
nav {
  display: flex;
  gap: 6px;
}

.item {
  position: relative;
}

.item > a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
}

.item > a:hover,
.item:focus-within > a {
  background: rgba(255, 255, 255, .08);
}

/* Underline on the current page / section */
.item.active > a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Dropdown menus (Services, About) — hidden until you hover */
.drop {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 260px;
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.97);
  transition: .25s;
}

.drop > div {
  background: #1b1c20;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.item:hover .drop,
.item:focus-within .drop {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.drop a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #e5e6ea;
}

.drop a:hover {
  background: rgba(255, 255, 255, .07);
}

/* Small grey line under each dropdown link */
.drop small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* Right side of the menu: button + mobile menu icon */
.right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile menu icon (☰), only shown on small screens — see section 15 */
.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
}


/* ==========================================================================
   6. PAGE SECTIONS (shared style)
   Home page sections sit straight on the page (no boxes). The side padding
   keeps content within 1440px on very wide screens.
   ========================================================================== */
section {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: clamp(60px, 9vw, 130px) max(clamp(20px, 6vw, 80px), calc((100% - 1440px) / 2));
}

/* --- Slide-in on scroll ---
   script.js (section 9) gives each home section .slide plus a direction,
   then .in once it scrolls into view. */
main {
  overflow-x: clip; /* hides sections while they're off to the side */
}

.slide {
  opacity: 0;
  translate: -140px 0;
  transition: opacity .9s ease, translate 1.1s cubic-bezier(.2, .9, .2, 1);
}

.slide.from-right {
  translate: 140px 0;
}

.slide.in {
  opacity: 1;
  translate: 0 0;
}

/* ==========================================================================
   7. HOME: HERO VIDEO
   Full-screen video behind "let's bring your ideas to life".
   The fade on scroll is handled in script.js.
   ========================================================================== */
section.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  max-width: none;       /* hero video always fills the full width */
  margin: 0 0 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 150px;
  padding-bottom: clamp(50px, 8vh, 90px);
}

/* Video layer */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28; /* video transparency (lower = darker) */
}

/* Dark gradient so the video blends into the page below */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 29, .4), transparent 35%, transparent 60%, var(--bg));
}

/* Keep the slogan above the video */
.hero > *:not(.hero-media) {
  position: relative;
  z-index: 1;
}

/* Slogan */
/* Small logo above the slogan, on the left */
.hero-logo {
  display: block;
  align-self: flex-start; /* keep its own shape, don't stretch */
  width: auto;
  height: clamp(28px, 3.2vw, 46px);
  margin-bottom: clamp(14px, 2vw, 28px);
}

.hero h1 {
  font-size: clamp(46px, 8.5vw, 140px);
  max-width: 13ch;
}


/* ==========================================================================
   8. HOME: "WHAT WE DO"
   Black panel with a purple glow. Layout, top to bottom:
   intro row (text + photos) → giant heading → numbered service list.
   ========================================================================== */
section.services {
  position: relative;
  overflow: hidden;
  /* black band that fades in from the page at the top and carries on
     into "Selected work" below */
  background: linear-gradient(to bottom, transparent, #000 14%);
  padding: clamp(90px, 11vw, 160px) max(clamp(20px, 5vw, 64px), calc((100% - 1440px) / 2)) clamp(50px, 6vw, 90px);
}

/* Everything sits above the glow */
.services > *:not(.glow) {
  position: relative;
  z-index: 1;
}

/* --- Purple glow --- */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 80% 30%, hsla(247, 86%, 54%, .9), transparent 70%),
    radial-gradient(40% 35% at 8% 80%, hsla(247, 86%, 54%, .45), transparent 70%);
  /* fade the glow out at the top and bottom, like the black band */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

/* --- Buttons in this section: purple, plus an outlined one --- */
section.services .btn {
  background: var(--accent);
  color: #fff;
}

section.services .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
}

section.services .btn.ghost:hover {
  border-color: #fff;
}

/* --- Intro row: text on the left, photos on the right --- */
.svc-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.svc-text h2 {
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -.045em;
  margin-bottom: 20px;
}

.svc-text p {
  color: var(--muted);
  font-size: 17px;
  max-width: 40ch;
}

.svc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Main photo with a purple wash at the bottom */
.svc-photos {
  position: relative;
}

.svc-photos::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(to top, hsla(247, 86%, 54%, .55), transparent 60%);
  pointer-events: none;
}

.svc-main {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 22px;
}

/* Small floating card over the photo's corner */
.svc-card {
  position: absolute;
  left: -40px;
  bottom: -30px;
  z-index: 2;
  width: 290px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(22, 22, 26, .94); /* solid: a blur here clashed with the glow fade */
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
}

.svc-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.svc-card strong {
  display: block;
  font-size: 14px;
}

.svc-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* --- Giant heading (white fading into purple) --- */
.svc-giant {
  position: relative;
  font-size: clamp(39px, calc(8.5vw - 5px), 135px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .85;
  text-align: center;
  white-space: nowrap;
  margin: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 56px);
  background: linear-gradient(180deg, #fff 15%, hsl(247, 86%, 68%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Soft purple glow behind the heading (an empty span inside it) */
.giant-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 85%;
  height: 90%;
  translate: -50% -50%;
  z-index: -1;
  border-radius: 50%;
  background: hsla(247, 86%, 54%, .5);
  filter: blur(60px);
  pointer-events: none;
}

/* --- Numbered service list --- */
.svc-list {
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.svc-row {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

/* Clickable row header: [01]   NAME   (+) */
.svc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 140px 1fr 46px;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.svc-num {
  color: var(--muted);
  font-size: 15px;
}

.svc-name {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  transition: color .3s;
}

.svc-head:hover .svc-name,
.svc-row.open .svc-name {
  color: #fff;
}

/* Round + / − button */
.svc-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .3s, border-color .3s;
}

.svc-toggle::before,
.svc-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: #fff;
  transition: transform .3s, background .3s;
}

.svc-toggle::after {
  transform: rotate(90deg);
}

.svc-row.open .svc-toggle {
  background: #fff;
  border-color: #fff;
}

.svc-row.open .svc-toggle::before,
.svc-row.open .svc-toggle::after {
  background: #000;
}

.svc-row.open .svc-toggle::after {
  transform: rotate(0deg); /* + turns into − */
}

/* Opening content: slides open when the row has .open */
.svc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.2, .9, .2, 1);
}

.svc-row.open .svc-body {
  grid-template-rows: 1fr;
}

.svc-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1.3fr 1fr;
  gap: 20px clamp(20px, 3vw, 40px);
  align-items: end;
}

.svc-inner > * {
  margin-bottom: 34px;
}

/* Small caption under the number */
.svc-cap {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Landscape photo with the button on top */
.svc-media {
  position: relative;
}

.svc-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
}

.svc-media .btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
}

.svc-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}

/* Short headline at the top of each description */
.svc-desc strong {
  display: block;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.svc-desc p + p {
  margin-top: 12px;
}

/* Small tags under the description */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.svc-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
}


/* ==========================================================================
   9. HOME: "SELECTED WORK"
   Carries on the black + purple stage from "What we do", then fades into
   the page. One big featured card on the left, two stacked on the right.
   ========================================================================== */
section.work {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #000, #000 70%, transparent);
  padding-top: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(90px, 11vw, 160px);
}

.work > *:not(.glow) {
  position: relative;
  z-index: 1;
}

/* Glow sits on the opposite side to the one in "What we do" */
.work .glow {
  background:
    radial-gradient(45% 40% at 10% 60%, hsla(247, 86%, 54%, .55), transparent 70%),
    radial-gradient(35% 30% at 95% 12%, hsla(247, 86%, 54%, .35), transparent 70%);
}

/* --- Header row: heading + count, button on the right --- */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.work-head h2 {
  margin-bottom: 12px;
}

/* "(06)" next to the heading */
.work-count {
  font-size: .32em;
  vertical-align: super;
  font-weight: 500;
  letter-spacing: 0;
  color: hsl(247, 86%, 75%);
}

.work-head p {
  color: var(--muted);
  max-width: 44ch;
}

.work-head .btn {
  flex: none;
}

/* --- Layout: big card left (spans both rows), two stacked right --- */
.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  height: clamp(520px, 46vw, 720px);
}

/* --- Project card: photo with the details on top of it --- */
.hcard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.hcard:first-child {
  grid-row: 1 / span 2;
}

.hcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .9, .2, 1);
}

/* Dark purple fade at the bottom so the text is readable */
.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 6, 28, .92), hsla(247, 86%, 25%, .45) 38%, transparent 68%);
}

.hcard > *:not(img) {
  position: absolute;
  z-index: 2;
}

/* [01] number, top left */
.hnum {
  top: 16px;
  left: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
}

/* Tags, top right (slide in on hover) */
.htags {
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity .35s, translate .35s;
}

.htags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12px;
}

/* Client, year and title, bottom left */
.hinfo {
  left: 22px;
  bottom: 20px;
  max-width: calc(100% - 180px);
}

.hinfo small {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.hinfo h3 {
  margin-top: 4px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.hcard:first-child .hinfo h3 {
  font-size: clamp(26px, 2.8vw, 40px);
}

/* "View project" pill, bottom right (appears on hover) */
.hview {
  right: 20px;
  bottom: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .35s, translate .35s;
}

/* Hover (and keyboard focus) */
.hcard:hover img,
.hcard:focus-visible img {
  transform: scale(1.06);
}

.hcard:hover .htags,
.hcard:hover .hview,
.hcard:focus-visible .htags,
.hcard:focus-visible .hview {
  opacity: 1;
  translate: 0 0;
}


/* ==========================================================================
   9b. HOME: "ABOUT US"
   Foggy street photo + mill skyline in the background,
   a big statement on the left and short numbered points on the right.
   ========================================================================== */
section.about {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  padding-top: clamp(50px, 6vw, 90px);
  /* extra room at the bottom for the skyline */
  padding-bottom: clamp(170px, 19vw, 290px);
}

/* Text sits above the background layers */
.about > *:not(.about-bg):not(.about-town) {
  position: relative;
  z-index: 1;
}

/* --- Background photo: black & white, tinted purple, fading in/out --- */
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.65) contrast(1.1);
}

.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(26, 26, 29, .5) 26%, rgba(26, 26, 29, .45) 60%, rgba(16, 16, 20, .95) 100%),
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), /* black overlay at 55% on the photo */
    linear-gradient(hsla(247, 86%, 40%, .2), hsla(247, 86%, 40%, .2));
}

/* --- Mill skyline along the bottom --- */
.about-town {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.about-skyline {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* --- Left: heading + big statement --- */
.about-head h2 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0;
  color: hsl(247, 86%, 75%);
  margin-bottom: 18px;
}

.about-big {
  font-size: clamp(38px, 4.8vw, 74px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.about-big span {
  background: linear-gradient(180deg, #fff 15%, hsl(247, 86%, 68%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-tags span {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px;
}

/* Intro paragraphs under the statement */
.about-intro {
  margin-top: 26px;
  max-width: 52ch;
}

.about-intro p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.65;
}

.about-intro p + p {
  margin-top: 14px;
}

/* --- Right: numbered points, staggered --- */
.about-points {
  list-style: none;
  padding: 0;
  margin-top: clamp(0px, 2vw, 24px);
}

.about-points li {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

/* every other point steps in, for a staggered look */
.about-points li:nth-child(even) {
  margin-left: clamp(0px, 6vw, 90px);
}

.ap-num {
  grid-row: span 2;
  padding-top: 7px;
  font-size: 13px;
  color: hsl(247, 86%, 75%);
}

.about-points strong {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  transition: color .3s;
}

.about-points li:hover strong {
  color: hsl(247, 86%, 75%);
}

.ap-text {
  margin-top: 6px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}


/* --- Full width: promise panel (quote + three promises + buttons) --- */
.about-promise {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-top: clamp(20px, 4vw, 50px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background: rgba(14, 12, 30, .55);
  backdrop-filter: blur(12px);
}

.about-promise blockquote p {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.about-promise cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: hsl(247, 86%, 75%);
}

.about-promise-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-promise-list li {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.about-promise-list strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.about-promise-list span {
  color: var(--muted);
  font-size: 15px;
}

.about-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.about-cta .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
}

.about-cta .btn.ghost:hover {
  border-color: #fff;
}


/* ==========================================================================
   10. CONTACT PAGE (contact.html)
   Contact details on the left, enquiry form on the right.
   ========================================================================== */
/* --- Background: faint scrolling strips of social icons ---
   Strips are built by the script in contact.html. Odd strips move up,
   even strips move down. Kept very faint so it doesn't distract. */
.icon-strips {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: .09;
  /* fade out at the top and bottom of the screen */
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.strip {
  flex: none;
  width: 120px;          /* STRIP_WIDTH in contact.html */
  align-self: flex-start; /* full length, not cut to the screen height */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  animation: strip-up 40s linear infinite;
}

.strip.down {
  animation-name: strip-down;
}

.strip.purple {
  color: hsl(247, 86%, 70%);
}

.strip svg {
  flex: none;
  width: 34px;
  height: 34px;
  margin-bottom: 56px;   /* 34 + 56 = 90 = ICON_STEP in contact.html */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Each strip holds its icons twice, so moving it by half loops seamlessly */
@keyframes strip-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes strip-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.cpage {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  align-items: start;
}

/* --- Left: contact details (black panel with purple glow) --- */
.cinfo {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
}

.cinfo > *:not(.glow) {
  position: relative;
  z-index: 1;
}

.cinfo h2,
.cform h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 10px;
}

.clist {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.clist li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.clabel {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.clist a {
  font-size: 20px;
  font-weight: 500;
}

.clist a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Right: the form (purple panel) --- */
.cform {
  background: var(--panel);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
}

.cform > p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* Form layout: two fields per row */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Text fields, dropdowns and message box */
input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #fff;
  padding: 20px 22px;
  font: inherit;
  font-size: 16px;
  outline: 0;
}

/* Dropdowns: drop the browser's own look so they match the text fields,
   and draw our own small arrow on the right */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px;
  cursor: pointer;
}

/* Grey hint text: placeholders, and dropdowns until an option is picked
   (script.js adds .empty to a dropdown with nothing chosen) */
input::placeholder,
textarea::placeholder,
select.empty {
  color: rgba(255, 255, 255, .5);
}

select option {
  color: #fff;
  background: var(--bg);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #fff;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

/* Makes an item stretch across both form columns */
.full {
  grid-column: 1/-1;
}

/* Privacy policy note */
.priv {
  color: var(--muted);
  font-size: 13px;
}

/* Message after sending — shown by script.js */
#ok {
  display: none;
  color: #fff;
  margin-left: 12px;
}


/* ==========================================================================
   11. FOOTER
   Same on every page: brand, quick links, social icons, copyright.
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  /* full-width purple band (no box); side padding keeps content within
     1440px on very wide screens */
  padding: clamp(44px, 6vw, 72px) max(clamp(20px, 5vw, 60px), calc((100% - 1440px) / 2)) 28px;
  background: linear-gradient(160deg, hsl(247, 86%, 54%), hsl(247, 86%, 42%));
}

/* Three columns */
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1050px;
  margin: 0 auto;
}

.foot-col h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
}

.foot-col p {
  color: var(--muted);
  font-size: 15px;
}

/* Quick links list */
.foot-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-links a {
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
}

.foot-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Round social icons */
.socials {
  display: flex;
  gap: 12px;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .25s;
}

.social:hover {
  background: rgba(255, 255, 255, .22);
}

/* Line icons (also used by the back-to-top button) */
.social svg,
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Divider + copyright line */
.foot-bottom {
  position: relative;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Back-to-top button (bottom right) */
.to-top {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: background .25s;
}

.to-top:hover {
  background: rgba(255, 255, 255, .25);
}


/* ==========================================================================
   12. WORK PAGE (work.html)
   ========================================================================== */

/* Doodle artwork behind the whole page (images/work-bg.svg).
   It stays still while the page scrolls. */
.work-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/work-bg.svg") center / cover no-repeat;
  pointer-events: none;
}

/* Centred page container (also used by the project page) */
.page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 150px 20px 60px;
}

/* --- Heading + intro line --- */
.whead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 30px;
}

.whead h1 {
  font-size: clamp(46px, 7vw, 96px);
}

.whead .lead {
  color: var(--muted);
  max-width: 34ch;
  font-size: 17px;
}

/* --- Category filter buttons --- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pills button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  text-transform: capitalize;
  cursor: pointer;
  transition: .2s;
}

/* Number of projects in each category */
.pills button span {
  opacity: .6;
  font-size: 12px;
  margin-left: 4px;
}

.pills button:hover {
  border-color: #fff;
}

/* Selected filter */
.pills button.on {
  background: var(--accent);
  border-color: var(--accent);
}

/* --- Project grid (two columns) --- */
#feature {
  margin-bottom: 20px;
}

.wgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Project card --- */
.wcard {
  display: block;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 10px;
  transition: transform .4s cubic-bezier(.2, .9, .2, 1), border-color .3s;
}

.wcard:hover {
  transform: translateY(-4px);
  border-color: #fff;
}

/* Black image space */
.wcard .img {
  aspect-ratio: 16/10;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
}

/* Project photo fills the image space; zooms in slightly on hover */
.wcard .img {
  overflow: hidden;
}

.wcard .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .9, .2, 1);
}

.wcard:hover .img img {
  transform: scale(1.05);
}

/* Text under the image */
.wcard .txt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 12px 8px;
}

.wcard small {
  color: var(--muted);
  font-size: 12px;
}

.wcard h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-top: 2px;
}

.wcard .tags {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* --- Scroll animation ---
   The page script adds .reveal to each card, then .in once it scrolls into
   view. --d is a small delay so cards side by side arrive one after another.
   (Uses translate/scale so it doesn't clash with the hover lift above.) */
.wcard.reveal {
  opacity: 0;
  translate: 0 60px;
  scale: .96;
  transition:
    transform .4s cubic-bezier(.2, .9, .2, 1),
    border-color .3s,
    opacity .8s ease var(--d, 0s),
    translate 1s cubic-bezier(.2, .9, .2, 1) var(--d, 0s),
    scale 1s cubic-bezier(.2, .9, .2, 1) var(--d, 0s);
}

.wcard.reveal.in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Image space wipes open from top to bottom */
.wcard.reveal .img {
  clip-path: inset(0 0 100% 0 round 14px);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) calc(var(--d, 0s) + .15s);
}

.wcard.reveal.in .img {
  clip-path: inset(0 0 0 0 round 14px);
}

/* Text fades up just after */
.wcard.reveal .txt > * {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .6s ease calc(var(--d, 0s) + .45s), translate .6s ease calc(var(--d, 0s) + .45s);
}

.wcard.reveal.in .txt > * {
  opacity: 1;
  translate: 0 0;
}

/* --- Wide card (featured project, or an odd one out at the end) --- */
.wcard.big {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
}

.wgrid .wcard.big {
  grid-column: 1/-1;
}

.wcard.big .img {
  aspect-ratio: 16/9;
}

.wcard.big .txt {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
}

.wcard.big h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}


/* ==========================================================================
   13. PROJECT PAGE (project.html)
   ========================================================================== */

/* "All work" link back to the work page */
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

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

/* --- Tags + title (the title sits in a tab over the main image) --- */
.phead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.phead .chips {
  align-self: flex-start;
}

/* Small tag pills (Branding, Logo, ...) */
.chips {
  display: flex;
  gap: 6px;
}

.chips span {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
}

.ptitle {
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  padding: 0 0 18px 24px;
  width: min(560px, 60%);
  position: relative;
  margin-bottom: -60px;
  z-index: 1;
}

.ptitle h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: none;
}

/* --- Black image spaces --- */
.pimg {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 22px;
  aspect-ratio: 16/8.5;
}

/* Main project photo */
.pimg {
  overflow: hidden;
}

.pimg > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two side-by-side images */
.pimg.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: none;
  border: 0;
  aspect-ratio: auto;
}

.pimg.two div {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 22px;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.pimg.two img,
.pimg.two video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Project details box (description, client, industry, duration) --- */
.pinfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 40px;
  margin: 20px 0;
}

.pinfo h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  margin: 0;
}

.pinfo p {
  color: var(--muted);
  font-size: 15px;
}

.pinfo dl {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}

.pinfo dt {
  color: var(--muted);
  font-size: 12px;
}

.pinfo dd {
  margin: 0;
}

/* --- "Next project" link at the bottom --- */
.next {
  display: block;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 40px;
  margin-top: 20px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.03em;
}

.next small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}


/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */

/* Turn opening/closing animations off for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .slide {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .strip {
    animation: none;
  }

  .svc-body,
  .svc-toggle::before,
  .svc-toggle::after {
    transition: none;
  }
}


/* ==========================================================================
   15. MOBILE (screens 820px wide and smaller)
   ========================================================================== */
@media (max-width: 820px) {

  /* --- Menu: hide links, show the ☰ icon --- */
  nav,
  .btn.top {
    display: none;
  }

  .burger {
    display: block;
  }

  /* Menu opened with the ☰ icon */
  nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    flex-direction: column;
    background: #1b1c20;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    margin-top: 8px;
  }

  .drop {
    display: none;
  }

  /* --- Hero video: shorter on phones so "What we do" comes up sooner --- */
  section.hero {
    min-height: 0;
    height: 64svh;
    padding-top: 110px;
    padding-bottom: 36px;
  }

  /* a little more room between the lines so "life" doesn't touch "bring" */
  .hero h1 {
    line-height: 1.06;
  }

  /* --- "What we do": stack everything into one column --- */
  section.services {
    padding-top: 40px;
  }

  /* thin divider between the hero and "What we do" (same as the line under
     WHAT WE DO) */
  .svc-intro {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 36px;
  }

  /* Smaller heading with a purple label above it, so it doesn't look
     like a second copy of the hero slogan */
  .svc-text::before {
    content: "What we do";
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: hsl(247, 90%, 78%);
    margin-bottom: 14px;
  }

  .svc-text h2 {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .svc-text h2 span {
    color: hsl(247, 90%, 78%);
  }

  .svc-intro {
    grid-template-columns: 1fr;
  }

  .svc-giant {
    font-size: calc(11vw - 5px);
  }

  .svc-card {
    left: 12px;
    bottom: -24px;
    width: 250px;
  }

  .svc-head {
    grid-template-columns: 48px 1fr 40px;
    gap: 12px;
  }

  .svc-toggle {
    width: 40px;
    height: 40px;
  }

  .svc-inner {
    grid-template-columns: 1fr;
  }

  .svc-cap {
    display: none;
  }

  /* --- Selected work: one column, details always visible --- */
  .work-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .hcard {
    aspect-ratio: 4/3;
  }

  .hcard:first-child {
    grid-row: auto;
    aspect-ratio: 4/5;
  }

  .htags {
    opacity: 1;
    translate: 0 0;
  }

  .hview {
    display: none;
  }

  .hinfo {
    max-width: calc(100% - 44px);
  }

  /* --- About us: one column --- */
  section.about {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-points li:nth-child(even) {
    margin-left: 24px;
  }

  .about-promise,
  .about-promise-list {
    grid-template-columns: 1fr;
  }

  /* --- Contact page: stack details and form into one column --- */
  .cpage,
  form {
    grid-template-columns: 1fr;
  }

  /* --- Footer: stack the columns --- */
  .foot-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .foot-bottom {
    text-align: left;
    padding-right: 60px; /* room for the back-to-top button */
  }

  /* --- Work page --- */
  .whead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* --- Work + project pages: single column --- */
  .wgrid,
  .pinfo,
  .pimg.two,
  .wcard.big {
    grid-template-columns: 1fr;
  }

  /* --- Project page: title above the image instead of overlapping --- */
  .phead {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .ptitle {
    width: 100%;
    margin-bottom: 0;
    padding-left: 0;
  }

  .pinfo dl {
    flex-wrap: wrap;
    gap: 20px;
  }
}


/* ==========================================================================
   SERVICES PAGE (services.html)
   Black page. Top to bottom: intro + service index + scrolling ribbon,
   the four services (photo and text swapping sides), how it works,
   then the purple launch package panel.
   ========================================================================== */
.services-page {
  background: #000;
}

.sp > section {
  position: relative;
}

/* Small purple label above headings */
.sp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(247, 90%, 78%);
  margin-bottom: 18px;
}

/* Arrow icons inside links and buttons */
.sp svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sp .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
}

.sp .btn.ghost:hover {
  border-color: #fff;
}

/* White button (used on the purple panel) */
.sp .btn.light {
  background: #fff;
  color: #000;
}

.sp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}


/* --- 2. Intro --- */
.sp-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(140px, 13vw, 190px);
  padding-bottom: 0;
  overflow: hidden;
}

.sp-hero > :not(.sp-glow) {
  position: relative;
  z-index: 1;
}

.sp-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 40%, hsla(247, 86%, 54%, .55), transparent 70%),
    radial-gradient(35% 40% at 10% 90%, hsla(247, 86%, 54%, .25), transparent 70%);
}

.sp-hero h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  max-width: 13ch;
  margin-bottom: 24px;
}

/* Second half of the headline, white fading into purple */
.sp-hero h1 span {
  background: linear-gradient(180deg, #fff 10%, hsl(247, 90%, 72%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Service index card */
.sp-index {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background: rgba(16, 14, 34, .6);
  backdrop-filter: blur(14px);
}

.sp-index img {
  width: 150px;
  margin: 4px 0 14px 4px;
}

.sp-index a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  transition: background .25s;
}

.sp-index a:hover {
  background: var(--accent);
}

.sp-n {
  font-size: 13px;
  color: hsl(247, 90%, 78%);
}

.sp-index a:hover .sp-n {
  color: #fff;
}

.sp-t {
  flex: 1;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sp-t small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}

.sp-index a svg {
  transition: translate .25s;
}

.sp-index a:hover svg {
  translate: 4px 0;
}

/* Scrolling ribbon across the full width */
.sp-ribbon {
  grid-column: 1 / -1;
  margin: clamp(50px, 7vw, 100px) calc(-1 * max(clamp(20px, 6vw, 80px), (100vw - 1440px) / 2)) 0;
  padding: 22px 0;
  border-block: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.sp-track {
  display: flex;
  width: max-content;
  animation: sp-scroll 40s linear infinite;
}

.sp-track span {
  display: flex;
  align-items: center;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* Purple star between each word */
.sp-track span::after {
  content: "✦";
  margin: 0 32px;
  font-size: .55em;
  color: var(--accent);
}

@keyframes sp-scroll {
  to { transform: translateX(-50%); }
}


/* --- 3. The four services --- */
.sp-chapters {
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 10vw, 150px);
}

.sp-chapter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}

/* Every other service: photo on the right */
.sp-chapter:nth-child(even) .sp-media {
  order: 2;
}

.sp-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
}

.sp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Purple wash at the bottom of each photo */
.sp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(247, 86%, 30%, .7), transparent 50%);
  pointer-events: none;
}

/* Merchandise & signage: four photos in a 2 x 2 grid */
.sp-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  background: transparent;
}

.sp-quad img {
  border-radius: 20px;
  min-height: 0;
}

.sp-quad::after {
  border-radius: 20px;
  /* lighter fade so the bottom photos stay visible */
  background: linear-gradient(to top, hsla(247, 86%, 30%, .45), transparent 30%);
}

/* Big outlined number in the photo's corner */
.sp-big {
  position: absolute;
  left: 22px;
  bottom: 6px;
  z-index: 1;
  font-size: clamp(70px, 9vw, 140px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
}

.sp-copy h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  margin-bottom: 18px;
}

.sp-copy > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
}

.sp-copy h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 30px 0 14px;
}

/* "What's included" list with purple ticks, two columns */
.sp-checks {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 34px;
}

.sp-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.sp-checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}


/* --- 4. How it works --- */
.sp-head {
  max-width: 640px;
  margin-bottom: 50px;
}

.sp-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: none;
}

.sp-steps li {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
  transition: border-color .3s, transform .3s;
}

.sp-steps li:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.sp-step-n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 600;
  margin-bottom: 40px;
}

/* Line joining one step to the next */
.sp-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 51px;
  left: 76px;
  right: -16px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, .1));
}

.sp-steps strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.sp-steps p {
  color: var(--muted);
  font-size: 15px;
}


/* --- 5. Launch package --- */
.sp-kit {
  padding-top: 0;
}

.sp-kit-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 5vw, 70px);
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 100% 0%, hsl(260, 90%, 66%), transparent 70%),
    var(--panel);
}

.sp-kit .sp-eyebrow {
  color: rgba(255, 255, 255, .8);
}

.sp-kit h2 {
  margin-bottom: 16px;
}

.sp-kit-text p {
  font-size: 17px;
  max-width: 44ch;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .88);
}

.sp-kit-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-kit-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  font-size: 18px;
  font-weight: 600;
}

.sp-kit-list span {
  font-size: 12px;
  font-weight: 500;
  opacity: .7;
}


/* --- Less motion: stop the ribbon --- */
@media (prefers-reduced-motion: reduce) {
  .sp-track {
    animation: none;
  }
}


/* --- Tablets and phones --- */
@media (max-width: 960px) {
  .sp-hero,
  .sp-chapter,
  .sp-kit-card {
    grid-template-columns: 1fr;
  }

  .sp-chapter:nth-child(even) .sp-media {
    order: 0;
  }

  .sp-steps {
    grid-template-columns: 1fr 1fr;
  }

  .sp-steps li::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .sp-steps,
  .sp-checks {
    grid-template-columns: 1fr;
  }

  .sp-index {
    padding: 18px;
  }

  .sp-step-n {
    margin-bottom: 22px;
  }
}
