/* ==========================================================================
   Imran P. - Portfolio styles
   --------------------------------------------------------------------------
   Colours and text sizes live in section 1, so the whole look can be changed
   there. Every section of the page has its own block below, in the same order
   as the page. Phone and tablet tweaks are at the very end (section 19).
   ========================================================================== */


/* ---------- 1. Settings ---------- */

:root {
  /* Palette: black, beige white, orange */
  --black: #000;            /* main background */
  --black-band: #0d0d0d;    /* slightly lifted bands (results, footer) */
  --black-card: #171717;    /* cards */
  --beige: #f5efe3;         /* beige white: text on black, light sections */
  --beige-deep: #e8dfce;    /* slightly darker beige */
  --orange: #f7931e;        /* accent colour */
  --orange-deep: #d2560b;   /* accent for large text on beige */
  --orange-ink: #b84a08;    /* accent for small text on beige */

  --muted: rgba(245, 239, 227, 0.72);
  --muted-2: rgba(245, 239, 227, 0.54);
  --line: rgba(245, 239, 227, 0.13);
  --line-strong: rgba(245, 239, 227, 0.26);
  --ink-soft: #4b4943;      /* body text on beige */
  --ink-line: rgba(0, 0, 0, 0.16);

  /* Type: one family (Inter, display cut), tight spacing at large sizes */
  --font: "InterVariable", "Inter", "Segoe UI", Arial, sans-serif;
  --numbers: "cv02", "cv03", "cv04", "cv09", "tnum", "zero"; /* even digits, slashed zero */
  --display: clamp(2.7rem, 6.7vw, 6rem);       /* giant section titles */
  --title: clamp(2.1rem, 4.2vw, 3.75rem);      /* section titles */
  --heading: clamp(1.7rem, 2.5vw, 2.25rem);    /* large statements */
  --card-title: clamp(1.35rem, 1.8vw, 1.625rem);
  --lead: clamp(1.1rem, 1.4vw, 1.25rem);
  --track-display: -0.04em;
  --track-title: -0.03em;
  --track-heading: -0.02em;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 92px;
  --section-space: clamp(100px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
}


/* ---------- 2. Base ---------- */

/* Inter, stored on this site so no visitor data goes to a font server.
   Free under the SIL Open Font License (assets/fonts/LICENSE.txt). */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-gutter: stable;
  scrollbar-color: #3d3d3d var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--beige);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-variation-settings: "opsz" 32; /* Inter's display cut at every size */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  text-wrap: balance; /* no single word left alone on the last line */
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

em,
i {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--orange);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Stops sideways scrolling */
.page {
  overflow-x: hidden;
  overflow-x: clip;
}

.no-scroll,
.is-loading {
  overflow: hidden;
}

/* No scrollbar strip while loading, so the orange panel reaches the screen edge */
.is-loading {
  scrollbar-gutter: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}


/* ---------- 3. Loading screen ---------- */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px var(--gutter) clamp(30px, 4vw, 48px);
  overflow: hidden;
  background: var(--black);
}

.no-anim .loader {
  display: none;
}

.loader__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.loader__role {
  font-size: 0.875rem;
  color: var(--muted);
}

.loader__words {
  font-size: clamp(3.1rem, min(8.6vw, 15vh), 7.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: var(--track-display);
}

/* Each word slides up from behind a mask */
.loader__words span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.loader__words i {
  display: block;
  translate: 0 112%;
  transition: translate 0.75s var(--ease);
}

.loader__words .is-on i {
  translate: 0 0;
}

.loader__words span:last-child {
  color: var(--orange);
}

.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 3.6vw, 44px);
  font-size: clamp(4.6rem, 15.5vw, 14.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: var(--track-display);
  font-feature-settings: var(--numbers);
}

.loader__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--line);
}

.loader__bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* The orange panel that clears the screen */
.loader__wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.72s var(--ease-wipe);
}

.loader.is-covering .loader__wipe {
  transform: translateY(0);
}

.loader.is-leaving {
  background: transparent;
  pointer-events: none;
}

.loader.is-leaving > :not(.loader__wipe) {
  visibility: hidden;
}

.loader.is-leaving .loader__wipe {
  transform: translateY(-101%);
  transition-duration: 0.9s;
}


/* ---------- 4. Shared pieces ---------- */

.section-title {
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--track-title);
}

.section-title--display {
  font-size: var(--display);
  line-height: 1.04;
  letter-spacing: var(--track-display);
}

.section-title--center {
  text-align: center;
}

.accent {
  color: var(--orange);
}

