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

:root {
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --ink: #111111;
  --muted: #8f8f8f;
  --faint: #c9c9c9;
  --nav-idle: #a8a8a8;
  --line: #ececec;
  --field: #f5f5f4;
  --btn-hover: #333333;
  --error: #c2410c;
  --live: #1f9d55;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-1: 3px;
  --round: 999px;
  --gutter: clamp(16px, 2.6vw, 38px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
/* Dark mode: the same page with the tones reversed. Set on <html> by the switch (or the visitor's system setting). */
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --bg-rgb: 11, 11, 11;
  --ink: #f1f1f0;
  --muted: #8b8b8b;
  --faint: #4d4d4d;
  --nav-idle: #6c6c6c;
  --line: #222222;
  --field: #161616;
  --btn-hover: #d6d6d6;
  --error: #f0794a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-1); }
h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 40; }
.skip:focus { left: 8px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--gutter);
  pointer-events: none;
}
body:not(.is-home) .nav { background: var(--bg); }
.nav > * { pointer-events: auto; }
.nav__name { font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.nav nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav nav a { position: relative; transition: color 160ms ease; }
.nav nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%; margin-top: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}
.is-home .nav { color: #fff; }
.is-home .nav nav a[aria-current="page"]::before { background: #fff; }
/* Gallery corners: shaped blur behind the title, the navigation and the copyright line.
   Each is a corner-anchored ellipse, strongest and darkest behind the text and fading out on a curve.
   Small areas and four layers each, so the moving canvas stays smooth. */
.glow { position: fixed; z-index: 20; pointer-events: none; contain: strict; transform: translateZ(0); }
.glow i { position: absolute; inset: 0; }
.glow--tl { left: 0; top: 0; width: clamp(320px, 32vw, 560px); height: clamp(180px, 27vh, 270px); }
.glow--tr { right: 0; top: 0; width: clamp(420px, 44vw, 780px); height: clamp(180px, 27vh, 270px); }
.glow--bl { left: 0; bottom: 0; width: clamp(300px, 30vw, 520px); height: clamp(150px, 21vh, 220px); }
.glow--tl i:nth-child(1) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 40%, transparent 100%); }
.glow--tl i:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 32%, transparent 86%); mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 32%, transparent 86%); }
.glow--tl i:nth-child(3) { -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 24%, transparent 70%); mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 24%, transparent 70%); }
.glow--tl i:nth-child(4) { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 14%, transparent 54%); mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, #000 14%, transparent 54%); }
.glow--tl i:nth-child(5) { background: radial-gradient(ellipse 100% 100% at 0% 0%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.677) 14%, rgba(0, 0, 0, 0.59) 28%, rgba(0, 0, 0, 0.461) 42%, rgba(0, 0, 0, 0.317) 56%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.072) 84%, rgba(0, 0, 0, 0.0) 100%); }
.glow--tr i:nth-child(1) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 40%, transparent 100%); }
.glow--tr i:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 32%, transparent 86%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 32%, transparent 86%); }
.glow--tr i:nth-child(3) { -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 24%, transparent 70%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 24%, transparent 70%); }
.glow--tr i:nth-child(4) { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 14%, transparent 54%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, #000 14%, transparent 54%); }
.glow--tr i:nth-child(5) { background: radial-gradient(ellipse 100% 100% at 100% 0%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.677) 14%, rgba(0, 0, 0, 0.59) 28%, rgba(0, 0, 0, 0.461) 42%, rgba(0, 0, 0, 0.317) 56%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.072) 84%, rgba(0, 0, 0, 0.0) 100%); }
.glow--bl i:nth-child(1) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 40%, transparent 100%); }
.glow--bl i:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 32%, transparent 86%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 32%, transparent 86%); }
.glow--bl i:nth-child(3) { -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 24%, transparent 70%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 24%, transparent 70%); }
.glow--bl i:nth-child(4) { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 14%, transparent 54%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, #000 14%, transparent 54%); }
.glow--bl i:nth-child(5) { background: radial-gradient(ellipse 100% 100% at 0% 100%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.658) 14%, rgba(0, 0, 0, 0.574) 28%, rgba(0, 0, 0, 0.448) 42%, rgba(0, 0, 0, 0.308) 56%, rgba(0, 0, 0, 0.175) 70%, rgba(0, 0, 0, 0.07) 84%, rgba(0, 0, 0, 0.0) 100%); }

