/* Figtree (SIL Open Font License), self-hosted */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/figtree-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/figtree-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --purple-1: #987fff;
  --ink: #2d2d3b;
  --page: #fafafa;
  --card: #f4f2ff;
  --dark-thumb: #3f405a;
  --green-thumb: #ebf6e5;
  --radius-card: 24px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: var(--page);
}
.logo { display: inline-flex; }
/* Language switch (EN / FR): segmented pill, same language as the CTA */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--card);
  border-radius: 14.4px;
  box-shadow: inset 0 0 0 1px rgba(152, 127, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  border-radius: 10.4px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.lang-switch a:not([aria-current]):hover { background: rgba(152, 127, 255, 0.16); }
.lang-switch a[aria-current="true"] {
  background: var(--purple-1);
  color: #fff;
  box-shadow: -1px 3px 6px rgba(90, 49, 255, 0.35), inset 1.5px -1.5px 0 rgba(209, 198, 255, 0.5);
}
.lang-switch a:focus-visible { outline: 2px solid var(--purple-1); outline-offset: 2px; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 1476px; /* 1284px of content + 96px side margins */
  margin: 0 auto;
  padding: 0 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Gradient card (hero + contact), recreates the Figma blurred ellipses */

.card-presentation {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 40px;
  background-color: #e6e0f9;
  background-image: radial-gradient(60% 90% at 8% 10%, #f3f0fe 0%, rgba(243, 240, 254, 0) 70%);
  background-repeat: no-repeat;
}
.card-presentation > * { position: relative; z-index: 1; }
/* Purple and pink halos live on separate layers with different durations, so they never move together */
.card-presentation::before,
.card-presentation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 170% 170%, 170% 170%;
}
.card-presentation::before {
  background-image:
    radial-gradient(50% 80% at 50% 50%, #aa90f8 0%, rgba(170, 144, 248, 0) 72%),
    radial-gradient(40% 70% at 50% 50%, #c4a8f8 0%, rgba(196, 168, 248, 0) 70%);
  background-position: 70% 0%, 20% 100%;
  animation: halo-purple 7s ease-in-out infinite alternate;
}
.card-presentation::after {
  background-image:
    radial-gradient(34% 60% at 50% 50%, #f5b0f0 0%, rgba(245, 176, 240, 0) 72%),
    radial-gradient(29% 52% at 50% 50%, #f9c8f6 0%, rgba(249, 200, 246, 0) 70%);
  background-position: 100% 100%, 0% 30%;
  animation: halo-pink 4.5s ease-in-out -2s infinite alternate;
}
@keyframes halo-purple {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 100% 60%, 0% 20%; }
}
@keyframes halo-pink {
  0%   { background-position: 100% 100%, 0% 0%; }
  100% { background-position: 10% 20%, 100% 90%; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero .card-presentation { flex: 1 1 950px; min-height: 426px; display: flex; align-items: center; }
.hero-text { padding: 48px 56px; max-width: 800px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

h1 { margin: 0; font-size: 48px; line-height: 60px; font-weight: 400; }
h1 span { display: block; }
.h1-bold { font-weight: 700; }
.lead { margin: 0; font-size: 20px; line-height: 1.35; }
.availability { margin: 0; font-size: 22px; }
.availability strong { font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 14.4px;
  background: var(--purple-1);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: -1px 6.8px 9px rgba(90, 49, 255, 0.4), inset 1.5px -1.5px 0 rgba(209, 198, 255, 0.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: -1px 9px 12px rgba(90, 49, 255, 0.45), inset 1.5px -1.5px 0 rgba(209, 198, 255, 0.5); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.picture-card { flex: 0 0 249px; height: 323px; }
.picture-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 21.5px; }

/* ---------- Themes ---------- */
.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  --theme-gap: 104px; /* 48px + 8px dot + 48px, as in the Figma file */
  column-gap: var(--theme-gap);
  font-size: 14px;
  text-transform: uppercase;
  line-height: 60px;
}
.themes li { position: relative; display: flex; align-items: center; }
/* The dot sits in the gap after each word, so a wrapped line never starts with one */
.themes li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--theme-gap) / -2 - 4px);
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--purple-1);
}

/* ---------- Works ---------- */
.works { padding: 0 16px; }
.works h2 { margin: 0 0 24px; font-size: 28px; font-weight: 500; }

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  min-height: 490px;
  background: var(--card);
  border-radius: var(--radius-card);
  transition: box-shadow .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
/* Hover state from the Figma component: blurred pink glow + grain + tinted shadow */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 133px; top: -28px;
  width: 409px; height: 409px;
  border-radius: 50%;
  background: #eca0ff;
  filter: blur(76px);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8  0 0 0 0 0  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-image: radial-gradient(circle 240px at 337px 176px, #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 240px at 337px 176px, #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover, .card:focus-within { box-shadow: -4px 6px 16px rgba(179, 133, 201, 0.5); }
.card:hover { transform: translateY(-4px) scale(1.035); }
.card:hover::before { opacity: .42; animation: glow-float 1.8s ease-in-out infinite alternate; }
.card:hover::after { opacity: .35; }
/* --sx/--sy = where the glow starts; a new side is picked on every hover (see script in index pages) */
.card { --sx: 60px; --sy: -30px; }
@keyframes glow-float {
  0%   { transform: translate(var(--sx), var(--sy)) scale(.9); }
  50%  { transform: translate(calc(var(--sx) * -.7), calc(var(--sy) * -.7)) scale(1.2); }
  100% { transform: translate(calc(var(--sx) * .3), calc(var(--sy) * .3)) scale(1); }
}
/* The whole card is clickable; the "See the project" label gives way to the glow */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); }
.card-link { transition: opacity .2s ease, background .15s ease; }
.card:hover .card-link:not(:focus-visible) { opacity: 0; }

.thumb {
  height: 230px;
  overflow: hidden;
  border: 1px solid #f5f5f5;
  border-radius: 17px;
}
.thumb--dark { background: var(--dark-thumb); }
.thumb--green { background: var(--green-thumb); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.card-titles h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.card-titles p { margin: 0; font-size: 18px; line-height: 1.4; }

.card-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand-logo { height: 36px; width: 89px; object-fit: contain; object-position: left center; }
.brand-logo--empty { display: block; }
.card-link {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease;
}
.card-link:focus-visible { outline: 2px solid var(--purple-1); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--purple-1); outline-offset: 2px; }
.card-link:focus-visible { outline: none; }
@media (hover: none) { .card:hover .card-link { opacity: 1 !important; } }
/* Reduced motion: the slow background drift stays (no movement of content), the card zoom goes */
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } .card-presentation::before, .card-presentation::after { animation-duration: 16s; } .card:hover::before { animation: none; } }

/* ---------- Contact ---------- */
.contact { width: 100%; max-width: 1476px; margin: 64px auto 48px; padding: 0 96px; }
.card-presentation--contact { border-radius: 40px; }
.contact-inner { padding: 30px 58px 34px; display: flex; flex-direction: column; gap: 16px; }
.contact-line { margin: 0; font-size: 20px; }
.contact-line strong { font-weight: 700; }
.contact-line a { text-underline-offset: 3px; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13.3px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: background .15s ease;
}
.socials a:hover { background: rgba(255, 255, 255, 0.95); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .page, .contact { padding-left: 48px; padding-right: 48px; }
  .hero { gap: 32px; }
  .hero-text { padding: 40px; }
  h1 { font-size: 40px; line-height: 50px; }
  .picture-card { flex: 0 0 200px; height: 260px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet portrait and mobile: the photo goes away, the hero takes the full width */
@media (max-width: 900px) {
  .picture-card { display: none; }
  .themes { --theme-gap: 48px; }
}

@media (max-width: 720px) {
  .site-header { padding: 20px; }
  .page { padding: 0 16px; gap: 28px; }
  .hero-text { padding: 32px 24px; gap: 20px; }
  h1 { font-size: 34px; line-height: 42px; }
  .lead { font-size: 18px; }
  .availability { font-size: 20px; }
  .themes { --theme-gap: 32px; font-size: 14px; line-height: 40px; }
  .works { padding: 0; }
  .projects { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .contact { padding: 0 16px; margin: 40px auto 32px; }
  .contact-inner { padding: 24px; }
  .contact-line { font-size: 17px; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =====================================================
   Project pages
   ===================================================== */
.header-right { display: flex; align-items: center; gap: 24px; }
.back-link { font-size: 20px; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project {
  width: 100%;
  max-width: 1152px; /* 960px column + 96px side margins */
  margin: 0 auto;
  padding: 24px 96px 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.project h1, .project h2, .project h3, .project p, .project ul, .project ol, .project figure { margin: 0; }
.project p, .project li { font-size: 16px; line-height: 1.5; font-weight: 400; }
.project strong { font-weight: 700; }

/* Heading */
.project-head { display: flex; flex-direction: column; gap: 32px; }
.project-hero { aspect-ratio: 960 / 284; overflow: hidden; border-radius: 16px; background: #ebf4ff; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-title { font-size: 48px; line-height: 60px; font-weight: 400; }
.project-title strong { font-weight: 700; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 500; }
.project-meta strong { font-weight: 700; }
.project-brief { display: flex; flex-direction: column; gap: 4px; }
.project-brief p { line-height: 1.35; }
.rule { width: 100%; height: 1px; margin: 0; border: 0; background: rgba(152, 127, 255, 0.3); }
.intro { font-size: 24px !important; line-height: 1.35 !important; }

/* Text + visual rows */
.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding: 0; }
.split--center { align-items: center; }
.split__text { flex: 0 0 288px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split__text--wide { flex-basis: 385px; }
.split--context .split__text { flex: 1 1 0; }
.split h2, .lowfi h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.split__text ol { padding-left: 24px; }

.figure { display: flex; flex-direction: column; align-items: center; gap: 24px; min-width: 0; }
.figure figcaption { max-width: 385px; font-size: 14px; font-style: italic; text-align: center; line-height: 1.4; }

.shot { display: block; width: 100%; height: auto; }
.shot--wide { border-radius: 19px; }

/* Visuals exported from Figma @2x: they already include the white card and its shadow.
   Negative margins pull the transparent shadow area out of the layout so the card edges line up. */
.project .visual {
  flex: 0 1 calc(var(--w) * 1px);
  min-width: 0;
  margin: calc(var(--pt) * -1px) calc(var(--pr) * -1px) calc(var(--pb) * -1px) calc(var(--pl) * -1px);
}
.visual img { display: block; width: 100%; height: auto; }
.figure--context { gap: 0; }
.figure--context figcaption { margin-top: -4px; }

/* Facts */
.facts {
  width: 100%;
  max-width: 870px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.fact { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; background: #f1dafc; border-radius: 16px; }
.fact h3 { font-size: 16px; font-weight: 500; text-align: center; }

/* Note banner */
.note { padding: 12px; background: var(--card); border: 1px solid rgba(173, 153, 252, 0.1); border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.note__head { display: flex; align-items: center; gap: 8px; }
.note__head p { font-weight: 500; }
.note > p { padding-left: 34px; }

/* Low-fi */
.lowfi { display: flex; flex-direction: column; gap: 16px; }
.lowfi .shot { margin-top: 16px; }

.solution-title { font-size: 32px; line-height: 1.3; font-weight: 600; padding-top: 24px; margin: 0; }

/* Takeaways */
.takeaways { display: flex; flex-direction: column; gap: 24px; }
.takeaways h2 { font-size: 24px; font-weight: 700; }
.takeaways ul { padding-left: 28px; display: flex; flex-direction: column; gap: 8px; }
.takeaways li { font-size: 20px; line-height: 1.4; }

/* Previous / Next */
.pager { display: flex; justify-content: center; gap: 64px; padding: 80px 0 72px; }
.pager__link { padding: 8px 12px; border-radius: 8px; font-size: 16px; text-decoration: none; transition: background .15s ease; }
a.pager__link:hover { background: rgba(152, 127, 255, 0.14); }
.pager__link.is-disabled { color: rgba(45, 45, 59, 0.2); }

@media (max-width: 1200px) {
  .project { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 900px) {
  .split, .split--center { flex-direction: column; align-items: stretch; gap: 24px; }
  .split__text, .split__text--wide, .split--context .split__text { flex: none; }
  .project .visual { flex: none; width: 100%; margin: 0; }
  .desk { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .back-link { font-size: 15px; }
  .header-right { gap: 12px; }
  .hide-sm { display: none; }
  .project { padding: 8px 16px 0; gap: 48px; }
  .project-title { font-size: 34px; line-height: 42px; }
  .intro { font-size: 20px !important; }
  .solution-title { font-size: 28px; padding-top: 8px; }
  .takeaways li { font-size: 18px; }
  .pager { gap: 32px; padding-top: 56px; padding-bottom: 48px; }
}

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

/* Wide diagrams stay readable on small screens: scroll instead of shrinking */
.scroll-x { margin-top: 16px; }
.lowfi .scroll-x .shot { margin-top: 0; }
@media (max-width: 900px) {
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 19px; }
  .scroll-x .shot--wide { width: 860px; max-width: none; }
}

/* ---------- Live Activities page ---------- */
.split__text--lg { flex-basis: 412px; }
.split--solo { justify-content: center; }
.split--pair { justify-content: center; gap: 64px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project .tags li { font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; background: #e9defc; color: var(--ink); }
.project .section-head { display: flex; flex-direction: column; gap: 16px; }
.project .section-head h2 { font-size: 20px; line-height: 1.3; font-weight: 600; max-width: 507px; }
.block { display: flex; flex-direction: column; gap: 24px; }
.block__body { display: flex; flex-direction: column; gap: 16px; }
.block__body ul { padding-left: 24px; }
.note--info .note__icon { flex: none; }
.note--info > p { padding-left: 34px; }
@media (max-width: 900px) {
  .split--solo, .split--pair { flex-direction: column; align-items: stretch; gap: 24px; }
}

/* ---------- Midnight page ---------- */
.split__text--md { flex-basis: 310px; }
.split__text--md2 { flex-basis: 329px; }
.tags--text { margin-top: 0; }
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 870px; margin: 0 auto; }
.goal { background: #f1dafc; border-radius: 16px; padding: 20px 24px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; min-height: 170px; }
.goal h3 { font-size: 16px; font-weight: 400; line-height: 1.5; }
.goal p { font-size: 16px; line-height: 1.5; }
.note--list ul { margin: 0; padding-left: 52px; }
.note--list li { font-size: 16px; line-height: 1.5; }
.note--list .note__head { margin-bottom: 4px; }
.note--lg { padding: 12px 12px 16px; }
.action-plan { display: flex; flex-direction: column; gap: 16px; }
.visual--plain { flex: 0 1 870px; margin: 0; max-width: 100%; }
.visual--plain img { border-radius: 16px; }
.split--solo .visual--plain { flex-basis: 870px; }

/* Carousel (personas, pain points) */
.carousel { position: relative; }
.carousel__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport img { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__bar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: -16px; position: relative; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: #ece7ff; color: var(--purple-1); cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn--prev svg { transform: scaleX(-1); }
.carousel__btn:hover:not(:disabled) { background: #e1d9ff; transform: scale(1.06); }
.carousel__btn:disabled { opacity: .45; cursor: default; }
.carousel__btn:focus-visible, .carousel__dot:focus-visible { outline: 2px solid var(--purple-1); outline-offset: 2px; }
.carousel__dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #d5ccf7; cursor: pointer; transition: width .2s, background .2s; }
.carousel__dot[aria-current="true"] { background: var(--purple-1); width: 22px; border-radius: 4px; }
@media (max-width: 900px) {
  .visual--plain { flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .goals { grid-template-columns: 1fr; }
  .goal { min-height: 0; }
}

/* ---------- AI design process page ---------- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid rgba(173,153,252,.1); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 16px; font-weight: 700; line-height: 1.4; color: #7b62e8; letter-spacing: .02em; }
.step p, .step li { font-size: 16px; line-height: 1.5; }
.step ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.step strong { font-weight: 700; }
.demo { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.demo--rev { flex-direction: row-reverse; }
.demo__phone { flex: 0 0 228px; margin: 0; }
.demo__phone video, .demo__phone img { display: block; width: 228px; height: auto; border-radius: 25px; background: #0f0f0f; }
.demo__phone video.is-timer { border-radius: 20px; }
.demo__text { flex: 0 1 578px; display: flex; flex-direction: column; gap: 16px; }
.demo__text h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.demo .demo__phone.demo__phone--pad { margin: 0 0 0 90px; }
.demo.demo--rev .demo__phone.demo__phone--pad { margin: 0 90px 0 0; }
.demo { align-items: flex-start; }
.demo__text { padding-top: 48px; }
.demo--rev .demo__text { align-items: flex-end; text-align: right; }
.demo--rev .tags { justify-content: flex-end; }
.demo__phone video[poster] { background: #0f0f0f; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .demo, .demo--rev { flex-direction: column; align-items: flex-start; gap: 24px; }
  .demo--rev .demo__text { align-items: flex-start; text-align: left; }
  .demo--rev .tags { justify-content: flex-start; }
  .demo .demo__phone.demo__phone--pad, .demo.demo--rev .demo__phone.demo__phone--pad { margin: 0; }
  .demo__text { padding-top: 0; }
}

/* ---------- Keystones page ---------- */
.fig { width: calc(var(--fw) * 1px); max-width: 100%; flex: 0 1 auto; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.split > .fig { flex: 0 1 calc(var(--fw) * 1px); width: auto; }
.split--top { align-items: flex-start; }
.keys-solo .fig, .block > .fig { align-self: center; }
.fig img { display: block; width: 100%; height: auto; }
.fig--bleed img { mix-blend-mode: multiply; } /* white wireframe export blends into the page background */
.fig figcaption { font-size: 14px; line-height: 1.4; text-align: center; color: var(--ink); }
.fig--center { align-self: center; }
.keys-lead { font-weight: 600; }
.keys-inline { display: flex; flex-direction: column; gap: 16px; }
.keys-inline .fig { max-width: 100%; }
.keys-solo { display: flex; justify-content: center; }
@media (max-width: 900px) { .split > .fig { flex: none; width: 100%; max-width: calc(var(--fw) * 1px); } }

@media (max-width: 900px) { .split__text.keys-inline, .split > .split__text { flex: none !important; width: 100%; max-width: 100%; } }

/* ---------- Coyote page ---------- */
.quote { font-size: 20px; line-height: 1.4; font-weight: 600; margin: 0; }
.banner-link { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--card); border: 1px solid rgba(173,153,252,.1); border-radius: 16px; }
.banner-link img { flex: none; width: 99px; height: auto; border-radius: 8px; }
.banner-link__text { display: flex; flex-direction: column; gap: 4px; }
.banner-link__text p { font-size: 16px; line-height: 1.4; }
.banner-link__title { font-weight: 600; }
.banner-link a { color: #5a31ff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) { .fig--bleed { width: calc(100% + 48px); max-width: none; margin-inline: -24px; } }
@media (max-width: 560px) { .banner-link { flex-direction: column; align-items: flex-start; } }

/* Short note about the language of the visuals */
.lang-note { margin-top: 16px; font-size: 14px; font-style: italic; color: rgba(45, 45, 59, .65); }
