/* Akil Mutawakkil — portfolio. Brand: #4A0085 (purple) · #F43899 (pink) */
:root {
  --purple: #4a0085;
  --pink: #f43899;
  --bg: #0b0612;
  --bg-2: #120a1d;
  --card: #140b20;
  --card-2: #1b0f2b;
  --grid: rgb(160 80 255 / 12%);
  --line: rgb(214 170 255 / 14%);
  --line-2: rgb(230 190 255 / 26%);
  --text: #f8f1ff;
  --muted: rgb(242 228 255 / 64%);
  --faint: rgb(242 228 255 / 42%);
  --accent: #f43899;
  --accent-2: #ff6fb6;
  --accent-soft: rgb(244 56 153 / 14%);
  --link: #ff8cc6;
  --hl: rgb(244 56 153 / 42%);
  --hl-text: #fff;
  --btn: #f43899;
  --btn-text: #1c0030;
  --ok: #7ee2a8;
  --ok-bg: rgb(60 200 120 / 13%);
  --paper: #fbf6ff;
  --paper-ink: #1c1224;
  --shadow: 0 18px 50px rgb(0 0 0 / 50%);
  --display: "Bricolage Grotesque", inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, menlo, monospace;
  --sans: inter, system-ui, sans-serif;

  color-scheme: dark;
}

h1 em,
h2 em,
h3 em {
  font-style: normal;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fcf9fd;
    --bg-2: #f5eff8;
    --card: #fff;
    --card-2: #faf5fc;
    --grid: rgb(74 0 133 / 6.5%);
    --line: rgb(74 0 133 / 12%);
    --line-2: rgb(74 0 133 / 22%);
    --text: #1b1022;
    --muted: #5d5266;
    --faint: #8f8598;
    --accent: #f43899;
    --accent-2: #f43899;
    --accent-soft: rgb(74 0 133 / 7%);
    --link: #4a0085;
    --hl: rgb(244 56 153 / 24%);
    --hl-text: #1b1022;
    --btn: #4a0085;
    --btn-text: #fff;
    --ok: #0b7a3e;
    --ok-bg: rgb(11 122 62 / 10%);
    --paper: #fff;
    --paper-ink: #1b1022;
    --shadow: 0 16px 40px rgb(74 0 133 / 14%);

    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #fcf9fd;
  --bg-2: #f5eff8;
  --card: #fff;
  --card-2: #faf5fc;
  --grid: rgb(74 0 133 / 6.5%);
  --line: rgb(74 0 133 / 12%);
  --line-2: rgb(74 0 133 / 22%);
  --text: #1b1022;
  --muted: #5d5266;
  --faint: #8f8598;
  --accent: #f43899;
  --accent-2: #f43899;
  --accent-soft: rgb(74 0 133 / 7%);
  --link: #4a0085;
  --hl: rgb(244 56 153 / 24%);
  --hl-text: #1b1022;
  --btn: #4a0085;
  --btn-text: #fff;
  --ok: #0b7a3e;
  --ok-bg: rgb(11 122 62 / 10%);
  --paper: #fff;
  --paper-ink: #1b1022;
  --shadow: 0 16px 40px rgb(74 0 133 / 14%);

  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* stylelint-disable-next-line property-no-vendor-prefix -- still required by iOS Safari */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--pink);
  color: #fff;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sq {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

.hl {
  background: linear-gradient(
    transparent 12%,
    var(--hl) 12%,
    var(--hl) 88%,
    transparent 88%
  );
  color: var(--hl-text);
  padding: 0 0.12em;
  border-radius: 2px;
  /* stylelint-disable-next-line property-no-vendor-prefix -- still required by Safari */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  /* stylelint-disable-next-line property-no-vendor-prefix -- still required by Safari */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.sig {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.sig b {
  font-weight: 400;
  color: var(--accent);
}

.top nav {
  display: flex;
  gap: 4px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top nav a {
  padding: 2px 6px;
  color: var(--muted);
}

.top nav a:hover,
.top nav a[aria-current] {
  color: var(--text);
}

.top nav a[aria-current] {
  color: var(--accent);
}

.top nav a + a::before {
  content: "·";
  margin-right: 8px;
  color: var(--faint);
  font-style: normal;
}

.status {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

.status b {
  display: block;
  color: var(--text);
  font-weight: 500;
}

/* hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.gridbg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  /* stylelint-disable-next-line property-no-vendor-prefix -- still required by Safari */
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 40% 40%,
    #000 55%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 40% 40%,
    #000 55%,
    transparent 100%
  );
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(244 56 153 / 22%),
    rgb(74 0 133 / 12%) 45%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(10px);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}

.hero.solo .wrap {
  grid-template-columns: 1fr;
  padding-bottom: 64px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}

.back:hover {
  color: var(--text);
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  color: var(--text);
}

.avail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 3px rgb(53 208 127 / 20%);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-top: 22px;
}

.hero h1 em,
.head h2 em,
.end h2 em,
.prose h2 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero .lede {
  max-width: 580px;
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero .lede b {
  color: var(--text);
  font-weight: 500;
}

.hero .lede em {
  font-weight: 600;
  color: var(--accent-2);
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.loc svg {
  width: 15px;
  height: 15px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 1.8;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font: 500 14px var(--sans);
  border: 1px solid var(--line-2);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}

.btn.primary {
  background: var(--btn);
  color: var(--btn-text);
  border-color: transparent;
}

.btn.primary:hover {
  background: var(--btn);
  filter: brightness(1.08);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
}

.stage {
  position: relative;
  height: 440px;
}

.polaroid {
  position: absolute;
  background: var(--paper);
  padding: 10px 10px 38px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.polaroid img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid span {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper-ink);
  opacity: 0.75;
}

.p1 {
  width: 300px;
  height: 340px;
  left: 4%;
  top: 30px;
  transform: rotate(-6deg);
}

.p2 {
  width: 280px;
  height: 230px;
  right: 0;
  top: 175px;
  transform: rotate(5deg);
}

.stage:hover .p1 {
  transform: rotate(-3deg) translateY(-4px);
}

.stage:hover .p2 {
  transform: rotate(2deg) translateY(-4px);
}

.sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
  white-space: nowrap;
}

.sticker svg {
  width: 15px;
  height: 15px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s1 {
  background: var(--pink);
  color: #fff;
  top: 4px;
  right: 16%;
  transform: rotate(6deg);
}

.s2 {
  background: var(--purple);
  color: #fff;
  left: 0;
  bottom: 30px;
  transform: rotate(-7deg);
}

.s3 {
  background: #ffd3ea;
  color: var(--purple);
  right: 3%;
  top: 118px;
  transform: rotate(-4deg);
}

/* numbers */
.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.nums div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.nums div:last-child {
  border-right: 0;
}

.nums b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nums b i {
  font-style: normal;
  color: var(--accent-2);
}

.nums span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* sections */
section {
  padding: 84px 0 0;
  scroll-margin-top: 70px;
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.head p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14.5px;
}

.kick {
  color: var(--muted);
  margin-bottom: 12px;
}

/* cards (work / projects / launches) */
.lgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.lgrid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.lc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.lc:hover .thumb img {
  transform: scale(1.03);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgb(11 6 18 / 80%));
  pointer-events: none;
}

.tag-hl {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.tag-hl .hl {
  --hl: var(--pink);

  color: #fff;
}

.tag-hl small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 5px;
  text-transform: uppercase;
}

.lc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.live {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.cad {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 1px 8px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.lc .metric {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.lc p {
  color: var(--muted);
  font-size: 14px;
}

.ul {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  width: max-content;
  padding-bottom: 1px;
}

.ul svg {
  width: 12px;
  height: 12px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
}

.term {
  background: #0e0717;
  color: #f3dcff;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  padding: 16px;
  height: 100%;
}

.term .d {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.term .d i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34214a;
}

.term .p {
  color: #7ee2a8;
}

.term .c {
  color: #ff8cc6;
}

.term .g {
  color: #8c7aa3;
}

.call {
  height: 100%;
  background: linear-gradient(160deg, #0e3b2c, #07261c);
  display: grid;
  place-items: center;
  color: #e8fff4;
}

.call .card {
  width: 74%;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.call .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
}

.call .av svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.call .n {
  font-weight: 600;
  font-size: 13px;
}

.call .s {
  font-size: 11px;
  opacity: 0.7;
}

.call .b {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.call .b i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

.call .b i:first-child {
  background: #ef4444;
}

.call .b i:last-child {
  background: #22c55e;
}

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px 0 8px;
  scrollbar-width: thin;
}

.strip button {
  flex: none;
  scroll-snap-align: start;
  border: 0;
  background: #1537d6;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
}

.strip img {
  height: 250px;
  width: auto;
}

/* career timeline */
.tl {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-top: 1px solid var(--line);
}

.tl + .tl {
  border-top: 1px solid var(--line);
}

.tl .side {
  border-right: 1px solid var(--line);
  padding: 28px 24px 28px 0;
  position: relative;
}

.tl .side .in {
  position: sticky;
  top: 90px;
}

.co {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.co i,
.co img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
  object-fit: cover;
}

.co i {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: grid;
  place-items: center;
}

.co i svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl .side .when {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.roles {
  list-style: none;
  margin-top: 18px;
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
  display: grid;
  gap: 12px;
}

.roles li {
  position: relative;
  font-size: 13.5px;
}

.roles li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.roles small {
  display: block;
  color: var(--faint);
  font-size: 12px;
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  padding: 24px 0 24px 28px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.row p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  max-width: 640px;
}

.row .st {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.row a.ul {
  margin-top: 12px;
}

.feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
}

.feat .vw {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}

.checks {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.checks li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.checks b {
  color: var(--text);
  font-weight: 500;
}

.checks a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  background: var(--card);
}

.chip i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.two > div {
  padding: 28px;
  background: var(--card);
}

.two > div + div {
  border-left: 1px solid var(--line);
}

.two h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.two h3 em {
  font-style: normal;
  color: var(--accent-2);
}

/* videos */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  grid-auto-flow: dense;
}

.vc {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.vc:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.vc.wide {
  grid-column: span 2;
}

.vgrid.tallgrid {
  grid-template-columns: repeat(4, 1fr);
}

.vc.tall .vw {
  aspect-ratio: 9/16;
}

.vc.tall .vm h3 {
  font-size: 14.5px;
}

/* video carousels (scroll-snap; arrows + counter in site.js) */
.vslider {
  --per: 3;
  --gap: 18px;
}

.vslider.tall {
  --per: 4;
}

.vtrack {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  padding: 4px 0 6px;
  border-radius: 14px;
}

.vtrack::-webkit-scrollbar {
  display: none;
}

.vtrack:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.vtrack > .vc {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start;
  min-width: 0;
}

.vctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.vslider.static .vctrl {
  display: none;
}

.vbtn {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}

.vbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vbtn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.vbtn:disabled {
  opacity: 0.35;
  cursor: default;
}

.vbar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.vbar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition:
    transform 0.25s ease-out,
    width 0.25s;
}

.vcount {
  font-size: 12px;
  color: var(--muted);
  min-width: 56px;
  text-align: center;
}

@media (width <= 1020px) {
  .vslider {
    --per: 2;
  }

  .vslider.tall {
    --per: 3;
  }
}

@media (width <= 640px) {
  .vslider {
    --per: 1.15;
    --gap: 12px;
  }

  .vslider.tall {
    --per: 1.7;
  }

  .vbtn {
    width: 38px;
    height: 38px;
  }
}

.pipe {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}

.pipe li {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  counter-increment: pipe;
}

.pipe li::before {
  content: counter(pipe);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

#vlb.tall {
  width: min(460px, 94vw);
}

#vlb.tall .vframe {
  aspect-ratio: 9/16;
  width: min(100%, calc(78vh * 9 / 16));
  width: min(100%, calc(78dvh * 9 / 16));
}

@media (width <= 1020px) {
  .vgrid.tallgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 720px) {
  .vgrid.tallgrid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .vc.tall .vm {
    padding: 10px 12px 12px;
  }
}

/* Speaking: featured talk left, the rest stacked right */
.tgrid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  align-items: start;
}

.tlist {
  display: grid;
  gap: 22px;
}

.tk {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.tk.big {
  grid-template-columns: 1fr;
  gap: 18px;
}

.tk-im {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 16/10;
  cursor: pointer;
}

.tk.big .tk-im {
  aspect-ratio: 4/3;
}

.tk-im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s;
}

.tk-im:hover img {
  transform: scale(1.04);
}

.tk-tx {
  position: relative;
  padding-right: 34px;
}

.tk-dt {
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
}

.tk h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 4px;
}

.tk.big h3 {
  font-size: 24px;
}

.tk h3 button {
  all: unset;
  cursor: pointer;
}

.tk h3 button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tk h3 button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tk-host {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}

.tk p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
}

.tk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tk-tags span {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
}

.tk-ext {
  position: absolute;
  top: -4px;
  right: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--link);
}

.tk-ext:hover {
  background: var(--card);
}

.tk-ext svg {
  width: 18px;
  height: 18px;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
}

#vlb.post {
  width: min(560px, 94vw);
}