/* Giant faded number behind a section title */
.headline {
  position: relative;
}

.bignum {
  position: absolute;
  z-index: -1;
  top: -0.3em;
  left: 0;
  right: 0;
  font-size: clamp(10.5rem, 25.8vw, 23.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(245, 239, 227, 0.09) 0%, rgba(245, 239, 227, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.bignum--left {
  left: -0.05em;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--beige);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--beige);
}

.btn--outline:hover {
  border-color: var(--beige);
  background: var(--beige);
  color: var(--black);
}

.btn--ghost {
  background: var(--beige-deep);
  color: var(--black);
}

.btn--ghost:hover {
  background: #ddd2bd;
}

.btn--block {
  width: 100%;
}

.link-plain {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 2px solid var(--orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}

.link-plain:hover {
  color: var(--orange);
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.stars svg {
  width: 24px;
  height: 24px;
}

.stars--accent {
  color: var(--orange);
}


/* ---------- 5. Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height 0.45s var(--ease), background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}

.header.is-scrolled {
  height: 74px;
  border-bottom-color: var(--line);
  background: var(--black);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}

.brand__name {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track-display);
}

.brand__mark {
  color: var(--orange);
}

.brand__role {
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 44px);
  margin: 0 auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(245, 239, 227, 0.86);
  text-decoration: none;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--beige);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta {
  height: 46px;
  padding: 0 22px;
}

.menu-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--black);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--beige);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 27px;
}

.menu-open .menu-toggle span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 110px var(--gutter) 40px;
  background: var(--black);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__nav a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--track-title);
  text-decoration: none;
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}

.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  translate: 0 0;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.2s; }

.mobile-menu__cta {
  align-self: flex-start;
}


/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(740px, 100svh);
  padding: calc(var(--header-h) + 36px) 0 90px;
  overflow: hidden;
  background: var(--black);
}

.hero__photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 0;
}

/* Darkens the top of the photo so the menu stays easy to read */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
}

.hero__content {
  max-width: 860px;
}

.hero__quote {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: clamp(24px, 2.8vw, 36px);
}

.hero__marks {
  flex: none;
  width: clamp(84px, 8vw, 122px);
  height: auto;
  color: var(--orange);
}

.hero__marks path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.hero__quote p {
  margin-bottom: 0.06em;
  font-size: clamp(1.55rem, 2.6vw, 2.375rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: var(--track-display);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(24px, 2.8vw, 34px);
}

/* Fiverr tile: solid beige so it stands out against the black */
.fiverr-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: clamp(26px, 3vw, 36px);
  padding: 20px 30px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--beige);
  color: var(--black);
  text-decoration: none;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}

.fiverr-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* One bright sweep across the tile after it appears */
.fiverr-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.fiverr-card__logo {
  font-size: 2.875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.fiverr-card__logo span {
  color: #1dbf73; /* Fiverr's own green, used only in its logo */
}

.fiverr-card__divider {
  align-self: stretch;
  width: 1px;
  background: var(--ink-line);
}

.fiverr-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fiverr-card__rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fiverr-card .stars svg {
  width: 28px;
  height: 28px;
}

.fiverr-card__rating strong {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-heading);
  font-feature-settings: var(--numbers);
}

.fiverr-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
}

.fiverr-card__level {
  color: var(--orange-ink);
  font-weight: 700;
}

/* Hero intro animation (starts as the loading screen leaves) */
.js .hero-item {
  opacity: 0;
}

.is-loaded .hero-item {
  animation: rise 1.1s var(--ease) var(--hd, 0s) both;
}

.hero__quote { --hd: 0.05s; }
.hero__actions { --hd: 0.7s; }
.fiverr-card { --hd: 0.85s; }

.is-loaded .hero__marks path {
  animation: draw 1.8s var(--ease) 0.15s forwards;
}

.is-loaded .hero__marks path + path {
  animation-delay: 0.35s;
}

.js .hero__photo img {
  opacity: 0;
}

.is-loaded .hero__photo img {
  animation: photo-in 1.6s var(--ease) both;
}

.is-loaded .fiverr-card .stars svg {
  animation: pop 0.5s var(--ease) both;
}

.is-loaded .fiverr-card .stars svg:nth-child(1) { animation-delay: 1.2s; }
.is-loaded .fiverr-card .stars svg:nth-child(2) { animation-delay: 1.28s; }
.is-loaded .fiverr-card .stars svg:nth-child(3) { animation-delay: 1.36s; }
.is-loaded .fiverr-card .stars svg:nth-child(4) { animation-delay: 1.44s; }
.is-loaded .fiverr-card .stars svg:nth-child(5) { animation-delay: 1.52s; }

