/*
 * curs.ai — portfolio of Safwane Salihi
 *
 * Clean: a white page, near-black type, one yellow. The hero follows the
 * reference: logo, three links, one pill; the portrait across the full width,
 * blurring out at the foot; status and headline bottom-left, paragraph and
 * button bottom-right.
 *
 * Every shape is glass, the iOS way: translucent, blurred behind, a bright
 * edge on top. Soft yellow light sits behind the page for the glass to catch.
 *
 * Kept from the Bawsala system: Thmanyah Sans only, pills, rounded corners,
 * Fibonacci spacing and radii, sections that rise in on scroll.
 */

@font-face {
  font-family: "Thmanyah Sans";
  src: url("assets/fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("assets/fonts/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("assets/fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Colour: white, ink, one yellow */
  --bg: #ffffff;
  --fg: #10100f;
  --fg-soft: #4f4d47;
  --fg-faint: #6d6a62;
  --line: rgb(16 16 15 / 0.1);
  --yellow: #ffd400; /* a yellow that pops */
  --yellow-ink: #6f5a00; /* yellow as text on white */

  /* Glass */
  --glass: linear-gradient(135deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.38));
  --glass-yellow: linear-gradient(135deg, rgb(255 224 51 / 0.96), rgb(255 208 0 / 0.9));
  --glass-ink: linear-gradient(135deg, rgb(48 48 45 / 0.86), rgb(16 16 15 / 0.8));
  --glass-edge: rgb(255 255 255 / 0.85);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(16 16 15 / 0.04), 0 0 0 1px rgb(16 16 15 / 0.05),
    0 21px 34px -21px rgb(16 16 15 / 0.22);
  --glass-blur: blur(21px) saturate(1.8);
  --glass-grey: linear-gradient(135deg, rgb(150 148 140 / 0.2), rgb(90 88 82 / 0.1));

  /* Spacing: Fibonacci */
  --s1: 8px;
  --s2: 13px;
  --s3: 21px;
  --s4: 34px;
  --s5: 55px;
  --s6: 89px;
  --s7: 144px;

  /* Radius: Fibonacci */
  --r-sm: 8px;
  --r-md: 13px;
  --r-lg: 21px;

  /* Type: the hero scales with the screen, as the reference does */
  --t-display: clamp(1.35rem, 2.9vw, 2.75rem);
  --t-title: clamp(1.5rem, 2.3vw, 2.2rem);
  --t-subtitle: 1.272rem;
  --t-body-lg: 1.128rem;
  --t-body: 1rem;
  --t-caption: 0.887rem;
  --t-label: 0.786rem;

  --font: "Thmanyah Sans", system-ui, sans-serif;
  --pad: clamp(21px, 3vw, 55px);
  --header-h: clamp(52px, 5.4vw, 68px);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--s6);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
::selection {
  background-color: var(--yellow);
  color: var(--fg);
}
.skip {
  position: absolute;
  inset-inline-start: var(--s2);
  top: var(--s2);
  z-index: 60;
  translate: 0 -300%;
}
.skip:focus {
  translate: 0 0;
}

/* ── Glass: one recipe for every shape ───────────────────────────────────── */
.card,
.slot,
.shot,
.draft,
.header.is-stuck {
  background-image: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn-yellow,
.cta {
  background-image: var(--glass-yellow);
  border: 1px solid rgb(255 255 255 / 0.6);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    inset 0 -1px 0 rgb(16 16 15 / 0.06),
    0 21px 34px -21px rgb(16 16 15 / 0.32);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn-ink {
  background-image: var(--glass-ink);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 21px 34px -21px rgb(16 16 15 / 0.5);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Soft yellow light behind the page, for the glass to catch. */
.below {
  position: relative;
}
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* Fade out at the foot, so a short page has no hard edge of light. */
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.ambient i {
  position: absolute;
  width: clamp(377px, 38vw, 987px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(closest-side, rgb(255 212 0 / 0.26), rgb(255 212 0 / 0));
}
.ambient i:nth-child(1) {
  top: 1%;
  right: -8%;
}
.ambient i:nth-child(2) {
  top: 19%;
  left: -12%;
}
.ambient i:nth-child(3) {
  top: 38%;
  right: -6%;
}
.ambient i:nth-child(4) {
  top: 57%;
  left: -8%;
}
.ambient i:nth-child(5) {
  top: 76%;
  right: -10%;
}
/* ── Scroll motion ───────────────────────────────────────────────────────── */
@keyframes reveal {
  from {
    translate: 0 55px;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Layout: a share of each screen, centred ─────────────────────────────── */
/* The content takes a percentage of the screen's width, never the whole of
   it; the share narrows as the screen grows. */
:root {
  --wrap: calc(100% - 32px); /* phones: a 16px gutter each side */
}
@media (min-width: 760px) {
  :root {
    --wrap: 90%;
  }
}
@media (min-width: 1280px) {
  :root {
    --wrap: 86%;
  }
}
@media (min-width: 1920px) {
  :root {
    --wrap: 82%;
  }
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.section {
  position: relative;
  padding-top: var(--s6);
}
@media (min-width: 900px) {
  .section {
    padding-top: var(--s7);
  }
}

/* ── Type ────────────────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--yellow);
}
.title {
  margin-top: var(--s2);
  font-size: var(--t-title);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* The yellow, used as a marker under a word. */
.tint {
  background-image: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%);
}
.lead {
  max-width: 40rem;
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.caption {
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-faint);
}
.head {
  display: grid;
  gap: var(--s3);
}
@media (min-width: 900px) {
  .head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--s5);
  }
}

/* A slot Safwane fills himself. */
.fill {
  display: inline-block;
  padding: 1px var(--s1);
  border: 1px dashed var(--yellow-ink);
  border-radius: var(--r-sm);
  font-size: var(--t-label);
  line-height: 1.618;
  font-weight: 500;
  color: var(--yellow-ink);
  white-space: nowrap;
}
.fill.is-current {
  background-color: var(--yellow);
  border-style: solid;
  color: var(--fg);
}
html[data-draft="off"] .fill,
html[data-draft="off"] .draft {
  display: none;
}

/* ── Buttons: glass pills ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(36px, 3.6vw, 44px);
  padding: 0 1.35em;
  border-radius: 999px;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    translate 200ms,
    filter 200ms;
}
.btn:hover {
  translate: 0 -2px;
  filter: brightness(1.05);
}
.btn-yellow {
  color: var(--fg);
}
.btn-ink {
  color: var(--bg);
}
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ── Header: logo · pages · language + pill ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border: 1px solid transparent;
  border-width: 0 0 1px;
}
.header.is-stuck,
.header.is-open {
  border-width: 0 0 1px;
  box-shadow: 0 13px 34px -21px rgb(16 16 15 / 0.2);
}
.header.is-open {
  background-color: var(--bg);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 100%;
}
.brand {
  justify-self: start;
}
.brand img {
  height: clamp(20px, 2.3vw, 34px);
  width: auto;
}
.nav {
  display: flex;
  gap: clamp(21px, 2.6vw, 34px);
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  font-weight: 500;
}
.nav a {
  padding-block: var(--s1);
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 250ms;
}
html[dir="rtl"] .nav a {
  background-position: 100% 100%;
}
.nav a:hover,
.nav a[aria-current] {
  background-size: 100% 2px;
}
.header-end {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--s2);
}
.lang-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 0 var(--s2);
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: rgb(255 255 255 / 0.6);
  font-size: var(--t-caption);
  font-weight: 500;
  transition: border-color 200ms, background-color 200ms;
}
.lang-toggle:hover {
  border-color: var(--yellow-ink);
  background-color: var(--bg);
}
.menu-btn {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  border-radius: 999px;
}
.menu-btn i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--fg);
  transition: translate 200ms, rotate 200ms;
}
.menu-btn[aria-expanded="true"] i:first-child {
  translate: 0 3.5px;
  rotate: 45deg;
}
.menu-btn[aria-expanded="true"] i:last-child {
  translate: 0 -3.5px;
  rotate: -45deg;
}
.header .btn {
  display: none;
}
/* Phones: logo, language and a menu button; the pages open in a panel. */
@media (max-width: 759px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--s1) 16px var(--s3);
    background-color: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 21px 34px -21px rgb(16 16 15 / 0.22);
    font-size: var(--t-body-lg);
  }
  .header.is-open .nav {
    display: flex;
  }
  .nav a {
    padding-block: var(--s2);
    border-bottom: 1px solid var(--line);
    background-image: none;
  }
  .nav a[aria-current] {
    color: var(--yellow-ink);
  }
}
@media (min-width: 760px) {
  .header-row {
    grid-template-columns: 1fr auto 1fr;
  }
  .nav {
    justify-self: center;
  }
  .header .btn {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}

/* hidden always wins over a component's display. */
[hidden] {
  display: none !important;
}

/* ── Two languages ───────────────────────────────────────────────────────── */
/* Each text is written twice; only the visitor's language shows. */
html[data-lang="en"] [data-l="ar"],
html[data-lang="ar"] [data-l="en"] {
  display: none !important;
}
/* Arabic: no negative tracking (it breaks the joins), a little more leading. */
html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3,
html[data-lang="ar"] .title {
  letter-spacing: 0;
  line-height: 1.4;
}
html[data-lang="ar"] p,
html[data-lang="ar"] li,
html[data-lang="ar"] .lead {
  line-height: 1.8;
}

/* ── Hero: the reference ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* The reference's proportions (734 × 491), sized from the page's width;
     never taller than the screen. */
  height: min(100svh, 66.9vw);
  height: min(100svh, round(down, 66.9vw, 1px)); /* whole pixels: no seam at the foot */
  min-height: 400px;
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
}
/* A last white edge over the foot, above the blur layers. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background-color: var(--bg);
}
/* The photo, whole and as shot (its studio background is already white),
   at 100% of the hero's width. It stands on the foot of the hero, so nothing
   is cropped below; the hair sits about 11% down, as in the reference. */
.hero-photo {
  position: absolute;
  /* Same width as the content, centred: not the full screen. */
  inset: 0 calc((100% - var(--wrap)) / 2);
  container-type: size;
  overflow: hidden;
}
/* Both the photo and its blur are placed from the same two numbers. */
.hero-photo > * {
  --w: min(100cqw, 128cqh); /* room above the hair, under the header */
  /* The foot of the photo sits 8% of the hero above the hero's foot, so the
     shoulders show above the blur instead of running off the bottom. */
  --t: calc(92cqh - var(--w) * 0.7325); /* 2659 / 3630 */
}
.hero-photo img {
  position: absolute;
  top: var(--t);
  left: 50%;
  width: var(--w);
  height: auto;
  max-width: none;
  translate: -50% 0;
  /* The studio white measures 251–255 near the frame's edges; this lifts it
     to the page's white. Nothing else in the photo is touched. */
  filter: brightness(1.02);
}
/* The foot of the photo goes out of focus, as in the reference. Six layers,
   each blurring twice as much as the one before and starting a little
   lower, so no step shows. It starts just under the chin. */
.hero-blur {
  position: absolute;
  top: calc(var(--t) + var(--w) * 0.5);
  inset-inline: 0;
  bottom: -13px;
  pointer-events: none;
}
.hero-blur > * {
  position: absolute;
  inset: 0;
}
.hero-blur i:nth-child(1) {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
  mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.hero-blur i:nth-child(2) {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 10%, #000 26%);
}
.hero-blur i:nth-child(3) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 22%, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 22%, #000 40%);
}
.hero-blur i:nth-child(4) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 34%, #000 54%);
  mask-image: linear-gradient(to bottom, transparent 34%, #000 54%);
}
.hero-blur i:nth-child(5) {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 48%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 48%, #000 70%);
}
.hero-blur i:nth-child(6) {
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 62%, #000 88%);
  mask-image: linear-gradient(to bottom, transparent 62%, #000 88%);
}
/* Light over the blur, all in long ramps: a little everywhere, more toward
   the sides where the text sits, and the last strip melting into the page. */
.hero-blur b:nth-of-type(1) {
  background-image: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0),
    rgb(255 255 255 / 0.1) 20%,
    rgb(255 255 255 / 0.3) 45%,
    rgb(255 255 255 / 0.46) 70%,
    rgb(255 255 255 / 0.56)
  );
}
.hero-blur b:nth-of-type(2),
.hero-blur b:nth-of-type(3) {
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.7) 15%, #000 32%);
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.7) 15%, #000 32%);
}
.hero-blur b:nth-of-type(2) {
  background-image: linear-gradient(
    to right,
    rgb(255 255 255 / 0.88) 28%,
    rgb(255 255 255 / 0.6) 38%,
    rgb(255 255 255 / 0.24) 46%,
    rgb(255 255 255 / 0) 54%
  );
}
.hero-blur b:nth-of-type(3) {
  background-image: linear-gradient(
    to left,
    rgb(255 255 255 / 0.88) 30%,
    rgb(255 255 255 / 0.6) 38%,
    rgb(255 255 255 / 0.24) 45%,
    rgb(255 255 255 / 0) 52%
  );
}
.hero-blur b:nth-of-type(4) {
  inset: auto 0 0;
  height: calc(16cqh + 13px);
  background-image: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0),
    rgb(255 255 255 / 0.28) 32%,
    rgb(255 255 255 / 0.74) 62%,
    #fff 86%
  );
}
.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 5.5%;
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 30%);
  justify-content: space-between;
  align-items: end;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: clamp(0.75rem, 1.05vw, 0.95rem);
  color: var(--fg-soft);
}
.status-dot {
  position: relative;
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: var(--yellow);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  animation: halo 3.4s ease-in-out infinite;
}
@keyframes halo {
  0%,
  100% {
    opacity: 0.2;
    scale: 0.8;
  }
  50% {
    opacity: 1;
    scale: 1.3;
  }
}
.hero h1 {
  margin-top: var(--s2);
  font-size: var(--t-display);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 13.5em;
  text-wrap: balance;
}
.hero-aside {
  padding-bottom: clamp(8px, 3svh, 34px);
}
.hero-aside p {
  font-size: clamp(0.8rem, 1.15vw, 1.05rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-aside .btn {
  margin-top: var(--s3);
}

@media (max-width: 759px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    width: var(--wrap);
    margin-inline: auto;
    /* Tall enough for the photo at 1.6× the content's width (1.6 × 0.7325),
       plus the header that sits over it. */
    height: calc((100vw - 32px) * 1.172 + var(--header-h));
    overflow: hidden;
    /* The photo is wider than the frame; its sides fade into the white
       instead of ending on a hard edge. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
  }
  .hero-photo > * {
    --w: 160cqw;
    --t: calc(100cqh - var(--w) * 0.7325);
  }
  .hero-content {
    position: relative;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: calc(var(--s4) * -1);
  }
  .hero-aside {
    padding-bottom: 0;
  }
}

/* ── Cards, slots, frames ────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  border-radius: var(--r-lg);
}
.card h3 {
  font-size: var(--t-subtitle);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--fg-soft);
}
.no {
  font-size: var(--t-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}
.grid {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}
.slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1.618 / 1;
  border-radius: var(--r-md);
  text-align: center;
}
.slot > div {
  display: grid;
  justify-items: center;
  gap: var(--s1);
  padding: var(--s2);
}
.slot.tall {
  aspect-ratio: 1 / 1.236;
}
.slot.big {
  border-radius: var(--r-lg);
}
.shot {
  border-radius: var(--r-md);
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ── Contact: the one yellow pane ────────────────────────────────────────── */
.cta {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) var(--s3);
  border-radius: var(--r-lg);
}
.cta .kicker {
  color: var(--fg);
}
.cta .kicker::before {
  background-color: var(--fg);
}
.cta .title {
  font-size: var(--t-display);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.cta .lead {
  margin-top: var(--s2);
  color: var(--fg);
}
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.cta .link {
  text-decoration-color: var(--fg);
}
.cta .fill {
  border-color: var(--fg);
  color: var(--fg);
}
@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1.618fr 1fr;
    align-items: end;
    padding: var(--s6) var(--s5);
  }
  .cta .actions {
    justify-content: flex-end;
  }
}

/* ── Page intro (Work, About, Contact) ───────────────────────────────────── */
.page-intro {
  padding-top: var(--s5);
}
.page-intro .title {
  font-size: var(--t-display);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.page-intro .lead {
  margin-top: var(--s3);
}
@media (min-width: 900px) {
  .page-intro {
    padding-top: var(--s6);
  }
}

/* ── Work tiles (home) and the gallery (Work) ───────────────────────────── */
.tiles,
.gallery {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
.tile {
  display: grid;
  gap: var(--s2);
}
.tile .slot,
.tile .shot {
  aspect-ratio: 4 / 3;
  transition: translate 250ms;
}
.tile:hover .slot,
.tile:hover .shot {
  translate: 0 -3px;
}
.tile h3 {
  font-size: var(--t-body-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tile p {
  margin-top: 2px;
  font-size: var(--t-caption);
  color: var(--fg-faint);
}
@media (min-width: 620px) {
  .tiles,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.more {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s4);
}

/* ── About ───────────────────────────────────────────────────────────────── */
/* Golden ratio throughout: photo and text columns at 1 : 1.618, the photo
   itself 1 : 1.236 (2/φ), the text centred against it. */
.about {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
}
.about-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  /* The studio white meets the page's white: a glass edge gives it a frame. */
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  background-color: var(--bg);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.236;
  object-fit: cover;
}
.prose {
  display: grid;
  align-content: center;
  gap: var(--s3);
}
.prose h2 {
  font-size: var(--t-subtitle);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.prose p {
  max-width: 38rem;
  font-size: var(--t-body-lg);
  line-height: 1.618;
  color: var(--fg-soft);
}
.timeline {
  display: grid;
  margin-top: var(--s2);
}
.timeline li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: var(--s2);
  padding-block: var(--s2);
  border-top: 1px solid var(--line);
}
.timeline b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.timeline span {
  color: var(--fg-soft);
}
.vision {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}
@media (min-width: 620px) {
  .vision {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 899px) {
  .about-media {
    max-width: 377px; /* a Fibonacci width, so the photo never fills a phone */
  }
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1.618fr;
    align-items: center;
    gap: var(--s6);
  }
}

/* ── Academy ─────────────────────────────────────────────────────────────── */
.tracks {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
.track {
  gap: var(--s3);
  padding: var(--s4) var(--s3);
}
.track h3 {
  font-size: var(--t-title);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.track > p {
  font-size: var(--t-body-lg);
  line-height: 1.618;
}
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--fg-soft);
}
.tag-lang {
  border-color: transparent;
  background-color: var(--yellow);
  color: var(--fg);
}
.checks {
  display: grid;
  margin-top: auto;
}
.checks li {
  display: flex;
  gap: var(--s2);
  padding-block: var(--s2);
  border-top: 1px solid var(--line);
}
.checks li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background-color: var(--yellow);
}
.steps-row {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (min-width: 620px) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .tracks {
    grid-template-columns: 1fr 1fr;
  }
  .track {
    padding: var(--s5);
  }
}

/* Academy landing */
.academy-hero {
  display: grid;
  gap: var(--s5);
  align-items: center;
  padding-top: var(--s5);
}
.academy-hero .title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.academy-hero .lead {
  margin-top: var(--s3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s4);
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 32px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.6);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--yellow);
}
.academy-photo {
  position: relative;
  max-width: 377px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.academy-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.236;
  object-fit: cover;
}
.academy-photo figcaption {
  position: absolute;
  inset: auto var(--s2) var(--s2);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-md);
  background-image: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: var(--t-caption);
  font-weight: 500;
}
@media (min-width: 900px) {
  .academy-hero {
    grid-template-columns: 1.618fr 1fr;
    gap: var(--s6);
    padding-top: var(--s6);
  }
  .academy-photo {
    max-width: none;
    justify-self: end;
    width: 100%;
  }
}
.track .btn {
  align-self: flex-start;
  margin-top: var(--s2);
}
.modules {
  display: grid;
  margin-top: var(--s1);
}
.modules li {
  display: flex;
  gap: var(--s3);
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
}
.mod-no {
  flex: none;
  font-size: var(--t-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--yellow-ink);
}
.modules div {
  display: grid;
  gap: 4px;
}
.modules b {
  font-weight: 500;
}
.modules div > span {
  color: var(--fg-soft);
}
.live-card {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) var(--s3);
}
.live-card .title {
  font-size: var(--t-title);
}
.live-card .lead {
  margin-top: var(--s2);
}
.live-steps {
  display: grid;
  align-content: center;
  gap: var(--s3);
}
.live-steps ol {
  display: grid;
  gap: var(--s2);
  counter-reset: live;
}
.live-steps li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 500;
  counter-increment: live;
}
.live-steps li::before {
  content: counter(live);
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--yellow);
  font-size: var(--t-label);
}
.live-steps .btn {
  justify-self: start;
}
.outcomes {
  display: grid;
  gap: var(--s4);
}
.outcomes .checks li {
  font-size: var(--t-body-lg);
}
.faq {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s5);
}
.faq details {
  gap: 0;
  padding: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3);
  font-size: var(--t-body-lg);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--yellow);
  font-size: 1.1rem;
  line-height: 1;
  transition: rotate 200ms;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  padding: 0 var(--s3) var(--s3);
  max-width: 44rem;
}
#apply .contact-form {
  margin-top: var(--s4);
}
@media (min-width: 900px) {
  .live-card {
    grid-template-columns: 1.618fr 1fr;
    padding: var(--s5);
    gap: var(--s5);
  }
  .outcomes {
    grid-template-columns: 1fr 1.618fr;
    gap: var(--s6);
    align-items: start;
  }
}