#vlb.post .vframe {
  aspect-ratio: auto;
  width: 100%;
  height: 80vh;
  height: 80dvh;
  background: #fff;
}

#vlb.post .vframe::before {
  content: "Loading post…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 14px;
}

@media (width <= 1020px) {
  .tgrid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 720px) {
  .tk {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* What's it like working with me: praise collage around a photo */
.kd-panel {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 28px;
  padding: 56px 40px 64px;
}

.kd-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.kd-head .kick {
  justify-content: center;
}

.kd-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-top: 10px;
}

.kd-head h2 em {
  color: var(--accent);
}

.kd-head p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}

.ph-text {
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 2px 10px;
}

.kd-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.8fr) 1fr;
  gap: 28px;
  align-items: center;
}

.kd-col {
  display: grid;
  gap: 26px;
}

.kd-col:last-child {
  padding-top: 60px;
}

.kd {
  margin: 0;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s;
}

.kd:hover {
  transform: rotate(0deg) scale(1.02);
}

.kd.shot {
  --kc: var(--accent);

  background: #fff;
  color: #1b1022;
  border: 3px solid var(--kc);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 28%);
}

.kd.shot img {
  border-radius: 8px;
  width: 100%;
}

.kd.pink {
  --kc: #f43899;
}

.kd.violet {
  --kc: #a47cf3;
}

.kd.blue {
  --kc: #6f9fe6;
}

.kd.amber {
  --kc: #f2b544;
}

.kd.teal {
  --kc: #3dbfa8;
}

.kd.rose {
  --kc: #ea7d6f;
}

.kd.note {
  background: #bfe0fb;
  color: #12324d;
  padding: 22px 20px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgb(0 0 0 / 30%);
  max-width: 300px;
  justify-self: center;
}

.kd.note blockquote {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.kd.note figcaption {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.75;
}

.kd-me {
  display: grid;
  place-items: center;
}

.kd-photo {
  background: var(--paper);
  padding: 10px 10px 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  width: 100%;
  max-width: 280px;
}

.kd-photo img {
  border-radius: 10px;
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
}

/* Placeholder skeleton until real kudos are added (see v2/kudos.py) */
.kd.ph .ph-who {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.kd.ph .ph-who b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6dfea;
}

.kd.ph .ph-who span {
  display: grid;
  gap: 5px;
  flex: 1;
}

.kd.ph i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e6dfea;
}

.kd.ph .ph-who i:first-child {
  width: 45%;
}

.kd.ph .ph-who i:last-child {
  width: 70%;
  height: 6px;
}

.kd.ph .ph-lines {
  display: grid;
  gap: 7px;
}

.kd.ph .ph-lines i:last-child {
  width: 60%;
}

.kd.note.ph {
  width: 100%;
}

.kd.note.ph i {
  background: rgb(18 50 77 / 18%);
  height: 10px;
}

@media (width <= 900px) {
  .kd-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .kd-me {
    order: -1;
  }

  .kd-col:last-child {
    padding-top: 0;
  }

  .kd-photo {
    max-width: 220px;
  }
}

@media (width <= 720px) {
  .kd-panel {
    padding: 36px 18px 40px;
    border-radius: 20px;
  }
}

.vw {
  position: relative;
  aspect-ratio: 16/9;
  background: #080410;
  border-bottom: 1px solid var(--line);
}

.vw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vw iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 45%));
}

.play span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgb(244 56 153 / 45%);
  transition: transform 0.15s;
}

.play:hover span {
  transform: scale(1.08);
}

.play svg {
  width: 17px;
  height: 17px;
  margin-left: 3px;
  fill: #fff;
}

.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #fff;
  background: rgb(0 0 0 / 60%);
  padding: 2px 7px;
  border-radius: 5px;
}

.vm {
  padding: 14px 16px 16px;
}

.vm .mono {
  color: var(--link);
  font-size: 10px;
}

.vm h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.vm p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
  line-height: 1.5;
}

/* polaroid grid */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
  padding-top: 6px;
}

.pc {
  background: var(--paper);
  color: var(--paper-ink);
  border: 0;
  border-radius: 12px;
  padding: 10px 10px 14px;
  text-align: left;
  font: inherit;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.pc:nth-child(3n + 1) {
  transform: rotate(-1.6deg);
}

.pc:nth-child(3n + 2) {
  transform: rotate(1.2deg);
}

.pc:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.pc:hover {
  transform: rotate(0) translateY(-4px);
}

.pc .im {
  display: block;
  aspect-ratio: 16/10;
  border-radius: 7px;
  overflow: hidden;
  background: #eef0f3;
}

.pc .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pc .im.contain img {
  object-fit: contain;
  background: #efe8df;
}

.pc .pt {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 4px 2px;
}

.pc .pd {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5d5266;
  margin: 0 4px;
}

/* case study */
.case-head h1 {
  font-size: clamp(42px, 5.6vw, 72px);
}

.metarow {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  background: var(--bg-2);
}

.metarow div {
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}

.metarow div:last-child {
  border-right: 0;
}

.metarow .mono {
  color: var(--faint);
  font-size: 10px;
}

.metarow b {
  display: block;
  font-weight: 500;
  font-size: 14.5px;
  margin-top: 2px;
}

.cover {
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

.cover img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.prose {
  padding-top: 56px;
  font-size: 17px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 86%, transparent);
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-top: 54px;
}

.prose h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 36px;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 12px;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose ul ul {
  margin-top: 8px;
  padding-left: 18px;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

.prose li p {
  margin: 0;
}

.prose figure {
  margin: 34px 0;
}

.prose figure img {
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--card);
}

.prose .cap {
  position: relative;
  padding: 16px 18px 16px 22px;
  border-left: 3px solid var(--pink);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}

.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
}

.pn a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.2s;
}

.pn a:hover {
  border-color: var(--accent);
}

.pn a.next {
  text-align: right;
  grid-column: 2;
}

.pn .mono {
  color: var(--faint);
  font-size: 10px;
}

.pn b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

/* contact */
.cgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ccard:hover {
  border-color: var(--accent);
}

.ccard .mono {
  color: var(--faint);
  font-size: 10px;
}