.is-loaded .fiverr-card::after {
  animation: sweep 1s ease 1.85s both;
}

@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes photo-in {
  from { opacity: 0; scale: 1.06; }
  to { opacity: 1; scale: 1; }
}

@keyframes pop {
  0% { scale: 0; }
  65% { scale: 1.25; }
  100% { scale: 1; }
}

@keyframes sweep {
  to { transform: translateX(120%); }
}


/* ---------- 7. Moving strip ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px) 0;
  background: var(--beige);
  color: var(--black);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
  padding-right: clamp(22px, 2.6vw, 38px);
}

.ticker span {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: var(--track-heading);
  white-space: nowrap;
}

.ticker i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}


/* ---------- 8. Experience & results ---------- */

.stats {
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0;
  overflow: hidden;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px clamp(16px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 90px);
}

.stat {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.stat__value {
  font-size: clamp(2.1rem, 5.3vw, 4.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track-display);
  font-feature-settings: var(--numbers);
  white-space: nowrap;
}

.stat__value small {
  font-size: 0.46em;
  letter-spacing: var(--track-heading);
}

.stat__label {
  max-width: 15em;
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--muted);
}


/* ---------- 9. About: the story ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--beige);
  color: var(--black);
}

.story__photo {
  position: relative;
  overflow: hidden;
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  scale: 1.1;
  transition: scale 2s var(--ease);
}

.story__photo.is-in img {
  scale: 1;
}

.story__content {
  align-self: center;
  padding: clamp(80px, 9vw, 150px) clamp(28px, 7vw, 120px);
}

.story__title {
  font-size: clamp(2.1rem, 3.7vw, 3.375rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--track-title);
}

.story__title em {
  color: var(--orange-deep);
}

.story__text p {
  max-width: 34em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.story__rule {
  display: block;
  width: 96px;
  height: 3px;
  margin: 40px 0 30px;
  background: var(--orange);
  transform-origin: left;
}

.story__closing {
  font-size: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
}

.story__closing em {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  color: var(--orange-deep);
}


/* ---------- 10. My approach ---------- */

.approach {
  position: relative;
  padding: var(--section-space) 0;
}

.approach__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.approach__intro {
  position: sticky;
  top: 130px;
}

.approach__lead {
  margin-top: 20px;
  font-size: var(--card-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--track-heading);
  color: var(--orange);
}

.approach__text {
  max-width: 30em;
  margin-top: 12px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}

.approach__quote {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.approach__quote blockquote {
  font-size: var(--card-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--track-heading);
}

.approach__quote figcaption {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--muted);
}

.steps {
  position: relative;
}

/* Vertical line that fills as you scroll (sized by js/main.js) */
.steps__line {
  position: absolute;
  top: 0;
  left: 27px;
  width: 2px;
  height: 0;
  overflow: hidden;
  background: var(--line);
}

.steps__line span {
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px;
  padding: 18px 0;
}

.step + .step {
  margin-top: 14px;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--black);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  font-feature-settings: var(--numbers);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}

.step.is-active .step__num {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.step h3 {
  margin-top: 4px;
  font-size: var(--card-title);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--track-heading);
  color: var(--muted);
  transition: color 0.35s;
}

.step.is-active h3 {
  color: var(--beige);
}

.step p {
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}


/* ---------- 11. Results: selected projects ---------- */

.results {
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0;
  overflow: hidden;
  overflow: clip;
  background: var(--black-band);
}

.results__head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px 60px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.results__title {
  font-size: clamp(2.7rem, 6.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: var(--track-display);
}

.results__intro {
  justify-self: end;
  max-width: 26em;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}

.cases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.case {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--black-card);
}

.case--wide {
  grid-column: span 3;
}

.case:hover {
  border-color: var(--orange);
}

.case__thumb {
  height: clamp(140px, 12.2vw, 168px);
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.case__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.case:hover .case__thumb img {
  transform: scale(1.04);
}

.case__source {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-2);
}

/* Small tags with a dot between them */
.case__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.case__tags span {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: rgba(245, 239, 227, 0.84);
}

.case__tags i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.case__title {
  margin-top: 14px;
  font-size: var(--card-title);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--track-heading);
}

.case__desc {
  margin: 8px 0 24px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}

.case__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case__stats div {
  display: flex;
  flex-direction: column-reverse;
}

