/* Jana Souki — portfolio
   Fonts: Inter Tight (headlines, text) and Instrument Serif (accents), both free Google Fonts, self-hosted. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Gayathri"; /* MOVR's UI font, free on Google Fonts */
  src: url("/fonts/gayathri.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f3ef;
  --ink: #141414;
  --muted: #6b6862;
  --line: rgba(20, 20, 20, 0.14);
  --pink: #f2c7de;
  --pink-deep: #e58fbe;

  /* project colours, taken from Jana's own brand work */
  --bb-blue: #005584;
  --bb-bright: #2a8ff0;
  --movr-ink: #333333;
  --movr-yellow: #ffe866;
  --movr-green: #b4d7ad;
  --movr-orange: #ff6600;

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --pad: clamp(18px, 3.2vw, 48px);
  --radius: clamp(28px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Text Jana still needs to write or confirm. Remove the class once she has. */
.draft {
  background: linear-gradient(transparent 62%, rgba(255, 233, 102, 0.75) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* on coloured or dark backgrounds a highlight is hard to read, so use a wavy underline instead */
.cs-hero .draft,
.card .draft,
.contact .draft:not(.btn),
.next .draft {
  background: none;
  text-decoration: underline wavy var(--movr-yellow);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.draft-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--movr-yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--pad);
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.site-header a {
  text-decoration: none;
}
/* the header floats over every colour, so its parts sit on small frosted pills */
.site-header .brand,
.site-header .role,
.site-header nav {
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(245, 243, 239, 0.82);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px -12px rgba(0, 0, 0, 0.35);
}
.site-header .brand {
  justify-self: start;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.site-header .role {
  text-align: center;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.scrolled .site-header .role {
  opacity: 1;
  transform: none;
}
.site-header nav {
  justify-self: end;
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  font-size: 14px;
  font-weight: 500;
}
.site-header nav a {
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header .role {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px var(--pad) var(--pad);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(242, 199, 222, 0.9), transparent 70%),
    var(--paper);
}

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(10px, 2vw, 24px);
}
.hero__meta > :last-child {
  text-align: right;
}

.hero__title {
  position: relative;
  z-index: 2;
  font-size: clamp(64px, 21.4vw, 420px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.065em;
  margin-left: -0.04em;
  white-space: nowrap;
}

.hero__intro {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: clamp(18px, 2.5vw, 36px);
}
.hero__intro p {
  max-width: 30ch;
  font-size: clamp(22px, 2.3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.scroll-cue span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: nudge 2.4s var(--ease) infinite;
}

@media (max-width: 640px) {
  .hero__meta {
    grid-template-columns: 1fr 1fr;
  }
  .hero__meta > :nth-child(2) {
    display: none;
  }
  .hero__intro {
    flex-direction: column;
    align-items: start;
  }
}

/* Illustration "stickers" floating in the hero. They live in the free space above the
   name (flex: 1) and their height is a share of that space, so they never cover the text. */
.stickers {
  position: relative;
  flex: 1 1 auto;
  min-height: 110px;
  margin-bottom: 12px;
  pointer-events: none;
}
.sticker {
  position: absolute;
  height: var(--h);
  left: var(--x);
  top: var(--y);
  transform: translate3d(0, var(--shift, 0px), 0) rotate(var(--r));
  will-change: transform;
}
.sticker img {
  height: 100%;
  width: auto;
  max-width: none;
  border: clamp(5px, 0.6vw, 10px) solid #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px -12px rgba(20, 20, 20, 0.35);
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* sticker positions and heights: ticket, pomegranate, frog, sun */
.sticker:nth-child(1) { --x: 5%;  --y: 12%; --h: min(76%, 12.2vw, 217px); }
.sticker:nth-child(2) { --x: 44%; --y: 2%;  --h: min(70%, 10vw, 180px); }
.sticker:nth-child(3) { --x: 71%; --y: 6%;  --h: min(78%, 13.6vw, 250px); }
.sticker:nth-child(4) { --x: 87%; --y: 26%; --h: min(62%, 10.4vw, 195px); }

@media (max-width: 640px) {
  .sticker:nth-child(1) { --x: 2%;  --y: 4%;  --h: min(52%, 33vw); }
  .sticker:nth-child(2) { --x: 28%; --y: 52%; --h: min(42%, 30vw); }
  .sticker:nth-child(3) { --x: 58%; --y: 0%;  --h: min(52%, 37vw); }
  .sticker:nth-child(4) { --x: 72%; --y: 54%; --h: min(40%, 27vw); }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---------- Section basics ---------- */

.section {
  padding: clamp(80px, 12vw, 180px) var(--pad);
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.h2 {
  font-size: clamp(44px, 7.4vw, 128px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

/* ---------- Work index (numbered list) ---------- */

.index {
  border-top: 1px solid var(--ink);
}
.index a {
  display: grid;
  grid-template-columns: 4ch 1fr auto 40px;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.index__name {
  font-size: clamp(26px, 3.6vw, 56px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
.index__type {
  color: var(--muted);
  font-size: 15px;
}
.index__arrow {
  justify-self: end;
  transition: transform 0.4s var(--ease);
}
.index a:hover {
  padding-left: 14px;
}
.index a:hover .index__arrow {
  transform: translateX(6px) rotate(-45deg);
}

@media (max-width: 640px) {
  .index a {
    grid-template-columns: 3ch 1fr 24px;
  }
  .index__type {
    display: none;
  }
}

/* ---------- Project stack (the peel-away scroll) ---------- */

.stack {
  position: relative;
}
.stack__viewport {
  position: relative;
}
.card {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(90px, 9vw, 120px) var(--pad) clamp(40px, 6vw, 80px);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.card__text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}
.card__meta {
  display: flex;
  gap: 14px;
  opacity: 0.8;
}
.card__title {
  font-size: clamp(52px, 8.4vw, 150px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.card__title a {
  text-decoration: none;
}
/* whole card is clickable */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card__lede {
  max-width: 34ch;
  font-size: clamp(17px, 1.4vw, 22px);
  opacity: 0.9;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card__tags li {
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 13px;
  opacity: 0.85;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.card__cta span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.4s var(--ease);
}
.card:hover .card__cta span {
  transform: rotate(-45deg) scale(1.08);
}
.card__media {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.card__media img {
  width: 100%;
  border-radius: clamp(14px, 1.6vw, 24px);
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.025);
}
.card__media--bleed img {
  border-radius: 0;
}

.card--bb {
  --bg: var(--bb-blue);
  --fg: #fff;
}
.card--movr {
  --bg: var(--movr-ink);
  --fg: var(--movr-yellow);
}
.card--illo {
  --bg: var(--pink);
  --fg: var(--ink);
}

/* fanned illustration collage on the third card */
.fan {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
}
.fan img {
  position: absolute;
  width: 42%;
  border: clamp(5px, 0.6vw, 10px) solid #fff;
  border-radius: 8px !important;
  box-shadow: 0 24px 50px -18px rgba(20, 20, 20, 0.45);
}
.fan img:nth-child(1) { left: 2%; top: 14%; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 29%; top: 2%; transform: rotate(-2deg); z-index: 2; }
.fan img:nth-child(3) { left: 56%; top: 12%; transform: rotate(7deg); }
.card:hover .fan img:nth-child(1) { transform: rotate(-12deg) translate(-10px, 4px); }
.card:hover .fan img:nth-child(3) { transform: rotate(10deg) translate(10px, 4px); }

@media (max-width: 860px) {
  .card {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }
  .card__media {
    height: auto;
  }
  .card__lede {
    display: none;
  }
}

/* Peel-away behaviour, switched on by JS (html.js) unless the visitor prefers less motion.
   The viewport sticks to the screen; each card slides up and off, revealing the next one. */
@media (prefers-reduced-motion: no-preference) {
  .js .stack {
    height: var(--stack-h, 300svh);
  }
  .js .stack__viewport {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
  }
  .js .card {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    will-change: transform;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
  }
  .js .card__inner-shade {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: #000;
    opacity: var(--shade, 0);
    pointer-events: none;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.about__lead {
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.about__body {
  display: grid;
  gap: 18px;
  max-width: 52ch;
  color: #2c2a27;
  margin-top: 28px;
}
.facts {
  display: grid;
  gap: 40px;
  align-content: start;
}
.facts h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
}
.rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rows li span:last-child {
  color: var(--muted);
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact / footer ---------- */

.contact {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(80px, 11vw, 160px) var(--pad) var(--pad);
  overflow: hidden;
}
.contact__title {
  font-size: clamp(56px, 12.5vw, 240px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.065em;
}
.contact__title .serif {
  color: var(--pink);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 56px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
  background: #fff;
}
.socials {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.socials a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(64px, 9vw, 140px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Case study pages ---------- */

.cs-hero {
  background: var(--bg);
  color: var(--fg);
  padding: clamp(110px, 12vw, 170px) var(--pad) clamp(40px, 6vw, 80px);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: clamp(20px, 3vw, 40px);
  opacity: 0.8;
}
.cs-hero__title {
  font-size: clamp(50px, 9.5vw, 180px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.06em;
  max-width: 12ch;
}
.cs-hero__title .serif {
  display: block;
  font-size: 0.55em;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.15em;
}
.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cs-hero__lede {
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 38ch;
}
.deliverables h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 10px;
}
.deliverables li {
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}
.cs-hero__image {
  margin-top: clamp(40px, 6vw, 88px);
}
.cs-hero__image img {
  width: 100%;
  border-radius: clamp(14px, 1.6vw, 24px);
}

/* with no intro sentence, the deliverables list keeps its place on the right */
.cs-hero__grid > .deliverables:only-child {
  grid-column: 2;
}

@media (max-width: 860px) {
  .cs-hero__grid {
    grid-template-columns: 1fr;
  }
  .cs-hero__grid > .deliverables:only-child {
    grid-column: auto;
  }
}

.cs {
  padding: clamp(64px, 9vw, 140px) var(--pad);
  display: grid;
  gap: clamp(64px, 9vw, 140px);
}
.cs-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.cs-block__label {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 10px;
}
.cs-block__label .num {
  font-size: 13px;
  color: var(--muted);
}
.cs-block__label h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.cs-block__body {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}
.cs-block__body > p {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
}
.cs-block__body > .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.figure img {
  width: 100%;
  border-radius: clamp(12px, 1.4vw, 22px);
}
.figure--fit img {
  /* tall, near-square mockups: keep them no taller than the wide ones */
  width: 63%;
  margin: 0 auto;
}
.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 20px);
}
.pair .figure img {
  height: 100%;
  object-fit: cover;
}
.full {
  margin: 0 calc(var(--pad) * -1);
}
.full img {
  width: 100%;
  border-radius: 0;
}

@media (max-width: 860px) {
  .cs-block {
    grid-template-columns: 1fr;
  }
  .cs-block__label {
    position: static;
  }
  .pair {
    grid-template-columns: 1fr;
  }
}

/* MOVR: logo with the welcome-screen phone, built from vector + Figma export */
.movr-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: var(--movr-ink);
  color: #f4f4f4;
  overflow: hidden;
}
.movr-cover__logo {
  position: absolute;
  left: 9%;
  top: 15%;
  width: 82%;
  height: auto;
}
/* beats the generic ".cs-hero__image img" and ".card__media img" sizing */
.movr-cover img.movr-cover__phone {
  position: absolute;
  left: 35%;
  top: 30%;
  width: 30%;
  border-radius: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.movr-cover__tag {
  position: absolute;
  right: 9%;
  top: 47%;
  font-family: "Gayathri", var(--sans);
  font-size: clamp(13px, 1.9vw, 30px);
  letter-spacing: 0.01em;
}
.card .movr-cover {
  background: transparent;
  width: 100%;
}

/* app screens shown flat, side by side */
.screens {
  --gap: clamp(10px, 1.6vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* a row with fewer screens sits in the middle */
  gap: var(--gap);
  align-items: flex-start;
}
.screens figure {
  display: grid;
  gap: 10px;
  flex: 0 0 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3));
}
.screens img {
  width: 100%;
  border-radius: clamp(14px, 1.8vw, 26px);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.08), 0 24px 40px -24px rgba(20, 20, 20, 0.35);
}
@media (max-width: 640px) {
  .screens {
    --cols: 2 !important;
  }
}

/* app icon tiles, drawn from the vector M. mark */
.app-icons {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: clamp(14px, 1.6vw, 24px);
  background: #fff;
}
.app-icon {
  width: clamp(110px, 16vw, 220px);
  aspect-ratio: 1;
  border-radius: 22%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}
.app-icon svg {
  width: 58%;
  height: auto;
}

/* looping walkthrough video */
.demo {
  display: flex;
  justify-content: center;
}
.demo video {
  display: block;
  width: 100%;
  max-width: min(100%, 82vh);
  height: auto;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: #333;
}

/* colour & type specimen */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.swatch {
  aspect-ratio: 1.2;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c);
  color: var(--t, #fff);
  font-size: 14px;
  font-weight: 500;
}
.swatch strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.typecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.typecard {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}
.typecard .aa {
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.typecard p {
  color: var(--muted);
  font-size: 14px;
}

/* illustration wall */
.wall {
  columns: 3 280px;
  column-gap: clamp(10px, 1.4vw, 20px);
}
.wall button {
  display: block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.4vw, 20px);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  break-inside: avoid;
}
.wall img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.wall button:hover img {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 0 24px 40px -20px rgba(20, 20, 20, 0.4);
}

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
}
.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* next project */
.next {
  display: block;
  padding: clamp(60px, 9vw, 140px) var(--pad);
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius) var(--radius) 0 0;
  text-decoration: none;
}
.next .label {
  opacity: 0.75;
}
.next__title {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: clamp(52px, 10vw, 190px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-top: 16px;
}
.next__title span {
  transition: transform 0.5s var(--ease);
}
.next:hover .next__title span {
  transform: translateX(0.15em);
}
.mini-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
}
.mini-footer a {
  color: #fff;
}

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--bb-bright);
  outline-offset: 3px;
}