/* Home: the endless canvas */
.home { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: 0; }
.home.is-dragging { cursor: grabbing; }
.canvas { --c: 150px; --g: 22px; --cap: 30px; position: absolute; inset: 0; }
.ctrack { position: absolute; left: 0; top: 0; display: flex; gap: var(--g); will-change: transform; }
.cblock { display: flex; gap: var(--g); }
.ccol { flex: none; width: var(--c); }
.ccol--W { width: calc(2 * var(--c) + var(--g)); }
.ccol--X { width: calc(4 * var(--c) + 3 * var(--g)); }
.cstack { display: flex; flex-direction: column; gap: var(--g); will-change: transform; }
.cset { display: flex; flex-direction: column; gap: var(--g); }
.crow { display: flex; gap: var(--g); }
.tile { flex: 1 1 0; min-width: 0; display: block; cursor: pointer; }
.is-dragging .tile { cursor: grabbing; }
.m { position: relative; display: block; overflow: hidden; border-radius: var(--r-1); background: var(--field); aspect-ratio: 9 / 16; }
.m--wide { aspect-ratio: 16 / 9; }
.m img, .m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.cap { height: var(--cap); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-size: 0.75rem; line-height: 1.25; }
.cap > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.tile--big .cap { font-size: 0.8125rem; }
@media (prefers-reduced-motion: no-preference) {
  .canvas { animation: appear 600ms ease both; }
  @keyframes appear { from { opacity: 0; } }
}

.home__line {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; font-size: 0.875rem; font-weight: 400; line-height: 1; white-space: nowrap; text-align: center;
  background: var(--bg); padding: 12px 18px; border-radius: var(--r-1);
  pointer-events: none; z-index: 10;
}
.home__copy {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 30; margin: 0;
  font-size: 0.8125rem; color: #fff; pointer-events: none;
}

