/* Heading font, served from this site (no request to Google). */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-semi-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Theme ----------
   Header, the big picture at the top and the footer are always dark ("chrome").
   Everything else follows the light/dark switch in the header (saved in the browser, starts from the system setting). */
:root {
  --red: #e23434;
  --red-dark: #c42525;
  --red-btn: #d92d2d;     /* red behind white text (enough contrast) */
  --red-on-dark: #ff4040; /* red text on the dark header/hero */
  --chrome: #0b0b0c;
  --chrome-2: #151517;
  --chrome-line: #26262a;
  --chrome-text: #f2f2f2;
  --chrome-muted: #a8a8a8;

  --bg: #f6f6f5;
  --bg-alt: #ececea;
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --border: #e2e2e0;
  --border-hover: #c9c9c6;
  --heading: #111111;
  --text: #1f1f1f;
  --muted: #646464;
  --line: #e0e0de;
  --link: #c42525;
  --input-bg: #ffffff;
  --code-bg: #e9e9e7;
  --tag-bg: #f1f1ef;
  --tag-red-bg: #fdeaea;
  --tag-red-line: #f3bcbc;
  --tag-red-text: #c42525;
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, .08);

  --heading-font: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0f11;
  --bg-alt: #141417;
  --surface: #18181b;
  --surface-hover: #1e1e22;
  --border: #26262a;
  --border-hover: #3a3a40;
  --heading: #ffffff;
  --text: #e4e4e4;
  --muted: #9b9b9b;
  --line: #26262a;
  --link: #ff6b6b;
  --input-bg: #111113;
  --code-bg: #1d1d21;
  --tag-bg: rgba(255, 255, 255, .05);
  --tag-red-bg: rgba(226, 52, 52, .12);
  --tag-red-line: #e23434;
  --tag-red-text: #ff8f8f;
  --card-shadow-hover: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