.ccard b {
  font-weight: 500;
  font-size: 17px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form input,
.form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form .note {
  font-size: 12.5px;
  color: var(--faint);
}

/* end cta + footer */
.end {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.end .wrap {
  position: relative;
  padding-top: 84px;
  padding-bottom: 84px;
  text-align: center;
}

.end h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.end p {
  color: var(--muted);
  margin-top: 14px;
}

.end .ctas {
  justify-content: center;
}

.end .cgrid {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--faint);
  font-size: 12.5px;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.foot a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  transition: all 0.25s;
  pointer-events: none;
  z-index: 50;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
}

dialog::backdrop {
  background: rgb(8 3 14 / 88%);
}

dialog img {
  max-width: 100%;
  max-height: 82vh;
  max-height: 82dvh;
  border-radius: 10px;
  margin: auto;
}

dialog p {
  color: #ddd;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
}

#vlb {
  width: min(1200px, 94vw);
  overflow: visible;
}

#vlb .vframe {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, calc(78vh * 16 / 9));
  width: min(100%, calc(78dvh * 16 / 9));
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgb(0 0 0 / 60%);
}

#vlb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

dialog[open] {
  animation: dlg-in 0.2s ease-out;
}

@keyframes dlg-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

dialog button {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Phones: the popup takes the full width, and the video sits below the close button. */
@media (width <= 640px) {
  dialog,
  #vlb,
  #vlb.tall,
  #vlb.post {
    width: 100vw;
    max-width: 100vw;
    padding: 60px 12px max(16px, env(safe-area-inset-bottom));
    max-height: 100dvh;
  }

  #vlb .vframe,
  #vlb.tall .vframe {
    width: min(100%, calc((100dvh - 120px) * 16 / 9));
  }

  #vlb.tall .vframe {
    width: min(100%, calc((100dvh - 120px) * 9 / 16));
  }

  #vlb.post .vframe {
    height: calc(100dvh - 110px);
  }

  dialog img {
    max-height: calc(100dvh - 130px);
  }

  dialog button {
    background: rgb(255 255 255 / 22%);
    width: 40px;
    height: 40px;
  }
}

@media (width <= 1020px) {
  .status {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .stage {
    height: 380px;
    max-width: 560px;
  }

  .lgrid,
  .vgrid,
  .pgrid {
    grid-template-columns: 1fr 1fr;
  }

  .vc.wide {
    grid-column: span 2;
  }

  .feat {
    grid-template-columns: 1fr;
  }
}

@media (width <= 720px) {
  .wrap,
  .narrow {
    padding: 0 16px;
  }

  .sig {
    font-size: 16px;
  }

  .top .wrap {
    gap: 10px;
  }

  .top nav {
    font-size: 13.5px;
    gap: 0;
    margin-left: auto;
  }

  .top nav a {
    padding: 2px 3px;
  }

  .top nav a + a::before {
    margin-right: 3px;
  }

  .nums {
    grid-template-columns: 1fr 1fr;
  }

  .nums div:nth-child(2) {
    border-right: 0;
  }

  .nums div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .nums b {
    font-size: 36px;
  }

  .stage {
    height: 330px;
  }

  .p1 {
    width: 210px;
    height: 250px;
    left: 0;
  }

  .p2 {
    width: 200px;
    height: 170px;
    top: 140px;
  }

  .lgrid,
  .lgrid.two-col,
  .vgrid,
  .pgrid,
  .two,
  .cgrid,
  .pn {
    grid-template-columns: 1fr;
  }

  .pn a.next {
    grid-column: auto;
  }

  .vc.wide {
    grid-column: auto;
  }

  .two > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tl {
    grid-template-columns: 1fr;
  }

  .tl .side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .row {
    padding: 20px 0;
  }

  .strip img {
    height: 200px;
  }

  section {
    padding-top: 64px;
  }

  .prose {
    font-size: 16px;
  }

  .prose h2 {
    font-size: 31px;
  }

  .metarow {
    width: 100%;
  }

  .metarow div {
    flex: 1 1 40%;
  }
}

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

  * {
    transition: none !important;
  }
}

/* ── story pages (work history + case studies) ── */
.story-cover {
  margin-top: 40px;
}

.story-cover img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.chapter {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}

.chapter .side {
  padding: 30px 28px 0 0;
  border-right: 1px solid var(--line);
}

.chapter .side .in {
  position: sticky;
  top: 92px;
}

.chapter .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.chapter .side h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-top: 8px;
}

.chapter .side h2 em {
  font-style: normal;
  color: var(--accent-2);
}

.chapter .cbody {
  padding: 30px 0 10px 36px;
  min-width: 0;
}

.cbody > * + * {
  margin-top: 18px;
}

.cbody p {
  font-size: 16.5px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  max-width: 680px;
}

.cbody p strong,
.cbody p b {
  color: var(--text);
  font-weight: 600;
}

.cbody a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cbody h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 34px;
  max-width: 680px;
}

.cbody .lead {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cbody .lead em {
  font-style: normal;
  color: var(--accent-2);
}

.callout {
  padding: 16px 18px 16px 22px;
  border-left: 3px solid var(--pink);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 600;
  max-width: 680px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 820px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--line-2);
}

.card .n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.005em;
}

.card p,
.card div.t {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}

.card ul {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.card ul li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.4;
}

.pills span i {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

.gal {
  display: grid;
  gap: 22px;
  max-width: 860px;
}

.gal.g1 {
  grid-template-columns: 1fr;
}

.gal.g2 {
  grid-template-columns: 1fr 1fr;
}

.gal.g3,
.gal.g4 {
  grid-template-columns: repeat(2, 1fr);
}

.gal figure {
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 8px 10px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s;
  margin: 0;
}

.gal figure img {
  width: 100%;
  border-radius: 7px;
  background: #f1eef4;
}

.gal.g1 figure {
  transform: none;
}

.gal:not(.g1) figure:nth-child(odd) {
  transform: rotate(-1deg);
}

.gal:not(.g1) figure:nth-child(even) {
  transform: rotate(1deg);
}

.gal figure:hover,
.gal:not(.g1) figure:nth-child(n):hover {
  transform: rotate(0) translateY(-3px);
}

.gal.g1 figure.small {
  max-width: min(100%, 560px);
}

.gal figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--paper-ink);
  opacity: 0.6;
  padding: 8px 4px 0;
}

.storynav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 80px;
}

.storynav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.storynav a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.storynav a.next {
  grid-column: 2;
  flex-direction: row-reverse;
  text-align: right;
}