/* Live classroom */
.room {
  margin-top: var(--s4);
  padding: 0;
  overflow: hidden;
}
.room {
  height: min(78svh, 760px);
  min-height: 480px;
  border-radius: var(--r-lg);
}
.room iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Before the call: who may enter, and how. */
.room-gate {
  display: grid;
  justify-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  padding: var(--s6) var(--s3);
  text-align: center;
}
.room-gate h2 {
  font-size: var(--t-title);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.room-gate p {
  max-width: 34rem;
  margin: var(--s1) auto 0;
}
.room-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
}
.room-note {
  margin-top: var(--s2);
  font-size: var(--t-caption);
  color: var(--fg-faint);
}

/* Live page: the session a guest link points to */
.session-card {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
  padding: var(--s3);
}
.session-when {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  background-image: var(--glass-yellow);
}
.session-when b {
  font-size: var(--t-body-lg);
  font-weight: 500;
}
.session-card h2 {
  margin-top: var(--s1);
  font-size: var(--t-title);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.session-meta {
  margin-top: var(--s1);
  color: var(--fg-soft);
}
@media (min-width: 760px) {
  .session-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--s4);
  }
}

/* Admin */
.gate {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 200px);
  padding-block: var(--s5);
}
.gate-card {
  width: min(100%, 377px);
  gap: var(--s3);
  padding: var(--s4);
}
.gate-card .btn {
  justify-self: start;
  align-self: flex-start;
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s3);
}
.dash-head + .lead {
  margin-top: var(--s3);
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.dash-actions .lang-toggle,
.session-buttons .lang-toggle {
  min-height: clamp(36px, 3.6vw, 44px);
  padding: 0 1.35em;
}
.form-title,
.list-title {
  font-size: var(--t-subtitle);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.row-3 {
  display: grid;
  gap: var(--s3);
}
@media (min-width: 760px) {
  .contact-form .row.row-3 {
    grid-template-columns: 1.618fr 1fr 1fr;
  }
}
.sessions {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}
.session {
  display: grid;
  gap: var(--s3);
}
.session.is-fresh {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.sessions.is-past .session {
  opacity: 0.7;
}
.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.session h3 {
  margin-top: var(--s1);
}
.session-notes {
  margin-top: var(--s1);
  font-size: var(--t-caption);
  white-space: pre-line;
}
.session-share {
  display: grid;
  gap: var(--s2);
  align-content: center;
}
.session-link {
  width: 100%;
  min-height: 40px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: rgb(255 255 255 / 0.7);
  font: inherit;
  font-size: var(--t-caption);
  color: var(--fg-soft);
  direction: ltr;
}
.session-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.lang-toggle.danger:hover {
  border-color: #b42318;
  color: #b42318;
}
.empty {
  margin-top: var(--s2);
  color: var(--fg-faint);
}
@media (min-width: 1024px) {
  .session {
    grid-template-columns: 1fr 1.272fr;
    align-items: center;
    gap: var(--s4);
  }
}

/* Sign in / create account window */
.auth {
  width: min(calc(100% - 24px), 860px);
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  background-color: var(--bg);
  box-shadow: 0 55px 89px -34px rgb(16 16 15 / 0.5);
  color: var(--fg);
}
.auth[open] {
  display: grid;
  animation: auth-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes auth-in {
  from {
    opacity: 0;
    translate: 0 21px;
    scale: 0.98;
  }
}
.auth::backdrop {
  background-color: rgb(16 16 15 / 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* The dark side: logo, promise, three perks */
.auth-side {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s4) var(--s3) var(--s3);
  overflow: hidden;
  background-color: #f1f0ec;
  background-image: var(--glass-grey);
  border-inline-end: 1px solid var(--glass-edge);
  box-shadow: inset -1px 0 0 rgb(16 16 15 / 0.05);
  color: var(--fg);
}
.auth-side::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(closest-side, rgb(255 212 0 / 0.45), rgb(255 212 0 / 0));
  pointer-events: none;
}
html[dir="rtl"] .auth-side::after {
  inset: auto auto -40% -30%;
}
.auth-logo {
  width: auto;
  height: 26px;
}
.auth-pitch {
  max-width: 22ch;
  font-size: var(--t-subtitle);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.auth-perks {
  display: none;
  gap: var(--s2);
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
.auth-perks .icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background-image: var(--glass-yellow);
  color: var(--fg);
}

/* The form side */
.auth-main {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s4) var(--s3) var(--s3);
}
.auth-close {
  position: absolute;
  inset-inline-end: var(--s2);
  top: var(--s2);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--fg-soft);
  transition: background-color 200ms, rotate 200ms;
}
.auth-close:hover {
  background-color: rgb(16 16 15 / 0.06);
  rotate: 90deg;
}
.auth-title {
  padding-inline-end: var(--s5);
  font-size: var(--t-title);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.auth-sub {
  margin-top: calc(var(--s2) * -1);
  color: var(--fg-soft);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background-color: rgb(16 16 15 / 0.05);
}
.auth-tabs button {
  min-height: 40px;
  border-radius: 999px;
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
  transition: background-color 200ms, color 200ms, box-shadow 200ms;
}
.auth-tabs button[aria-selected="true"] {
  background-color: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(16 16 15 / 0.08), 0 8px 13px -8px rgb(16 16 15 / 0.25);
}
.auth-form {
  display: grid;
  gap: var(--s2);
}
.auth-form .field {
  gap: 6px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > .icon {
  position: absolute;
  inset-inline-start: var(--s2);
  width: 18px;
  height: 18px;
  color: var(--fg-faint);
  pointer-events: none;
  transition: color 200ms;
}
.auth .field input {
  min-height: 48px;
  padding-inline: calc(var(--s2) + 28px) var(--s2);
  border-color: rgb(16 16 15 / 0.12);
  background-color: rgb(16 16 15 / 0.025);
}
.auth .field input::placeholder {
  color: var(--fg-faint);
  opacity: 0.6;
}
.auth .field input:focus {
  background-color: var(--bg);
}
.input-wrap:focus-within > .icon {
  color: var(--fg);
}
.auth .input-wrap:has(.pass-toggle) input {
  padding-inline-end: 48px;
}
.pass-toggle {
  position: absolute;
  inset-inline-end: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--fg-faint);
}
.pass-toggle .icon {
  width: 18px;
  height: 18px;
}
.pass-toggle:hover,
.pass-toggle[aria-pressed="true"] {
  color: var(--fg);
  background-color: rgb(16 16 15 / 0.05);
}
.pass-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pass-meter i {
  height: 4px;
  border-radius: 4px;
  background-color: rgb(16 16 15 / 0.08);
  transition: background-color 200ms;
}
.pass-meter[data-level="1"] i:nth-child(1) {
  background-color: #e0a000;
}
.pass-meter[data-level="2"] i:nth-child(-n + 2) {
  background-color: var(--yellow);
}
.pass-meter[data-level="3"] i {
  background-color: #2e9d5b;
}
.pass-hint {
  margin-top: -4px;
  font-size: var(--t-label);
  color: var(--fg-faint);
}
.auth .form-note:empty {
  display: none;
}
.auth .form-note {
  padding: var(--s1) var(--s2);
  border-radius: var(--r-sm);
  background-color: rgb(180 35 24 / 0.08);
  color: #b42318;
}
.btn-block {
  width: 100%;
  min-height: 48px;
  margin-top: var(--s1);
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading span {
  opacity: 0;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn-block {
  position: relative;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.auth-foot {
  font-size: var(--t-caption);
  color: var(--fg-faint);
  text-align: center;
}
@media (min-width: 760px) {
  .auth[open] {
    grid-template-columns: 1fr 1.272fr;
  }
  .auth-side {
    align-content: space-between;
    padding: var(--s5) var(--s4);
  }
  .auth-perks {
    display: grid;
  }
  .auth-pitch {
    font-size: var(--t-title);
    line-height: 1.2;
  }
  .auth-main {
    padding: var(--s5) var(--s4) var(--s4);
  }
}

/* Admin tabs */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: rgb(255 255 255 / 0.6);
}
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 36px;
  padding: 0 var(--s3);
  border-radius: 999px;
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.tabs button[aria-selected="true"] {
  background-color: var(--yellow);
  color: var(--fg);
}
.account-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tabs {
  margin-top: var(--s4);
}
[data-panel] > section:first-child {
  margin-top: var(--s4);
}
.count:empty {
  display: none;
}
.count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: rgb(16 16 15 / 0.08);
  font-size: var(--t-label);
  text-align: center;
}

/* Account page and admin lists */
[data-me-in] > section:first-child {
  margin-top: var(--s4);
}
.empty-card {
  gap: var(--s2);
  max-width: 34rem;
  margin-top: var(--s3);
  padding: var(--s4) var(--s3);
}
.empty-card h2,
.empty-card h3 {
  font-size: var(--t-subtitle);
  font-weight: 500;
}
.empty-card .btn {
  align-self: flex-start;
  margin-top: var(--s1);
}
.members-card {
  max-width: none;
  margin-top: var(--s4);
}
.cohort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.cohort-chips:empty {
  display: none;
}
.cohort-chip {
  gap: 4px;
  padding: var(--s2) var(--s3);
}
.cohort-chip b {
  font-weight: 500;
}
.cohort-chip span {
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
.tag-cohort {
  border-color: var(--fg);
  color: var(--fg);
}
.session.is-done {
  opacity: 0.6;
}
.session-share > .btn {
  justify-self: start;
}
.cohort-picks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: 0;
  padding: 0;
  border: 0;
}
.cohort-picks legend {
  width: 100%;
  margin-bottom: var(--s1);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.pick {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 34px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.7);
  font-size: var(--t-caption);
  cursor: pointer;
}
.pick:has(input:checked) {
  border-color: transparent;
  background-color: var(--yellow);
}
.pick input {
  accent-color: var(--fg);
}

/* ── Numbers band (home) ─────────────────────────────────────────────────── */
.stats-band {
  padding-top: var(--s6);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--r-lg);
  /* Grey glass: translucent, blurred behind, a bright edge on top. */
  background-image: linear-gradient(135deg, rgb(150 148 140 / 0.2), rgb(90 88 82 / 0.1));
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 -1px 0 rgb(16 16 15 / 0.05),
    0 34px 55px -34px rgb(16 16 15 / 0.3);
  -webkit-backdrop-filter: blur(21px) saturate(1.6);
  backdrop-filter: blur(21px) saturate(1.6);
  color: var(--fg);
}
.stats li {
  display: grid;
  align-content: start;
  gap: var(--s1);
  padding: var(--s4) var(--s3);
  border-inline-start: 1px solid rgb(16 16 15 / 0.08);
  border-top: 1px solid rgb(16 16 15 / 0.08);
}
.stats li:nth-child(odd) {
  border-inline-start: 0;
}
.stats li:nth-child(-n + 2) {
  border-top: 0;
}
.stats b {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.stats b::after {
  content: "";
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin-inline-start: 0.08em;
  border-radius: 50%;
  background-color: var(--yellow);
}
.stats small {
  font-size: 0.42em;
  letter-spacing: 0;
  margin-inline-start: 2px;
}
.stats li > span {
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats li {
    padding: var(--s5) var(--s4);
    border-top: 0;
  }
  .stats li:nth-child(odd) {
    border-inline-start: 1px solid rgb(16 16 15 / 0.08);
  }
  .stats li:first-child {
    border-inline-start: 0;
  }
}

/* ── Client strip (home) ─────────────────────────────────────────────────── */
.marquee {
  /* Same space above (numbers band) and below (Selected work). */
  margin-block: var(--s5);
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee ul {
  display: flex;
  flex: none;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding-inline-end: var(--s4);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--fg-faint);
}
.marquee li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--yellow);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee ul[aria-hidden] {
    display: none;
  }
}

/* The section after the client strip relies on the strip's margin. */
.marquee + .section {
  padding-top: 0;
}
@media (min-width: 900px) {
  .marquee {
    margin-block: var(--s6);
  }
}

/* ── Connected steps (contact, academy) ──────────────────────────────────── */
.steps-line {
  position: relative;
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
}
.steps-line li {
  position: relative;
  display: grid;
  grid-template-columns: 55px 1fr;
  column-gap: var(--s3);
  align-items: start;
}
.steps-line li > :not(.step-icon) {
  grid-column: 2;
}
.step-icon {
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-image: var(--glass-yellow);
  box-shadow: 0 13px 21px -13px rgb(16 16 15 / 0.4);
}
.icon {
  width: 24px;
  height: 24px;
}
.steps-line .no {
  margin-top: 4px;
}
.steps-line h3 {
  font-size: var(--t-subtitle);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.steps-line li p:last-child {
  margin-top: 4px;
  color: var(--fg-soft);
}
/* The joining line: down the icons on phones, across them on wide screens. */
.steps-line::before {
  content: "";
  position: absolute;
  inset-block: 27px;
  inset-inline-start: 27px;
  width: 1px;
  background-image: linear-gradient(var(--yellow-ink), var(--yellow-ink) 50%, transparent 50%);
  background-size: 1px 8px;
  opacity: 0.5;
}
@media (min-width: 900px) {
  .steps-line {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s3);
  }
  .steps-line li {
    grid-template-columns: 1fr;
    row-gap: var(--s1);
  }
  .steps-line li > :not(.step-icon) {
    grid-column: 1;
  }
  .step-icon {
    grid-row: auto;
    margin-bottom: var(--s2);
  }
  .steps-line::before {
    inset-block: 27px auto;
    inset-inline: 27px calc(25% - 27px);
    width: auto;
    height: 1px;
    background-image: linear-gradient(to right, var(--yellow-ink), var(--yellow-ink) 50%, transparent 50%);
    background-size: 8px 1px;
  }
  html[dir="rtl"] .steps-line::before {
    background-image: linear-gradient(to left, var(--yellow-ink), var(--yellow-ink) 50%, transparent 50%);
  }
}

/* ── Academy: dark live block, short modules ─────────────────────────────── */
.live-card.is-dark {
  border-radius: var(--r-lg);
  background-image: var(--glass-grey);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 -1px 0 rgb(16 16 15 / 0.05),
    0 34px 55px -34px rgb(16 16 15 / 0.3);
  -webkit-backdrop-filter: blur(21px) saturate(1.6);
  backdrop-filter: blur(21px) saturate(1.6);
  color: var(--fg);
}
.modules li {
  align-items: center;
  padding-block: var(--s2);
}

/* ── Work, by type ───────────────────────────────────────────────────────── */
.type-nav {
  position: sticky;
  top: calc(var(--header-h) + var(--s2));
  z-index: 20;
  display: flex;
  gap: var(--s1);
  width: max-content;
  max-width: 100%;
  margin-top: var(--s4);
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background-image: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  scrollbar-width: none;
}
.type-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 40px;
  padding: 0 var(--s3);
  border-radius: 999px;
  font-size: var(--t-caption);
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg-soft);
  transition: background-color 200ms, color 200ms;
}
.type-nav a:hover,
.type-nav a[aria-current] {
  background-color: var(--yellow);
  color: var(--fg);
}
.type-nav .icon {
  width: 18px;
  height: 18px;
}
.work-type {
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.work-type-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.work-type-head .title {
  margin-top: 0;
}
.work-type-head p {
  margin-top: 4px;
  color: var(--fg-soft);
}
.type-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-image: var(--glass-yellow);
  box-shadow: 0 13px 21px -13px rgb(16 16 15 / 0.4);
}
.work-grid {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
  grid-template-columns: repeat(2, 1fr);
}
.work-grid.wide {
  grid-template-columns: 1fr;
}
.work-item .slot,
.work-item .shot {
  height: 100%;
  border-radius: var(--r-md);
  transition: translate 250ms, box-shadow 250ms;
}
.work-item:hover .slot,
.work-item:hover .shot {
  translate: 0 -3px;
}
.work-grid.portrait .work-item > * {
  aspect-ratio: 3 / 4; /* 1080 × 1440 */
}
.work-grid.wide .work-item > * {
  aspect-ratio: 3 / 2; /* 1536 × 1024 brand boards, shown whole */
}
.work-grid.square .work-item > * {
  aspect-ratio: 1;
}
.work-grid.tall .work-item > * {
  aspect-ratio: 9 / 16;
}
.work-item .shot {
  position: relative;
}
.work-item img,
.work-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-item .slot > div {
  gap: var(--s2);
}
.play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: var(--glass-yellow);
  box-shadow: 0 13px 21px -13px rgb(16 16 15 / 0.4);
}
.shot .play {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
  transition: opacity 200ms;
}
.work-item:hover .shot .play {
  opacity: 0;
}
@media (min-width: 620px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
  }
  .work-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid.tall {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .work-grid.square {
    grid-template-columns: repeat(6, 1fr);
  }
}
/* Posters (social): small and many per row; click one to see it full size. */
.work-grid.portrait {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
}
@media (min-width: 620px) {
  .work-grid.portrait {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s2);
  }
}
@media (min-width: 1024px) {
  .work-grid.portrait {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 1440px) {
  .work-grid.portrait {
    grid-template-columns: repeat(6, 1fr);
  }
}
.work-grid.portrait .shot {
  border-radius: var(--r-sm);
}
.work-item .shot img {
  cursor: zoom-in;
}

/* Full-size view */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: var(--s3);
  border: 0;
  background: transparent;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background-color: rgb(16 16 15 / 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-width: min(100%, 720px);
  max-height: calc(100svh - 120px);
  border-radius: var(--r-md);
  box-shadow: 0 34px 89px -21px rgb(0 0 0 / 0.6);
}
.lightbox button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.lightbox button:hover {
  background-color: var(--yellow);
  color: var(--fg);
}
.lightbox [data-lb-close] {
  top: var(--s3);
  inset-inline-end: var(--s3);
}
.lightbox [data-lb-prev],
.lightbox [data-lb-next] {
  top: 50%;
  translate: 0 -50%;
}
.lightbox [data-lb-prev] {
  left: var(--s3);
}
.lightbox [data-lb-next] {
  right: var(--s3);
}
.lightbox-count {
  position: fixed;
  bottom: var(--s3);
  left: 50%;
  translate: -50% 0;
  font-size: var(--t-caption);
  color: rgb(255 255 255 / 0.75);
}

/* Video: a justified gallery, every video at the shape it was filmed in. */
.work-grid.fluid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.work-grid.fluid .work-item {
  flex: var(--r, 1) 1 calc(var(--r, 1) * 150px);
  min-width: 0;
}
.work-grid.fluid .work-item > * {
  aspect-ratio: var(--r, 1);
  height: auto;
}
.work-grid.fluid .work-sep {
  flex-basis: 100%;
}
@media (min-width: 620px) {
  .work-grid.fluid {
    gap: var(--s3);
  }
  .work-grid.fluid .work-item {
    flex-basis: calc(var(--r, 1) * 260px);
  }
}
.work-item .shot video {
  cursor: zoom-in;
}
.lightbox video {
  max-width: min(100%, 1100px);
  max-height: calc(100svh - 120px);
  border-radius: var(--r-md);
  background-color: #000;
  box-shadow: 0 34px 89px -21px rgb(0 0 0 / 0.6);
}

/* Home: frosted glass cards, the work glowing through from behind */
.type-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  overflow: clip; /* hidden can still be scrolled by focus; clip cannot */
  border-radius: var(--r-lg);
  background-color: #e9e7e1;
  isolation: isolate;
  box-shadow: 0 34px 55px -34px rgb(16 16 15 / 0.35);
  transition: translate 300ms, box-shadow 300ms;
}
/* The work behind: strong enough to colour the glass. */
.type-bg {
  position: absolute;
  inset: -8%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  opacity: 0.75;
  rotate: -6deg;
  transition: opacity 400ms, scale 600ms;
}
.type-bg img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.type-bg.logos img {
  object-fit: contain;
  object-position: center;
  padding: 16%;
  background-color: #fff;
}
/* The glass: translucent, frosted, a bright rim and a sheen. */
.type-glass {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: var(--s2);
  padding: var(--s3);
  border-radius: inherit;
  background-image: linear-gradient(
    150deg,
    rgb(255 255 255 / 0.62) 0%,
    rgb(240 238 232 / 0.42) 45%,
    rgb(200 198 190 / 0.38) 100%
  );
  border: 1px solid rgb(255 255 255 / 0.75);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(16 16 15 / 0.06),
    inset 0 0 0 1px rgb(255 255 255 / 0.2),
    inset 0 -40px 60px -40px rgb(255 255 255 / 0.5);
  -webkit-backdrop-filter: blur(7px) saturate(1.6) brightness(1.04);
  backdrop-filter: blur(7px) saturate(1.6) brightness(1.04);
}
/* A diagonal light streak across the glass. */
.type-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(
    115deg,
    rgb(255 255 255 / 0) 30%,
    rgb(255 255 255 / 0.38) 42%,
    rgb(255 255 255 / 0) 52%
  );
  pointer-events: none;
  transition: translate 700ms;
}
.type-glass > * {
  position: relative;
}
.type-glass .type-icon {
  align-self: start;
  width: 48px;
  height: 48px;
}
.type-glass h3 {
  font-size: var(--t-subtitle);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.type-glass p {
  margin-top: 4px;
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
.type-arrow {
  position: absolute;
  top: var(--s3);
  inset-inline-end: var(--s3);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.65);
  border: 1px solid rgb(255 255 255 / 0.8);
  font-size: 1rem;
  transition: background-color 250ms, translate 250ms;
}
html[dir="rtl"] .type-arrow {
  scale: -1 1;
}
.type-card:hover {
  translate: 0 -4px;
  box-shadow: 0 44px 66px -34px rgb(16 16 15 / 0.42);
}
.type-card:hover .type-bg {
  opacity: 0.95;
  scale: 1.05;
}
.type-card:hover .type-glass::before {
  translate: 18% 0;
}
.type-card:hover .type-arrow {
  background-color: var(--yellow);
  translate: 3px -3px;
}
html[dir="rtl"] .type-card:hover .type-arrow {
  translate: -3px -3px;
}
/* No work yet: soft warm light behind the glass instead. */
.type-card:not(:has(.type-bg))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 25% 20%, rgb(255 212 0 / 0.55), transparent 55%),
    radial-gradient(circle at 85% 90%, rgb(160 156 146 / 0.6), transparent 55%);
}
@media (max-width: 619px) {
  .type-card {
    aspect-ratio: 16 / 10;
  }
}