/* The page fills at least the whole screen and the footer always sits at the bottom, even on short pages */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
body > main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }
a { color: var(--link); }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--heading);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: flat, one shape everywhere ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-small { padding: 8px 16px; font-size: .92rem; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--border-hover); color: var(--heading); background: transparent; }
.btn-outline:hover { border-color: var(--heading); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* ---------- Header (always dark) ---------- */
.site-header {
  background: var(--chrome);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--chrome-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo img { width: 130px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #cfcfcf; text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav a:not(.btn):hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 2px; }

/* Light/dark switch */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { color: #fff; border-color: #444; background: rgba(255, 255, 255, .06); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ☰ menu button, only shown on phones */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; transition: transform .15s, opacity .15s; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Status pill in the header, right of the logo */
.header-status { margin-left: 18px; margin-right: auto; }
.header-status .status {
  font-size: .82rem;
  color: #d6d6d6;
  padding: 5px 13px;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  white-space: nowrap;
}
.header-status:empty { display: none; }

/* ---------- Hero (always dark) ---------- */
.hero { position: relative; overflow: hidden; background: var(--chrome); color: var(--chrome-muted); padding: 72px 0 0; }
.hero > .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 4.6vw, 3.6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.hero-shot { display: block; }
.hero-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #222; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-bottom: 8px; }
.lead { font-size: 1.18rem; max-width: 600px; }
.lead strong { color: #fff; }

/* Homepage: the picture fills the whole top, text sits on a dark fade */
.hero-full { min-height: min(680px, 86vh); display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
/* The picture keeps a 16:9 shape in the middle (no over-zoom on wide screens) and fades into the dark sides */
.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  object-fit: cover;
}
@media (min-width: 900px) {
  .hero-bg {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  }
}
/* wide screens: the picture stops stretching to the full width, the sides stay dark */
@media (min-width: 1280px) { .hero-bg { min-width: 0; } }
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .8) 38%, rgba(8, 8, 9, .38) 68%, rgba(8, 8, 9, .1) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 60px; }
.hero-content > * { max-width: 600px; }
.hero-full h1 { font-size: clamp(3.4rem, 8vw, 6.2rem); line-height: .98; margin-bottom: .25em; }
.hero-full .facts { z-index: 2; background: rgba(11, 11, 12, .82); backdrop-filter: blur(6px); }
.studio-intro { color: #bdbdbd; font-size: 1rem; max-width: 470px; margin: 0 0 22px; }
.studio-intro strong { color: #fff; }

.facts { position: relative; background: var(--chrome-2); border-top: 1px solid var(--chrome-line); }
.facts-inner { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 16px; padding-bottom: 16px; font-size: .95rem; color: var(--chrome-muted); }
.facts strong { color: #fff; }
.facts a { color: var(--chrome-muted); text-decoration: none; }
.facts a:hover, .facts a:hover strong { color: #fff; }

.breadcrumb { font-size: .9rem; color: #999; margin: 0 0 18px; }
.breadcrumb a { color: #bbb; text-decoration: underline; text-decoration-color: rgba(160, 160, 160, .45); text-underline-offset: 3px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.lead-dark { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.page-head { padding: 72px 0 0; }
.page-head + .section { padding-top: 12px; }
.more-note { margin: 30px 0 0; color: var(--muted); }
.more-note a { font-weight: 700; text-decoration: none; }
.more-note a:hover { text-decoration: underline; }
/* "From the blog" follows the Projects section, so it doesn't need its own top padding */
#blog { padding-top: 0; }

/* ---------- Cards: follow the theme (white in light, dark in dark).
   On hover the picture zooms a little, darkens and shows the text from data-cta. ---------- */
.project-wide, .project-card, .post-card, .contact-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.project-wide:hover, .project-card:hover, .post-card:hover, .contact-card:hover,
.project-wide:focus-visible, .project-card:focus-visible, .post-card:focus-visible, .contact-card:focus-visible {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  background: var(--surface-hover);
}
.card-media { position: relative; display: block; overflow: hidden; }
.card-media img { display: block; transition: transform .5s ease; }
.card-media[data-cta]::after {
  content: attr(data-cta);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.project-wide:hover .card-media img, .project-card:hover .card-media img, .post-card:hover .card-media img,
.project-wide:focus-visible .card-media img, .project-card:focus-visible .card-media img, .post-card:focus-visible .card-media img { transform: scale(1.05); }
.project-wide:hover .card-media::after, .project-card:hover .card-media::after, .post-card:hover .card-media::after,
.project-wide:focus-visible .card-media::after, .project-card:focus-visible .card-media::after, .post-card:focus-visible .card-media::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card-media img, .card-media[data-cta]::after { transition: none; }
  .project-wide:hover .card-media img, .project-card:hover .card-media img, .post-card:hover .card-media img { transform: none; }
}
.more { font-weight: 700; color: var(--link); }

.tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--line); color: var(--text); }
.tag-red { background: var(--tag-red-bg); border-color: var(--tag-red-line); color: var(--tag-red-text); }

/* Wide project card (homepage) */
.project-wide { display: grid; grid-template-columns: 1.15fr 1fr; }
.project-wide img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-wide-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.project-wide-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .3em; }
.project-wide-body p { color: var(--muted); }
.project-wide-body .more { margin-top: 6px; }

/* Project cards (/projects/) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.project-card { display: flex; flex-direction: column; }
.project-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.project-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-card-body h3 { margin-bottom: .3em; }
.project-card-body p { color: var(--muted); font-size: .97rem; }
.project-card-body .more { margin-top: auto; }
.upcoming { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.upcoming-card { border: 1px dashed var(--border-hover); border-radius: 10px; padding: 24px; }
.upcoming-card p { color: var(--muted); margin: 0; }
.card-grid .upcoming-card { display: flex; flex-direction: column; justify-content: center; min-height: 180px; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.post-card { display: flex; flex-direction: column; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 18px 22px 22px; }
.post-card-body h3 { font-size: 1.6rem; margin: .2em 0 .35em; }
.post-card-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.post-date { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--link); }
.card-stats { display: inline-flex; gap: 14px; font-size: .85rem; font-weight: 600; color: var(--muted); opacity: 0; transition: opacity .25s; }
.card-stats.is-loaded { opacity: 1; }
.card-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.card-stats svg { width: 15px; height: 15px; fill: currentColor; }
.card-stats b { color: var(--red); font-size: 1rem; line-height: 1; }
.post-head h1, .post-card-body h3, .updates h3 { overflow-wrap: anywhere; }

.post-search input {
  width: 260px;
  max-width: 100%;
  padding: 10px 14px 10px 38px;
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") no-repeat 12px center / 17px;
  transition: border-color .15s;
}
.post-search input:focus { outline: none; border-color: var(--red); }
.post-search-empty { margin: 28px 0 0; color: var(--muted); }

/* ---------- About + skills ---------- */
.about { display: flex; gap: 36px; align-items: flex-start; }
.about-icon { border-radius: 16px; flex-shrink: 0; }
.about p { max-width: 640px; }
#about .skill-group:first-of-type { margin-top: 44px; }
.skill-group { margin-top: 32px; }
.skill-group-title {
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--link);
  margin: 0 0 12px;
}
.skill-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.skill-tile h4 { font-size: 1.5rem; margin-bottom: .2em; }
.skill-tile p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.contact-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; }
.contact-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--red); color: #fff; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-text { flex: 1; min-width: 0; }
.contact-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-value { display: block; font-weight: 600; font-size: .95rem; color: var(--heading); overflow-wrap: break-word; }
.contact-arrow { position: absolute; top: 12px; right: 16px; color: var(--muted); font-weight: 700; transition: color .2s, transform .2s; }
.contact-card:hover .contact-arrow, .contact-card:focus-visible .contact-arrow { color: var(--heading); transform: translateX(3px); }
.contact-status { margin: -4px 0 0; color: var(--muted); }
.contact-hire { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.contact-status .status { color: var(--heading); }

/* ---------- Status dot (set from the 2Yeet Panel) ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex-shrink: 0; }
.status-available { --dot: #22c55e; }
.status-working { --dot: #f5b400; }
.status-busy { --dot: #e23434; }
.status-away { --dot: #8a8a8a; }
/* Soft glow that grows and fully fades before it starts again, so the loop has no visible jump */
.status-available .status-dot::after, .status-working .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--dot);
  opacity: 0;
  will-change: transform, opacity;
  animation: status-pulse 2s cubic-bezier(.2, .6, .35, 1) infinite;
}
@keyframes status-pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none !important; } }
.contact-status:empty, .footer-status:empty { display: none; }