.storynav img {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.storynav .mono {
  color: var(--faint);
  font-size: 10px;
}

.storynav b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

@media (width <= 900px) {
  .chapter {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .chapter .side {
    border-right: 0;
    padding: 24px 0 0;
  }

  .chapter .side .in {
    position: static;
  }

  .chapter .cbody {
    padding: 18px 0 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (width <= 720px) {
  .gal.g2,
  .gal.g3,
  .gal.g4 {
    grid-template-columns: 1fr;
  }

  .storynav {
    grid-template-columns: 1fr;
  }

  .storynav a.next {
    grid-column: auto;
  }

  .cbody .lead {
    font-size: 23px;
  }
}

/* ── work-history folder (hover to fan out) ── */
.fwrap {
  position: relative;
  margin: 10px auto 0;
  max-width: 1000px;
}

.fstage {
  position: relative;
  width: 1000px;
  height: 600px;
  transform-origin: top left;
}

.fbig {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -0.018em;
  color: transparent;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--text) 26%, transparent),
    color-mix(in srgb, var(--text) 4%, transparent)
  );
  /* stylelint-disable-next-line property-no-vendor-prefix -- still required by Safari */
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.fbig em {
  font-style: normal;
}

.folder {
  position: absolute;
  left: 350px;
  top: 330px;
  width: 300px;
  height: 250px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

.folder:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 6px;
  border-radius: 20px;
}

.f-back {
  position: absolute;
  inset: 26px 0 0;
  background: linear-gradient(180deg, #6a1bb0, #4a0085);
  border-radius: 18px 18px 22px 22px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.f-back::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 120px;
  height: 34px;
  background: #6a1bb0;
  border-radius: 14px 26px 0 0;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
}

.f-paper {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 74px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf0, #f4ead7);
  box-shadow: 0 -2px 0 rgb(0 0 0 / 4%);
  z-index: 3;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.f-front {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 120px;
  border-radius: 14px 14px 22px 22px;
  background: linear-gradient(
    180deg,
    rgb(214 150 255 / 92%),
    rgb(160 80 230 / 95%)
  );
  box-shadow:
    0 -1px 0 rgb(255 255 255 / 50%) inset,
    0 20px 40px rgb(20 0 40 / 45%);
  z-index: 5;
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.f-front span {
  font-size: 20px;
  font-weight: 500;
  color: rgb(255 255 255 / 88%);
  letter-spacing: 0.01em;
}

.f-view {
  position: absolute;
  z-index: 7;
  left: 200px;
  top: 95px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #12081c;
  font: 700 17px var(--sans);
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.fcard {
  position: absolute;
  z-index: 4;
  left: 395px;
  top: 360px;
  width: 210px;
  min-height: 156px;
  padding: 14px 15px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f3ff 0%, #fffdf6 70%, #fff6dc 100%);
  box-shadow: 0 14px 34px rgb(10 0 25 / 35%);
  color: #1b1022;
  transform: translate(0, 0) rotate(var(--r0)) scale(0.72);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.12),
    box-shadow 0.2s;
  transition-delay: calc(var(--i) * 35ms);
  text-align: left;
}

.fcard .fhead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fcard .flogo {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(74 0 133 / 12%);
}

.fcard h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.fcard .role {
  font-size: 11px;
  font-weight: 600;
  color: #d81f82;
  margin-top: 3px;
}

.fcard .hi {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  margin-top: 10px;
}

.fcard .hi::after {
  content: " ✦";
  color: #f5a623;
}

.fcard ul {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.fcard li {
  display: flex;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #5d5266;
}

.fcard li i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgb(74 0 133 / 8%);
  display: grid;
  place-items: center;
  color: var(--purple);
  font-style: normal;
  font-size: 10px;
}

.fcard li b {
  color: var(--purple);
  font-weight: 600;
}

.fwrap.open .fcard {
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
}

.fwrap.open .fcard:hover,
.fwrap.open .fcard:focus-visible {
  transform: translate(var(--x), calc(var(--y) - 8px)) rotate(var(--r))
    scale(1.05);
  box-shadow: 0 22px 50px rgb(244 56 153 / 35%);
  z-index: 6;
  outline: none;
}

.fwrap.open .f-front {
  transform: perspective(700px) rotateX(-14deg);
}

.fwrap.open .f-paper {
  transform: translateY(-10px);
}

.fwrap.hover .f-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fhint {
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 6px;
}

.fhint b {
  color: var(--muted);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .fcard,
  .f-front,
  .f-paper {
    transition: none;
  }
}

@media (width <= 640px) {
  .fwrap {
    height: auto !important;
  }

  .fstage {
    width: auto;
    height: auto;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
  }

  .fbig {
    position: static;
    font-size: clamp(40px, 15vw, 56px);
    margin-bottom: 6px;
    order: -2;
  }

  .folder {
    position: relative;
    left: auto;
    top: auto;
    width: 240px;
    height: 190px;
    margin-bottom: -70px;
    z-index: 1;
    order: -1;
  }

  .f-front {
    height: 92px;
  }

  .f-front span {
    font-size: 16px;
  }

  .f-paper {
    bottom: 58px;
    height: 44px;
  }

  .f-view {
    display: none;
  }

  .fcard {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 330px);
    margin-top: 14px;
    min-height: 0;
    opacity: 0;
    transform: translateY(-60px) rotate(var(--r0)) scale(0.9);
    z-index: 2;
    order: var(--o);
    transition:
      transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.1),
      opacity 0.4s;
    transition-delay: calc(var(--i) * 90ms);
  }

  .fwrap.open .fcard {
    opacity: 1;
    transform: translateY(0) rotate(calc(var(--r0) * 0.5)) scale(1);
    transition-delay: calc(var(--o) * 90ms);
  }

  .fwrap.open .fcard:hover {
    transform: translateY(-3px) rotate(0) scale(1.02);
  }
}

/* folder card positions (were inline styles) */
.fc0 {
  --i: 0;
  --r: -28deg;
  --x: -405px;
  --y: -40px;
  --r0: -6deg;
}

.fc1 {
  --i: 1;
  --r: -16deg;
  --x: -262px;
  --y: -222px;
  --r0: 4deg;
}

.fc2 {
  --i: 2;
  --r: -5deg;
  --x: -110px;
  --y: -300px;
  --r0: -2deg;
}

.fc3 {
  --i: 3;
  --r: 5deg;
  --x: 110px;
  --y: -300px;
  --r0: 3deg;
}

.fc4 {
  --i: 4;
  --r: 16deg;
  --x: 262px;
  --y: -222px;
  --r0: 5deg;
}

.fc5 {
  --i: 5;
  --r: 28deg;
  --x: 405px;
  --y: -40px;
  --r0: -4deg;
}

.fo0 {
  --o: 0;
}

.fo1 {
  --o: 1;
}

.fo2 {
  --o: 2;
}

.fo3 {
  --o: 3;
}

.fo4 {
  --o: 4;
}

.fo5 {
  --o: 5;
}

/* utilities (were inline styles) */
.flush {
  padding: 0;
}

.muted {
  color: var(--muted);
}

.mt-14 {
  margin-top: 14px;
}

.mt-34 {
  margin-top: 34px;
}

.pt-64 {
  padding-top: 64px;
}

.maxw-760 {
  max-width: 760px;
}

.form-actions {
  margin-top: 4px;
  align-items: center;
}

.spacer-96 {
  height: 96px;
}

.hero-404 {
  border-bottom: 0;
  min-height: 70vh;
}

.glow-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: 40px;
}

.p1-about {
  width: 320px;
  height: 380px;
  left: 14%;
}

.s1-about {
  right: 8%;
}

.s2-about {
  bottom: 50px;
  left: 4%;
}

.s3-about {
  top: 230px;
  right: 2%;
}

.gal figure img,
.cbody img {
  height: auto;
}

/* Small phones: keep the top bar on one line (it must come after the 720px block). */
@media (width <= 370px) {
  .sig {
    font-size: 14.5px;
  }

  .top nav {
    font-size: 12.5px;
  }
}

@media (width <= 340px) {
  .top .wrap {
    flex-wrap: wrap;
    row-gap: 2px;
    height: auto;
    padding-block: 8px;
  }

  .top nav {
    margin-left: -3px;
  }
}

/* workflow diagram: issue → branch → review → announce → help doc */
.wfd {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-2);
  padding: 28px 26px 30px;
  overflow: hidden;
}

.wfd-case {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.wfd-case b {
  color: var(--text);
  font-weight: 600;
}

.wfd-case .pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
}

.wfd-steps {
  --art: 158px;
  --node: 54px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* the rail through the nodes, with a moving pulse */
.wfd-steps::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(var(--art) + 18px + var(--node) / 2 - 1px);
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, var(--pink), transparent) 0 0 / 30% 100% no-repeat,
    linear-gradient(90deg, var(--line-2), var(--line-2));
  animation: wfd-pulse 3.2s linear infinite;
}

@keyframes wfd-pulse {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}

.wfd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wfd-art {
  width: 100%;
  height: var(--art);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: left;
  box-shadow: 0 14px 30px -18px rgb(0 0 0 / 55%);
  transition: transform 0.3s, border-color 0.3s;
}

.wfd-step:nth-child(odd) .wfd-art { transform: rotate(-1.2deg); }
.wfd-step:nth-child(even) .wfd-art { transform: rotate(1deg); }
.wfd-step:hover .wfd-art { transform: translateY(-4px); border-color: var(--pink); }

.wfd-node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  margin-top: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #8a2be2);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 0 7px var(--line-2), 0 10px 26px -6px rgb(244 56 153 / 60%);
}

.wfd-node svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wfd-n {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.wfd-step h3 {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.wfd-step p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22ch;
}

.wfd-step p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* loop back from step 5 to step 1 */
.wfd-loop {
  position: relative;
  margin: 18px 10% 0;
  height: 34px;
  border: 1.5px dashed var(--pink);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  opacity: 0.85;
}

.wfd-loop::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: -8px;
  border: 6px solid transparent;
  border-bottom: 9px solid var(--pink);
  border-top: 0;
}

.wfd-loop span {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 12px;
}

/* mini mock-ups inside each tile */
.m-bub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  background: var(--accent-soft);
  border-radius: 12px 12px 12px 3px;
  padding: 8px 10px;
}

.m-who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
}

.m-who i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb36b, var(--pink));
}

.m-chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
}

.m-chip.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.m-git {
  width: 100%;
  height: 74px;
}

.m-git path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.m-code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.m-code b {
  color: var(--text);
  font-weight: 500;
}

.m-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.m-av {
  display: flex;
}

.m-av i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -6px;
  background: linear-gradient(135deg, #6bc5ff, #8a2be2);
}

.m-av i:first-child { margin-left: 0; }
.m-av i:nth-child(2) { background: linear-gradient(135deg, #7ee2a8, #2a9d8f); }

.m-surf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.m-surf span {
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 2px 4px;
}

.m-surf svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-steps {
  display: grid;
  gap: 5px;
}

.m-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted);
}

.m-steps span::before {
  content: attr(data-n);
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
}

.m-shot {
  position: relative;
  height: 34px;
  border-radius: 6px;
  background:
    linear-gradient(var(--line) 0 0) 8px 8px / 40% 4px no-repeat,
    linear-gradient(var(--line) 0 0) 8px 16px / 60% 4px no-repeat,
    var(--accent-soft);
}

.m-shot::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 6px;
  width: 30%;
  height: 20px;
  border: 2px solid #ff4d4f;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .wfd-steps::before { animation: none; }
}

@media (width <= 1100px) {
  .wfd-steps { --art: 168px; gap: 12px; }
  .wfd-step h3 { font-size: 15.5px; }
}

/* narrow screens: stay horizontal and scroll sideways */
@media (width <= 900px) {
  .wfd {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: -16px;
    padding: 4px 16px 26px;
    scrollbar-width: thin;
  }

  .wfd-case {
    position: sticky;
    left: 0;
  }

  .wfd-steps {
    width: 1000px;
  }

  .wfd-step {
    scroll-snap-align: start;
  }

  .wfd-loop {
    width: 800px;
    margin-left: 100px;
    margin-right: 0;
  }
}

/* keep the help-doc screenshot bar its full height inside the tile */
.m-shot {
  flex: none;
}

/* the diagram sits straight on the page background, no panel */
.wfd {
  border: 0;
  border-radius: 0;
  background: none;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.wfd-art {
  background: color-mix(in srgb, var(--card) 55%, transparent);
  backdrop-filter: blur(6px);
}

.wfd-loop span {
  background: var(--bg);
}

@media (width <= 900px) {
  .wfd {
    overflow-x: auto;
    padding-left: 16px;
    padding-right: 16px;
    scroll-padding-inline: 16px;
  }
}

/* --- workflow v3: visual-first tiles, minimal text --- */
.wfd-step h3 {
  margin-top: 6px;
  font-size: 16px;
}

.wfd-art {
  align-items: stretch;
}

.m-line {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--line-2);
}