/* Home: the four types as tiles */
.type-cover {
  aspect-ratio: 4 / 3;
}
.type-cover .type-icon {
  width: 72px;
  height: 72px;
}
.type-cover .type-icon .icon {
  width: 30px;
  height: 30px;
}

/* Work: a separator line set in the admin */
.work-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.work-sep::before,
.work-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line);
}
.work-sep:not(:has(span))::before {
  display: none;
}
.work-sep span {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  white-space: nowrap;
}
.work-sep span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--yellow);
}

/* Admin: portfolio board */
.pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s3);
}
.pf-head .lead {
  margin-top: var(--s1);
}
.pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}
.pf-types {
  margin-top: var(--s4);
}
/* The portfolio's save status and button, pinned to the bottom of the
   screen while the board scrolls (saving is automatic; the button is a
   manual "save now"). */
.pf-savebar {
  position: sticky;
  bottom: var(--s3);
  z-index: 5;
  justify-content: flex-end;
  margin-top: var(--s4);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line, rgba(16, 16, 15, 0.1));
  border-radius: 21px;
  background: color-mix(in srgb, var(--bg, #fff) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(16, 16, 15, 0.08);
}
.pf-savebar .form-note {
  margin: 0;
  margin-inline-end: auto;
}
.pf-toolbar {
  margin-top: var(--s3);
}
.pf-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 40px;
  padding: 0 var(--s3);
}
.pf-toolbar .icon {
  width: 16px;
  height: 16px;
}
.pf-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
}
.pf-item,
.pf-line {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background-color: rgb(255 255 255 / 0.8);
  cursor: grab;
  transition: box-shadow 150ms, opacity 150ms, outline-color 150ms;
}
.pf-line {
  grid-column: 1 / -1;
  background-color: rgb(255 212 0 / 0.12);
  border-style: dashed;
  border-color: var(--yellow-ink);
}
.pf-item.is-dragging,
.pf-line.is-dragging {
  opacity: 0.4;
}
.pf-item.is-over,
.pf-line.is-over {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.pf-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-label);
}
.pf-handle {
  color: var(--fg-faint);
  letter-spacing: -2px;
}
.pf-no {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pf-line-tag {
  font-weight: 500;
  color: var(--yellow-ink);
}
.pf-label {
  flex: 1;
  min-width: 0;
  min-height: 30px;
  padding: 0 var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--bg);
  font: inherit;
  cursor: text;
}
.pf-tools {
  display: inline-flex;
  gap: 2px;
  margin-inline-start: auto;
}
.pf-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--fg-soft);
}
.pf-btn:hover {
  background-color: rgb(16 16 15 / 0.07);
  color: var(--fg);
}
.pf-btn.danger:hover {
  color: #b42318;
}
.pf-thumb {
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 3 / 4;
  background-color: rgb(16 16 15 / 0.04);
}
.pf-board.is-wide .pf-thumb {
  aspect-ratio: 1.618 / 1;
}
.pf-board.is-square .pf-thumb {
  aspect-ratio: 1;
}
.pf-board.is-tall .pf-thumb {
  aspect-ratio: 9 / 16;
}
.pf-thumb img,
.pf-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pf-add {
  min-height: 26px;
  border-radius: 999px;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--fg-faint);
}
.pf-add:hover {
  background-color: rgb(255 212 0 / 0.25);
  color: var(--fg);
}