/* ---------- Footer (always dark) ---------- */
.site-footer { background: var(--chrome); color: #999; padding: 56px 0 28px; font-size: .95rem; border-top: 1px solid var(--chrome-line); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-family: var(--body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 4px; }
.footer-col a { color: #b5b5b5; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid var(--chrome-line); font-size: .85rem; color: #888; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }
.footer-status { margin-top: 14px !important; font-size: .9rem; }
.footer-status .status { color: #ccc; font-weight: 500; }

/* ---------- Anvil project page ---------- */
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.gallery-main { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--bg-alt); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .6; transition: opacity .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--red); opacity: 1; }
.gallery-thumbs img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.specs { display: grid; grid-template-columns: 96px 1fr; margin: 1.4em 0 0; font-size: .95rem; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--link); padding-top: 11px; }

.video { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); }
.video-text a { font-weight: 700; }
.video-note { margin-top: .8em; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
a.video-frame { display: block; }
a.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 16px; bottom: 16px; width: 64px; height: 44px; background: var(--red); border-radius: 12px; transition: background .15s; }
.play::after { content: ""; position: absolute; left: 25px; top: 13px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }
a.video-frame:hover .play { background: var(--red-dark); }

/* Updates list (project pages) */
.updates { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.updates li { border-bottom: 1px solid var(--line); }
.updates a { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; color: var(--text); text-decoration: none; }
.updates a:hover h3 { color: var(--link); }
.updates h3 { font-size: 1.35rem; margin: 0 0 .2em; transition: color .15s; }
.updates p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Click-to-enlarge images */
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: .75;
  transition: opacity .15s;
}
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { opacity: 1; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d0d0d; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 4px; }
.lb-caption { color: #bbb; margin: 14px 0 0; padding: 0 16px; font-size: .95rem; text-align: center; }
.lb-btn { position: fixed; border: 0; color: #fff; background: rgba(255, 255, 255, .08); border-radius: 6px; cursor: pointer; line-height: 1; transition: background .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 2rem; }
.lb-prev, .lb-next { top: 50%; width: 52px; height: 72px; margin-top: -36px; font-size: 2.6rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
body:has(.lightbox[open]) { overflow: hidden; }

/* ---------- Blog post ---------- */
/* Top: the cover fills the whole width, title on a dark fade. Without a cover it's a plain dark band. */
.post-hero { position: relative; overflow: hidden; background: var(--chrome); color: #c9c9c9; display: flex; align-items: flex-end; }
.post-hero.has-cover { min-height: clamp(520px, 38vw, 700px); }
.post-hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 8, 9, .95) 0%, rgba(8, 8, 9, .72) 45%, rgba(8, 8, 9, .22) 100%); }
.post-hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 44px; }
.post-hero.has-cover .container { padding-top: 120px; }
.post-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1; max-width: 860px; margin: .15em 0 .3em; overflow-wrap: anywhere; }
.post-hero .lead { color: #d2d2d2; max-width: 680px; }
.post-hero .tag { color: #ddd; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .95rem; }
.post-meta-row a { color: #fff; }
.dot-sep { opacity: .5; }

/* Text column, with "On this page" on the right when the post has a few sections */
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }
.post-layout.has-toc { grid-template-columns: minmax(0, 760px) 230px; justify-content: space-between; gap: 60px; }
.post-side { padding-top: 46px; }
.toc { position: sticky; top: 96px; font-size: .92rem; }
.toc-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--heading); }
.toc a.active { color: var(--heading); border-left-color: var(--red); font-weight: 600; }
.prose h2[id] { scroll-margin-top: 90px; }
.toc-mobile { display: none; margin-top: 28px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.toc-mobile summary { padding: 12px 16px; font-weight: 700; color: var(--heading); cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 16px 14px 36px; }
.toc-mobile li { padding: 3px 0; }
.toc-mobile a { color: var(--text); text-decoration: none; }

.prose { padding-top: 40px; padding-bottom: 20px; font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 8px; width: 100%; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; text-align: center; }
.fig-row { display: grid; gap: 14px; margin: 1.6em 0; }
.fig-row figure { margin: 0; }
.fig-row-2 { grid-template-columns: 1fr 1fr; }
.fig-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.fig-row img { aspect-ratio: 3 / 2; object-fit: cover; }
.prose blockquote { border-left: 4px solid var(--red); padding: 4px 0 4px 18px; color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--code-bg); padding: 2px 6px; border-radius: 4px; }
.prose pre { position: relative; background: #111113; color: #eee; padding: 18px 20px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: .9rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 600 .8rem var(--body); color: #ccc; background: #1d1d20; border: 1px solid #333; border-radius: 6px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: #555; }
.copy-btn svg { width: 14px; height: 14px; }

/* Note boxes: > [!TIP], > [!NOTE], > [!WARNING] */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--red); background: var(--surface); border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; }
.callout > strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--link); margin-bottom: 2px; }
.callout p { margin: 0 0 .6em; }
.callout p:last-child { margin: 0; }
.callout-tip { border-left-color: #22a35a; }
.callout-tip > strong { color: #1d8f4e; }
.callout-note { border-left-color: #3b82f6; }
.callout-note > strong { color: #2563eb; }
.callout-warn { border-left-color: #e0a100; }
.callout-warn > strong { color: #a67500; }
[data-theme="dark"] .callout-tip > strong { color: #4ade80; }
[data-theme="dark"] .callout-note > strong { color: #7aa7ff; }
[data-theme="dark"] .callout-warn > strong { color: #f5c542; }

/* Videos in posts */
.prose .video-frame { margin: 1.6em 0 .4em; }
.prose .video-frame img { border-radius: 0; }
.video-frame.no-thumb { background: #111 url("/assets/logo.svg") center / 160px no-repeat; }
.video-note { font-size: .88rem; color: var(--muted); margin: 0 0 1.4em; }

/* Under the post: views and heart, share, older/newer */
.post-social { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.post-views { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .95rem; min-height: 1em; }
.post-views svg { width: 16px; height: 16px; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 0 26px; }
.share-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font: 600 .88rem var(--body); color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; cursor: pointer; transition: border-color .15s; }
.share-btn:hover { border-color: var(--border-hover); }
.share-btn svg { width: 15px; height: 15px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 10px; }
.pn { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color .2s; }
.pn:hover { border-color: var(--border-hover); }
.pn-next { text-align: right; grid-column: 2; }
.pn-label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pn-title { display: block; font-family: var(--heading-font); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--heading); margin-top: 3px; overflow-wrap: anywhere; }
.post-related { padding-top: 56px; padding-bottom: 10px; }
.post-related .post-grid { margin-top: 0; }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 80px; border-top: 1px solid var(--line); }

/* Heart button */
.like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1rem var(--body);
  padding: 8px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.like-btn:hover { border-color: var(--red); }
.like-btn .heart { color: var(--red); font-size: 1.15rem; line-height: 1; }
.like-btn.liked { background: var(--red); border-color: var(--red); color: #fff; }
.like-btn.liked .heart { color: #fff; }
.like-btn.pop .heart { animation: heart-pop .35s ease-out; }
@keyframes heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Comments */
.comments { padding-top: 40px; padding-bottom: 8px; }
.comments h2 { font-size: 1.9rem; }
.comments h2 .muted { font-size: 1.2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; gap: 12px; align-items: baseline; margin: 0 0 4px; }
.comment-head strong { color: var(--heading); }
.comment-head span { color: var(--muted); font-size: .85rem; }
.comment-body { margin: 0; overflow-wrap: anywhere; }
.comment-empty { color: var(--muted); }
.comment-form { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; margin-bottom: 40px; }
.comment-form h3 { font-size: 1.4rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
.comment-form input, .comment-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 10px 12px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--red); }
.comment-form textarea { resize: vertical; min-height: 110px; }
.turnstile { margin: 14px 0 4px; min-height: 0; }
.comment-form .btn { margin-top: 12px; }
.comment-form .btn:disabled { opacity: .5; cursor: default; }
.comment-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }

/* ---------- Simple pages ---------- */
.page-404, .page-short { display: flex; flex-direction: column; min-height: 100vh; }
.notfound { flex: 1; padding: 110px 0 130px; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.footer-bottom-solo { margin-top: 0; padding-top: 0; border-top: 0; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal-summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 8px; padding: 16px 20px; margin: 1.5em 0 .5em; }
.legal-summary p { margin: 0; }
.feed-link { font-weight: 600; font-size: .95rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .project, .video { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .skill-tiles { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-template-columns: 1fr; }
  .project-wide img { height: auto; }
  .project-wide-body { padding: 24px 24px 26px; }
  .post-grid { grid-template-columns: 1fr; }
  .updates a { grid-template-columns: 1fr; gap: 4px; }
  .post-search, .post-search input { width: 100%; }
  .post-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
  .post-side { display: none; }
  .toc-mobile { display: block; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; }
  .post-hero.has-cover { min-height: 440px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-full::before { background: linear-gradient(0deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .6) 55%, rgba(8, 8, 9, .25) 100%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--chrome);
    border-bottom: 1px solid var(--chrome-line);
    padding: 6px 16px 14px;
  }
  .menu-open .nav-links a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid #1f1f22; }
  .menu-open .nav-links a:last-child { border-bottom: 0; }
  .menu-open .nav-links a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .notfound { padding: 64px 0 80px; }
  .hero { padding-top: 48px; }
  .hero-full { padding-top: 0; min-height: 600px; }
  .hero-content { padding-top: 96px; padding-bottom: 40px; }
  .hero-grid { padding-bottom: 52px; }
  .facts-inner { gap: 6px 24px; font-size: .9rem; }
  .section { padding: 60px 0; }
  .specs { grid-template-columns: 84px 1fr; }
  .upcoming { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .page-head { padding-top: 48px; }
  /* phones: just the dot next to the logo, the text is in Contact and the footer */
  .header-status { margin-left: 12px; }
  .header-status .status { padding: 8px; }
  .header-status .status-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .about { flex-direction: column; gap: 20px; }
  .about-icon { width: 80px; height: 80px; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin-top: 0; width: 64px; height: 52px; }
  .lb-prev { left: calc(50% - 72px); }
  .lb-next { right: calc(50% - 72px); }
  .lb-caption { margin-bottom: 70px; }
  .fig-row-2, .fig-row-3 { grid-template-columns: 1fr; }
  .post-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
}

/* ---------- Blog list: newest post big on top, tag filter ---------- */
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.post-featured img { height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-featured .post-card-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.post-featured p { font-size: 1.05rem; }
.featured-label { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--red-btn); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-chip { font: 600 .9rem var(--body); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-hover); background: var(--surface); color: var(--heading); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tag-chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.tag-chip:hover { border-color: var(--heading); }
.tag-chip[aria-pressed="true"] { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.tag-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .8); }
a.tag { text-decoration: none; }
.post-hero a.tag:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-card-body { padding: 18px 22px 22px; }
}

/* ---------- Project page: changelog, roadmap, FAQ ---------- */
.changelog-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.changelog-wrap.has-roadmap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.changelog { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.changelog > li { position: relative; padding: 0 0 26px 24px; }
.changelog > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--border-hover); }
.changelog > li:first-child::before { background: var(--red); border-color: var(--red); }
.cl-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.cl-version { font-family: var(--heading-font); font-weight: 700; font-size: 1.45rem; color: var(--heading); }
.cl-head time { font-size: .85rem; font-weight: 600; color: var(--muted); }
.changelog ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.changelog ul li { margin: 3px 0; }
.changelog code { font-size: .88em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.cl-older summary { cursor: pointer; font-weight: 700; color: var(--link); margin: 4px 0 18px; }
.roadmap { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.roadmap h3 { font-size: 1.5rem; margin-bottom: 14px; }
.rm-group + .rm-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rm-group h4 { font-family: var(--body); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; color: var(--muted); }
.rm-doing h4 { color: #b07d00; }
.rm-done h4 { color: #1d8f4e; }
[data-theme="dark"] .rm-doing h4 { color: #f5c542; }
[data-theme="dark"] .rm-done h4 { color: #4ade80; }
.rm-group ul { margin: 0; padding-left: 1.1em; }
.rm-group li { margin: 4px 0; }
.rm-note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.faq { display: grid; gap: 10px; max-width: 820px; margin-top: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s; }
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 700; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; line-height: 1; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; color: var(--text); }
.faq-a p { margin: 0; }
@media (max-width: 900px) { .changelog-wrap.has-roadmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Press kit ---------- */
.press { padding-top: 40px; }
.press h2 { margin: 48px 0 18px; }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.press-text { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 16px; }
.press-text-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.press-text h2 { font-size: 1.3rem; margin: 0; }
.press-text p { margin: 0; }
.press-facts { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; }
.press-facts h2 { font-size: 1.3rem; margin: 0 0 10px; }
.press-facts dl { margin: 0; }
.press-facts dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 12px; }
.press-facts dt:first-child { margin-top: 0; }
.press-facts dd { margin: 2px 0 0; color: var(--heading); font-weight: 600; }
.press .video-frame { margin-top: 0; }
.press-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.press-shots figure { margin: 0; }
.press-shots img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; transition: opacity .15s; }
.press-shots a:hover img { opacity: .85; }
.press-shots figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.press-shots figcaption a { font-weight: 700; margin-left: 4px; }
.press-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.press-logo { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 10px; background: #111113; border: 1px solid var(--border); text-decoration: none; color: #ddd; font-size: .85rem; font-weight: 600; }
.press-logo.on-light { background: #fff; color: #333; }
.press-logo img { height: 56px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.press-logo:hover { border-color: var(--red); }
@media (max-width: 900px) {
  .press-grid { grid-template-columns: minmax(0, 1fr); }
  .press-shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .press-shots { grid-template-columns: 1fr; } }
.page-head .breadcrumb, .page-head .breadcrumb a { color: var(--muted); }
.page-head .breadcrumb a:hover { color: var(--heading); }
.prose-plain { padding: 0; font-size: 1rem; line-height: 1.65; }
.project-body .prose-plain p:last-child { margin-bottom: 0; }

/* red text on the always-dark parts */
.hero .eyebrow, .post-hero .eyebrow { color: var(--red-on-dark); }
/* <picture> around the big top pictures should not change the layout */
.hero-full > picture, .post-hero > picture, .hero-shot > picture { display: contents; }
.press-text p + p { margin-top: .8em; }
.press-shots img { object-fit: contain; background: #111113; }

/* ---------- Hire page ---------- */
.hire-status { color: var(--chrome-muted); margin: 0 0 4px; }
.hire-status .status { color: #fff; }
.hero-shot img { object-fit: cover; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc h3 { font-size: 1.6rem; margin: 0 0 6px; }
.svc-price { font-weight: 700; color: var(--link); white-space: nowrap; }
.svc p { color: var(--muted); margin: 0 0 10px; }
.svc ul { margin: 0; padding-left: 1.1em; }
.svc li { margin: 2px 0; }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.proof img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.eyebrow-plain { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--link); margin: 0 0 6px; }
.more-link { font-weight: 700; text-decoration: none; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.price { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.price-n { font-family: var(--heading-font); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--heading); }
.price > span:last-child { color: var(--muted); font-size: .92rem; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.terms > div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; }
.terms h3 { font-size: 1.3rem; margin-bottom: 8px; }
.terms ul { margin: 0; padding-left: 1.1em; }
.terms li { margin: 4px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 14px; }
.step-n { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red-btn); color: #fff; font-weight: 700; }
.steps h3 { font-size: 1.25rem; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.written { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 22px; }
.written h3 { font-size: 1.3rem; margin-bottom: 6px; }
.written p { margin: 0 0 8px; }
.hire-form select { width: 100%; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 10px 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hr-note { margin-top: 18px; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .proof, .terms, .form-row { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .price-grid, .steps, .svc-grid { grid-template-columns: 1fr; } }

.hire-form.sent { opacity: .7; }

/* discount on the hire page */
.price-was { text-decoration: line-through; opacity: .55; font-weight: 600; font-size: .85em; margin-right: 4px; }
.price-now { white-space: nowrap; }
.price-n .price-was { display: block; font-size: 1rem; }
.deal { margin: -6px 0 22px; padding: 12px 16px; border-radius: 10px; background: var(--tag-red-bg); border: 1px solid var(--tag-red-line); color: var(--heading); }
.deal b { color: var(--tag-red-text); }
.discount-over .price-was { text-decoration: none; opacity: 1; font-size: inherit; margin: 0; display: inline; }
.discount-over .price-now, .discount-over .deal { display: none; }
#h-budget-other { margin-top: 8px; }

/* currency switch on the hire page */
.cur-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); margin: 0; }
.cur-pick select { font: inherit; font-weight: 600; color: var(--heading); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.cur-pick select:focus { outline: none; border-color: var(--red); }
.cur-note { margin: -4px 0 14px; }

/* taking projects or not (hire page) */
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--chrome-line); }
.avail-open { --dot: #22c55e; }
.avail-booked { --dot: #f5b400; }
.avail-closed { --dot: #e23434; }
.avail-note { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: rgba(245, 180, 0, .1); border: 1px solid rgba(245, 180, 0, .45); color: var(--heading); }
.avail-note b { color: #a87800; }
[data-theme="dark"] .avail-note b { color: #f5c542; }
.avail-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 30px; }
.avail-box h2 { margin-top: 0; }
.avail-box .btn { margin-top: 6px; }

/* looping clips in blog posts (instead of GIFs) */
.prose .clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }

/* ---------- reviews ---------- */
.stars { color: #f5b400; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--border-hover); }
.stars-big { font-size: 1.5rem; }
.stars-avg { position: relative; display: inline-block; }
.stars-bg { color: var(--border-hover); }
.stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5b400; }
.rv-summary { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 30px; margin-bottom: 28px; }
.rv-summary.has-score { grid-template-columns: auto minmax(200px, 300px) 1fr; }
.rv-score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rv-score[hidden], .rv-bars[hidden] { display: none; }
.rv-score strong { font-family: var(--heading-font); font-size: 3.4rem; line-height: 1; color: var(--heading); }
.rv-count { color: var(--muted); font-size: .85rem; }
.rv-bars { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.rv-bar { display: grid; grid-template-columns: 30px 1fr 22px; gap: 10px; align-items: center; }
.rv-track { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.rv-track span { display: block; height: 100%; background: #f5b400; border-radius: 4px; }
.rv-how h2 { font-size: 1.15rem; margin: 0 0 6px; }
.rv-how p { margin: 0; color: var(--muted); font-size: .92rem; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.rv-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-date { color: var(--muted); font-size: .8rem; }
.rv-text { margin: 0; flex: 1; white-space: pre-line; overflow-wrap: anywhere; }
.rv-who { display: flex; align-items: center; gap: 10px; }
.rv-who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.rv-who strong { color: var(--heading); font-size: .95rem; }
.rv-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; object-fit: cover; }
.rv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: #4752c4; }
[data-theme="dark"] .rv-badge { color: #8f98ff; }
.rv-badge svg { width: 14px; height: 14px; flex: none; }
.rv-badge-plain { color: var(--muted) !important; }
.rv-empty { grid-column: 1 / -1; }
.rv-form-wrap { max-width: 640px; margin-top: 48px; }
.rv-tabs { display: flex; gap: 6px; margin: 18px 0 -1px; }
.rv-tabs[hidden] { display: none; }
.rv-tab { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 16px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); cursor: pointer; }
.rv-tab svg { width: 18px; height: 18px; }
.rv-tab.is-on { background: var(--surface); color: var(--heading); }
.rv-tabs:not([hidden]) + .rv-form { border-top-left-radius: 0; }
.btn-discord { display: inline-flex; align-items: center; gap: 10px; background: #5865f2; color: #fff; border-color: #5865f2; margin-top: 4px; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-discord svg { width: 20px; height: 20px; }
.rv-in .rv-who { margin-top: 4px; }
.link-btn { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.star-field { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.star-field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.comment-form .star-pick label { display: block; margin: 0; padding: 0 2px; font-size: 1.9rem; line-height: 1; color: var(--border-hover); cursor: pointer; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5b400; }
.star-pick input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.rv-locked .star-field, .rv-locked textarea, .rv-locked label[for="rv-text"] { opacity: .45; pointer-events: none; }
@media (max-width: 860px) {
  .rv-summary.has-score { grid-template-columns: 1fr; gap: 20px; }
}
.rv-sent { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 22px 24px; border-radius: 12px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .5); outline: none; }
.rv-sent[hidden], .rv-form[hidden] { display: none; }
.rv-sent-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 1.3rem; font-weight: 700; }
.rv-sent h3 { margin: 0 0 4px; font-size: 1.4rem; }
.rv-sent p { margin: 0 0 6px; color: var(--muted); }

/* endless row of reviews on the homepage and /hire (4 or more reviews) */
.rv-marquee { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.rv-marquee-track { display: flex; align-items: stretch; gap: 18px; width: max-content; animation: rv-scroll 40s linear infinite; }
.rv-marquee:hover .rv-marquee-track, .rv-marquee:focus-within .rv-marquee-track { animation-play-state: paused; }
.rv-marquee .rv-card { flex: none; width: 340px; }
@keyframes rv-scroll { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-marquee-track { animation: none; }
  .rv-marquee .rv-card[aria-hidden="true"] { display: none; }
}

/* Discord login on blog comments */
.c-login, .c-me { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.c-login[hidden], .c-me[hidden], .c-name-field[hidden] { display: none; }
.c-login .btn-discord { margin: 0; }
.c-login .btn-discord svg { width: 18px; height: 18px; }
.c-me strong { color: var(--heading); }
.c-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; align-self: center; }
.c-discord { display: inline-flex; align-self: center; color: #5865f2; margin-left: -6px; }
[data-theme="dark"] .c-discord { color: #8f98ff; }
.c-discord svg { width: 14px; height: 14px; }
.c-me-av:empty { display: none; }

/* ---------- client project page (/r/) ---------- */
.room-wrap h1 { font-size: 2.6rem; margin: 0 0 8px; }
.room-msg-box, .room-gate { max-width: 560px; margin: 0 auto; }
.room-gate .check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 10px 0 0; }
.room-gate .check input { width: auto; margin: 0; }
.room-gate select { width: 100%; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 10px 12px; }
.room-gate .btn { margin-top: 18px; }
.gate-first[hidden] { display: none; }
.room { max-width: 920px; margin: 0 auto; }
.room-head { margin-bottom: 14px; }
.room-tip { display: inline-block; margin: 0 0 20px; padding: 8px 14px; border-radius: 8px; background: rgba(245, 180, 0, .1); border: 1px solid rgba(245, 180, 0, .45); color: var(--heading); font-size: .92rem; }
.room-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.room-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.room-card-head h2 { font-size: 1.4rem; margin: 0; }

/* milestones as steps from left to right */
.steps-h { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.steps-h li { flex: 1 1 0; min-width: 130px; position: relative; padding: 0 8px; text-align: center; }
.steps-h li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--border-hover); z-index: 0; }
.steps-h li:first-child::before { display: none; }
.steps-h li.done::before { background: #22c55e; }
.step-dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--surface); border: 3px solid var(--border-hover); color: var(--muted); }
.steps-h li.done .step-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.steps-h li.current .step-dot { border-color: #f5b400; color: var(--heading); box-shadow: 0 0 0 4px rgba(245, 180, 0, .2); }
.step-title { display: block; font-weight: 600; color: var(--heading); line-height: 1.3; }
.step-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.steps-h li.current .step-sub { color: #a87800; font-weight: 600; }
[data-theme="dark"] .steps-h li.current .step-sub { color: #f5c542; }
.steps-empty { color: var(--muted); }

/* messages, like a chat app */
.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.chat-head b { display: block; color: var(--heading); }
.chat-head span:not(.chat-av) { font-size: .82rem; color: var(--muted); }
.chat-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--red-btn); color: #fff; font-weight: 700; }
.chat-msgs { list-style: none; margin: 0; padding: 18px 20px; height: min(56vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.chat-day { align-self: center; margin: 10px 0 4px; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.bubble { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--red-btn); border-color: var(--red-btn); color: #fff; border-bottom-right-radius: 4px; }
.bubble.me a { color: #fff; }
.bubble-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.bubble-time { display: block; text-align: right; font-size: .7rem; opacity: .7; margin-top: 2px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 320px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input[hidden] { display: none; }
.chat-input textarea { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 20px; padding: 9px 16px; resize: none; max-height: 160px; line-height: 1.4; }
.chat-input textarea:focus { outline: none; border-color: var(--red); }
.chat-input .btn { border-radius: 20px; }
.chat-note { margin: 0; padding: 0 20px 12px; font-size: .78rem; color: var(--muted); background: var(--surface); }
.chat-closed { padding: 14px 20px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
@media (max-width: 700px) {
  .room-wrap h1 { font-size: 2rem; }
  .steps-h li { min-width: 110px; }
  .chat-msgs { height: 60vh; padding: 14px; }
  .bubble { max-width: 88%; }
}
/* "Your project: ... Continue" under the header, for clients */
.room-bar { background: #22c55e; color: #06210f; font-size: .92rem; }
.room-bar-inner { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.room-bar-inner span { flex: 1; min-width: 0; }
.room-bar a { color: #06210f; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.room-bar button { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #06210f; padding: 0 4px; }

/* hire page: a service that's switched off for now */
.svc-paused { opacity: .55; }
.svc-off { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--border-hover); color: var(--muted); white-space: nowrap; }

/* project page: finishing, events in the chat, review at the end */
.chat-event { align-self: center; max-width: 90%; text-align: center; font-size: .78rem; color: var(--muted); margin: 6px 0; }
.chat-banner { padding: 14px 20px; border-top: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.chat-banner p { margin: 0 0 10px; color: var(--heading); font-weight: 600; }
.chat-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chat-note .link-btn { font-size: inherit; margin-left: 6px; }
.room-done { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; padding: 22px 24px; border-radius: 14px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .5); }
.room-done[hidden] { display: none; }
.room-done-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 1.3rem; font-weight: 700; }
.room-done h2 { margin: 0 0 4px; font-size: 1.5rem; }
.room-done p { margin: 0 0 12px; color: var(--muted); }
.room-done-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* form checks: shown right under the field (hire form) */
.comment-form .is-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(226, 52, 52, .15); }
.field-err { margin: 6px 0 0; color: var(--red-text, #e23434); font-size: .88rem; font-weight: 600; }
[data-theme="dark"] .field-err { color: #ff6b6b; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.comment-note.is-error { color: #c42525; font-weight: 600; }
[data-theme="dark"] .comment-note.is-error { color: #ff6b6b; }
.room-bar a { margin-left: 4px; }
.room-bar-waiting { background: #2a2410; color: #f5d97a; }
.room-bar-waiting a, .room-bar-waiting button { color: #f5d97a; }
.room-bar-declined { background: #26262a; color: #d4d4d4; }
.room-bar-declined a, .room-bar-declined button { color: #d4d4d4; }
/* homepage hero: a way in for clients */
.client-link { margin: 18px 0 0; color: var(--chrome-muted); font-size: .95rem; }
.client-link a { color: #fff; font-weight: 600; }
.hire-waiting { background: rgba(245, 180, 0, .08); border-color: rgba(245, 180, 0, .5); }
.hire-waiting .rv-sent-icon { background: #f5b400; color: #2a2410; }

/* project page: paying for a milestone */
.room-pay { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.room-pay[hidden] { display: none; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: rgba(245, 180, 0, .08); border: 1px solid rgba(245, 180, 0, .45); }
.pay-text { margin: 0; color: var(--heading); }
.pay-slot { min-width: 240px; }
.pay-buttons { min-width: 240px; max-width: 360px; }
.pay-note { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.pay-err { color: var(--red); margin-bottom: 8px; }
.pay-done { margin: 0; font-weight: 700; color: #16a34a; }
[data-theme="dark"] .pay-done { color: #4ade80; }
.step-paid { display: block; margin-top: 2px; font-size: .8rem; font-weight: 700; color: #16a34a; }
[data-theme="dark"] .step-paid { color: #4ade80; }

/* request form: an amount for each part */
.parts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.part-in { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.part-in input { margin: 0; }

/* "email me when you're free" on /hire */
.free-form { margin: 18px 0 14px; }
.free-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.free-row { display: flex; gap: 8px; flex-wrap: wrap; }
.free-row input { flex: 1 1 220px; margin: 0; }

/* files in a project room */
.file-pick { cursor: pointer; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.file-row:first-child { border-top: 0; }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); }
.file-meta, .file-empty { font-size: .85rem; color: var(--muted); }
.file-up { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: .88rem; }
.file-up-name { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-up-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.file-up-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.file-err { color: var(--red); font-size: .88rem; margin: 4px 0 8px; }

/* files in the chat */
.bubble-file { max-width: min(340px, 85%); }
.file-who { display: block; font-size: .78rem; font-weight: 700; opacity: .85; margin-bottom: 6px; }
.bubble-img { display: block; }
.bubble-img img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.file-chip .file-info b { color: inherit; }
.bubble.me .file-meta { color: rgba(255, 255, 255, .8); }
.chat-attach { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--muted); cursor: pointer; }
.chat-attach:hover { color: var(--heading); background: var(--line); }
.chat-attach svg { width: 20px; height: 20px; }
.chat-up { margin: 0 16px 8px; }
.bubble-file { text-align: left; }

/* rating a finished project */
.rr-stars { display: flex; gap: 4px; margin: 10px 0; }
.rr-star { border: 0; background: none; padding: 0 2px; font-size: 2rem; line-height: 1; color: var(--border-hover); cursor: pointer; transition: color .15s, transform .15s; }
.rr-star:hover { transform: scale(1.1); }
.rr-star.on { color: #f5b301; }
#rr-text { display: block; width: 100%; margin-bottom: 10px; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 10px 12px; resize: vertical; }
.rv-badge-client { color: #16a34a !important; font-weight: 600; }

/* the rating popup on a finished project */
.rr-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.rr-overlay[hidden] { display: none; }
.rr-dialog { position: relative; width: min(560px, 100%); margin: 0; background: linear-gradient(rgba(34, 197, 94, .08), rgba(34, 197, 94, .08)), var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rr-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.rr-close:hover { color: var(--heading); }
.rr-open { margin-top: 10px; }

/* a tip on a finished project */
.room-tipbox { justify-items: start; }
.tip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.tip-chip.on { border-color: var(--red); color: var(--red); }
.tip-other { width: 110px; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-hover); border-radius: 6px; padding: 7px 10px; }
#rr-tip { margin-top: 10px; }

/* under the service cards: straight down to the form */
.svc-cta { margin-top: 32px; text-align: center; }