.m-line.w30 { width: 30%; }
.m-line.w45 { width: 45%; }
.m-line.w60 { width: 60%; }
.m-line.w80 { width: 80%; }

.m-col {
  display: grid;
  gap: 6px;
  flex: 1;
}

/* 1 · chat with a broken QR */
.m-chatrow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.m-chatrow > i {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb36b, var(--pink));
}

.m-qrbub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--accent-soft);
}

.m-qrbub svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-dasharray: 3 2.5;
  opacity: 0.8;
}

.m-qrbub b {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.m-reply {
  align-self: flex-end;
  width: 60%;
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 12px 12px 4px;
  background: color-mix(in srgb, var(--purple) 35%, transparent);
}

/* 3 · approved PR */
.m-pr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-bigcheck {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
}

.m-bigcheck svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 4 · release card + four surfaces */
.m-release {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.m-release .m-chip {
  position: absolute;
  top: -10px;
  right: 10px;
  transform: rotate(6deg);
}

.m-surf.icons span {
  padding: 7px 0;
}

.m-surf.icons svg {
  width: 17px;
  height: 17px;
}

/* 5 · doc steps as balls + lines */
.m-steps.lines span::before {
  margin-right: 0;
}

.m-steps.lines span {
  gap: 8px;
}

/* sticker hero (home) */
.hx {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.hx-panel {
  --ink: #2a0049;
  --lav: #d9b8ff;
  --blush: #ffd3ea;

  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  border-radius: 56px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(244 56 153 / 34%), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, #6410ad, #4a0085 55%, #2c0052);
  box-shadow: 0 30px 80px rgb(74 0 133 / 35%);
}

.hx-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 6px dashed rgb(255 255 255 / 16%);
  border-radius: 46px;
  pointer-events: none;
}

.hx-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 30%) 2px, transparent 2.5px),
    linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 104px 104px;
  background-position: calc(50% - 52px) 30px;
  -webkit-mask-image: radial-gradient(ellipse 48% 60% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hx-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px 210px;
  max-width: 980px;
}

.hx .avail {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 22%);
  color: #fff;
}

.hx-title {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 6px 0 rgb(42 0 73 / 45%);
}

.hx-ln {
  display: block;
  white-space: nowrap;
}

.hx-title em {
  font-style: normal;
  color: var(--pink);
}