.case__stats dd {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-feature-settings: var(--numbers);
}

.case__stats dt {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted-2);
}

.case__more {
  align-self: flex-start;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Makes the whole card clickable */
.case__more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.case__more:focus-visible {
  outline: none;
}

.case__more:focus-visible::after {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.results__foot {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.results__foot h3 {
  font-size: var(--heading);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--track-heading);
}

.results__foot p {
  margin-top: 8px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}

/* Case study pop-up */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  transition: opacity 0.35s;
}

.modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100svh - 2 * clamp(12px, 3vw, 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--black);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.modal__panel:focus {
  outline: none;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: none;
}

.modal__close {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 14px 14px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--beige);
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.25s;
}

.modal__close:hover {
  background: var(--orange);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.cd {
  padding: 28px clamp(20px, 4vw, 48px) 44px;
}

.cd__media {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.cd__media img {
  width: 100%;
  max-width: 620px;
  height: auto;
}

.cd__meta {
  margin-top: 24px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-2);
}

.cd__title {
  margin-top: 14px;
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--track-title);
}

.cd__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.cd__stats div {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column-reverse;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--black-card);
}

.cd__stats dd {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-feature-settings: var(--numbers);
}

.cd__stats dt {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted);
}

.cd__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  margin-top: 28px;
  counter-reset: part;
}

.cd__grid section {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.cd__grid h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--orange);
}

.cd__grid h4::before {
  content: counter(part, decimal-leading-zero);
  counter-increment: part;
  font-weight: 400;
  color: var(--muted-2);
  font-feature-settings: var(--numbers);
}

.cd__grid p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(245, 239, 227, 0.88);
}

.cd__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: 8px;
  background: var(--black-card);
}

.cd__cta p {
  font-size: var(--lead);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}


/* ---------- 12. Testimonials ---------- */

.reviews {
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0 clamp(90px, 10vw, 130px);
  overflow: hidden;
}

/* Hand-drawn line under "Trusted Me" */
.underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underline__swoosh {
  position: absolute;
  left: 6%;
  bottom: -0.2em;
  width: 90%;
  height: 0.26em;
  overflow: visible;
  color: var(--orange);
}

.underline__swoosh path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease) 0.8s;
}

.underline__swoosh path + path {
  stroke-width: 2.5;
  opacity: 0.7;
  transition-delay: 1s;
}

.is-in .underline__swoosh path {
  stroke-dashoffset: 0;
}

.reviews__sub {
  max-width: 40em;
  margin: 34px auto 0;
  font-size: var(--lead);
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

.carousel {
  margin-top: clamp(48px, 6vw, 70px);
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.review {
  display: flex;
  flex: none;
  flex-direction: column;
  width: min(390px, 82vw);
  padding: 32px 30px 26px;
  border-radius: 12px;
  background: var(--black-card);
  transition: background-color 0.45s, color 0.45s;
}

/* The review in the middle turns beige */
.review.is-active {
  background: var(--beige);
  color: var(--black);
}

.review__stars svg {
  width: 22px;
  height: 22px;
}

.review__text {
  flex: 1;
  margin: 20px 0 24px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.review__text p::before {
  content: "\201C";
}

.review__text p::after {
  content: "\201D";
}

.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: border-color 0.45s;
}

.review.is-active .review__author {
  border-top-color: var(--ink-line);
}

.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--av-bg);
  color: var(--av-fg);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1;
}

.review__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.review__country {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.3;
  opacity: 0.75;
}

.flag {
  flex: none;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.carousel__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.carousel__arrow:hover {
  border-color: var(--beige);
  background: var(--beige);
  color: var(--black);
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.carousel__dots {
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.45s var(--ease), background-color 0.45s;
}

.carousel__dot.is-active {
  width: 38px;
  background: var(--orange);
}

.reviews__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 1rem;
}

.reviews__more span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.reviews__more svg {
  width: 18px;
  height: 18px;
  color: #1dbf73; /* Fiverr's green */
}

.reviews__more a {
  color: var(--orange);
  font-weight: 600;
  text-underline-offset: 4px;
}


/* ---------- 13. Services: everything around the click ---------- */

.services {
  --loop: 5s;
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0;
  overflow: hidden;
}

.services__sub {
  max-width: 36em;
  margin: 26px auto 0;
  font-size: var(--lead);
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

.services__close {
  margin-top: clamp(52px, 6vw, 76px);
  text-wrap: balance;
  font-size: var(--heading);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--track-heading);
  text-align: center;
}

/* The ad in the middle, with three services either side */
.map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(226px, 21vw, 280px) minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(52px, 6vw, 76px);
}