/* Dock */
.dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: stretch;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--round);
  font-size: 0.8125rem; white-space: nowrap; overflow: hidden;
}
.dock__status { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 16px; color: var(--muted); border-right: 1px solid var(--line); }
.dock__status i { width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.dock a { padding: 9px 16px 9px 14px; transition: background-color 160ms ease; }
.dock a:active { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .dock a:hover { background: var(--field); } }

/* Inner pages */
.page { padding: 100px var(--gutter) 0; }
.page--narrow { max-width: calc(520px + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(120px, 20vh, 170px); }
.page--form { max-width: calc(400px + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(110px, 16vh, 140px); }
.label { font-size: 0.875rem; font-weight: 400; color: var(--muted); margin-bottom: 12px; }
.foot { text-align: center; font-size: 0.8125rem; padding: clamp(64px, 12vh, 120px) var(--gutter) 28px; }

/* Work: a ruled list of clients */
.page--list { max-width: calc(900px + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(110px, 17vh, 150px); }
.wsec + .wsec { margin-top: clamp(40px, 6vh, 64px); }
.wlist { list-style: none; border-top: 1px solid var(--line); }
.wrow {
  display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.wrow__avs { display: flex; }
.av { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; background: var(--field); box-shadow: 0 0 0 2px var(--bg); flex: none; }
.wrow__avs .av + .av { margin-left: -18px; }
.wrow__name { font-size: 1.1875rem; letter-spacing: -0.015em; transition: color 160ms ease; }
.wrow__meta { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow__meta { text-align: right; }

/* Shared: platform logos and the views line */
.ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.stats { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats .ico { opacity: 0.85; }
.stats > span { margin-left: 2px; }

/* Client page */
.project { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: 0 clamp(24px, 4vw, 64px); padding-top: 64px; padding-right: 0; }
.project__text { position: sticky; top: 0; align-self: start; padding-top: clamp(60px, 12vh, 110px); max-width: 300px; }
.pavs { display: flex; margin-bottom: 16px; }
.pavs .av { width: 84px; height: 84px; }
.pavs--many .av { width: 56px; height: 56px; }
.pavs--many .av + .av { margin-left: -16px; }
.reach { margin-top: clamp(20px, 3.5vh, 34px); }
.reach__total { font-size: 0.875rem; color: var(--muted); }
.reach__total--second { margin-top: 10px; }
.reach__total strong { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.reach__parts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.reach__parts > span { display: inline-flex; align-items: center; gap: 6px; }
.project__text h1 { font-size: 1.375rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.socials { display: flex; gap: 6px; margin-top: 14px; }
.soc { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: background-color 160ms ease; }
.soc:active { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .soc:hover { background: var(--field); } }
.pfacts { margin: clamp(24px, 4vh, 40px) 0 0; font-size: 0.8125rem; }
.pfacts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 12px; padding: 4px 0; }
.pfacts dt { color: var(--muted); }
.pfacts dd { margin: 0; font-variant-numeric: tabular-nums; }
.project__contact { margin-top: clamp(24px, 4vh, 40px); }
.pnames { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: clamp(20px, 3.5vh, 34px); }
.pname { font: 400 0.8125rem/1.5 var(--font); letter-spacing: inherit; color: var(--faint); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color 180ms ease, transform 220ms var(--ease-out); }
.pname[aria-current="true"] { color: var(--ink); transform: translateX(8px); }
.now { margin-top: clamp(20px, 3.5vh, 34px); padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; min-height: 96px; align-content: start; }
.now__name { font-size: 1rem; }
.now__note { color: var(--ink); font-size: 0.875rem; line-height: 1.45; max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project__media { min-width: 0; }
.m video[controls] { pointer-events: auto; }

/* Cover-flow carousel: current video centred, the rest stepping back at the sides */
.car { --h: min(calc(100dvh - 250px), 800px); }
.car__track {
  position: relative; display: flex; gap: 0; align-items: center;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  outline-offset: -2px; padding-block: 34px; min-height: min(calc(var(--h) + 68px), 78vh);
}
.car__track::-webkit-scrollbar { display: none; }
.slide { flex: none; margin: 0; scroll-snap-align: center; will-change: transform, opacity; cursor: pointer; transform-origin: center center; }
.slide.is-cur { cursor: default; }
.slide .m { height: var(--h); width: auto; border-radius: 0; }
.slide--wide .m { height: auto; width: min(calc(var(--h) * 16 / 9), 50vw); }
.slide:not(.is-cur) video { pointer-events: none; }
/* Carousel edges: five blur bands that ramp up, an eased fade to the page colour,
   and a soft top and bottom so the blur never ends on a line. */
.car__view { position: relative; background: var(--bg); isolation: isolate; }
.car__edge {
  position: absolute; top: 0; bottom: 0; width: var(--edge, clamp(70px, 15%, 210px)); pointer-events: none; z-index: 200;
}
.car__edge i { position: absolute; inset: 0; }
.car__edge--l { left: 0; }
.car__edge--r { right: 0; }
.car__edge--l i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to left, transparent 0.0%, #000 16.7%, #000 33.3%, transparent 50.0%); mask-image: linear-gradient(to left, transparent 0.0%, #000 16.7%, #000 33.3%, transparent 50.0%); }
.car__edge--l i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to left, transparent 16.7%, #000 33.3%, #000 50.0%, transparent 66.7%); mask-image: linear-gradient(to left, transparent 16.7%, #000 33.3%, #000 50.0%, transparent 66.7%); }
.car__edge--l i:nth-child(3) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(to left, transparent 33.3%, #000 50.0%, #000 66.7%, transparent 83.3%); mask-image: linear-gradient(to left, transparent 33.3%, #000 50.0%, #000 66.7%, transparent 83.3%); }
.car__edge--l i:nth-child(4) { -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); -webkit-mask-image: linear-gradient(to left, transparent 50.0%, #000 66.7%, #000 83.3%, transparent 100%); mask-image: linear-gradient(to left, transparent 50.0%, #000 66.7%, #000 83.3%, transparent 100%); }
.car__edge--l i:nth-child(5) { -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); -webkit-mask-image: linear-gradient(to left, transparent 66.7%, #000 83.3%, #000 100%); mask-image: linear-gradient(to left, transparent 66.7%, #000 83.3%, #000 100%); }
.car__edge--r i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to right, transparent 0.0%, #000 16.7%, #000 33.3%, transparent 50.0%); mask-image: linear-gradient(to right, transparent 0.0%, #000 16.7%, #000 33.3%, transparent 50.0%); }
.car__edge--r i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to right, transparent 16.7%, #000 33.3%, #000 50.0%, transparent 66.7%); mask-image: linear-gradient(to right, transparent 16.7%, #000 33.3%, #000 50.0%, transparent 66.7%); }
.car__edge--r i:nth-child(3) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(to right, transparent 33.3%, #000 50.0%, #000 66.7%, transparent 83.3%); mask-image: linear-gradient(to right, transparent 33.3%, #000 50.0%, #000 66.7%, transparent 83.3%); }
.car__edge--r i:nth-child(4) { -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); -webkit-mask-image: linear-gradient(to right, transparent 50.0%, #000 66.7%, #000 83.3%, transparent 100%); mask-image: linear-gradient(to right, transparent 50.0%, #000 66.7%, #000 83.3%, transparent 100%); }
.car__edge--r i:nth-child(5) { -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); -webkit-mask-image: linear-gradient(to right, transparent 66.7%, #000 83.3%, #000 100%); mask-image: linear-gradient(to right, transparent 66.7%, #000 83.3%, #000 100%); }
.car__edge--l i:nth-child(6) { background: linear-gradient(to left, rgba(var(--bg-rgb), 0) 0%, rgba(var(--bg-rgb), 0.01) 12%, rgba(var(--bg-rgb), 0.04) 25%, rgba(var(--bg-rgb), 0.1) 38%, rgba(var(--bg-rgb), 0.2) 50%, rgba(var(--bg-rgb), 0.36) 62%, rgba(var(--bg-rgb), 0.56) 74%, rgba(var(--bg-rgb), 0.78) 86%, rgba(var(--bg-rgb), 0.92) 94%, rgba(var(--bg-rgb), 1) 100%); }
.car__edge--r i:nth-child(6) { background: linear-gradient(to right, rgba(var(--bg-rgb), 0) 0%, rgba(var(--bg-rgb), 0.01) 12%, rgba(var(--bg-rgb), 0.04) 25%, rgba(var(--bg-rgb), 0.1) 38%, rgba(var(--bg-rgb), 0.2) 50%, rgba(var(--bg-rgb), 0.36) 62%, rgba(var(--bg-rgb), 0.56) 74%, rgba(var(--bg-rgb), 0.78) 86%, rgba(var(--bg-rgb), 0.92) 94%, rgba(var(--bg-rgb), 1) 100%); }
/* Top and bottom of the whole carousel melt into the page as well. */
.car__view::before, .car__view::after { content: ""; position: absolute; left: 0; right: 0; height: 34px; z-index: 210; pointer-events: none; }
.car__view::before { top: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(var(--bg-rgb), 0.7) 40%, rgba(var(--bg-rgb), 0) 100%); }
.car__view::after { bottom: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), 0.7) 40%, rgba(var(--bg-rgb), 0) 100%); }
.car__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; padding-right: var(--gutter); }
.car__dots { display: flex; flex-wrap: wrap; gap: 8px; }
.car__dot { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; margin: -6px; }
.car__dot::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.car__dot[aria-current="true"]::after { background: var(--ink); transform: scale(1.3); }
.car__btn { font: 400 0.8125rem/1 var(--font); letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer; transition: color 160ms ease; }
.car__btn:disabled { color: var(--faint); cursor: default; }
@media (hover: hover) and (pointer: fine) { .car__btn:not(:disabled):hover { color: var(--muted); } }

/* Big list: text on the left of each video */
.is-list .project { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
.is-list .project__text { position: static; max-width: none; padding-bottom: clamp(28px, 5vh, 48px); }
.lrow { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: 0 clamp(24px, 4vw, 64px); padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.lrow__text { position: sticky; top: 90px; display: grid; gap: 10px; justify-items: start; }
.lrow__text h2 { font-size: 1rem; font-weight: 400; }
.lrow__note { color: var(--muted); max-width: 34ch; }
.lrow .m { border-radius: 0; height: min(calc(100dvh - 150px), 820px); width: auto; justify-self: start; }
.lrow .m--wide { height: auto; width: 100%; }

.soon { color: var(--muted); margin-top: 18px; font-size: 0.8125rem; }
.project__next { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 8vh, 80px); padding: 16px var(--gutter) 0 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.is-list .project__next { padding-right: 0; }
.project__next a:last-child { color: var(--muted); }

/* Player */
.player { border: 0; padding: 0; background: none; max-width: none; max-height: none; width: 100vw; height: 100dvh; overflow: hidden; }
.player::backdrop { background: rgba(var(--bg-rgb), 0.96); }
.player__in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px var(--gutter) 28px; }
.player video { max-width: 100%; max-height: calc(100dvh - 170px); border-radius: var(--r-1); background: #000; display: block; }
.player__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 0.875rem; }
.player__meta > span:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.player__close { position: absolute; right: calc(var(--gutter) - 10px); top: 16px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); background: none; border: 0; border-radius: 50%; cursor: pointer; transition: background-color 160ms ease, transform 200ms var(--ease-out); }
.player__close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .player__close:hover { background: var(--field); transform: rotate(90deg); } }
@media (prefers-reduced-motion: no-preference) {
  .player[open] .player__in { animation: rise 220ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: scale(0.97); } }
}

/* About */
.lead { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 400; line-height: 1.28; letter-spacing: -0.02em; text-wrap: balance; }
.sub { color: var(--muted); margin-top: 18px; }
.page--narrow section { margin-top: clamp(44px, 7vh, 76px); }
.names { list-style: none; columns: 3; column-gap: 20px; }
.names li { break-inside: avoid; line-height: 1.75; }
.u { transition: color 160ms ease; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 7vh, 72px); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  font: 400 0.8125rem/1 var(--font); letter-spacing: inherit; color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--round); padding: 12px 18px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn--ghost { color: var(--ink); background: var(--bg); border-color: var(--line); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); }
  .btn--ghost:hover { background: var(--field); }
}

/* Contact */
.form { display: grid; }
.form[hidden] { display: none; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  font: 400 0.875rem/1.5 var(--font); letter-spacing: inherit; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 13px 0; width: 100%; resize: vertical;
  transition: border-color 140ms ease;
}
.form ::placeholder { color: var(--faint); opacity: 1; }
.form input:focus-visible, .form textarea:focus-visible { outline: 0; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form fieldset { border: 0; margin: 26px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-size: 0.8125rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  display: inline-block; font-size: 0.8125rem; line-height: 1; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--round);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opt:hover input:not(:checked) + span { background: var(--field); } }
.form__error { color: var(--error); font-size: 0.8125rem; margin-top: 14px; }
.form .actions { margin-top: 28px; }

@media (max-width: 700px) {
  .nav { padding: 20px var(--gutter); }
  .nav__name { font-size: 1.0625rem; }
  .nav nav { gap: 13px; font-size: 0.8125rem; }
  .nav nav a[aria-current="page"] { padding-left: 10px; }
  .nav nav a[aria-current="page"]::before { width: 4px; height: 4px; }
  .canvas { --c: 104px; --g: 14px; --cap: 28px; }
  .wrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .av { width: 52px; height: 52px; }
  .wrow__name { font-size: 1.0625rem; }
  .project { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
  .project__text { position: static; padding-top: 40px; margin-bottom: 28px; }
  .car { --h: min(calc(100dvh - 240px), 620px); }
  .car__nav { padding-right: 0; }
  .slide--wide .m { width: 84vw; }
  .lrow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lrow__text { position: static; }
  .lrow .m { height: auto; width: 100%; }
  .names { columns: 2; }
  .glow--tr { width: 84vw; }
  .glow--tl { width: 56vw; }
  .glow--bl { width: 70vw; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Small interactions (pointer devices only; movement is skipped under reduced motion) */
.nav nav a::after, .u::after, .project__next a::after, .back a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out);
}
.u, .project__next a, .back a { position: relative; }

.soc { transition: background-color 160ms ease, transform 200ms var(--ease-out); }
.soc:active, .car__btn:not(:disabled):active { transform: scale(0.94); }
.tile .m img { transition: opacity 180ms ease, transform 420ms var(--ease-out); }
.opt > span { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 160ms var(--ease-out); }
.opt:active > span { transform: scale(0.96); }
.car__btn { transition: color 160ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover::after, .u:hover::after, .project__next a:hover::after, .back a:hover::after { transform: scaleX(1); }
  .is-home .nav nav a:hover, .is-home .nav__name:hover { color: #fff; }
  .soc:hover { transform: translateY(-2px); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
  .car__dot:hover::after { background: var(--muted); transform: scale(1.5); }
  .tile:hover .m img { opacity: 1; transform: scale(1.03); }
  .pname:hover { color: var(--muted); }
  .slide:not(.is-cur):hover { filter: brightness(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .nav nav a::after, .u::after, .project__next a::after, .back a::after, .wrow__name, .wrow__avs, .soc, .tile .m img, .pname { transition: none; }
}

.links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.links--contact { margin-top: clamp(36px, 6vh, 60px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; }

/* Page changes: a short blur-and-fade, used only to and from the Gallery (see the script in each page head) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-out 170ms cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in 380ms var(--ease-out) both; }
  @keyframes page-out { to { opacity: 0; filter: blur(14px); } }
  @keyframes page-in { from { opacity: 0; filter: blur(18px); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .project { grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr); }
  .canvas { --c: 128px; --g: 18px; }
  .slide--wide .m { width: 56vw; }
}

/* Contact: dial code next to the WhatsApp number, and icon links */
.tel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; border-bottom: 1px solid var(--line); transition: border-color 140ms ease; }
.tel:focus-within { border-color: var(--ink); }
.tel select, .form .tel input[type="tel"] { border: 0; }
.tel select { font: 400 0.875rem/1.5 var(--font); letter-spacing: inherit; color: var(--ink); background: none; padding: 13px 18px 13px 0; cursor: pointer; appearance: none; -webkit-appearance: none; max-width: 150px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 7px) 55%, calc(100% - 3px) 55%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.tel select:focus-visible { outline: 0; }
.links--icons { gap: 8px; }
.links--icons .soc { width: 38px; height: 38px; }
.links--icons .ico { width: 16px; height: 16px; }

/* Contact: one column. Send and Book a call side by side, then the ways to reach Md directly */
.page--contact { max-width: calc(460px + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(110px, 16vh, 150px); }
.page--contact .label { margin-bottom: 18px; }
.contact__form .form fieldset { margin: 28px 0 12px; }
.form-done { padding: 0; outline: 0; }
.form-done .lead { margin: 0; }
.form-done .sub { margin-top: 10px; max-width: 36ch; }
.form-done .actions { margin-top: 28px; }
.reach-me { list-style: none; margin: clamp(40px, 6vh, 56px) 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.reach-me a { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 0.875rem; }
.reach-me .soc { flex: none; width: 38px; height: 38px; }
.reach-me__k { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .reach-me a:hover .soc { transform: translateY(-2px); } }

/* Inner pages: the page you are on is black, the other nav items are faded until hovered */
body:not(.is-home) .nav nav a { color: var(--nav-idle); }
body:not(.is-home) .nav nav a[aria-current="page"] { color: var(--ink); }
body:not(.is-home) .nav nav a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  body:not(.is-home) .nav nav a:hover { color: var(--ink); }
}

/* The dot takes its own space inside the current item, so the gap before it matches the other gaps */
.nav nav a[aria-current="page"] { padding-left: 13px; }
.nav nav a[aria-current="page"]::before { left: 0; }
.nav nav a[aria-current="page"]::after { left: 13px; }
@media (max-width: 700px) {
  .nav nav a[aria-current="page"] { padding-left: 10px; }
  .nav nav a[aria-current="page"]::after { left: 10px; }
}

/* Work rows: each letter of a name is pushed away by the cursor (positions set from main.js),
   the picture of the nearest row grows a little, and everything springs back on leave. */
.wrow__avs { transform-origin: left center; transition: transform 260ms var(--ease-out); transform: scale(var(--s, 1)); }
.wrow__meta { transition: color 200ms ease; }
.wrow.is-near .wrow__meta { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .wrow__avs { transition: none; transform: none; } }

.wrow .wrow__avs--many .av + .av { margin-left: -36px; }
@media (max-width: 700px) { .wrow .wrow__avs--many .av + .av { margin-left: -32px; } }
@media (max-width: 700px) { .wrow .wrow__avs--many .av { width: 40px; height: 40px; } .wrow .wrow__avs--many .av + .av { margin-left: -22px; } }

/* Letters that lean away from the cursor (moved by main.js). Each letter is its own inline block. */
.rx__w { display: inline-block; white-space: nowrap; }
.rx__c { display: inline-block; transition: transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1.1); }

/* Letter wrappers are pure text: no borders, padding, backgrounds or spacing of their own, whatever the parent rule says. */
.rx, .rx__w, .rx__c { border: 0; padding: 0; margin: 0; background: none; outline: 0; border-radius: 0; gap: 0; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; }
.rx { display: inline; }

/* Stacked profile pictures: each one moves on its own (positions set from main.js) */
.stack { transform: none !important; }
.stack .av { position: relative; transition: transform 320ms var(--ease-out); will-change: transform; }

/* Dark mode details */
:root[data-theme="dark"] .ico { filter: invert(1); }
:root[data-theme="dark"] .form ::placeholder { color: var(--faint); }
html { background: var(--bg); }

/* Client header order: picture, name, follower total, then the social icons */
.reach { margin-top: 12px; }
.socials { margin-top: 16px; }


/* ============ Phones (up to 700px) ============ */
@media (max-width: 700px) {
  /* Nav: comfortable tap areas without changing how it looks */
  .nav { padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 14px; }
  .nav nav { gap: 6px; }
  .nav nav a { padding: 8px 5px; }
  .nav nav a[aria-current="page"] { padding-left: 14px; }
  .nav nav a[aria-current="page"]::before { left: 4px; }
  .nav nav a[aria-current="page"]::after { left: 14px; }
  .nav nav a::after { bottom: 5px; right: 5px; left: 5px; }

  /* Page rhythm */
  .page { padding-top: 84px; }
  .page--list, .page--narrow, .page--contact { padding-top: 96px; }
  .foot { padding: 56px var(--gutter) calc(64px + env(safe-area-inset-bottom)); }

  /* Work list: picture, then name with the follower count under it; names share one left edge */
  .wsec + .wsec { margin-top: 36px; }
  .wrow { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; padding: 14px 0; align-items: center; }
  .wrow__avs { grid-row: 1 / span 2; }
  .wrow__name { grid-column: 2; align-self: end; font-size: 1.0625rem; line-height: 1.25; }
  .wrow__meta { grid-column: 2; align-self: start; text-align: left; font-size: 0.8125rem; }
  .wrow__name:only-of-type, .wrow__meta:empty { display: block; }
  .wrow .av { width: 52px; height: 52px; }
  .wrow .wrow__avs.stack .av, .wrow .wrow__avs:has(.av + .av) .av { width: 38px; height: 38px; }
  .wrow .wrow__avs:has(.av + .av) .av + .av { margin-left: -15px; }
  .wrow .wrow__avs:has(.av + .av) .av:nth-child(n+4) { display: none; }

  /* Client page: header, then the video, then its details and the button */
  .project { display: block; padding-top: 84px; padding-right: var(--gutter); }
  .project__text { position: static; padding-top: 12px; margin-bottom: 8px; max-width: none; }
  .pavs .av { width: 72px; height: 72px; }
  .pavs--many .av { width: 48px; height: 48px; }
  .reach__total strong { font-size: 1.5rem; }
  .soc { width: 40px; height: 40px; }
  .pnames { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; }
  .pname[aria-current="true"] { transform: none; }
  .car { --h: min(calc(100dvh - 250px), 640px); margin: 0 calc(-1 * var(--gutter)); }
  .car__track { padding-block: 18px; min-height: 0; }
  .car__view::before, .car__view::after { height: 18px; }
  .car__nav { margin-top: 8px; padding: 0; gap: 12px; }
  .car__btn { padding: 12px 6px; }
  .car__dot { width: 26px; height: 26px; margin: -8px; }
  .car__dot::after { left: 10px; top: 10px; }
  .project__media .now { margin-top: 18px; min-height: 0; }
  .project__media .project__contact { margin-top: 22px; }
  .project__media .project__contact .btn { display: block; text-align: center; padding: 15px 18px; }
  .project__next { margin-top: 40px; padding-right: 0; }

  /* About */
  .lead { font-size: 1.25rem; }
  .page--narrow section { margin-top: 40px; }
  .names { column-gap: 16px; }
  .names li { line-height: 2; }
  .links { gap: 10px 18px; }
  .actions .btn { flex: 1 1 auto; text-align: center; padding: 15px 18px; }

  /* Contact: 16px fields so iOS does not zoom in on focus; full-width send button */
  .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .tel select { font-size: 16px; }
  .opt > span { padding: 11px 15px; }
  .form .actions .btn { width: 100%; }
  .links--icons .soc { width: 44px; height: 44px; }
  .reach-me .soc { width: 44px; height: 44px; }

  /* Player */
  .player__in { padding: 60px 12px calc(20px + env(safe-area-inset-bottom)); gap: 12px; }
  .player video { max-height: calc(100dvh - 170px); width: auto; }
  .player__close { top: calc(10px + env(safe-area-inset-top)); right: 8px; width: 44px; height: 44px; }

  /* Gallery */
  .glow--tl, .glow--tr { height: 150px; }
  .home__copy { display: block; left: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* Small phones */
@media (max-width: 360px) {
  .nav__name { font-size: 0.9375rem; }
  .nav nav { font-size: 0.75rem; gap: 2px; }
  .wrow { grid-template-columns: 74px minmax(0, 1fr); }
}
/* Small phones (320 to 360px): keep the wordmark clear of the nav and the picture stack clear of the name */
@media (max-width: 360px) {
  .nav__name { font-size: 0.875rem; letter-spacing: -0.01em; }
  .nav nav { gap: 0; font-size: 0.75rem; }
  .nav nav a { padding: 8px 4px; }
  .nav nav a[aria-current="page"] { padding-left: 12px; }
  .nav nav a[aria-current="page"]::before { left: 3px; }
  .nav nav a[aria-current="page"]::after { left: 12px; }
  .wrow .wrow__avs:has(.av + .av) .av { width: 32px; height: 32px; }
  .wrow .wrow__avs:has(.av + .av) .av + .av { margin-left: -13px; }
}

/* Contact: spam trap (never visible) and the sent confirmation */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-done { padding: 8px 0 24px; outline: 0; }
.form-done .sub { margin-top: 12px; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* Theme switch, bottom right: a sun and a moon on a small track; the knob sits behind the current mode's icon */
.theme {
  position: fixed; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 50px; height: 26px; padding: 0; border: 0; border-radius: var(--round); cursor: pointer;
  background: rgba(128, 128, 128, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0.8; transition: opacity 200ms ease;
}
.theme::before { content: ""; position: absolute; inset: -12px -10px; }
.theme__knob {
  position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); transition: transform 260ms var(--ease-out);
}
.theme[aria-checked="true"] .theme__knob { transform: translateX(24px); }
.theme__i {
  position: absolute; top: 7px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: color 200ms ease;
}
.theme__sun { left: 7px; }
.theme__moon { right: 7px; }
.theme[aria-checked="false"] .theme__sun, .theme[aria-checked="true"] .theme__moon { color: var(--bg); }
.is-home .theme__knob { background: #fff; }
.is-home .theme__i { color: rgba(255, 255, 255, 0.75); }
.is-home .theme[aria-checked="false"] .theme__sun, .is-home .theme[aria-checked="true"] .theme__moon { color: #111; }
.theme:active .theme__knob { scale: 0.92; }
@media (hover: hover) and (pointer: fine) { .theme:hover { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .theme__knob, .theme__i { transition: none; } }

/* Links page (/links): one centred column for the Instagram bio */
.page--links { max-width: calc(400px + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(64px, 12vh, 120px); text-align: center; display: grid; justify-items: center; }
.page--links .me { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.page--links .sub { margin-top: 8px; }
.linklist { list-style: none; padding: 0; margin: 32px 0 0; width: 100%; display: grid; gap: 10px; }
.linklist .btn { display: block; width: 100%; padding: 15px 18px; text-align: center; }
.links--center { justify-content: center; margin-top: 28px; }

/* Copy link: a quiet text button under a video's details (and in the Gallery player) */
.share { display: inline-block; font: inherit; font-size: 0.8125rem; letter-spacing: inherit; color: var(--muted); background: none; border: 0; padding: 8px 0; margin-top: 6px; cursor: pointer; transition: color 160ms ease; }
.player__meta .share { color: inherit; opacity: 0.7; margin: 0; padding: 0; }
@media (hover: hover) and (pointer: fine) { .share:hover { color: var(--ink); } .player__meta .share:hover { opacity: 1; color: inherit; } }
.now .share, .lrow .share { display: block; width: fit-content; text-align: left; padding-left: 0; padding-right: 0; }
.wsec, .page--narrow section { scroll-margin-top: 90px; }

/* About: the photo that follows the cursor over Md's name (moved by main.js) */
.hover-me { cursor: default; }
.cursor-photo {
  position: fixed; left: 0; top: 0; z-index: 60; width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  pointer-events: none; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}