.hx-o {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.04em;
  vertical-align: -0.06em;
  border-radius: 50%;
  border: 0.07em solid #fff;
  background: var(--pink);
  box-shadow: 0 6px 0 rgb(42 0 73 / 45%);
  overflow: hidden;
  rotate: -8deg;
  transition: rotate 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.hx-o:hover {
  rotate: 8deg;
}

.hx-o img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-role {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.01em;
}

.hx-role em {
  font-style: normal;
  color: var(--pink);
}

.hx-role span {
  margin: 0 6px;
  opacity: 0.5;
}

.hx .lede {
  max-width: 600px;
  text-wrap: balance;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(255 240 252 / 72%);
}

.hx .lede em {
  font-style: normal;
  font-weight: 600;
  color: #ff8cc6;
}

.hx .ctas {
  justify-content: center;
}


/* stickers — soft 3D clay */
.hx-stickers {
  --g-pink: linear-gradient(150deg, #ffb8dc 0%, #f43899 48%, #a3127a 100%);
  --g-iris: linear-gradient(135deg, #ffc6e5 0%, #f06fc0 32%, #b46cff 68%, #6a2fd6 100%);
  --g-lav: linear-gradient(150deg, #f6eeff 0%, #d9b8ff 45%, #9466e6 100%);
  --g-pearl: linear-gradient(160deg, #fff 0%, #fdeef8 45%, #e2cdfa 100%);
  --gloss: radial-gradient(ellipse 55% 40% at 32% 20%, rgb(255 255 255 / 75%), transparent 70%);
  --clay:
    inset 3px 5px 7px rgb(255 255 255 / 60%),
    inset -6px -9px 14px rgb(70 0 100 / 38%);
  --lift:
    0 18px 30px rgb(20 0 40 / 45%),
    0 4px 8px rgb(20 0 40 / 30%);

  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.st,
.cur {
  position: absolute;
  pointer-events: auto;
  rotate: var(--r, 0deg);
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: scale 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
  animation:
    st-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) backwards,
    st-float 6s ease-in-out infinite;
}

.st:hover {
  scale: 1.07;
}

.st.drag {
  cursor: grabbing;
  scale: 1.12;
  z-index: 5;
}

.st svg {
  display: block;
  overflow: visible;
}

/* puffy text: gradient fill + stacked drop-shadows for depth */
.puff {
  background: var(--g, var(--g-pearl));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 var(--d, #c21a75))
    drop-shadow(0 2px 0 var(--d, #c21a75))
    drop-shadow(0 2px 0 var(--d, #c21a75))
    drop-shadow(0 8px 10px rgb(20 0 40 / 45%));
}

@keyframes st-pop {
  from {
    opacity: 0;
    scale: 0.4;
  }
}

@keyframes st-float {
  50% {
    transform: translateY(-8px);
  }
}

.st:nth-child(2) { animation-delay: 0.08s, -1s; }
.st:nth-child(3) { animation-delay: 0.16s, -2s; }
.st:nth-child(4) { animation-delay: 0.24s, -3s; }
.st:nth-child(5) { animation-delay: 0.32s, -4s; }
.st:nth-child(6) { animation-delay: 0.4s, -5s; }
.st:nth-child(7) { animation-delay: 0.48s, -1.5s; }
.st:nth-child(8) { animation-delay: 0.56s, -2.5s; }
.st:nth-child(9) { animation-delay: 0.64s, -3.5s; }
.st:nth-child(10) { animation-delay: 0.72s, -4.5s; }
.st:nth-child(11) { animation-delay: 0.8s, -0.5s; }

/* soft glossy pill tag */
.st-ai {
  top: 9%;
  left: 7%;
  padding: 12px 22px 12px 16px;
  border-radius: 999px;
  font-size: 22px;
  color: #fff;
  background: var(--gloss), var(--g-iris);
  box-shadow: var(--clay), var(--lift), 0 0 34px rgb(244 56 153 / 35%);
  text-shadow: 0 2px 3px rgb(70 0 100 / 45%);
}

.st-ai svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 3px rgb(70 0 100 / 40%));
}

.st-bolt {
  top: 30%;
  left: 8%;
  filter: drop-shadow(0 16px 18px rgb(20 0 40 / 50%)) drop-shadow(0 0 22px rgb(180 108 255 / 45%));
}

.st-bolt svg {
  width: 62px;
  height: 84px;
}

.st-bolt b {
  position: absolute;
  right: -26px;
  bottom: -2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gloss), var(--g-pink);
  box-shadow: var(--clay), 0 6px 10px rgb(20 0 40 / 35%);
  color: #fff;
  font-size: 15px;
}

/* chat bubble, a nod to ChatDaddy */
.st-chat {
  top: 45%;
  left: 5%;
  padding: 16px 24px;
  border-radius: 26px 26px 26px 6px;
  background: var(--gloss), var(--g-pink);
  box-shadow: var(--clay), var(--lift), 0 0 34px rgb(244 56 153 / 40%);
  color: #fff;
  font-size: 21px;
  text-transform: none;
  text-shadow: 0 2px 3px rgb(110 0 60 / 45%);
}

.st-chat i {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9ffe9, #35d07f 45%, #11864a);
  box-shadow: 0 4px 8px rgb(20 0 40 / 40%);
}

/* barcode label */
.st-bar {
  top: 8%;
  right: 4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 18px 12px;
  border-radius: 16px;
  background: var(--gloss), var(--g-pearl);
  box-shadow: var(--clay), var(--lift);
  color: #4a0085;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.st-bars {
  width: 170px;
  height: 46px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    #4a0085 0 2px,
    transparent 2px 4px,
    #4a0085 4px 5px,
    transparent 5px 8px,
    #6a2fd6 8px 11px,
    transparent 11px 12px,
    #4a0085 12px 13px,
    transparent 13px 16px
  );
  opacity: 0.85;
}

/* sticky note — the manager half */
.st-note {
  top: 50%;
  right: 6%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 156px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: var(--gloss), var(--g-pearl);
  box-shadow: var(--clay), var(--lift);
  color: #2a0049;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.st-note b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  color: #f43899;
  margin-bottom: 2px;
}

.st-note span::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border-radius: 4px;
  vertical-align: -2px;
  background: #fff;
  box-shadow: inset 1px 2px 3px rgb(74 0 133 / 35%);
}

.st-note .dn {
  text-decoration: line-through;
  opacity: 0.55;
}

.st-note .dn::before {
  background: var(--gloss), var(--g-iris);
  box-shadow: 0 2px 3px rgb(74 0 133 / 35%);
}

.st-note::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 60px;
  height: 20px;
  translate: -50% 0;
  rotate: -4deg;
  border-radius: 4px;
  background: linear-gradient(rgb(255 200 230 / 80%), rgb(244 56 153 / 55%));
  box-shadow: 0 3px 6px rgb(20 0 40 / 20%);
}

/* glossy oval badge */
.st-oval {
  bottom: 7%;
  left: 15%;
  padding: 24px 38px;
  border-radius: 50%;
  background: var(--gloss), var(--g-pink);
  box-shadow: var(--clay), var(--lift), 0 0 40px rgb(244 56 153 / 40%);
  font-size: 32px;
  font-style: italic;
}

.st-oval .puff {
  --g: linear-gradient(#fff 30%, #ffd3ea);
  --d: #8d0f5f;
}

.st-oval sup {
  font-size: 14px;
}

/* selection frame — a selected layer in a design tool */
.st-pill {
  bottom: 11%;
  left: 42%;
  padding: 12px 20px;
  border: 2px solid #ff6fb6;
  background: rgb(244 56 153 / 10%);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.st-pill .puff {
  --g: linear-gradient(170deg, #fff 30%, #ffd3ea);
  --d: #8d0f5f;
}

.st-pill i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd3ea 60%, #f06fc0);
  box-shadow: 0 0 0 2px #ff6fb6, 0 3px 5px rgb(20 0 40 / 40%);
}

.st-pill .h1 { left: -7px; top: -7px; }
.st-pill .h2 { right: -7px; top: -7px; }
.st-pill .h3 { left: -7px; bottom: -7px; }
.st-pill .h4 { right: -7px; bottom: -7px; }

.st-pill b {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  translate: -50% 0;
  padding: 3px 9px;
  border-radius: 6px;
  font: 500 11px var(--mono);
  letter-spacing: 0;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 45%), transparent 70%),
    linear-gradient(150deg, #ff8cc6, #f43899 50%, #b0167f);
  box-shadow:
    inset -1px -2px 3px rgb(90 0 60 / 35%),
    0 4px 8px rgb(20 0 40 / 35%);
}

/* inflated lettering */
.st-proto {
  bottom: 13%;
  right: 25%;
  font-size: 40px;
  font-style: italic;
}

.st-proto .puff {
  --g: linear-gradient(170deg, #fff 10%, #ffc6e5 40%, #f06fc0 70%, #b46cff);
  --d: #8d0f5f;
}

/* glossy crossed tape */
.st-ship {
  bottom: 9%;
  right: 7%;
  width: 160px;
  height: 96px;
  justify-content: center;
}

.st-ship i {
  position: absolute;
  inset: 32px -6px;
  border-radius: 8px;
  rotate: 24deg;
  background: linear-gradient(rgb(255 255 255 / 55%), transparent 45%), var(--g-pink);
  box-shadow: var(--clay), 0 10px 18px rgb(20 0 40 / 40%);
}

.st-ship i + i {
  rotate: -18deg;
  background: linear-gradient(rgb(255 255 255 / 55%), transparent 45%), var(--g-iris);
}

.st-ship b {
  position: relative;
  font-size: 32px;
  font-style: italic;
}

.st-ship .puff {
  --g: linear-gradient(#fff 40%, #ffd3ea);
  --d: #4a0085;
}

/* pen tool on a clay squircle */
.st-pen {
  top: 62%;
  left: 8%;
  padding: 14px;
  border-radius: 24px;
  background: var(--gloss), var(--g-lav);
  box-shadow: var(--clay), var(--lift), 0 0 30px rgb(180 108 255 / 40%);
}

.st-pen svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 3px rgb(70 0 100 / 40%));
}

/* multiplayer cursors pointing at the title */
.cur {
  display: inline-flex;
  align-items: flex-start;
  pointer-events: none;
  animation:
    st-pop 0.6s 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) backwards,
    cur-drift 6s 1.4s ease-in-out infinite;
}

.cur svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 6px 6px rgb(20 0 40 / 45%));
}

.cur b {
  margin: 20px 0 0 -4px;
  padding: 5px 12px;
  border-radius: 4px 14px 14px;
  background: var(--gloss), var(--g-pink);
  box-shadow: var(--clay), 0 8px 14px rgb(20 0 40 / 40%);
  color: #fff;
  font: 600 13px var(--sans);
  white-space: nowrap;
}

.cur-a {
  top: 20%;
  left: 19%;
}

.cur-b {
  top: 37%;
  right: 16%;
  animation-delay: 1s, 2.4s;
}

.cur-b b {
  background: var(--gloss), var(--g-iris);
}

@keyframes cur-drift {
  50% {
    translate: 14px 10px;
  }
}

/* desk props spilling over the panel edge */
.hx-prop {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgb(20 0 40 / 35%));
}

.hx-pencil {
  left: -10px;
  bottom: 150px;
  width: 300px;
  height: 26px;
  rotate: 38deg;
  transform-origin: left center;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(#ff8cc6, #f43899 50%, #c21a75);
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
}

.hx-pencil::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, #f6d9b8 60%, var(--ink) 60%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hx-pencil i {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 100%;
  background: linear-gradient(#ddd, #fff 40%, #aaa);
}

.hx-swatch {
  right: 4px;
  bottom: 10px;
  width: 210px;
  height: 160px;
}

.hx-swatch i {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 64px;
  height: 150px;
  border-radius: 10px;
  border: 5px solid #fff;
  border-bottom-width: 34px;
  transform-origin: 50% 90%;
  background: linear-gradient(150deg, rgb(255 255 255 / 35%), transparent 50%), #4a0085;
  box-shadow: inset -4px -6px 10px rgb(40 0 70 / 30%), 0 10px 20px rgb(20 0 40 / 30%);
}

.hx-swatch i:nth-child(2) { rotate: -14deg; background-color: #f43899; }
.hx-swatch i:nth-child(3) { rotate: -28deg; background-color: #ff8cc6; }
.hx-swatch i:nth-child(4) { rotate: -42deg; background-color: #d9b8ff; }

@media (width <= 1020px) {
  .hx-panel {
    min-height: 640px;
  }

  .st-note,
  .st-pen,
  .st-proto,
  .st-chat,
  .cur-b {
    display: none;
  }

  .st-bar {
    right: 4%;
    top: 7%;
    scale: 0.8;
  }

  .st-oval {
    left: 8%;
    bottom: 7%;
    scale: 0.8;
  }

  .st-pill {
    left: 40%;
    bottom: 4%;
  }

  .st-ship {
    right: 22%;
    bottom: 12%;
  }

  .hx-inner {
    padding: 120px 24px 170px;
  }
}

@media (width <= 720px) {
  .hx {
    padding: 12px 12px 40px;
  }

  .hx-panel {
    border-radius: 32px;
  }

  .hx-panel::before {
    inset: 8px;
    border-width: 4px;
    border-radius: 26px;
  }

  .hx-inner {
    padding: 104px 18px 230px;
  }

  .hx-title {
    font-size: clamp(36px, 12vw, 64px);
  }

  .hx-role span {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .st-ai {
    top: 3%;
    left: 2%;
    font-size: 15px;
    scale: 0.8;
  }

  .st-bar {
    top: 3%;
    right: -8%;
    scale: 0.62;
  }

  .st-bolt,
  .st-chat,
  .cur-a {
    display: none;
  }

  .st-oval {
    left: 0;
    bottom: 3%;
    scale: 0.62;
  }

  .st-pill {
    left: auto;
    right: 8%;
    bottom: 19%;
    scale: 0.72;
  }

  .st-ship {
    right: -2%;
    bottom: 2%;
    scale: 0.7;
  }

  .hx-pencil,
  .hx-swatch {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st,
  .cur {
    animation: none;
  }

  .st:hover {
    scale: 1;
  }
}

/* ---------------------------------------------------------------
   Clay chips — soft 3D treatment shared by every chip, tag,
   section label and sticker across the site (matches the hero).
   --------------------------------------------------------------- */
:root {
  --clay-gloss: radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 30%), transparent 70%);
  --clay-bg: linear-gradient(150deg, #7a2bc4 0%, #4a0085 55%, #2c0052 100%);
  --clay-ink: #f8f1ff;
  --clay-shade:
    inset 2px 3px 5px rgb(255 255 255 / 28%),
    inset -3px -5px 9px rgb(10 0 25 / 45%);
  --clay-lift:
    0 8px 16px rgb(0 0 0 / 40%),
    0 2px 4px rgb(0 0 0 / 30%);
  --clay-dot: radial-gradient(circle at 35% 30%, #ffe0f0 0%, #f43899 45%, #9c0f6d 100%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --clay-gloss: radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 90%), transparent 70%);
    --clay-bg: linear-gradient(160deg, #fff 0%, #fbeefa 45%, #e6d2fb 100%);
    --clay-ink: #4a0085;
    --clay-shade:
      inset 2px 3px 5px rgb(255 255 255 / 90%),
      inset -3px -5px 9px rgb(74 0 133 / 16%);
    --clay-lift:
      0 8px 16px rgb(74 0 133 / 16%),
      0 2px 4px rgb(74 0 133 / 12%);
  }
}

:root[data-theme="light"] {
  --clay-gloss: radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 90%), transparent 70%);
  --clay-bg: linear-gradient(160deg, #fff 0%, #fbeefa 45%, #e6d2fb 100%);
  --clay-ink: #4a0085;
  --clay-shade:
    inset 2px 3px 5px rgb(255 255 255 / 90%),
    inset -3px -5px 9px rgb(74 0 133 / 16%);
  --clay-lift:
    0 8px 16px rgb(74 0 133 / 16%),
    0 2px 4px rgb(74 0 133 / 12%);
}

/* glossy sphere dots */
.sq,
.chip i,
.pills span i,
.avail i {
  border-radius: 50%;
  background: var(--clay-dot);
  box-shadow: 0 2px 3px rgb(60 0 50 / 35%);
}

.sq {
  width: 9px;
  height: 9px;
  vertical-align: 0;
}

.chip i,
.pills span i {
  width: 9px;
  height: 9px;
}

.avail i {
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 35% 30%, #d9ffe9, #35d07f 45%, #11864a);
  box-shadow: 0 0 8px rgb(53 208 127 / 55%);
}

/* the shared clay surface */
.chip,
.pills span,
.tk-tags span,
.avail,
.hx .avail,
.mono:has(> .sq) {
  border: 0;
  background: var(--clay-gloss), var(--clay-bg);
  color: var(--clay-ink);
  box-shadow: var(--clay-shade), var(--clay-lift);
}

.chip {
  height: 38px;
  padding: 0 16px;
  font-weight: 500;
}

.pills span {
  border-radius: 14px;
  padding: 9px 16px;
}

.tk-tags span {
  padding: 5px 12px;
  font-weight: 500;
}

.avail {
  height: 32px;
  padding: 0 14px;
  font-weight: 500;
}

.hx .avail {
  --clay-bg: linear-gradient(150deg, #8a3ad6 0%, #5a0aa0 55%, #33005e 100%);
  --clay-ink: #fff;
  --clay-gloss: radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 35%), transparent 70%);
}

/* small category labels on cards ("■ Flow Builder") */
.mono:has(> .sq) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
}

.mono:has(> .sq) .sq {
  margin-right: 7px;
}

/* section names ("■ Work history") get the accent clay */
.mono.kick {
  --clay-bg: linear-gradient(135deg, #f43899 0%, #c13fcf 50%, #7a35e0 100%);
  --clay-ink: #fff;
  --clay-gloss: radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 40%), transparent 70%);
  --clay-shade:
    inset 2px 3px 5px rgb(255 255 255 / 45%),
    inset -3px -5px 9px rgb(70 0 100 / 40%);

  padding: 7px 16px 7px 12px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgb(70 0 100 / 45%);
  box-shadow: var(--clay-shade), var(--clay-lift), 0 0 24px rgb(244 56 153 / 25%);
}

.mono.kick .sq {
  background: radial-gradient(circle at 35% 30%, #fff, #ffd0ea 55%, #f06fc0);
}

/* video duration badge */
.dur {
  padding: 3px 9px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 25%), transparent 70%),
    linear-gradient(150deg, rgb(60 20 90 / 85%), rgb(15 0 30 / 85%));
  box-shadow:
    inset 1px 2px 3px rgb(255 255 255 / 25%),
    inset -2px -3px 5px rgb(0 0 0 / 40%),
    0 4px 8px rgb(0 0 0 / 35%);
}

/* hero stickers on inner pages */
.sticker {
  padding: 10px 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgb(70 0 100 / 40%);
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 50%),
    inset -4px -6px 10px rgb(70 0 100 / 40%),
    0 14px 24px rgb(20 0 40 / 40%);
}

.sticker svg {
  filter: drop-shadow(0 1px 2px rgb(70 0 100 / 45%));
}

.s1 {
  background:
    radial-gradient(ellipse 55% 45% at 30% 18%, rgb(255 255 255 / 60%), transparent 70%),
    linear-gradient(150deg, #ffb8dc 0%, #f43899 48%, #a3127a 100%);
}

.s2 {
  background:
    radial-gradient(ellipse 55% 45% at 30% 18%, rgb(255 255 255 / 55%), transparent 70%),
    linear-gradient(135deg, #ffc6e5 0%, #f06fc0 30%, #b46cff 68%, #6a2fd6 100%);
}

.s3 {
  text-shadow: none;
  background:
    radial-gradient(ellipse 55% 45% at 30% 18%, rgb(255 255 255 / 90%), transparent 70%),
    linear-gradient(160deg, #fff 0%, #fdeef8 45%, #e2cdfa 100%);
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 90%),
    inset -4px -6px 10px rgb(74 0 133 / 22%),
    0 14px 24px rgb(20 0 40 / 35%);
}

/* ---------------------------------------------------------------
   Pearl clay buttons — every .btn and .vbtn, styled like the
   "Pixel perfect" sticker; the label (.bt) carries the gradient.
   --------------------------------------------------------------- */
.btn,
.btn.primary,
.btn:hover,
.btn.primary:hover {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 800 14px var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a35e0;
  filter: none;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 95%), transparent 70%),
    linear-gradient(160deg, #fff 0%, #fdeef8 45%, #e2cdfa 100%);
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -4px -7px 12px rgb(74 0 133 / 22%),
    0 12px 22px rgb(20 0 40 / 30%),
    0 3px 6px rgb(20 0 40 / 20%);
  transition:
    transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1),
    box-shadow 0.2s;
}

.btn.primary,
.btn.primary:hover {
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -4px -7px 12px rgb(74 0 133 / 22%),
    0 12px 22px rgb(20 0 40 / 30%),
    0 3px 6px rgb(20 0 40 / 20%),
    0 0 28px rgb(244 56 153 / 45%);
}

.btn .bt {
  background: linear-gradient(120deg, #f43899 0%, #c13fcf 50%, #6a2fd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 2px 4px 8px rgb(74 0 133 / 18%),
    inset -2px -3px 6px rgb(255 255 255 / 80%),
    0 4px 8px rgb(20 0 40 / 25%);
}

.btn:focus-visible {
  outline: 3px solid #f43899;
  outline-offset: 3px;
}

.btn svg {
  stroke: #7a35e0;
  stroke-width: 2.6;
}

/* round carousel arrows */
.vbtn,
.vbtn:hover:not(:disabled) {
  border: 0;
  color: #7a35e0;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 95%), transparent 70%),
    linear-gradient(160deg, #fff 0%, #fdeef8 45%, #e2cdfa 100%);
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -3px -5px 9px rgb(74 0 133 / 22%),
    0 10px 18px rgb(20 0 40 / 30%);
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.vbtn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.06);
}

/* ---------------------------------------------------------------
   Work-history folder — soft 3D clay to match the hero stickers
   --------------------------------------------------------------- */
.f-back {
  background:
    radial-gradient(ellipse 70% 50% at 30% 10%, rgb(255 255 255 / 22%), transparent 70%),
    linear-gradient(160deg, #8a3ad6 0%, #5a0aa0 50%, #33005e 100%);
  box-shadow:
    inset 3px 5px 8px rgb(255 255 255 / 25%),
    inset -6px -10px 18px rgb(15 0 35 / 45%);
}

.f-back::before {
  background: linear-gradient(160deg, #a35ae6, #7a2bc4);
  box-shadow: inset 2px 4px 6px rgb(255 255 255 / 30%);
}

.f-paper {
  background:
    radial-gradient(ellipse 60% 80% at 30% 0%, rgb(255 255 255 / 95%), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fdeef8 60%, #ecdcfc 100%);
  box-shadow:
    inset 0 2px 3px rgb(255 255 255 / 90%),
    inset 0 -4px 8px rgb(74 0 133 / 12%),
    0 -2px 6px rgb(20 0 40 / 12%);
}

.f-front {
  background:
    radial-gradient(ellipse 55% 50% at 28% 12%, rgb(255 255 255 / 60%), transparent 70%),
    linear-gradient(135deg, #ffc6e5 0%, #f06fc0 30%, #b46cff 68%, #6a2fd6 100%);
  box-shadow:
    inset 3px 6px 10px rgb(255 255 255 / 55%),
    inset -6px -12px 20px rgb(70 0 100 / 40%),
    0 22px 40px rgb(20 0 40 / 45%),
    0 0 50px rgb(244 56 153 / 25%);
}

.f-front span {
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 1px 0 rgb(140 20 110 / 70%),
    0 2px 0 rgb(140 20 110 / 50%),
    0 6px 10px rgb(40 0 70 / 45%);
}

.f-view {
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 95%), transparent 70%),
    linear-gradient(160deg, #fff 0%, #fdeef8 45%, #e2cdfa 100%);
  color: #7a35e0;
  font: 800 16px var(--display);
  letter-spacing: 0.05em;
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -4px -7px 12px rgb(74 0 133 / 22%),
    0 14px 26px rgb(20 0 40 / 40%),
    0 0 28px rgb(244 56 153 / 40%);
}

.fcard {
  background:
    radial-gradient(ellipse 70% 40% at 25% 0%, rgb(255 255 255 / 95%), transparent 70%),
    linear-gradient(165deg, #fff 0%, #fdf2fa 50%, #efe2fd 100%);
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -4px -8px 14px rgb(74 0 133 / 14%),
    0 16px 32px rgb(10 0 25 / 35%),
    0 3px 6px rgb(10 0 25 / 20%);
}

.fwrap.open .fcard:hover,
.fwrap.open .fcard:focus-visible {
  box-shadow:
    inset 2px 4px 6px rgb(255 255 255 / 95%),
    inset -4px -8px 14px rgb(74 0 133 / 14%),
    0 24px 44px rgb(10 0 25 / 40%),
    0 0 36px rgb(244 56 153 / 40%);
}

.fcard .flogo {
  box-shadow:
    0 0 0 2px #fff,
    0 4px 8px rgb(74 0 133 / 25%);
}

.fcard li i {
  border-radius: 6px;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 80%), transparent 70%),
    linear-gradient(150deg, #f3e8ff, #d9b8ff);
  box-shadow:
    inset -1px -2px 3px rgb(74 0 133 / 20%),
    0 2px 3px rgb(74 0 133 / 18%);
}

/* ---------------------------------------------------------------
   "What I do" / "Tools I use" — looping auto-sliders
   --------------------------------------------------------------- */
.two > div {
  min-width: 0;
}

.mq {
  overflow: hidden;
  margin: -14px -28px -18px;
  padding: 14px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.mq-track {
  display: flex;
  width: max-content;
  animation: mq-slide 26s linear infinite;
}

.mq-r .mq-track {
  animation-direction: reverse;
  animation-duration: 30s;
}

.mq:hover .mq-track {
  animation-play-state: paused;
}

.mq-set {
  display: flex;
  flex: none;
  gap: 10px;
  padding-right: 10px;
}

.mq-set > * {
  flex: none;
}

@keyframes mq-slide {
  to {
    transform: translateX(-50%);
  }
}

/* single-colour brand logos, no background */
.tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.tool svg {
  width: 22px;
  height: 22px;
  fill: currentcolor;
}

.tool:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .mq {
    margin: 0;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mq-track {
    animation: none;
    width: auto;
  }

  .mq-set {
    flex-wrap: wrap;
    flex: 1;
  }

  .mq-set[aria-hidden] {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Custom cursor (white dot, difference blend) — all pages
   --------------------------------------------------------------- */
.has-cdot,
.has-cdot * {
  cursor: none !important;
}

.has-cdot input,
.has-cdot textarea,
.has-cdot select,
.has-cdot [contenteditable] {
  cursor: text !important;
}

.cdot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition:
    width 0.25s cubic-bezier(0.3, 1.4, 0.5, 1),
    height 0.25s cubic-bezier(0.3, 1.4, 0.5, 1),
    margin 0.25s cubic-bezier(0.3, 1.4, 0.5, 1),
    opacity 0.2s;
}

.cdot.big {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}

.cdot.grab {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
}

.cdot.down {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}

.cdot.out {
  opacity: 0;
}

body {
  overflow-x: clip;
}

/* ChatDaddy · Team moments */
.team-lede {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.team-gal {
  display: block;
  max-width: none;
  columns: 3 260px;
  column-gap: 22px;
}

.team-gal figure {
  break-inside: avoid;
  margin: 0 0 22px;
}

.gal figure.vid {
  cursor: default;
}

.gal figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  background: #1b0f2b;
}

/* ---------------------------------------------------------------
   ChatDaddy · AI agents, kept simple
   --------------------------------------------------------------- */
.ag-intro {
  color: var(--muted);
  font-size: 16px;
}

.ag-intro b {
  color: var(--text);
  font-weight: 600;
}

.ag-feat {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.ag-feat .vw {
  border-radius: 16px;
  overflow: hidden;
}

.ag-feat h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ag-feat p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.ag-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--link);
}

.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.agc {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}

.agc-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 55% at 30% 15%, rgb(255 255 255 / 50%), transparent 70%),
    linear-gradient(150deg, #ff8cc6, #c13fcf 55%, #6a2fd6);
  box-shadow:
    inset 2px 3px 5px rgb(255 255 255 / 40%),
    inset -3px -5px 9px rgb(40 0 70 / 35%);
}

.agc-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agc h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.agc p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.agc-when {
  display: block;
  margin-top: 8px;
  font: 400 11px var(--mono);
  color: var(--faint);
}

.agc-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.agc-link:hover,
.agc-link:focus-visible {
  border-color: #c13fcf;
  transform: translateY(-2px);
}

.agc-go {
  display: inline-block;
  margin-top: 8px;
  font: 500 12px var(--mono);
  color: #c13fcf;
}

@media (width <= 1020px) {
  .ag-feat {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.kd.shot[data-zoom] {
  cursor: zoom-in;
}

.kd.shot img {
  height: auto;
}

/* two-up YouTube embeds (Bumpp) */
.vgrid.duo {
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 4px;
}

@media (width <= 720px) {
  .vgrid.duo {
    grid-template-columns: 1fr;
  }
}

/* pulsar case study: before/after comparison */

.ba {
  --dt-o: #ff9800;
  --dt-k: #0b0e14;
}

.bajump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.bajump a {
  font: 500 12px/1 var(--mono);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  text-decoration: none;
}

.bajump a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cbody h3.bagroup {
  max-width: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font: 700 24px/1.1 var(--display);
}

.bagroup .mono {
  font-size: 12px;
  color: var(--faint);
  font-weight: 400;
}

.ba {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.ba .shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ba .shots.wide {
  grid-template-columns: 0.55fr 1.45fr;
  align-items: center;
}

.ph {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-2);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.ph img {
  display: block;
  width: 100%;
  height: auto;
}

.ph .tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(23 23 23 / 86%);
  color: #fff;
}

.ph.now {
  border-color: var(--dt-o);
}

.ph.now .tag {
  background: var(--dt-o);
  color: var(--dt-k);
}

.ph.none {
  aspect-ratio: 390 / 844;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background: transparent;
  border: 1.5px dashed var(--line-2);
  box-shadow: none;
  cursor: default;
}

.ph.none .tag {
  background: var(--accent-soft);
  color: var(--muted);
}

.ph.none p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.shots.wide .ph.none {
  aspect-ratio: 390 / 600;
}

.why .n {
  font: 500 12px/1 var(--mono);
  color: var(--accent);
}

.why h4 {
  margin: 6px 0 14px;
  font: 700 22px/1.15 var(--display);
}

.why dl {
  margin: 0;
  display: grid;
  gap: 4px;
}

.why dt {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 10px;
}

.why dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.why dt.w {
  color: var(--accent);
}

.why dd.w {
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

/* positioning table */
.pos {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
}

.pos-r {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr;
  border-top: 1px solid var(--line);
}

.pos-r > div {
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
}

.pos-r.pos-head {
  border-top: 0;
  background: var(--card-2);
}

.pos-r.pos-head > div {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pos-k {
  font-weight: 600;
  color: var(--text);
}

.pos-o {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

.pos-r.pos-head .pos-o {
  text-decoration: none;
}

.pos-n {
  color: var(--text);
  background: var(--accent-soft);
}

/* relayout wireframes */
.wires {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wires figure {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
}

.wires figcaption {
  font-size: 14px;
  color: var(--muted);
}

.wires figcaption > b {
  display: block;
  font: 700 18px/1.2 var(--display);
  color: var(--text);
  margin-bottom: 8px;
}

.wires ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.wires li b {
  color: var(--text);
}

.wf svg {
  width: 100%;
  height: auto;
  display: block;
}

.wf-body {
  fill: #0b0e14;
  stroke: var(--line-2);
  stroke-width: 2;
}

.wf-prev {
  fill: #2a2d33;
}

.wf-band {
  fill: #0b0e14;
}

.wf-ui {
  fill: #17191f;
  stroke: #4a4c55;
}

.wf-script {
  fill: rgb(11 14 20 / 55%);
}

.wf-line {
  fill: #fff;
}

.wf-line.dim {
  fill: rgb(255 255 255 / 45%);
}

.wf-red {
  fill: #ff3c33;
  stroke: #fff;
  stroke-width: 3;
}

.wf-or {
  fill: #ff9800;
  stroke: #fff;
  stroke-width: 3;
}

.wf-tabs {
  fill: #171717;
}

.wf-blue,
.wf-bad rect {
  fill: #79bcff;
}

.wf-bad text {
  font: 700 7px var(--sans);
  fill: #0b0e14;
  text-anchor: middle;
}

.wf-thumb {
  fill: rgb(255 152 0 / 13%);
  stroke: rgb(255 152 0 / 55%);
  stroke-dasharray: 4 4;
}

.wf-t {
  font: 600 9px var(--sans);
  fill: #cecfd0;
  text-anchor: middle;
}

.wf-t.sm {
  font-size: 7.5px;
}

.wf-t.or {
  fill: #ff9800;
}

.wf-pin circle {
  fill: #f43899;
}

.wf-pin.ok circle {
  fill: #ff9800;
}

.wf-pin text {
  font: 800 9px var(--sans);
  fill: #fff;
  text-anchor: middle;
}

.wf-pin.ok text {
  fill: #0b0e14;
}

/* palette swatches */
.sys {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.sw {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.sw > div {
  display: grid;
  gap: 2px;
  width: 84px;
  font-size: 12.5px;
}

.sw i {
  display: block;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  margin-bottom: 6px;
}

.sw .mono {
  font-size: 10.5px;
  color: var(--faint);
}

@media (width <= 900px) {
  .ba {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wires,
  .sys {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 520px) {
  .wires figure {
    grid-template-columns: 120px 1fr;
  }

  .pos-r {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pos-r .pos-k {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .pos-r.pos-head > div:first-child {
    display: none;
  }

  .ph .tag {
    font-size: 9px;
    padding: 5px 7px;
  }
}

.wf-t.dk {
  fill: #0b0e14;
}

/* pulsar page v2 (21 Nov 2026): brand slides, website video, DualTake galleries + side-by-side revamps */
.pv-shot {
  margin: 0;
  cursor: zoom-in;
}

.pv-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pv-shot figcaption,
.pv-video figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.pv-hero {
  margin-top: 26px;
}

.pv-slider {
  --per: 2;
  margin-top: 26px;
}

.pv-slider .vc {
  border: 0;
  background: none;
  overflow: visible;
}

.pv-slider .vc:hover {
  transform: none;
}

.pv-slider .pv-shot img {
  box-shadow: none;
}

.pv-video {
  margin: 26px 0 0;
}

.pv-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f4f3f7;
  box-shadow: var(--shadow);
}

.cbody .pv-h3 {
  margin-top: 44px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font: 700 24px/1.1 var(--display);
  scroll-margin-top: 90px;
}

.pv-live {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pv-live img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}

.pv-live:hover img {
  transform: scale(1.02);
}

.pv-live .btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.pv-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.pv-app .full {
  grid-column: 1 / -1;
}

.pv-cmps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}

.pv-cmp {
  cursor: zoom-in;
}

.pv-cmp-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pv-cmp-h .mono {
  font-size: 12px;
  color: var(--accent);
}

.pv-cmp h4 {
  margin: 0;
  font: 700 19px/1.2 var(--display);
}

.cbody .pv-cmp p {
  margin: 6px 0 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.pv-cmp-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #17191f;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.pv-cmp:hover .pv-cmp-img {
  transform: translateY(-2px);
}

.pv-cmp-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .pv-slider {
    --per: 1;
  }

  .pv-app,
  .pv-cmps {
    grid-template-columns: 1fr;
  }

  .pv-live .btn {
    position: static;
    margin: 12px;
  }
}

.pv-video.pv-vert {
  max-width: 340px;
  margin: 0 auto 26px;
  text-align: center;
}

.pv-video.pv-vert video {
  border-radius: 22px;
  background: #ff9800;
}