.map:not(.is-playing) * {
  animation-play-state: paused !important;
}

.map__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}

.map__line {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) calc(var(--n) * 120ms), stroke 0.25s;
}

.map.is-in .map__line {
  stroke-dashoffset: 0;
}

.map__line.is-lit {
  stroke: var(--orange);
}

.map__node {
  fill: var(--black);
  stroke: var(--orange);
  stroke-width: 1.5;
}

/* The customer: an orange dot that runs in to the ad, then on to the next step */
.map__pulse {
  stroke: var(--orange);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 0.0001 2;
  opacity: 0;
  animation: var(--loop) linear calc(var(--n) * 70ms) infinite;
}

.map__pulse--in { animation-name: pulse-in; }
.map__pulse--out { animation-name: pulse-out; }

@keyframes pulse-in {
  0% { stroke-dashoffset: 0; opacity: 0; }
  3%, 21% { opacity: 1; }
  23%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes pulse-out {
  0%, 27% { stroke-dashoffset: 0; opacity: 0; }
  30%, 47% { opacity: 1; }
  49%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

.map__side {
  position: relative;
}

.map__side--before {
  padding-right: clamp(60px, 7.5vw, 104px);
}

.map__side--after {
  padding-left: clamp(60px, 7.5vw, 104px);
}

/* Sits above the column, so the middle service lines up exactly with the ad */
.map__label {
  position: absolute;
  bottom: 100%;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--orange);
}

.map__side--before .map__label {
  right: clamp(60px, 7.5vw, 104px);
}

.ways {
  display: grid;
  gap: 22px;
}

.way {
  display: grid;
  grid-template-columns: clamp(118px, 11vw, 148px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

/* Left side reads in towards the ad, so the drawing sits next to the line */
.map__side--before .way {
  grid-template-columns: minmax(0, 1fr) clamp(118px, 11vw, 148px);
  text-align: right;
}

.map__side--before .way__scene {
  order: 1;
}

.way__scene svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.way h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
}

.way p {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--muted);
}

/* The little drawings */
.sc-panel {
  fill: #101010;
  stroke: #2b2b2b;
  stroke-width: 1.5;
  transition: stroke 0.25s;
}

.way:hover .sc-panel {
  stroke: var(--orange);
}

.sc-a { fill: #262626; }
.sc-b { fill: #444; }
.sc-l { fill: var(--beige); }
.sc-o { fill: var(--orange); }

.sc-ring,
.sc-rule {
  fill: none;
  stroke: var(--beige);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-rule {
  stroke: #2b2b2b;
  stroke-width: 1.5;
}

.sc-ad {
  fill: var(--black);
  font-size: 11px;
  font-weight: 700;
}

.sc-playhead {
  animation: playhead var(--loop) linear infinite;
}

.sc-type {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: type var(--loop) steps(12) infinite;
}

.sc-caret {
  animation: caret var(--loop) steps(12) infinite;
}

.sc-trend {
  fill: none;
  stroke: var(--beige);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .sc-trend {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) 0.7s;
}

.js .way.is-in .sc-trend {
  stroke-dashoffset: 0;
}

.sc-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.js .sc-bar {
  transform: scaleY(0);
  transition: transform 0.9s var(--ease) calc(0.2s + var(--b, 0) * 80ms);
}

.js .way.is-in .sc-bar {
  transform: none;
}

/* These light up as the dot arrives */
.sc-glow {
  animation: glow var(--loop) ease infinite;
}

.sc-pop {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: pop-in var(--loop) var(--ease) infinite;
}

@keyframes playhead {
  to { transform: translateX(133px); }
}

@keyframes type {
  0% { transform: scaleX(0); }
  20%, 100% { transform: none; }
}

@keyframes caret {
  0% { transform: translateX(-75px); }
  20%, 100% { transform: none; }
}

@keyframes glow {
  0%, 46% { opacity: 0.5; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes pop-in {
  0%, 46% { transform: scale(0); }
  50% { transform: scale(1.2); }
  54%, 92% { transform: none; }
  98%, 100% { transform: scale(0); }
}

/* The ad */
.map__hub {
  position: relative;
}

.map__hub svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hub-card { fill: var(--beige); }
.hub-ink { fill: var(--black); }
.hub-btn { fill: var(--orange); }

.hub-small {
  fill: #6d6a62;
  font-size: 12px;
  font-weight: 500;
}

.hub-title {
  fill: var(--beige);
  font-size: 68px;
  font-weight: 600;
  letter-spacing: var(--track-display);
}

.hub-title--accent {
  fill: var(--orange);
}

.hub-cta {
  fill: var(--black);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: var(--track-heading);
}

.hub-btn {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: press var(--loop) ease infinite;
}

.hub-ripple {
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ripple var(--loop) ease-out infinite;
}

.hub-cursor {
  fill: var(--black);
  stroke: var(--beige);
  stroke-width: 2;
  stroke-linejoin: round;
  animation: cursor var(--loop) var(--ease) infinite;
}

@keyframes cursor {
  0%, 8% { transform: translate(46px, 44px); opacity: 0; }
  20%, 40% { transform: none; opacity: 1; }
  52%, 100% { transform: translate(46px, 44px); opacity: 0; }
}

@keyframes press {
  0%, 23% { transform: none; }
  25% { transform: scale(0.97); }
  28%, 100% { transform: none; }
}

@keyframes ripple {
  0%, 23% { transform: scale(0.4); opacity: 0; }
  24% { opacity: 0.8; }
  40%, 100% { transform: scale(5); opacity: 0; }
}


/* ---------- 14. FAQ ---------- */

.faq {
  padding: var(--section-space) 0;
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 130px;
}

.faq__text {
  max-width: 24em;
  margin: 16px 0 26px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__item h3 {
  font: inherit;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--track-heading);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}

.faq__q:hover,
.faq__item.is-open .faq__q {
  color: var(--orange);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

/* Smooth open / close */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  max-width: 44em;
  padding-bottom: 26px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}


/* ---------- 15. Book a call ---------- */

.book {
  padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 8vw, 110px);
}

.book__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: clamp(28px, 5.5vw, 76px);
  border-radius: 14px;
  background: var(--black-card);
}

.book__text {
  max-width: 30em;
  margin-top: 16px;
  font-size: var(--lead);
  line-height: 1.4;
  color: rgba(245, 239, 227, 0.86);
}

.form {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 10px;
  background: var(--beige);
  color: var(--black);
}

/* A beige hover would disappear against the form */
.form .btn--primary:hover {
  background: var(--black);
  color: var(--beige);
}

.form__title {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--track-heading);
}

.form__count {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.options,
.fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.option {
  position: relative;
  display: block;
  padding: 14px 50px 14px 18px;
  border: 1.5px solid #dfd5c1;
  border-radius: 8px;
  background: #fffcf6;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.option:hover {
  border-color: var(--orange);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

.option::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 1.5px solid #cfc3ab;
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s;
}

.option.is-selected {
  border-color: var(--orange-deep);
  background: #fff3e2;
}

.option.is-selected::after {
  border-color: var(--orange-deep);
  background: var(--orange-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.form__error {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: #b3261e;
}

.form .btn--block {
  margin-top: 20px;
}

.field {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #dfd5c1;
  border-radius: 8px;
  background: #fffcf6;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--black);
  transition: border-color 0.25s;
}

.field::placeholder {
  color: #7d7666;
}

.field:focus {
  outline: none;
  border-color: var(--orange-deep);
}

.field.is-invalid {
  border-color: #b3261e;
}

textarea.field {
  min-height: 120px;
  resize: vertical;
}

.form__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.form__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px;
}

.calendly-frame {
  display: block;
  width: 100%;
  height: 680px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.form__done {
  margin-top: 10px;
  color: var(--ink-soft);
}

.form__done a {
  color: var(--orange-ink);
  font-weight: 600;
}

.form__note {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.form__note a {
  color: var(--orange-ink);
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}


/* ---------- 16. Footer ---------- */

.footer {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0 40px;
  background: var(--black-band);
}

.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(50px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.footer__line {
  max-width: 14em;
  text-wrap: balance;
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--track-title);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 36px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer__nav a {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer__nav a:hover {
  color: var(--orange);
}

.footer__copy {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-2);
}

/* Copyright and the legal links, under everything else */
.footer__fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__legal a,
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s;
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--orange);
}


/* ---------- 17. Privacy choice and WhatsApp button ---------- */

/* Only shown when a Meta Pixel ID is set in js/settings.js. It sits bottom
   right, over the photo, so it never hides the Fiverr tile. */
.consent {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 90;
  width: min(440px, calc(100% - 24px));
  padding: 20px 22px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--black-card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.consent.is-open {
  opacity: 1;
  transform: none;
}

.consent__text {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.consent__text a {
  color: var(--orange);
  text-underline-offset: 3px;
}

/* Accept and Reject look the same on purpose: both must be equally easy */
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.consent__actions .btn {
  height: 46px;
  padding: 0 16px;
}

/* Only shown when a WhatsApp number is set in js/settings.js */
.wa {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366; /* WhatsApp's own green */
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.3s var(--ease), opacity 0.25s;
}

.wa:hover {
  background: #4be083;
  transform: translateY(-2px);
}

.wa svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* The banner sits in the same corner, so the button steps aside until a choice is made */
.consent-open .wa {
  opacity: 0;
  pointer-events: none;
}


/* ---------- 18. Impressum and privacy policy pages ---------- */

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.legal {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  font-size: var(--title);
  line-height: 1.08;
  letter-spacing: var(--track-title);
}

.legal__lead {
  margin-top: 16px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: var(--track-heading);
  scroll-margin-top: 24px;
}

.legal p,
.legal li,
.legal address {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(245, 239, 227, 0.86);
}

.legal p,
.legal address {
  margin-top: 12px;
}

.legal address {
  margin-top: 28px;
  font-style: normal;
}

.legal h2 + address {
  margin-top: 12px;
}

.legal ul {
  margin-top: 12px;
  padding-left: 1.2em;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--orange);
  text-underline-offset: 3px;
}

/* Details still to fill in: search the page for class="todo" */
.todo {
  padding: 0 0.3em;
  border-radius: 3px;
  background: var(--orange);
  color: var(--black);
}

.footer--legal {
  padding: 28px 0 34px;
}

.footer--legal .footer__fine {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}


/* ---------- Scroll animations ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    translate 0.9s var(--ease) var(--d, 0ms),
    border-color 0.25s,
    background-color 0.25s,
    color 0.25s;
}

.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

.js [data-reveal="fade"] {
  translate: none;
}

/* The wipe is on the picture inside, so the browser can still see the box */
.js [data-reveal="clip"] {
  opacity: 1;
  translate: none;
}

.js [data-reveal="clip"] img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-wipe) var(--d, 0ms), scale 2s var(--ease);
}

.js [data-reveal="clip"].is-in img {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal="grow"] {
  opacity: 1;
  translate: none;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) var(--d, 0ms);
}

.js [data-reveal="grow"].is-in {
  transform: scaleX(1);
}

/* Headlines: words slide up one after another (js/main.js wraps each word) */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.06em 0.14em 0;
  margin: -0.1em -0.06em -0.14em 0;
}

.js [data-split] .w > span {
  display: inline-block;
  translate: 0 120%;
  transition: translate 1.1s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}

.js [data-split].is-in .w > span {
  translate: 0 0;
}

/* If the script can't run, show everything */
.no-anim [data-reveal],
.no-anim .hero-item,
.no-anim .hero__photo img,
.no-anim .fiverr-card .stars svg {
  opacity: 1 !important;
  translate: none !important;
  animation: none !important;
}

.no-anim [data-reveal="grow"] {
  transform: none !important;
}

.no-anim [data-reveal="clip"] img {
  clip-path: none !important;
}

.no-anim [data-split] .w > span {
  translate: none !important;
}

.no-anim .hero__marks path,
.no-anim .underline__swoosh path,
.no-anim .sc-trend {
  stroke-dashoffset: 0 !important;
}

.no-anim .sc-bar {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* ---------- 19. Tablet and phone ---------- */

@media (max-width: 1199px) {
  .hero__content {
    max-width: 660px;
  }

  .header__inner {
    gap: 24px;
  }
}

/* Squarer screens bring Imran closer to the text */
@media (max-aspect-ratio: 3/2) {
  .hero__title {
    font-size: clamp(2.25rem, 4.4vw, 4.6rem);
  }
}

/* Short laptop screens: keeps the Fiverr tile on the first screen */
@media (min-width: 900px) and (min-aspect-ratio: 6/5) and (max-height: 760px) {
  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 6px) 0 40px;
  }

  .hero__quote {
    margin-bottom: 16px;
  }

  .hero__marks {
    width: 84px;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .fiverr-card {
    margin-top: 20px;
  }
}

/* Hero on tall screens: photo on top, text below */
@media (max-width: 899px), (max-aspect-ratio: 6/5) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 72px;
  }

  .hero__photo {
    position: relative;
    inset: auto;
    height: clamp(460px, 128vw, 760px);
    margin: 34px 0 clamp(-150px, -24vw, -96px);
  }

  .hero__photo::after {
    display: none;
  }

  .hero__photo img {
    object-position: 95% 0;
    /* Fades into the black at the top, and under the text at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 66%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 66%, transparent 96%);
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8.4vw, 3.5rem);
  }

  .hero__quote p {
    font-size: clamp(1.55rem, 4vw, 2.1rem);
  }
}

/* Services: the ad sits between the two groups, joined by a straight line */
@media (max-width: 1099px) {
  .map {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .map__lines {
    display: none;
  }

  .map__side,
  .map__side--before,
  .map__side--after {
    width: 100%;
    padding: 0;
  }

  .map__label {
    position: static;
    margin-bottom: 16px;
  }

  .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .way,
  .map__side--before .way {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    text-align: left;
  }

  .map__side--before .way__scene {
    order: 0;
  }

  .map__hub {
    width: 240px;
    margin: 64px 0;
  }

  .map__hub::before,
  .map__hub::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 64px;
    margin-left: -1px;
    background: linear-gradient(var(--orange), var(--orange)) 0 -14px / 100% 14px no-repeat var(--line-strong);
    animation: pulse-down var(--loop) linear infinite;
  }

  .map__hub::before {
    bottom: 100%;
  }

  .map__hub::after {
    top: 100%;
    animation-delay: calc(var(--loop) * 0.27);
  }
}

@keyframes pulse-down {
  0% { background-position: 0 -14px; }
  20%, 100% { background-position: 0 64px; }
}

@media (max-width: 959px) {
  :root {
    --header-h: 76px;
    --title: clamp(2.1rem, 6.4vw, 3.5rem);
    --display: clamp(2.7rem, 8.6vw, 4.6rem);
  }

  .story__title {
    font-size: var(--title);
  }

  .results__title {
    font-size: var(--display);
  }

  .services .section-title {
    font-size: clamp(2.2rem, 7.4vw, 4.6rem);
  }

  .nav,
  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header.is-scrolled {
    height: 66px;
  }

  .brand__name {
    font-size: 1.5rem;
  }

  .brand__role {
    font-size: 0.8125rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat__value {
    font-size: clamp(2.1rem, 10vw, 4.4rem);
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story__photo {
    height: clamp(440px, 110vw, 760px);
  }

  .approach__inner,
  .faq__inner {
    grid-template-columns: 1fr;
  }

  .approach__intro,
  .faq__intro {
    position: static;
  }

  .results__head {
    grid-template-columns: 1fr;
  }

  .results__intro {
    justify-self: start;
  }

  .cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case,
  .case--wide {
    grid-column: span 1;
  }

  .case:last-child {
    grid-column: span 2;
  }

  .book__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .consent {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .wa {
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
  }

  .wa span {
    display: none;
  }

  .ways {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .way,
  .map__side--before .way {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
  }

  .services .section-title br,
  .services__close br {
    display: none;
  }

  .loader__role {
    display: none;
  }

  .loader__words {
    margin-bottom: 26vh;
    font-size: 14.6vw;
  }

  .loader__count {
    font-size: 27vw;
  }

  .hero__quote {
    gap: 8px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .fiverr-card {
    display: flex;
    gap: 16px;
    padding: 18px;
  }

  .fiverr-card__logo {
    font-size: 2rem;
  }

  .fiverr-card__meta {
    flex-direction: column;
    gap: 2px;
    font-size: 0.9375rem;
  }

  .fiverr-card .stars svg {
    width: 21px;
    height: 21px;
  }

  .fiverr-card__rating strong {
    font-size: 1.375rem;
  }

  .ticker i {
    width: 8px;
    height: 8px;
  }

  .cases {
    grid-template-columns: 1fr;
  }

  .case:last-child {
    grid-column: auto;
  }

  .case__thumb {
    height: auto;
    aspect-ratio: 2.4;
  }

  .step {
    gap: 18px;
  }

  .cd__grid {
    grid-template-columns: 1fr;
  }

  .review {
    padding: 26px 22px 22px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .stat__label {
    font-size: 0.9375rem;
  }

  .form__actions {
    flex-direction: column-reverse;
  }

  .form__actions .btn {
    flex: none;
    width: 100%;
  }
}

/* Smallest phones: keeps the Fiverr tile's stars and score on one line */
@media (max-width: 379px) {
  .fiverr-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .fiverr-card__logo {
    font-size: 1.75rem;
  }

  .fiverr-card__rating {
    gap: 8px;
  }

  .fiverr-card .stars svg {
    width: 17px;
    height: 17px;
  }

  .fiverr-card__rating strong {
    font-size: 1.25rem;
  }
}