/* Forms: a field only bots fill in */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.form-note.is-sent {
  color: #1f7a45;
  font-weight: 500;
}
/* Dashboard: requests */
.request-msg {
  margin-top: var(--s2);
  padding: var(--s2);
  border-radius: var(--r-sm);
  background-color: rgb(16 16 15 / 0.035);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-line;
}
.request.is-done {
  opacity: 0.6;
}
.rq-filter {
  margin-top: 0;
}
/* Dashboard: no footer, so leave some air at the end */
main#content:has(#dash) {
  padding-bottom: var(--s6);
}

/* Dashboard: add work */
.pf-drop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s3);
  padding: var(--s3);
  border: 1.5px dashed rgb(16 16 15 / 0.2);
  border-radius: var(--r-lg);
  background-color: rgb(255 255 255 / 0.6);
  transition: border-color 200ms, background-color 200ms;
}
.pf-drop.is-over {
  border-color: var(--yellow-ink);
  background-color: rgb(255 212 0 / 0.12);
}
.pf-drop b {
  font-weight: 500;
}
.pf-drop p {
  margin-top: 2px;
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
.pf-drop label.btn {
  cursor: pointer;
}
@media (max-width: 619px) {
  .pf-drop {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
.pf-progress {
  display: grid;
  gap: 6px;
  margin-top: var(--s2);
}
.pf-progress:empty {
  display: none;
}
.pf-up {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s1) var(--s2);
  overflow: hidden;
  border-radius: var(--r-sm);
  background-color: rgb(16 16 15 / 0.04);
  font-size: var(--t-caption);
}
.pf-up-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-up-state {
  flex: none;
  font-weight: 500;
  color: var(--fg-soft);
}
.pf-up-bar {
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width 200ms;
}
.pf-up.is-done .pf-up-state {
  color: #1f7a45;
}
.pf-up.is-failed .pf-up-state {
  color: #b42318;
}
.pf-item.is-hidden .pf-thumb {
  opacity: 0.35;
}
.pf-thumb {
  position: relative;
}
.pf-hidden-tag {
  position: absolute;
  inset: auto 6px 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: var(--fg);
  color: var(--bg);
  font-size: var(--t-label);
  text-align: center;
}
.pf-btn.is-on {
  color: var(--yellow-ink);
}

/* Client dashboard */
[data-me-tabs] {
  margin-top: var(--s4);
}
[data-me-in] > section {
  margin-top: var(--s4);
}
.me-cards {
  display: grid;
  gap: var(--s3);
}
@media (min-width: 760px) {
  .me-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.me-stat {
  gap: var(--s2);
  min-height: 180px;
  padding: var(--s4) var(--s3);
}
.me-stat h3 {
  font-size: var(--t-title);
  line-height: 1.15;
}
.me-stat .btn {
  align-self: flex-start;
  margin-top: auto;
}
.me-gap {
  margin-top: var(--s5);
}
.me-ask,
.me-payinfo {
  margin-top: var(--s5);
}
.me-payinfo {
  gap: var(--s2);
  padding: var(--s4) var(--s3);
}
.me-payinfo .btn {
  align-self: flex-start;
}
.me-cohorts {
  display: grid;
  gap: var(--s3);
}
.me-cohort {
  gap: var(--s1);
  padding: var(--s4) var(--s3);
}
.me-cohort h3 {
  font-size: var(--t-title);
}
.me-profile {
  display: grid;
  gap: var(--s3);
}
.me-profile .contact-form {
  margin-top: 0;
}
@media (min-width: 900px) {
  .me-profile {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.btn.is-picked {
  border-color: transparent;
  background-color: var(--yellow);
}
/* Payment statuses */
.tag.pay-due {
  border-color: transparent;
  background-color: rgb(180 35 24 / 0.1);
  color: #b42318;
}
.tag.pay-pending {
  border-color: transparent;
  background-color: rgb(255 212 0 / 0.35);
  color: var(--fg);
}
.tag.pay-paid {
  border-color: transparent;
  background-color: rgb(31 122 69 / 0.12);
  color: #1f7a45;
}
.payment.is-paid {
  opacity: 0.75;
}
.pay-total {
  margin-top: var(--s2);
  font-weight: 500;
}

/* Tools */
.tools.tools-all {
  margin-top: var(--s4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) {
  .tools.tools-all {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .tools.tools-all {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) {
  .tools.tools-all {
    grid-template-columns: repeat(6, 1fr);
  }
}
.tool-group {
  margin-top: var(--s4);
}
.tool-group-name {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.tool-group-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line);
}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s2);
  margin-top: var(--s2);
}
.tool {
  flex-direction: row;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2);
  transition: translate 250ms;
}
.tool:hover {
  translate: 0 -3px;
}
.tool img {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.tool h3 {
  font-size: var(--t-body);
  line-height: 1.2;
}
.tool p {
  margin-top: 1px;
  font-size: var(--t-label);
}

/* ── Academy hero: headline · portrait · who teaches it ─────────────────── */
/* Text always sits above the portrait, never under it. */
.ac-hero-lead,
.ac-hero-about,
.ac-hero-foot {
  position: relative;
  z-index: 1;
}
.ac-hero {
  position: relative;
  display: grid;
  gap: var(--s4);
  padding-top: var(--s5);
  overflow-x: clip; /* the photo's soft edge never widens the page */
}
.ac-hero-title {
  margin-top: var(--s2);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.ac-hero-title em {
  font-style: normal;
  color: #f2a900;
}
html[data-lang="ar"] .ac-hero-title {
  line-height: 1.35;
  letter-spacing: 0;
}
.ac-hero-role {
  margin-top: var(--s2);
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--fg);
}
.ac-hero-arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: var(--s3);
  border-radius: 50%;
  color: #f2a900;
  transition: translate 250ms, background-color 250ms;
}
.ac-hero-arrow svg {
  width: 24px;
  height: 24px;
}
html[dir="rtl"] .ac-hero-arrow svg {
  scale: -1 1;
}
.ac-hero-arrow:hover {
  translate: 4px 0;
  background-color: rgb(255 212 0 / 0.15);
}
html[dir="rtl"] .ac-hero-arrow:hover {
  translate: -4px 0;
}
.ac-hero .hero-actions {
  margin-top: var(--s3);
}
.ac-hero-photo {
  align-self: end;
  margin-inline: -16px; /* to the screen edge on phones, never past it */
}
.ac-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* The studio white melts into the page. */
  mix-blend-mode: multiply;
}
.ac-hero-name {
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.ac-hero-name span {
  color: #f2a900;
}
html[data-lang="ar"] .ac-hero-name {
  line-height: 1.3;
  letter-spacing: 0;
}
.ac-hero-about p {
  margin-top: var(--s2);
  font-size: var(--t-caption);
  line-height: 1.65;
  color: var(--fg-soft);
}
.ac-hero-about p b {
  font-weight: 500;
  color: var(--fg);
}
.ac-hero-stat {
  display: grid;
  justify-items: end;
  margin-top: var(--s4);
}
.ac-hero-stat b {
  display: flex;
  align-items: baseline;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: #f2a900;
}
.ac-hero-stat small {
  font-size: 0.45em;
  color: var(--fg);
}
.ac-hero-stat > span {
  font-size: var(--t-caption);
  color: var(--fg-soft);
}
.ac-hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--fg-faint);
}
.ac-hero-foot li {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}
.ac-hero-foot li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--yellow);
}
@media (min-width: 1024px) {
  .ac-hero {
    grid-template-columns: 0.8fr 2.2fr 0.8fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0 var(--s4);
    /* The hero fills the screen under the header. */
    min-height: min(calc(100svh - var(--header-h) - 130px), 700px);
    padding-top: 0;
  }
  /* The portrait is the focal point: it spills a little past its column. */
  .ac-hero-photo {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: end;
    margin-inline: 0;
    margin-bottom: 0;
  }
    .ac-hero-lead {
    grid-column: 1;
    grid-row: 1;
  }
  .ac-hero-about {
    grid-column: 3;
    grid-row: 1;
  }
  .ac-hero-foot {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: var(--s3);
  }
}

/* Arabic kashida justification: the script fills each line; justify takes
   up the last pixel or two, and the final line stays natural. */
[data-kashida].is-kashida {
  text-align: justify;
  text-align-last: start;
}

/* Academy: the tools a little bigger than on About */
[aria-labelledby="acad-tools-title"] .tool {
  gap: var(--s2);
  padding: var(--s3) var(--s2);
}
[aria-labelledby="acad-tools-title"] .tool img {
  width: 36px;
  height: 36px;
}
[aria-labelledby="acad-tools-title"] .tool h3 {
  font-size: var(--t-body-lg);
}
[aria-labelledby="acad-tools-title"] .tool p {
  font-size: var(--t-caption);
}
@media (min-width: 1200px) {
  [aria-labelledby="acad-tools-title"] .tools.tools-all {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Academy hero: the foot of the photo goes out of focus and melts into the
   page, like the home hero. Four blur layers, each stronger and starting a
   little lower, then a fade to the page colour. */
.ac-hero-photo {
  position: relative;
}
.ac-hero-blur {
  position: absolute;
  inset: auto -8% -2px; /* a little past the photo: no edge can show */
  height: 42%;
  pointer-events: none;
}
.ac-hero-blur > * {
  position: absolute;
  inset: 0;
}
.ac-hero-blur i:nth-child(1) {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(transparent, #000 30%);
  mask-image: linear-gradient(transparent, #000 30%);
}
.ac-hero-blur i:nth-child(2) {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(transparent 20%, #000 50%);
  mask-image: linear-gradient(transparent 20%, #000 50%);
}
.ac-hero-blur i:nth-child(3) {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(transparent 40%, #000 72%);
  mask-image: linear-gradient(transparent 40%, #000 72%);
}
.ac-hero-blur i:nth-child(4) {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(transparent 60%, #000 90%);
  mask-image: linear-gradient(transparent 60%, #000 90%);
}
.ac-hero-blur b {
  background-image: linear-gradient(
    rgb(255 255 255 / 0),
    rgb(255 255 255 / 0.25) 40%,
    rgb(255 255 255 / 0.75) 72%,
    var(--bg) 92%
  );
}

/* ══ Editorial system (Academy, after the hero) ═══════════════════════════
   The hero's language everywhere: a hairline rule, a small index, one big
   confident title with a yellow word, plenty of air, numbers instead of
   boxes. Colour comes in two moments only: the tracks and the yellow band. */
:root {
  --accent: #f2a900;
}
.ed {
  padding-top: var(--s6);
}
.ac-hero + .ed {
  padding-top: var(--s5);
}
@media (min-width: 900px) {
  .ed {
    padding-top: var(--s7);
  }
}
.ed-head {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--fg);
}
.ed-label {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.ed-label span {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.ed-title {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.ed-title em,
.ed-band-title em {
  font-style: normal;
  color: var(--accent);
}
html[data-lang="ar"] .ed-title {
  line-height: 1.35;
  letter-spacing: 0;
}
.ed-intro {
  max-width: 34rem;
  margin-top: var(--s2);
  color: var(--fg-soft);
  line-height: 1.6;
}
@media (min-width: 900px) {
  .ed-head {
    grid-template-columns: 1fr 2.6fr;
    gap: var(--s5);
  }
}

/* 01 · Tracks: two big coloured panels */
.ed-tracks {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (min-width: 900px) {
  .ed-tracks {
    grid-template-columns: 1fr 1fr;
  }
}
.ed-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 560px;
  padding: var(--s4) var(--s3);
  overflow: hidden;
  border-radius: var(--r-lg);
}
.ed-track.is-yellow {
  background-color: #ffc820;
  background-image: linear-gradient(160deg, #ffd84a 0%, #ffbf00 60%, #f2a900 100%);
  color: var(--fg);
}
.ed-track.is-grey {
  background-color: #efeee9;
  color: var(--fg);
}
@media (min-width: 900px) {
  .ed-track {
    padding: var(--s5);
  }
}
.ed-track-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s3);
}
.ed-track-no {
  font-size: clamp(6rem, 13vw, 11rem);
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}
.ed-track.is-grey .ed-track-no {
  -webkit-text-stroke-color: var(--accent);
}
.ed-track-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 60%;
}
.ed-track-tags > span {
  padding: 4px var(--s2);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--t-label);
  font-weight: 500;
  white-space: nowrap;
}
.ed-track.is-yellow .ed-track-tags > span {
  border-color: rgb(16 16 15 / 0.35);
}
.ed-track.is-grey .ed-track-tags > span {
  border-color: rgb(16 16 15 / 0.18);
}
.ed-track h3 {
  margin-top: auto;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
}
html[data-lang="ar"] .ed-track h3 {
  line-height: 1.35;
  letter-spacing: 0;
}
.ed-track-body {
  max-width: 30rem;
  line-height: 1.6;
  opacity: 0.8;
}
.ed-modules {
  display: grid;
  border-top: 1px solid rgb(16 16 15 / 0.2);
}
.ed-modules li {
  display: flex;
  gap: var(--s2);
  padding-block: var(--s2);
  border-bottom: 1px solid rgb(16 16 15 / 0.2);
  font-weight: 500;
}
.ed-modules li span {
  font-size: var(--t-caption);
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}
.ed-track .btn {
  align-self: flex-start;
}

/* 02 · Who it's for: editorial rows */
.ed-rows,
.ed-steps {
  margin-top: var(--s5);
}
.ed-rows li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.ed-rows li:first-child {
  border-top: 1px solid var(--line);
}
.ed-num {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.ed-rows h3,
.ed-steps h3 {
  font-size: var(--t-subtitle);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ed-rows p {
  grid-column: 2;
  color: var(--fg-soft);
}
@media (min-width: 900px) {
  .ed-rows li {
    grid-template-columns: 1fr 1.3fr 1.3fr;
    align-items: baseline;
    gap: var(--s5);
  }
  .ed-rows p {
    grid-column: auto;
  }
  .ed-rows h3 {
    font-size: var(--t-title);
    line-height: 1.15;
  }
}

/* 03 · Tools: a hairline logo table */
.ed-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.ed-tools li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px var(--s2);
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background-color 200ms;
}
.ed-tools li:hover {
  background-color: rgb(255 212 0 / 0.08);
}
.ed-tools img {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.ed-tools b {
  font-weight: 500;
}
.ed-tools span {
  font-size: var(--t-label);
  color: var(--fg-faint);
}
@media (min-width: 620px) {
  .ed-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .ed-tools {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 04 · How it works: four steps between vertical rules */
.ed-steps {
  display: grid;
  border-top: 1px solid var(--line);
}
.ed-steps li {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.ed-steps p {
  color: var(--fg-soft);
}
@media (min-width: 900px) {
  .ed-steps {
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
  }
  .ed-steps li {
    padding: var(--s4) var(--s3);
    border-bottom: 0;
    border-inline-start: 1px solid var(--line);
  }
  .ed-steps li:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .ed-steps .ed-num {
    margin-bottom: var(--s4);
  }
}

/* 05 · Live classroom: the one full yellow band */
.ed-band {
  margin-top: var(--s7);
  background-image: linear-gradient(120deg, #ffd84a 0%, #ffbf00 55%, #f2a900 100%);
}
.ed-band-inner {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s6);
}
.ed-band .ed-label,
.ed-band .ed-label span {
  color: var(--fg);
}
.ed-band-title {
  margin-top: var(--s2);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
}
html[data-lang="ar"] .ed-band-title {
  line-height: 1.35;
  letter-spacing: 0;
}
.ed-band-side {
  display: grid;
  align-content: end;
  gap: var(--s3);
}
.ed-band-side ol {
  display: grid;
  border-top: 1px solid rgb(16 16 15 / 0.25);
  counter-reset: band;
}
.ed-band-side li {
  display: flex;
  gap: var(--s2);
  padding-block: var(--s2);
  border-bottom: 1px solid rgb(16 16 15 / 0.25);
  font-weight: 500;
  counter-increment: band;
}
.ed-band-side li::before {
  content: "0" counter(band);
  font-size: var(--t-caption);
  opacity: 0.55;
}
.ed-band-side .btn {
  justify-self: start;
}
@media (min-width: 900px) {
  .ed-band-inner {
    grid-template-columns: 1.618fr 1fr;
    gap: var(--s6);
    padding-block: var(--s7);
  }
}

/* 06 · Outcomes: big statements */
.ed-outcomes {
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
}
.ed-outcomes li {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
}
html[data-lang="ar"] .ed-outcomes li {
  letter-spacing: 0;
  line-height: 1.6;
}
.ed-outcomes li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  translate: 0 -0.15em;
}

/* 07 · Questions: a hairline accordion */
.ed-faq {
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
}
.ed-faq details {
  border-bottom: 1px solid var(--line);
}
.ed-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  font-size: var(--t-subtitle);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.ed-faq summary::-webkit-details-marker {
  display: none;
}
.ed-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: rotate 200ms;
}
.ed-faq details[open] summary::after {
  rotate: 45deg;
}
.ed-faq details p {
  max-width: 44rem;
  padding-bottom: var(--s3);
  color: var(--fg-soft);
  line-height: 1.7;
}

/* 08 · Apply: big headline beside a flat form */
.ed-apply {
  display: grid;
  gap: var(--s4);
}
.ed-apply-lead {
  padding-top: var(--s3);
  border-top: 1px solid var(--fg);
}
.ed-apply-lead .ed-title {
  margin-top: var(--s3);
}
.ed-apply .contact-form {
  margin-top: 0;
  border-radius: var(--r-lg);
  background-image: none;
  background-color: #f6f5f1;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (min-width: 900px) {
  .ed-apply {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s6);
    align-items: start;
  }
}

/* Editorial page openings (Work, Contact) */
.ed-page {
  padding-top: var(--s5);
}
.ed-title-xl {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
html[data-lang="ar"] .ed-title-xl {
  line-height: 1.3;
}
.ed-page + .wrap .type-nav {
  margin-top: var(--s4);
}

/* About · 01 Story: text beside a list of years */
.ed-story {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
}
.ed-story-text p {
  max-width: 36rem;
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--fg-soft);
}
.ed-story-text p + p {
  margin-top: var(--s3);
}
.ed-story-text p:first-child {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--fg);
}
.ed-years {
  border-top: 1px solid var(--line);
}
.ed-years li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.ed-years b {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.ed-years span {
  color: var(--fg-soft);
}
@media (min-width: 900px) {
  .ed-story {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s6);
  }
}

/* About hero: a wide photo with the name across it; let it fill the centre */
.about-hero-photo img {
  width: 100%;
  height: auto;
}

/* Work sections in the editorial system */
.work-type.ed {
  padding-top: var(--s6);
}

/* Rounded corners on every shape */
/* The yellow band: a rounded panel inside the page width, not edge to edge. */
.ed-band {
  width: var(--wrap);
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* Tools: logos sit straight on the page. No boxes, no lines. */
.ed-tools {
  gap: var(--s4) var(--s3);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.ed-tools li {
  padding: 0;
  border: 0;
  background: none;
}
.ed-tools li:hover {
  background: none;
}
.ed-tools li:hover img {
  translate: 0 -2px;
}
.ed-tools img {
  transition: translate 200ms;
}

/* ── Academy / About hero on phones and tablets ──────────────────────────
   One clear column: headline, then the photo right away, then the buttons,
   then who teaches it. The arrow goes (the buttons do its job). */
@media (max-width: 1023px) {
  .ac-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: var(--s4);
  }
  .ac-hero-lead {
    display: contents;
  }
  .ac-hero-lead .kicker {
    order: 1;
  }
  .ac-hero-title {
    order: 2;
  }
  .ac-hero-role {
    order: 3;
    margin-top: var(--s2);
  }
  .ac-hero-arrow {
    display: none;
  }
  .ac-hero-photo {
    order: 4;
    margin: var(--s3) -16px 0;
  }
  .ac-hero .hero-actions {
    order: 5;
    margin-top: var(--s2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s1);
  }
  .ac-hero .hero-actions .btn {
    width: 100%;
    padding-inline: var(--s2);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .ac-hero-about {
    order: 6;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--s2) var(--s3);
    margin-top: var(--s5);
    padding-top: var(--s3);
    border-top: 1px solid var(--line);
  }
  .ac-hero-name {
    grid-column: 1;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .ac-hero-stat {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    justify-items: end;
  }
  .ac-hero-stat b {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }
  .ac-hero-about p {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: var(--t-body);
  }
  .ac-hero-foot {
    order: 7;
    margin-top: var(--s3);
  }
  /* On small screens the photo simply fades out at the foot: no blur
     layers, so no seam can show. */
  .ac-hero-blur {
    display: none;
  }
  .ac-hero-photo img {
    -webkit-mask-image: linear-gradient(#000 72%, transparent 98%);
    mask-image: linear-gradient(#000 72%, transparent 98%);
  }
}
@media (min-width: 620px) and (max-width: 1023px) {
  .ac-hero-photo {
    margin-inline: auto;
    width: min(100%, 620px);
  }
  .ac-hero .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .ac-hero .hero-actions .btn {
    width: auto;
    padding-inline: 1.35em;
  }
}

/* Home hero on phones: room under the button, and no seam strip over it. */
@media (max-width: 759px) {
  .hero {
    padding-bottom: var(--s4);
  }
  .hero::after {
    display: none;
  }
}

/* Home on phones: tighter rhythm between hero, numbers, clients and work */
@media (max-width: 759px) {
  .hero {
    padding-bottom: var(--s3);
  }
  .stats-band {
    padding-top: var(--s3);
  }
  .stats li {
    padding: var(--s3) var(--s2);
    gap: 4px;
  }
  .stats b {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }
  .marquee {
    margin-block: var(--s4);
  }
  .marquee li {
    font-size: 1.05rem;
  }
}

/* Editorial pages on phones: tighter section rhythm everywhere */
@media (max-width: 759px) {
  .ed,
  .work-type.ed {
    padding-top: var(--s5);
  }
  .ed-page {
    padding-top: var(--s4);
  }
  .ed-head {
    gap: var(--s2);
  }
  .ed-page + .wrap .type-nav {
    margin-top: var(--s3);
  }
  /* First section right after the type buttons */
  .ed-page + .wrap + .work-type.ed {
    padding-top: var(--s4);
  }
  .ed-rows,
  .ed-steps,
  .ed-tracks,
  .ed-tools,
  .ed-outcomes,
  .ed-faq,
  .ed-story,
  .work-grid {
    margin-top: var(--s4);
  }
}

/* ── Site footer: editorial ────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--s7);
  padding-bottom: var(--s4);
}
.sf-cta {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--fg);
}
.sf-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.sf-title em {
  font-style: normal;
  color: var(--accent);
}
html[data-lang="ar"] .sf-title {
  line-height: 1.3;
  letter-spacing: 0;
}
.sf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.sf-grid {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.sf-brand img {
  height: 28px;
  width: auto;
}
.sf-brand p {
  max-width: 22rem;
  margin-top: var(--s2);
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--fg-soft);
}
.sf-col {
  display: grid;
  align-content: start;
  gap: var(--s1);
  font-size: var(--t-caption);
}
.sf-col a,
.sf-col span {
  color: var(--fg);
  font-weight: 500;
}
.sf-col a:hover {
  color: var(--yellow-ink);
}
.sf-label {
  margin-bottom: 4px;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--accent);
}
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--t-label);
  color: var(--fg-faint);
}
@media (max-width: 619px) {
  .site-footer {
    margin-top: var(--s6);
  }
  .sf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-brand {
    grid-column: 1 / -1;
  }
  .sf-actions .btn {
    flex: 1 1 100%;
  }
}
@media (min-width: 620px) {
  .sf-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .sf-cta {
    grid-template-columns: 1.618fr 1fr;
    align-items: end;
  }
  .sf-actions {
    justify-content: flex-end;
  }
}

/* ── Side dock: language + Start a project, at mid-height on the side ─── */
.side-dock {
  position: fixed;
  top: 50%;
  inset-inline-end: var(--s2);
  z-index: 35;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px;
  translate: 0 -50%;
  border-radius: 999px;
  background-image: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.dock-lang {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.8);
  border: 1px solid var(--line);
  font-size: var(--t-caption);
  font-weight: 500;
  transition: background-color 200ms, border-color 200ms;
}
.dock-lang:hover {
  border-color: var(--yellow-ink);
  background-color: var(--bg);
}
.dock-cta {
  display: grid;
  justify-items: center;
  gap: var(--s1);
  width: 44px;
  padding: var(--s2) 0 var(--s1);
  border-radius: 999px;
  background-image: var(--glass-yellow);
  color: var(--fg);
  font-size: var(--t-caption);
  font-weight: 500;
  transition: translate 200ms, filter 200ms;
}
.dock-cta:hover {
  filter: brightness(1.05);
}
.dock-cta-text {
  writing-mode: vertical-rl;
  rotate: 180deg;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
html[dir="rtl"] .dock-cta-text {
  rotate: none;
}
.dock-cta svg {
  width: 18px;
  height: 18px;
}
html[dir="rtl"] .dock-cta svg {
  scale: -1 1;
}
/* Phones: two small round buttons, so they barely cover the page */
@media (max-width: 759px) {
  .side-dock {
    inset-inline-end: 6px;
    gap: 4px;
    padding: 4px;
  }
  .dock-lang {
    width: 36px;
    height: 36px;
    font-size: var(--t-label);
  }
  .dock-cta {
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
  }
  .dock-cta-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
/* The header now holds only the logo, the pages and Sign in */
@media (min-width: 760px) {
  .header .header-end .account-btn {
    min-height: 40px;
    padding: 0 var(--s3);
  }
}

/* ── Sign-in window: codes, forgot password, timed-out notice ──────────── */
.auth .code-input {
  font-size: 1.35rem;
  letter-spacing: 0.5em;
  font-variant-numeric: tabular-nums;
}
.auth-foot .link {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-foot .link:disabled {
  opacity: 0.45;
  cursor: default;
}
.auth-foot-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
}
.auth-sub b {
  font-weight: 500;
  color: var(--fg);
}
.auth-expired {
  margin-block-end: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: 13px;
  background-image: var(--glass-yellow);
  font-size: var(--t-caption);
  line-height: 1.5;
}

/* ── Bank accounts (client Payments tab) ─────────────────────────────────── */
.banks {
  display: grid;
  gap: var(--s3);
  margin-block: var(--s2) var(--s1);
}
@media (min-width: 900px) {
  .banks {
    grid-template-columns: 1fr 1fr;
  }
}
.bank {
  --b1: var(--yellow);
  --b2: var(--accent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--s3);
  padding: var(--s4) var(--s3) var(--s3);
  border-radius: var(--r-lg);
  background-color: rgb(255 255 255 / 0.55);
  background-image: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
/* The bank's two colours: a thin band on top and a soft glow in the corner */
.bank::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--b1), var(--b2));
}
.bank-glow {
  position: absolute;
  z-index: -1;
  inset-block-start: -45%;
  inset-inline-end: -25%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--b1), transparent 62%),
    radial-gradient(circle at 70% 75%, var(--b2), transparent 58%);
  opacity: 0.22;
  filter: blur(26px);
  pointer-events: none;
}
.bank-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.bank-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
}
.bank-logo {
  display: block;
  height: 30px;
  width: auto;
}
.bank-brand.is-mark .bank-logo {
  height: 40px;
  border-radius: var(--r-sm);
}
.bank-name {
  font-size: var(--t-body-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bank-no {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: var(--t-label);
  font-variant-numeric: tabular-nums;
}
.bank-holder {
  display: grid;
  gap: 2px;
}
.bank-holder small,
.bank-more dt,
.bank-part small {
  color: var(--fg-faint);
  font-size: var(--t-label);
}
.bank-holder b {
  font-size: var(--t-subtitle);
  font-weight: 500;
}
/* The RIB, cut in its four parts so it reads (and checks) at a glance */
.bank-rib {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  background-color: rgb(255 255 255 / 0.7);
  border: 1px solid var(--line);
}
.bank-part {
  display: grid;
  gap: 2px;
}
.bank-part b {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.bank-more {
  display: grid;
  gap: var(--s1);
  margin: 0;
}
.bank-more > div {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.bank-more dt {
  flex: 0 0 48px;
}
.bank-more dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--t-caption);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
html[dir="rtl"] .bank-more dd {
  text-align: end;
}
.bank-mini {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: rgb(255 255 255 / 0.8);
  color: var(--fg-soft);
  transition: border-color 200ms, color 200ms, background-color 200ms;
}
.bank-mini svg {
  width: 15px;
  height: 15px;
}
.bank-mini:hover {
  border-color: var(--fg-faint);
  color: var(--fg);
}
.bank-mini.is-copied {
  border-color: #1f9d55;
  background-color: rgb(31 157 85 / 0.1);
  color: #1f7a45;
}
.bank-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.me-payinfo .bank-copy {
  align-self: auto;
  min-width: 10em;
}
.bank-copy.is-copied {
  background-image: none;
  background-color: #1f9d55;
  color: #fff;
}
.bank-all {
  color: var(--fg-soft);
  font-size: var(--t-caption);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bank-all.is-copied {
  color: #1f7a45;
  text-decoration: none;
}

/* Bank QR codes: a white tile beside the holder, and a big view on tap */
.bank-id {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}
.bank-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: none;
  max-width: 120px;
}
.bank-qr {
  display: block;
  width: 96px;
  padding: 8px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 21px -13px rgb(16 16 15 / 0.35);
  cursor: zoom-in;
  transition: translate 200ms, box-shadow 200ms;
}
.bank-qr:hover {
  translate: 0 -2px;
  box-shadow: 0 13px 26px -13px rgb(16 16 15 / 0.4);
}
.bank-qr svg,
.qr-zoom-code svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .bank-qr {
    width: 80px;
    padding: 6px;
  }
  .bank-qr-wrap {
    max-width: 96px;
  }
  .bank-holder b {
    font-size: var(--t-body-lg);
  }
}
.bank-qr-note {
  color: var(--fg-faint);
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: center;
}
.qr-zoom {
  --b1: var(--yellow);
  --b2: var(--accent);
  padding: 0;
  border: 0;
  background: transparent;
  max-width: calc(100vw - 32px);
}
.qr-zoom::backdrop {
  background: rgb(16 16 15 / 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.qr-zoom-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s2);
  width: min(340px, calc(100vw - 32px));
  padding: var(--s4) var(--s4) var(--s3);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  text-align: center;
}
.qr-zoom-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--b1), var(--b2));
}
.qr-zoom-box .bank-logo {
  height: 34px;
}
.qr-zoom-code {
  width: 100%;
  padding: var(--s2);
}
.qr-zoom-box b {
  font-size: var(--t-subtitle);
  font-weight: 500;
}
.qr-zoom-box small {
  color: var(--fg-faint);
  font-size: var(--t-caption);
}
.qr-close {
  position: absolute;
  inset-block-start: var(--s2);
  inset-inline-end: var(--s2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--fg-soft);
}

/* ── Instagram button ───────────────────────────────────────────────────── */
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.btn-ig .btn-ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ed-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ── Static copy (Vercel): no server, so no accounts ─────────────────────── */
/* build/deploy.mjs marks every page <html data-static>. */
html[data-static] [data-open-auth],
html[data-static] [data-account-link],
html[data-static] [data-dashboard-link] {
  display: none !important;
}

/* ── Academy "Coming soon" (switch in the admin dashboard) ──────────────── */
/* serve.mjs sets <html data-academy-soon="on"> for visitors, "admin" for you. */
.soon-tag,
.soon-screen,
.soon-admin {
  display: none;
}
html[data-academy-soon] .soon-tag {
  display: inline-block;
  margin-inline-start: 0.45em;
  padding: 0.1em 0.5em;
  border-radius: 99px;
  background: var(--yellow);
  color: var(--fg);
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 0.12em;
}
/* Visitors: only the coming-soon screen. */
html[data-academy-soon="on"] .soon-screen {
  display: grid;
}
html[data-academy-soon="on"] .soon-screen ~ * {
  display: none;
}
.soon-screen {
  min-height: calc(100svh - 89px);
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s6) var(--s5);
}
.soon-text {
  display: grid;
  gap: var(--s3);
  justify-items: start;
}
.soon-title {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.soon-title em {
  font-style: normal;
  color: var(--yellow-ink);
}
.soon-text .lead {
  max-width: 34em;
}
.soon-text .hero-actions {
  margin-top: var(--s1);
}
.soon-photo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
@media (min-width: 900px) {
  .soon-screen {
    grid-template-columns: 1.05fr 1fr;
  }
  .soon-photo {
    order: 2;
  }
}
@media (max-width: 899px) {
  .soon-screen {
    padding-top: var(--s5);
  }
  .soon-photo {
    max-width: 420px;
    margin-inline: auto;
  }
}
/* You (admin): the full page, with a reminder on top. */
html[data-academy-soon="admin"] .soon-admin {
  display: block;
  margin-top: var(--s5);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  background: var(--glass-yellow);
  box-shadow: var(--glass-shadow);
  font-size: var(--t-caption);
}

/* The switch in the dashboard */
.soon-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
  padding: var(--s3);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
}
.soon-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.soon-switch-track {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 99px;
  background: rgb(16 16 15 / 0.16);
  transition: background 200ms;
}
.soon-switch-track i {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
  transition: transform 200ms;
}
.soon-switch input:checked + .soon-switch-track {
  background: var(--fg);
}
.soon-switch input:checked + .soon-switch-track i {
  transform: translateX(20px);
  background: var(--yellow);
}
html[dir="rtl"] .soon-switch input:checked + .soon-switch-track i {
  transform: translateX(-20px);
}
.soon-switch input:focus-visible + .soon-switch-track {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.soon-switch input:disabled + .soon-switch-track {
  opacity: 0.5;
}
.soon-switch-text {
  display: grid;
  gap: 2px;
  flex: 1 1 220px;
}
.soon-switch-text small {
  color: var(--fg-soft);
  font-size: var(--t-caption);
}
.soon-switch .link {
  font-size: var(--t-caption);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soon-switch + .tabs {
  margin-top: var(--s3);
}

/* ── Logofolio (Work › Logo design): two rows moving in opposite directions.
      Every logo sits in the same tile, fitted into the same box. ─────────── */
.logofolio {
  --tile-w: clamp(170px, 19vw, 250px);
  --tile-h: calc(var(--tile-w) * 0.66);
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
  margin-inline: calc(var(--pad) * -1);
  padding-block: var(--s2);
  direction: ltr;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.lf-track {
  display: flex;
  width: max-content;
  animation: lf-move 60s linear infinite;
}
.lf-row-2 .lf-track {
  animation-duration: 70s;
  animation-direction: reverse;
}
.logofolio:hover .lf-track {
  animation-play-state: paused;
}
.lf-track ul {
  display: flex;
  flex: none;
  gap: var(--s3);
  padding-inline-end: var(--s3);
}
.lf-tile {
  width: var(--tile-w);
  height: var(--tile-h);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.lf-tile.dark {
  background: var(--fg);
}
.lf-tile img {
  /* A fixed box inside the tile: wide logos fill its width, tall ones its height. */
  width: calc(var(--tile-w) * 0.62);
  height: calc(var(--tile-h) * 0.56);
  object-fit: contain;
}
.lf-tile:hover {
  transform: translateY(-4px);
}
@keyframes lf-move {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logofolio {
    -webkit-mask-image: none;
    mask-image: none;
    margin-inline: 0;
  }
  .lf-track {
    animation: none;
    width: auto;
  }
  .lf-track ul {
    flex-wrap: wrap;
  }
  .lf-track ul[aria-hidden],
  .lf-tile:has(img[data-alt]) {
    display: none;
  }
}
.work-grid:empty {
  display: none;
}

/* ── Process (Contact) ───────────────────────────────────────────────────── */
.process {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (min-width: 620px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Form (Contact) ──────────────────────────────────────────────────────── */
.contact-form {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: var(--s4) var(--s3);
}
.contact-form .row {
  display: grid;
  gap: var(--s3);
}
.field {
  display: grid;
  gap: var(--s1);
}
.field label {
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--fg-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--s2) var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: rgb(255 255 255 / 0.7);
  font: inherit;
  color: var(--fg);
  transition: border-color 200ms, box-shadow 200ms;
}
.field textarea {
  min-height: 144px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow-ink);
  box-shadow: 0 0 0 3px rgb(255 212 0 / 0.35);
}
.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
}
.form-note {
  font-size: var(--t-caption);
  color: var(--fg-faint);
}
@media (min-width: 760px) {
  .contact-form {
    padding: var(--s5);
  }
  .contact-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  padding-block: var(--s5) var(--s6);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  font-size: var(--t-caption);
  color: var(--fg-faint);
}
.footer-row img {
  height: 26px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: var(--s3);
  font-weight: 500;
  color: var(--fg-soft);
}
.footer-nav a:hover {
  color: var(--fg);
}
/* Pages without the hero: a little air above the footer. */
main.below {
  padding-bottom: var(--s5);
}

/* ── Draft pill ──────────────────────────────────────────────────────────── */
.draft {
  position: fixed;
  inset-inline-end: var(--s2);
  bottom: var(--s2);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 34px;
  padding: 5px var(--s2);
  border-radius: 999px;
  font-size: var(--t-label);
  font-weight: 500;
}
.draft[hidden] {
  display: none;
}
.draft i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--yellow);
}
@media print {
  .draft {
    display: none;
  }
}

/* ── Legal pages (privacy, terms) ─────────────────────────────────────── */
.legal {
  align-content: start;
  max-width: 46rem;
  padding-bottom: var(--s6, 89px);
}
.legal-date {
  font-size: var(--t-label);
  color: var(--fg-faint);
}
.legal-block {
  display: grid;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.legal-block h2 {
  font-size: var(--t-subtitle);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.legal-block p {
  font-size: var(--t-body, 1rem);
}
.legal a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 0.2em;
}
/* Footer: privacy and terms links */
.sf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.sf-legal a:hover {
  color: var(--fg);
}
/* 404 */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
