/* Shared across every page: tokens, nav, footer, dot grid, buttons and the contact panel */
:root {
  --bg: #0a0b0d;
  --text: #f2f5f9;
  --muted: #a3abb8;
  --silver: linear-gradient(115deg, #fff 0%, #cfdae8 50%, #9db0cc 100%);
  --sky: linear-gradient(115deg, #f4faff 0%, #c2ddfa 50%, #7fb1ec 100%);
  /* In-page links: the blue at the right of the sky gradient */
  --link: #7fb1ec;
  --link-hover: #a9cdf5;
  --button: linear-gradient(115deg, #eaf3ff 0%, #9cc4ff 50%, #4f8fff 100%);
  --gap: clamp(48px, 7vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: Figtree, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  padding: 0 var(--gutter);
}
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; }
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav bar: sticky, over a full-width fade so content scrolls under it cleanly */
.top { position: sticky; top: 0; z-index: 3; padding-top: env(safe-area-inset-top); }
.top::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
/* A faint line under the nav once the page scrolls */
.scrolled .top::before { border-bottom-color: rgba(255, 255, 255, 0.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.home { position: relative; z-index: 2; display: block; }
.logo { display: block; width: 104px; height: auto; overflow: visible; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(24px, 3vw, 40px); list-style: none; }
.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--text); }
.top-copy { display: none; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); }

/* Pill button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #0e1116;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.cta:hover, .cta:focus-visible { filter: brightness(1.08); }
.cta svg { width: 20px; height: 20px; }

/* Footer: pinned to the bottom of the screen, over a fade */
footer.wrap {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 32px 0 max(20px, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
/* A link inside an FAQ answer, like the founder's name */
.faq-name { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
.faq-name:hover, .faq-name:focus-visible { color: var(--link-hover); }
footer.wrap a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
footer.wrap a:hover, footer.wrap a:focus-visible { color: var(--text); }
footer.wrap::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(to top, var(--bg) 55%, rgba(10, 11, 13, 0));
}

/* Dot grid behind every page */
.dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity 2.5s ease; }

/* Page title: same size and font as "On-Demand" on the home page */
.title {
  font-family: Urbanist, Figtree, sans-serif;
  font-size: clamp(2.75rem, 6.4vw, 5.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Inner pages */
.page { flex: 1; padding: clamp(48px, 9vh, 96px) 0 clamp(64px, 10vh, 120px); }
.page .lede {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 32em;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
}
.page .lede .soft { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h2 { font-family: Urbanist, Figtree, sans-serif; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.card p { color: var(--muted); font-weight: 300; line-height: 1.5; }
.card .tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.card .thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(135deg, rgba(79, 143, 255, 0.18), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.06); }
.prose { display: grid; gap: 20px; max-width: 40em; margin-top: clamp(40px, 6vw, 72px); color: #dfe5ee; font-size: 1.125rem; font-weight: 300; line-height: 1.6; }
.prose h2 { margin-top: 16px; font-family: Urbanist, Figtree, sans-serif; font-size: 1.75rem; font-weight: 600; color: var(--text); }
/* Sections further down inner pages */
.section { margin-top: clamp(88px, 12vw, 160px); }
.section-title { font-family: Urbanist, Figtree, sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.section-lede { margin-top: 16px; max-width: 34em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.45; }
.section-lede .soft { color: var(--muted); }

/* Packages: stacked rows, image on the left and details on the right */
.pkgs { display: grid; margin-top: clamp(40px, 6vw, 72px); }
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px var(--gap); align-items: start; padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pkg:first-child { border-top: 0; padding-top: 0; }
.pkg:last-child { padding-bottom: 0; }
.pkg .thumb { aspect-ratio: 16 / 10; border-radius: 20px; background: none; border: 1px solid rgba(255, 255, 255, 0.12); } /* outline only, like Home's cards */
.pkg-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pkg .num { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); }
.pkg h3 { font-family: Urbanist, Figtree, sans-serif; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.1; }
.pkg p { max-width: 30em; color: var(--muted); font-size: 1.0625rem; font-weight: 300; line-height: 1.5; }
/* Price and duration: mint, to sit alongside the sky blue */
.pkg .meta { font-size: 1.25rem; font-weight: 500; color: #8fe3c6; }
.pkg .gets-label { margin-top: 8px; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gets { display: grid; gap: 8px; list-style: none; }
.gets li { position: relative; padding-left: 26px; color: #dfe5ee; font-weight: 300; line-height: 1.45; }
.gets li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 10px; height: 6px; border-left: 1.5px solid #8ab8ee; border-bottom: 1.5px solid #8ab8ee; transform: rotate(-45deg); }
.pkg-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text); font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.pkg-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.pkg-link:hover svg, .pkg-link:focus-visible svg { transform: translateX(4px); }
.pkg-link:hover svg.ext, .pkg-link:focus-visible svg.ext { transform: translate(2px, -2px); } /* links that leave the site nudge up and out */
@media (max-width: 720px) { .pkg { grid-template-columns: minmax(0, 1fr); } }

/* FAQs: questions that open to show the answer */
.faqs { max-width: 52em; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.faq { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: Urbanist, Figtree, sans-serif; font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s ease; }
.faq[open] summary svg { transform: rotate(45deg); }
.faq p { max-width: 40em; padding: 0 0 24px; color: var(--muted); font-size: 1.0625rem; font-weight: 300; line-height: 1.6; }
.page .lede a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s ease; }
.page .lede a:hover, .page .lede a:focus-visible { color: var(--muted); }

/* Large client quote */
.quote { margin-top: clamp(88px, 12vw, 160px); max-width: 30em; }
/* Straight after the intro (About), the review sits a little closer */
.lede + .quote { margin-top: clamp(56px, 8vw, 104px); }
/* A review between sections gets the same breathing room as one under the intro */
.section + .quote { margin-top: clamp(56px, 8vw, 104px); }
/* Whatever follows a review gets the same extra room on every page */
.page .quote + * { margin-top: clamp(72px, 10vw, 128px); }
.quote blockquote p {
  font-family: Urbanist, Figtree, sans-serif;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: var(--sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The gradient only paints inside the text box, so give the last line's
   descenders (g, y, p) room, without adding space under the quote */
.quote blockquote p { padding-bottom: 0.15em; margin-bottom: -0.15em; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 24px; font-size: 0.9375rem; }
.quote .role { color: var(--muted); font-weight: 300; }

/* Work and About: rows of two, a project or section beside a client review */
.work-rows { display: grid; margin-top: clamp(40px, 6vw, 72px); }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px var(--gap);
  align-items: center;
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.work-row:first-child { padding-top: 0; border-top: 0; }
.page .work-row .quote { margin: 0; max-width: none; }
.work-row .quote blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.page .work-row .cols { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
/* About: the review and its section start level at the top */
.work-row.align-top { align-items: start; }
/* Contact: a review under What happens next */
.page .expect .quote { margin-top: clamp(40px, 5vw, 64px); max-width: none; }
.expect .quote blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
@media (max-width: 860px) { .work-row { grid-template-columns: minmax(0, 1fr); } }

/* Columns of plain text (About) */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); margin-top: clamp(48px, 7vw, 88px); }
.cols h2 { font-family: Urbanist, Figtree, sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.cols p { margin-top: 12px; color: #dfe5ee; font-size: 1.0625rem; font-weight: 300; line-height: 1.6; }
.cols ul { display: grid; gap: 10px; margin-top: 16px; list-style: none; }
.cols li { position: relative; padding-left: 1.5em; color: #dfe5ee; font-size: 1.0625rem; font-weight: 300; line-height: 1.5; }
.cols li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--silver); }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.note-small { margin-top: 32px; color: var(--muted); font-size: 0.875rem; font-weight: 300; }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* Contact panel: a layer laid out like the hero grid, so on desktop the panel
   always sits over the right-hand column, centred top to bottom */
.contact-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  padding: 72px var(--gutter);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--gap);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.contact {
  grid-column: 2;
  position: relative;
  max-height: 100%;
  overflow: auto;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 24px;
  background: rgba(18, 21, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.5s;
}
.contact-open .contact { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0.15s, 0.15s, 0s; }
/* Wide version (opened from Services or a service): centred, two columns,
   with the message and the send button on the right */
@media (min-width: 861px) {
  .contact-wide .contact { grid-column: 1 / -1; justify-self: center; width: min(960px, 100%); }
  .contact-wide .contact form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto) auto; column-gap: 32px; }
  .contact-wide .contact .field { grid-column: 1; }
  .contact-wide .contact .field:has(textarea) { grid-column: 2; grid-row: 1 / 6; grid-template-rows: auto 1fr; }
  .contact-wide .contact .field textarea { height: 100%; resize: none; }
  .contact-wide .contact .send-row { grid-column: 2; grid-row: 6; }
}
/* LinkedIn only shows with the form on the Contact page, not in the pop-up */
.contact:not(.inline) .social { display: none; }
/* Contact page: the form sits in the page as a card, always visible */
.contact.inline {
  position: relative;
  inset: auto;
  max-height: none;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 21, 28, 0.92);
  padding: clamp(24px, 2.6vw, 36px);
}
/* The page title and intro already say what it is */
.contact.inline h2, .contact.inline .intro-line { display: none; }
.contact.inline form { margin-top: 0; }
.contact h2 { font-family: Urbanist, Figtree, sans-serif; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.1; }
.contact .intro-line { margin-top: 8px; color: var(--muted); font-weight: 300; }
.contact form { display: grid; gap: 16px; margin-top: 24px; }
/* Book now page: calendar card beside what to expect */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px var(--gap); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.book { padding: clamp(24px, 2.6vw, 36px); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(18, 21, 28, 0.6); }
.expect h2 { font-family: Urbanist, Figtree, sans-serif; font-size: 1.5rem; font-weight: 600; }
.expect ol { display: grid; gap: 20px; margin-top: 20px; list-style: none; counter-reset: step; }
.expect li { position: relative; padding-left: 44px; color: #dfe5ee; font-weight: 300; line-height: 1.5; counter-increment: step; }
.expect li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); }
.expect .alt { margin-top: 32px; color: var(--muted); font-weight: 300; }
.expect .alt a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.expect .alt a:hover, .expect .alt a:focus-visible { color: var(--muted); }
@media (max-width: 860px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head strong { font-weight: 500; }
.cal-head button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.cal-head button:disabled { opacity: 0.3; cursor: default; }
.cal-head svg { width: 14px; height: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 16px; text-align: center; }
.cal-grid .dow { padding-bottom: 6px; font-size: 0.75rem; color: var(--muted); }
.cal-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.875rem; cursor: pointer; transition: background 0.2s ease; }
.cal-grid button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.cal-grid button:disabled { background: none; color: rgba(255, 255, 255, 0.2); cursor: default; }
.cal-grid button[aria-pressed="true"], .slots button[aria-pressed="true"] { background: var(--button); color: #0e1116; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.slots button { padding: 10px 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 0.875rem; cursor: pointer; }
.slots-label { margin-top: 20px; font-size: 0.875rem; color: var(--muted); }
.book .send-row { margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; color: var(--muted); }
.field .opt { opacity: 0.6; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3abb8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.field select option { background: #12151c; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #8ab8ee; box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.25); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 4px; }
.send-row .cta { margin: 0 0 0 auto; }
.social { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 1rem; text-decoration: none; transition: color 0.2s ease; }
.social:hover, .social:focus-visible { color: var(--muted); }
.social svg { width: 15px; height: 15px; }
.send-row .cta:disabled { opacity: 0.6; cursor: default; }
/* Status message sits on its own line under the LinkedIn link and button */
.note { flex: 1 0 100%; order: 2; font-size: 0.9375rem; font-weight: 300; }
.note:empty { display: none; }
.note[data-state="error"] { color: #ff9b9b; }
.note[data-state="sent"] { color: #8fe0b0; }
.close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.close:hover, .close:focus-visible { background: rgba(255, 255, 255, 0.08); }
.close svg { width: 18px; height: 18px; }
/* Dim and blur what's behind the panel */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(5, 6, 8, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.contact-open .scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

@media (max-width: 860px) {
  .title { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .page .lede { font-size: clamp(1.25rem, 4.6vw, 1.625rem); }
  /* On phones the form is a full-page modal that slides up */
  .contact-layer { padding: 0; }
  .contact {
    position: fixed;
    inset: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    padding: max(72px, calc(env(safe-area-inset-top) + 64px)) var(--gutter) max(32px, env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .contact-open .contact { transform: none; transition-delay: 0s; }
  .close { top: max(16px, env(safe-area-inset-top)); right: var(--gutter); }
  .contact-open, .contact-open body { overflow: hidden; }
}

/* On phones: the copyright sits top right, and the nav is a floating
   segmented tab bar at the bottom, over a soft blue glow */
@media (max-width: 720px) {
  .top-copy { display: block; }
  .cards { row-gap: 56px; }
  .cards.needs { row-gap: 12px; }
  .page { padding-top: 24px; }
  footer.wrap { display: none; }
  body { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .nav::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: calc(150px + env(safe-area-inset-bottom));
    z-index: -1;
    background: linear-gradient(to top, rgba(58, 112, 196, 0.5), rgba(32, 64, 120, 0.22) 45%, rgba(10, 11, 13, 0));
    /* Blur what scrolls underneath, fading out towards the top so there's no hard edge */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
    mask-image: linear-gradient(to top, #000 40%, transparent);
  }
  .nav ul {
    width: 100%;
    height: 56px;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(18, 21, 27, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
  }
  .nav li { flex: 1; display: flex; }
  .nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 0.875rem;
    white-space: nowrap;
    color: #c4cdd9;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: var(--text); }
  /* Every pill button is 48px tall on phones, to match the tab bar */
  .cta { height: 48px; padding: 0 24px; font-size: 1rem; gap: 12px; }
  .cta svg { width: 18px; height: 18px; }
}

/* MVP Services drafts: option switcher (remove once an option is picked) */
.opt-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 32px; padding: 10px 14px; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 12px; color: var(--muted); font-size: 0.875rem; }
.opt-bar a { color: var(--link); text-decoration: none; }
.opt-bar a[aria-current] { color: var(--text); font-weight: 500; }

/* How it works: three numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(32px, 4vw, 64px); margin-top: clamp(32px, 4vw, 48px); list-style: none; }
.steps .num { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); }
.steps h3 { margin-top: 8px; font-family: Urbanist, Figtree, sans-serif; font-size: 1.5rem; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1.0625rem; font-weight: 300; line-height: 1.5; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Option B: problem cards */
.card.need { padding: 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(135deg, rgba(79, 143, 255, 0.1), rgba(255, 255, 255, 0.02)); color: var(--text); text-decoration: none; transition: border-color 0.2s ease; }
.card.need:hover, .card.need:focus-visible { border-color: rgba(127, 177, 236, 0.5); }
.card.need .pkg-link { margin-top: auto; padding-top: 12px; }
.card.need:hover .pkg-link svg { transform: translateX(4px); }
.card.need.other { background: none; border-style: dashed; }

/* Option C: bold lead-ins in lists */
.cols li strong { color: var(--text); font-weight: 500; }
.cards.needs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .cards.needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Ways to work together: plain cards (not links) with room under the tag */
.card.way { gap: 12px; }
.card.way .tag { margin-bottom: 0; padding: 0; border: 0; border-radius: 0; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
/* Ways to work together: outline only, no fill */
.card.way { background: none; border-color: rgba(255, 255, 255, 0.12); }
.card.way:hover { border-color: rgba(255, 255, 255, 0.12); }

/* About: What we do and How we work side by side, with a divider between */
.about-cols { gap: 40px 0; }
/* About: who we work with (the home page's "Find out more" lands here) */
.who-section { scroll-margin-top: 96px; }
.about-cols > section + section { border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: clamp(32px, 4vw, 64px); }
.about-cols > section:first-child { padding-right: clamp(32px, 4vw, 64px); }
/* What we do, Who we work with and How we work in one row of three */
.about-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-cols.three > section:not(:last-child) { padding-right: clamp(32px, 4vw, 64px); }
.about-cols .pkg-link, .expect .pkg-link { margin-top: 56px; }
#faqs { scroll-margin-top: 120px; }
@media (max-width: 860px) {
  .about-cols > section:first-child, .about-cols.three > section:not(:last-child) { padding-right: 0; }
  .about-cols.three { grid-template-columns: minmax(0, 1fr); }
  .about-cols > section + section { border-left: 0; padding-left: 0; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* Standalone client reviews (About, Services): two thirds of the page width */
.page > .quote { max-width: calc(200% / 3); }
@media (max-width: 720px) { .page > .quote { max-width: none; } }
.card .company { margin-top: -4px; color: var(--text); font-weight: 400; }

/* About: founder section, laid out like the page hero with a portrait beside it */
.founder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.founder .lede { max-width: none; }
.founder .pkg-link { margin-top: 40px; }
.founder-photo { justify-self: center; width: 100%; max-width: 352px; }
.founder-photo img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,0.6) 70%, transparent 96%); mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,0.6) 70%, transparent 96%); }
@media (max-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .founder-photo { order: -1; max-width: 272px; justify-self: center; }
}
.founder .overline { margin-bottom: 16px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.founder .lede.soft { margin-top: 20px; color: var(--muted); }

/* Scroll reveal: set by site.js on anything that starts below the fold */
main.page .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rd, 0ms); }
main.page .reveal.in { opacity: 1; transform: none; }

/* ---------- Services, shared by the home page and the Services page ---------- */
/* Featured service: a band of light travels slowly round its outline */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.svc-card.featured::before, .pkg.featured .thumb::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--spin), rgba(127, 177, 236, 0) 0deg, rgba(127, 177, 236, 0) 200deg, rgba(127, 177, 236, 0.5) 270deg, #8fe3c6 320deg, #f4faff 340deg, rgba(127, 177, 236, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: svc-spin 9s linear infinite;
  pointer-events: none;
}
@keyframes svc-spin { to { --spin: 360deg; } }
.svc-card.featured { border-color: rgba(127, 177, 236, 0.22); }
@media (prefers-reduced-motion: reduce) { .svc-card.featured::before, .pkg.featured .thumb::after { animation: none; } }

/* On the Services page the outline runs round the illustration (::after, since
   ::before is the illustration's soft floor glow) */
.pkg.featured .thumb::after { inset: 0; z-index: 1; }

/* A service opened full screen: grows out of its card */
.svc-full {
  position: fixed;
  inset: 0;
  z-index: 15;
  padding: 0 var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  clip-path: var(--from, inset(0 round 0));
  transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.2, 1);
}
.svc-full.open { clip-path: inset(0 round 0); }
.svc-full .close { position: fixed; top: max(20px, env(safe-area-inset-top)); right: max(20px, var(--gutter)); z-index: 3; }
.svc-full-in {
  display: grid;
  /* Left: the illustration. Right: name, summary and the lists, from the top */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px var(--gap);
  align-items: start;
  min-height: 100%;
  padding: clamp(72px, 10vh, 112px) 0;
}
.svc-full .thumb { aspect-ratio: 4 / 3; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12); background: none; }
.svc-full h2 { margin-top: 8px; font-family: Urbanist, Figtree, sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.svc-full .svc-desc { margin-top: 16px; max-width: 30em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.45; color: #dfe5ee; }
.svc-full .svc-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.svc-full .gets-label { margin-bottom: 12px; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.svc-full .cta { margin-top: 40px; }
/* Its content fades in up once the panel has opened */
.svc-full-in > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc-full.open .svc-full-in > * { opacity: 1; transform: none; transition-delay: 0.3s; }
.svc-full.open .svc-full-in > * + * { transition-delay: 0.4s; }
.svc-open-page, .svc-open-page body { overflow: hidden; }
/* Locking the page keeps the scrollbar's space, so nothing shifts sideways */
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
  .svc-full, .svc-full-in > * { transition: none; }
}

.svc-full .num { display: block; font-size: 0.75rem; line-height: 1; letter-spacing: 0.1em; color: var(--muted); }
/* Desktop: the illustration's card stays in view in the left column while the details scroll */
@media (min-width: 1025px) {
  .svc-full .svc-full-in > .thumb { position: sticky; top: calc(80px + clamp(24px, 5vh, 56px)); }
}
@media (max-width: 1024px) {
  .svc-full-in { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 72px; }
}
@media (max-width: 720px) {
  .svc-full-in { padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }
}

/* Previous / Next service, along the top of the open service (like a project's sub-nav).
   The close button sits at the far right, so Next stops short of it. */
.svc-full-bar { position: sticky; top: 0; z-index: 2; padding-top: env(safe-area-inset-top); }
/* The bar runs edge to edge on a solid background; its underline shows once the
   panel has scrolled, like the site header's */
.svc-full-bar::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; pointer-events: none; }
.svc-full.scrolled .svc-full-bar::before { border-bottom-color: rgba(255, 255, 255, 0.08); }
.svc-full-bar .wrap { display: flex; align-items: center; height: 80px; padding-right: 64px; }
.svc-full-bar .back { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; color: var(--link-hover); font-size: 0.9375rem; text-decoration: none; transition: color 0.2s ease; }
.svc-full-bar .back svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.svc-full-bar .back:hover, .svc-full-bar .back:focus-visible { color: #c2ddfa; }
.svc-full-bar .prev:hover svg, .svc-full-bar .prev:focus-visible svg { transform: translateX(-4px); }
.svc-full-bar .next { margin-left: auto; padding-left: 16px; }
.svc-full-bar .next:hover svg, .svc-full-bar .next:focus-visible svg { transform: translateX(4px); }
.svc-full .svc-full-in { min-height: calc(100% - 80px); padding-top: clamp(24px, 5vh, 56px); }
/* The bar is there from the first frame, so the top never goes blank while
   the panel sweeps over the site's nav */
.svc-full-bar { opacity: 1; }
/* Moving between services: the content dips out and rises back in */
/* Previous / Next in a service's detail: the old content fades out, then the
   new fades in and rises into place, the words a beat after the picture */
.svc-full.swap .svc-full-in > * { opacity: 0; transform: scale(0.98); transition: opacity 0.3s ease, transform 0.4s ease; transition-delay: 0s !important; }
.svc-full.entering .svc-full-in > * { opacity: 0; transform: translateY(14px); transition: none !important; }
.svc-full.settling .svc-full-in > * { transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: 0s; }
.svc-full.settling .svc-full-in > * + * { transition-delay: 0.1s; }
@media (max-width: 1024px) { .svc-full .svc-full-in { padding-top: 16px; } }
@media (max-width: 480px) { .svc-full-bar .wrap { padding-right: 52px; } }

/* Services page: More info and I want this, side by side */
.pkg-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; }
.pkg-links .pkg-link { margin-top: 0; }
/* I want this: silver blue, beside More info */
.pkg-links .pkg-link[data-package] { color: var(--link-hover); }
/* Phones and tablets: the bar runs edge to edge on a solid background with an
   underline, like a project's sub-nav, so the details scroll cleanly beneath it */
@media (max-width: 1024px) {
  .svc-full .svc-full-in { padding-top: 32px; }
}
/* The founder overlay has no title or links in its bar, so instead of a solid
   band and underline it fades from the top: the words scroll up into the fade */
@media (max-width: 1024px) {
  .svc-full.single .svc-full-bar::before { content: ""; bottom: -40px; border-bottom: 0; background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 35%, transparent 100%); }
}

/* AI enablement card: a soft, wide band of light drifts across now and then */
.svc-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(127, 177, 236, 0) 40%, rgba(127, 177, 236, 0.05) 46%, rgba(169, 205, 245, 0.08) 50%, rgba(127, 177, 236, 0.05) 54%, rgba(127, 177, 236, 0) 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: svc-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes svc-shimmer {
  0% { background-position: 100% 0; }
  45%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .svc-card.featured::after { animation: none; opacity: 0; } }

/* About: Who we work with, laid out like the two sections above it, with the
   founder's quote in the second column */
.who-row { align-items: start; }
.page .who-row .quote { margin: 0; max-width: none; }
.who-row .quote blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.page .who-row + * { margin-top: clamp(72px, 10vw, 128px); }
.svc-full-text > h2:first-child { margin-top: 0; }

/* ---------- About (Bento): intro + How we work, two cards, the quote, the founder.
   Stacked on smaller screens; on desktop the page runs sideways like the home page ---------- */
/* The founder's quote, under the intro */
.page .about-quote { margin-top: clamp(40px, 5vw, 64px); max-width: none; }
.about-quote blockquote p { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
/* How we work: a paragraph and a link, inside the third card */
.about-card .about-body > p { margin-top: 16px; color: #dfe5ee; font-size: 1.0625rem; font-weight: 300; line-height: 1.6; }
.about-card .pkg-link { margin-top: 28px; color: var(--link-hover); }
/* Stacked, both open (desktop turns them into one-at-a-time, below) */
.about-cards { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 12px; }
/* Solid cards, like the home page's service cards */
.about-card { position: relative; gap: 0; padding: clamp(24px, 2.6vw, 36px); border-radius: 20px; background: #111318; }
.about-card h2 { font-size: 1.5rem; }
.about-ring { display: none; }

@media (min-width: 1025px) and (min-height: 680px) {
  html:has(.about-side), html:has(.about-side) body { height: 100%; overflow: hidden; }
  html:has(.about-side) body { min-height: 0; }
  main.about-side {
    --edge: max(var(--gutter), (100vw - 1200px) / 2);
    display: flex; align-items: center; gap: clamp(72px, 8vw, 128px);
    min-height: 0; width: auto; max-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 16px var(--edge) 8px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  main.about-side::-webkit-scrollbar { display: none; }
  main.page.about-side > * { flex: none; margin-top: 0; }
  /* The title starts where every other page's title does */
  .about-side .about-intro { width: min(540px, 40vw); scroll-snap-align: start; align-self: flex-start; padding-top: calc(clamp(48px, 9vh, 96px) - 16px); }
  /* The cards stack to the home page board's height; one is open at a time,
     the others fold to their titles. A ring fills while the open one waits its turn */
  .about-side .about-cards {
    --sel: rgba(169, 205, 245, 0.85); --p: 0;
    display: flex; flex-direction: column; gap: 12px;
    width: min(620px, 46vw); margin-top: 0; padding-block: 24px;
    align-self: stretch; scroll-snap-align: none; /* shares the first screen with the intro */
  }
  .about-side .about-card {
    --pad: clamp(24px, 2.6vw, 36px);
    flex: 0 1 0; min-height: calc(var(--pad) * 2 + 1.8rem); overflow: hidden;
    cursor: pointer; outline: none;
    transition: flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease, box-shadow 0.25s ease;
  }
  /* Open: the Services cards' soft blue gradient and faint edge */
  .about-side .about-card.is-on { flex-grow: 1; background: linear-gradient(135deg, rgba(79, 143, 255, 0.18), rgba(255, 255, 255, 0.03)), var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); cursor: default; }
  .about-side .about-card:hover, .about-side .about-card:focus-visible { box-shadow: inset 0 0 0 1px rgba(127, 177, 236, 0.5); }
  .about-side .about-card:not(.is-on):hover { background: #151821; }
  .about-side .about-body { min-height: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .about-side .about-card.is-on .about-body { opacity: 1; transform: none; transition-delay: 0.2s; }
  .about-side .about-card ul { margin-top: 24px; gap: 14px; }
  .about-side .about-card .about-body > p { margin-top: 24px; }
  .about-side .about-ring {
    display: block; position: absolute; top: calc(var(--pad) + 0.15rem); right: var(--pad); width: 24px; height: 24px; border-radius: 50%;
    background: conic-gradient(var(--sel) calc(var(--p) * 360deg), rgba(255, 255, 255, 0.12) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    opacity: 0; transition: opacity 0.3s ease;
  }
  .about-side .about-card.is-on .about-ring { opacity: 1; }
  .about-side .about-cards.still .about-ring { display: none; }
}

/* About: "Read more" under the quote opens the founder full screen, like a service */
.about-intro .read-more { margin-top: 36px; color: var(--link-hover); }
/* Secondary text: smaller and lighter, like the founder overlay's blurb */
.about-intro .about-why { margin-top: 20px; max-width: 30em; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.5; }
.svc-full.single .svc-full-bar .back { display: none; }
.svc-full .svc-eyebrow { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.svc-full .svc-eyebrow + h2 { margin-top: 16px; }
.svc-full .svc-full-text > .lede { margin-top: 24px; max-width: 30em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.5; color: #dfe5ee; }
.svc-full .svc-full-text > .lede.soft { margin-top: 20px; color: var(--muted); }
.svc-full .svc-full-text > .pkg-link { margin-top: 40px; }
.svc-full .founder-photo { justify-self: center; max-width: 400px; }
/* Phones and tablets: the photo leads, so keep it to about half the screen tall and more of the words show */
@media (max-width: 1024px) { .svc-full .founder-photo { max-width: min(400px, 37svh); } }
@media (max-width: 720px) { .svc-full .founder-photo { max-width: min(280px, 30svh); } }

/* ---------- Reviews: big gradient quotes, all the same width, running sideways
   on desktop like Work (the next one peeks in); stacked on phones ---------- */
.page .review-track { --rgap: clamp(72px, 10vw, 176px); --rw: min(680px, 62%); gap: var(--rgap); }
.page .review-track .review { flex: 0 0 var(--rw); scroll-snap-align: start; margin: 0; max-width: none; }
/* Room after the last review so it can come to rest in the same place as the others */
.page .review-track::after { content: ""; flex: 0 0 calc(100% - var(--rw) - var(--rgap)); }
.review-track .review blockquote p { font-size: clamp(1.5rem, 2.3vw, 2.125rem); }
@media (max-width: 860px) {
  .page .review-track { display: grid; gap: 80px; margin-inline: 0; padding: 0; margin-bottom: 0; overflow: visible; }
  .page .review-track::after { content: none; }
  .page .review-track .review { flex: none; }
}

/* ---------- Work: projects run sideways. Image left, words right; the next
   project peeks in from the right edge ---------- */
.work-track {
  --edge: max(var(--gutter), (100vw - 1200px) / 2);
  display: flex; gap: clamp(24px, 3vw, 40px);
  margin: clamp(40px, 6vw, 72px) calc(50% - 50vw) 0;
  padding: 12px var(--edge) 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; outline: none;
}
.work-track::-webkit-scrollbar { display: none; }
/* While the wheel is gliding the row (track.js), snapping waits until it settles */
.work-track.gliding { scroll-snap-type: none; scroll-behavior: auto; }
.work-slide {
  flex: 0 0 min(1040px, 86%); scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
}
.work-slide .thumb { margin-bottom: 0; }
.work-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.work-text .pkg-link { margin-top: 28px; padding-top: 0; }
.work-text h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
/* Room under the row so the hover glow below each image isn't cut off */
.work-track { padding-bottom: 80px; margin-bottom: -56px; }
@media (max-width: 860px) {
  .work-slide { flex-basis: 85%; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
}

/* About: the founder overlay puts the words first and the photo on the right
   (on smaller screens the photo still leads, above the words) */
@media (min-width: 1025px) {
  .svc-full-in > .founder-photo { order: 2; }
}
/* Founder overlay: the quote under the blurb, then a small sign-off */
.svc-full .founder-quote { margin-top: 48px; max-width: none; }
/* Desktop: the quote runs on past its column, into the space before the photo */
@media (min-width: 1025px) {
  .svc-full .founder-quote { position: relative; z-index: 1; width: calc(100% + var(--gap) + 56px); }
}
.svc-full .founder-quote blockquote p { font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.12; }
.svc-full .sign-off { margin-top: 24px; color: var(--muted); font-size: 0.9375rem; font-weight: 300; }

/* Inner page titles: the same size as the name in the founder overlay ("Jarrod Moore") */
main.page .title, main.case .title { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.015em; }

/* ---------- Links, one rule for the whole site ----------
   White links turn blue on hover; blue links turn white. Every standalone
   link is the same size; links inside a sentence keep the sentence's size. */
.pkg-link, .about-link, .social, .svc-full-bar .back { font-size: 1.0625rem; font-weight: 500; transition: color 0.2s ease; }
/* White */
.pkg-link, .social, .page .lede a, .expect .alt a { color: var(--text); }
.pkg-link:hover, .pkg-link:focus-visible, .social:hover, .social:focus-visible,
.page .lede a:hover, .page .lede a:focus-visible, .expect .alt a:hover, .expect .alt a:focus-visible,
.card.need:hover .pkg-link, .card.need:focus-visible .pkg-link { color: var(--link-hover); }
/* Blue */
.about-link, .about-intro .read-more, .about-card .pkg-link, .pkg-links .pkg-link[data-package], .svc-full-bar .back { color: var(--link-hover); }
.about-link:hover, .about-link:focus-visible, .about-intro .read-more:hover, .about-intro .read-more:focus-visible,
.about-card .pkg-link:hover, .about-card .pkg-link:focus-visible, .pkg-links .pkg-link[data-package]:hover,
.pkg-links .pkg-link[data-package]:focus-visible, .svc-full-bar .back:hover, .svc-full-bar .back:focus-visible { color: var(--text); }

/* Services: section titles ("Ways to work together", "What we can help with"...)
   match the About cards' "Who we work with", well under the page title */
main.page:not(.case) .section-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
/* Services: sections sit closer, so more shows above the fold. Each small title
   sits just over its cards */
main.page:not(.case) .section { margin-top: clamp(48px, 5vw, 72px); }
/* Services: How it works and FAQs sit a little further from what comes before them */
main.page:not(.case) .section:has(.steps), main.page:not(.case) #faqs { margin-top: clamp(80px, 9vw, 128px); }
main.page:not(.case) .section-title + .cards, main.page:not(.case) .section-title + .pkgs { margin-top: 20px; }
/* Phones: Once off, Ongoing and On Demand swipe sideways, the next one peeking in */
@media (max-width: 720px) {
  .cards.needs {
    display: flex; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards.needs::-webkit-scrollbar { display: none; }
  .cards.needs > .card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ==========================================================================
   Type scale: one size per job, used on every page.
     title     page titles (and a service or founder name in the overlay)
     feature   big card and project names, Contact's "Here to help"
     quote-lg  a page's one big quote (founder overlay, case study)
     quote     quotes in a row or beside other content
     lede      the line under a page title
     heading   section and card headings
     secondary supporting paragraphs (project and service blurbs)
     body      card text, lists, long reads
     meta      names, roles, captions, form labels
     eyebrow   small uppercase labels and tags
   ========================================================================== */
:root {
  --t-title: clamp(2rem, 4vw, 3.25rem);
  --t-feature: clamp(1.75rem, 2.6vw, 2.25rem);
  --t-quote-lg: clamp(1.875rem, 3.4vw, 3rem);
  --t-quote: clamp(1.5rem, 2.6vw, 2.25rem);
  --t-lede: clamp(1.25rem, 2vw, 1.625rem);
  --t-heading: 1.5rem;
  --t-secondary: clamp(1.0625rem, 1.6vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-meta: 0.9375rem;
  --t-eyebrow: 0.8125rem;
}
/* Feature */
.work-slide .work-text h2, .pkg h3, .contact h2 { font-size: var(--t-feature); line-height: 1.1; letter-spacing: -0.01em; }
/* Quotes */
.quote blockquote p, .svc-full .founder-quote blockquote p { font-size: var(--t-quote-lg); }
.review-track .review blockquote p, .expect .quote blockquote p, .work-row .quote blockquote p,
.who-row .quote blockquote p, .about-quote blockquote p { font-size: var(--t-quote); line-height: 1.2; }
/* Headings */
.card h2, .cols h2, .expect h2, .steps h3, .about-card h2 { font-size: var(--t-heading); line-height: 1.2; }
.faq summary { font-size: var(--t-secondary); }
/* Secondary */
.work-text p:not(.company), .section-lede, .about-intro .about-why,
.svc-full .svc-desc, .svc-full .svc-full-text > .lede { font-size: var(--t-secondary); font-weight: 300; line-height: 1.5; }
.work-text p:not(.company) { color: var(--muted); }
/* Body */
.prose, .card p, .pkg p, .faq p, .cols p, .cols li, .steps p, .expect li, .gets li,
.about-card .about-body > p, .about-card li, .contact .intro-line { font-size: var(--t-body); }
.work-text .company { font-size: var(--t-body); color: var(--muted); }
/* Meta */
.quote figcaption, .review figcaption, .field label, .note { font-size: var(--t-meta); }
/* Eyebrows and tags */
.card .tag, .pkg .num, .pkg .gets-label, .svc-full .gets-label, .svc-full .num, .svc-full .svc-eyebrow,
.steps .num, .expect li::before, .founder .overline {
  font-size: var(--t-eyebrow); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Work: each project fills the content width; only a sliver of the next peeks in */
.work-track:not(.review-track) { --wgap: clamp(40px, 5vw, 80px); --sw: calc(100% - 16px); gap: var(--wgap); }
.work-track:not(.review-track) > .work-slide { flex-basis: var(--sw); }
@media (max-width: 860px) { .work-track:not(.review-track) { --sw: 85%; } }
/* Room after the last project so it comes to rest on the same margin as the others */
.work-track:not(.review-track)::after { content: ""; flex: 0 0 max(0px, calc(100% - var(--sw) - var(--wgap))); }

/* About on phones and tablets: the cards stack under the intro, all open */
.page .about-cards { margin-top: clamp(40px, 5vw, 64px); }
.about-card .about-body > ul { margin-top: 16px; }

/* Services: "More info" has no arrow; the label ("Good for when") sits a little
   further under the paragraph, on the cards and in the full-screen view */
.pkg .gets-label { margin-top: 24px; }
.svc-full .svc-lists { margin-top: 40px; }

/* ---------- Contact: laid out like the home page ----------
   Left: title, intro, what happens next (numbered) and the FAQs link in blue.
   Right: the form as a wide two-column card (details left; the message and
   Send right). On desktop it peeks in from the right edge and the page scrolls
   sideways to show all of it; on smaller screens everything stacks. */
.contact-intro .expect ol { margin-top: clamp(32px, 4vw, 48px); }
.contact-intro .faq-link { margin-top: 36px; color: var(--link-hover); }
.contact-intro .faq-link:hover, .contact-intro .faq-link:focus-visible { color: var(--text); }
.contact-side .contact-slot { margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 861px) {
  .contact-slot .contact.inline form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto) auto; column-gap: 32px; }
  .contact-slot .contact.inline .field { grid-column: 1; }
  .contact-slot .contact.inline .field:has(textarea) { grid-column: 2; grid-row: 1 / 6; grid-template-rows: auto 1fr; }
  .contact-slot .contact.inline .field textarea { height: 100%; resize: none; }
  .contact-slot .contact.inline .send-row { grid-column: 2; grid-row: 6; }
}
@media (min-width: 1025px) and (min-height: 680px) {
  html:has(.contact-side), html:has(.contact-side) body { height: 100%; overflow: hidden; }
  html:has(.contact-side) body { min-height: 0; }
  main.contact-side {
    --edge: max(var(--gutter), (100vw - 1200px) / 2);
    display: flex; align-items: center; gap: clamp(72px, 8vw, 128px);
    min-height: 0; width: auto; max-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 16px var(--edge) 8px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  main.contact-side::-webkit-scrollbar { display: none; }
  main.contact-side.gliding { scroll-snap-type: none; scroll-behavior: auto; }
  main.page.contact-side > * { flex: none; margin-top: 0; }
  /* The title starts where every other page's title does */
  /* The intro takes most of the screen, so What to expect has room for its three
     columns; the form peeks in at the right edge, inviting a scroll across */
  .contact-intro {
    width: min(1040px, calc(100vw - var(--edge) - clamp(72px, 8vw, 128px) - clamp(160px, 17vw, 300px)));
    align-self: flex-start; padding-top: calc(clamp(48px, 9vh, 96px) - 16px); scroll-snap-align: start;
  }
  .contact-intro .lede { max-width: 620px; }
  .contact-side .contact-slot { width: min(960px, calc(100vw - var(--gutter) * 2)); scroll-snap-align: end; }
}

/* Secondary button: an outlined pill beside or under the main one
   (Contact: LinkedIn, under the FAQs link) */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text); font-size: var(--t-body); font-weight: 500; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: rgba(127, 177, 236, 0.6); color: var(--link-hover); background: rgba(127, 177, 236, 0.06); }
.btn-secondary svg { width: 18px; height: 18px; flex: none; }
.contact-intro .btn-secondary { margin-top: 28px; }
.contact-intro .faq-link { display: flex; width: fit-content; }

/* Contact page: the form keeps its card, without an outline */
.contact-slot .contact.inline { border: 0; }

/* About: What we do, Who we work with and How we work as three numbered
   columns, styled like How it works on the Services page */
.page .about-steps { margin-top: clamp(56px, 7vw, 96px); }
.about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-steps h2 { margin-top: 0; font-family: Urbanist, Figtree, sans-serif; font-size: var(--t-heading); font-weight: 600; line-height: 1.2; }
.about-steps ul { display: grid; gap: 10px; margin-top: 12px; list-style: none; }
.about-steps li li { position: relative; padding-left: 1.25em; color: var(--muted); font-size: var(--t-body); font-weight: 300; line-height: 1.5; }
.about-steps li li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.about-steps p { margin-top: 12px; }
.about-steps .pkg-link { margin-top: 20px; color: var(--link-hover); }
.about-steps .pkg-link:hover, .about-steps .pkg-link:focus-visible { color: var(--text); }
@media (max-width: 860px) { .about-steps { grid-template-columns: minmax(0, 1fr); } }
/* LinkedIn: a small up-right arrow after the word says it opens in a new tab */
.btn-secondary .ext { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn-secondary:hover .ext, .btn-secondary:focus-visible .ext { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* About, two columns: See all services sits level with the last line of Who we work with */
@media (min-width: 861px) {
  .about-steps > li { display: flex; flex-direction: column; align-items: flex-start; }
  .about-steps > li > .pkg-link { margin-top: auto; padding-top: 20px; }
}

/* Services: each card's words match a project's on Work. The description is
   secondary size, and the links sit the same distance below it. Good for when
   now lives only in the details */
.pkg-body > p:not(.gets-label) { max-width: 32em; font-size: var(--t-secondary); font-weight: 300; line-height: 1.5; color: var(--muted); }
.pkg-body > .pkg-links { margin-top: 26px; }

/* Services: each card's words sit level with the middle of its illustration */
@media (min-width: 861px) { .pkg { align-items: center; } }
/* How it works: each step in a card with the same thin outline as Ways to work together */
.page .steps:not(.about-steps) { gap: 16px; }
.page .steps:not(.about-steps) > li { padding: 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; }
main.page:not(.case) .section-title + .steps { margin-top: 20px; }
/* Two-column forms: Send's row runs the full width, so the thank-you (or error)
   message sits at the form's left edge, level with the button */
@media (min-width: 861px) {
  .contact-wide .contact .send-row, .contact-slot .contact.inline .send-row { grid-column: 1 / -1; flex-wrap: nowrap; }
  .contact-wide .contact .send-row .note, .contact-slot .contact.inline .send-row .note { order: 0; flex: 1 1 auto; }
}
/* Phones (and the one-column pop-up) keep the message under the button */
@media (max-width: 860px) {
  .send-row .cta { width: 100%; justify-content: center; margin-left: 0; }
}

/* Services page: the illustration and title open the details too */
.pkg[data-svc] > .thumb, .pkg[data-svc] h3 { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Founder overlay: the link to the personal site is in the link blue */
.pkg-link.founder-more { color: var(--link); transition: color 0.2s ease; }
.pkg-link.founder-more:hover, .pkg-link.founder-more:focus-visible { color: var(--link-hover); }

/* ---------- Mix, phones: a floating tab bar (Home, Services, Work, About) in the
   same pill as before, over the blue glow; a menu at the top right for Reviews,
   FAQs and Contact ---------- */
/* The angle the light round the current tab has turned to (animated below) */
@property --tab-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tab-turn { to { --tab-turn: 360deg; } }
.tabbar, .site-menu { display: none; }
@media (max-width: 720px) {
  .nav { display: none; }
  /* The header: clear over the glow at the top, then a solid bar with a fine
     underline once the page scrolls (no blur, which iOS draws over the logo) */
  .top::before { background: transparent; transition: background-color 0.2s ease, border-color 0.2s ease; }
  .scrolled .top::before { background: var(--bg); border-bottom-color: rgba(255, 255, 255, 0.1); }
  /* The body already leaves room for the tab bar, so pages end with only a small gap above it */
  main.page { padding-bottom: 16px; }

  /* No rubber-band bounce past the top or bottom of a page, which pulls the
     page and the tab bar out of place */
  html { overscroll-behavior-y: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; justify-content: center;
    padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .tabbar::before {
    content: ""; position: absolute; inset: auto 0 0; height: calc(150px + env(safe-area-inset-bottom)); z-index: -1;
    /* A faint blue and mint glow that drifts slowly left to right, like a slow wave, fading up into the page */
    background:
      linear-gradient(to top, rgba(10, 11, 13, 0.2), rgba(10, 11, 13, 0.6) 45%, var(--bg)),
      linear-gradient(90deg, rgba(48, 96, 176, 0.24), rgba(70, 190, 160, 0.16) 25%, rgba(48, 96, 176, 0.24) 50%, rgba(70, 190, 160, 0.16) 75%, rgba(48, 96, 176, 0.24)) 0 0 / 200% 100%;
    animation: tab-glow 40s linear infinite;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent); mask-image: linear-gradient(to top, #000 40%, transparent);
  }
  @keyframes tab-glow { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, -100% 0; } }
  /* Over it, two soft patches of light, one blue and one mint, that wander
     and slowly brighten and fade, so the colour feels alive in places */
  .tabbar::after {
    content: ""; position: absolute; inset: auto 0 0; height: calc(150px + env(safe-area-inset-bottom)); z-index: -1;
    background:
      radial-gradient(30% 70% at 25% 100%, rgba(80, 140, 235, 0.3), transparent 70%),
      radial-gradient(28% 65% at 75% 100%, rgba(80, 205, 170, 0.24), transparent 70%);
    background-size: 200% 100%;
    animation: tab-light-move 27s ease-in-out infinite alternate, tab-light-pulse 11s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent);
    pointer-events: none;
  }
  @keyframes tab-light-move { from { background-position: 0% 0; } to { background-position: 100% 0; } }
  @keyframes tab-light-pulse { 0% { opacity: 0.2; } 45% { opacity: 0.9; } 100% { opacity: 0.35; } }
  @media (prefers-reduced-motion: reduce) { .tabbar::before, .tabbar::after, .tab-pill::before { animation: none; } }
  .tabbar ul {
    display: flex; width: 100%; height: 56px; gap: 2px; padding: 3px; list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 999px;
    /* Dark glass: see-through enough, with a strong blur, for the glow and
       the page behind to come through as soft colour */
    background: rgba(12, 14, 19, 0.42);
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto; position: relative;
  }
  .tabbar li { flex: 1; display: flex; position: relative; z-index: 1; }
  .tabbar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; color: #c4cdd9; font-size: 0.9375rem; text-decoration: none;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
    /* Springs back out when let go */
    transition: color 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
  }
  /* Presses in under the finger */
  .tabbar a.pressed { transform: scale(0.94); transition-duration: 0.25s, 0.1s; transition-timing-function: ease, ease-out; }
  .tabbar a[aria-current="page"], .tabbar a.going { color: var(--text); }
  .tabbar a.leaving { color: #c4cdd9; }
  /* The current page's pill, behind the labels: a soft blue that goes with the
     link colour. It slides to a tapped tab (site.js) */
  .tab-pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: rgba(127, 177, 236, 0.2); pointer-events: none; }
  /* Round its edge, a faint line with a soft blue and mint light that slowly
     travels round it */
  .tab-pill::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--tab-turn), rgba(127, 177, 236, 0.14) 0 62%, rgba(143, 227, 198, 0.55) 74%, rgba(127, 177, 236, 0.6) 84%, rgba(127, 177, 236, 0.14) 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: tab-turn 7s linear infinite; animation-delay: var(--tab-phase, 0s); /* site.js */
  }
  /* The blue light that blooms under the glass where a tab is tapped */
  .tab-bloom {
    position: absolute; left: 0; top: 0; width: 136px; height: 88px; z-index: -1; opacity: 0; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(127, 177, 236, 0.55), rgba(79, 143, 255, 0.22) 55%, transparent);
  }
  .svc-open-page .tabbar, .contact-open .tabbar { display: none; }

  /* The menu button sits beside the copyright */
  .top-copy { margin-left: auto; }
  .menu-btn { margin: 0 -8px 0 8px; }
  .site-menu:not([hidden]) { position: fixed; inset: 0; background: rgba(0, 0, 0, 0); transition: background-color 0.25s ease; }
  .site-menu.open { background: rgba(0, 0, 0, 0.55); }
  .site-menu nav { top: calc(env(safe-area-inset-top) + 64px); right: var(--gutter); }
}

/* ---------- Mix, every size: the two-line menu button for Reviews, FAQs and
   Contact. On a phone it's tapped open over a dark veil; on desktop it sits
   after Home, Services, Work and About and opens on hover ---------- */
.menu-btn {
  position: relative; z-index: 12; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none;
  color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn path { transform-box: fill-box; transform-origin: center; transition: transform 0.25s ease; }
.menu-open .menu-btn .m1 { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn .m2 { transform: translateY(-4px) rotate(-45deg); }
.menu-open .top { z-index: 12; }
.site-menu:not([hidden]) { display: block; z-index: 11; }
.site-menu nav {
  position: fixed; width: min(240px, calc(100% - 2 * var(--gutter)));
  padding: 6px; border-radius: 20px;
  /* The same dark glass as the tab bar */
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 14, 19, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-8px) scale(0.98); transform-origin: top right; opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}
.site-menu.open nav { transform: none; opacity: 1; }
.site-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px; border-radius: 14px;
  color: var(--text); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  position: relative; -webkit-tap-highlight-color: transparent;
  /* Springs back out when let go, like a tab */
  transition: background-color 0.15s ease, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.site-menu a + a { margin-top: 2px; }
/* The current page, and an item under the pointer or finger, look like the
   tab bar's selected tab: a soft blue with a faint line round it and a blue
   and mint light that slowly travels round */
/* The current page's pill slides to a tapped item (site.js); on desktop an
   item under the pointer gets the same look */
.site-menu a { z-index: 1; }
.site-menu a:active, .site-menu a.pressed { transform: scale(0.97); transition-duration: 0.15s, 0.1s; }
.menu-pill { position: absolute; left: 6px; right: 6px; top: 0; height: 0; border-radius: 14px; background: rgba(127, 177, 236, 0.2); pointer-events: none; }
/* The blue light that blooms under the glass where an item is tapped */
.menu-bloom {
  position: fixed; left: 0; top: 0; width: 136px; height: 88px; opacity: 0; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(127, 177, 236, 0.55), rgba(79, 143, 255, 0.22) 55%, transparent);
}
.site-menu nav { z-index: 1; }
@media (hover: hover) { .site-menu a:hover:not(.going) { background: rgba(127, 177, 236, 0.2); } }
.menu-pill::before, .site-menu a:hover:not(.going)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--tab-turn), rgba(127, 177, 236, 0.14) 0 62%, rgba(143, 227, 198, 0.55) 74%, rgba(127, 177, 236, 0.6) 84%, rgba(127, 177, 236, 0.14) 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: tab-turn 7s linear infinite; animation-delay: var(--tab-phase, 0s);
}
.site-menu a svg { width: 18px; height: 18px; color: var(--muted); }
@media (min-width: 721px) {
  .menu-btn { margin: 0 -8px 0 clamp(16px, 2vw, 28px); }
  .site-menu:not([hidden]) { position: fixed; inset: 0 0 auto; height: 0; z-index: 13; }
  /* A strip above the menu bridges the gap from the button, so hover holds */
  .site-menu nav::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu nav, .site-menu:not([hidden]), .menu-btn path { transition: none; }
  .site-menu a::before, .menu-pill::before { animation: none !important; }
}

/* Contact: How it works sits in the intro column, one step under another */
.expect > h2:has(+ .contact-steps) { margin-top: clamp(32px, 4vw, 48px); }
.expect h2 + .contact-steps { margin-top: 20px; }
.expect .contact-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 861px) { .expect .contact-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.expect .contact-steps li { padding-left: 0; }
.expect .contact-steps li::before { content: none; }
.expect .contact-steps h3 { font-size: 1.25rem; }
.expect .contact-steps p { font-size: 1rem; }
/* FAQs page */
.faqs-page { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Mix: Services (services/app.js), the same view on every size.
   One service at a time: its illustration, then the dots and arrows, the name,
   the summary and the two links. Phones split the screen in half, top and
   bottom; desktop puts them side by side under the title ---------- */
body:has(.svc-app) main.page > .section { display: none; }
.svc-app-stage { position: relative; min-height: 0; }
/* Changing service: the old picture fades out and eases back a little, then the
   new one fades in and rises into place, overlapping the end of the fade out
   (the same as Home's film) */
.svc-app-stage .viz { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.7s ease 0.25s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.svc-app-stage .viz.on { opacity: 1; transform: none; }
.svc-app-stage .viz.off { opacity: 0; transform: scale(0.98); transition: opacity 0.4s ease, transform 0.5s ease; }
@media (prefers-reduced-motion: reduce) { .svc-app-stage .viz, .svc-app-stage .viz.off { transition: none; transform: none; } }
.svc-app-sheet { min-height: 0; display: flex; flex-direction: column; }
.svc-app-nav { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-app-arrows { display: flex; gap: 8px; }
/* Arrows in round buttons with a fine outline */
.svc-app-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16); background: none; color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.svc-app-arrow svg { width: 18px; height: 18px; }
.svc-app-arrow:active { background: rgba(255, 255, 255, 0.08); }
@media (hover: hover) { .svc-app-arrow:hover { background: rgba(255, 255, 255, 0.08); } }
.svc-app-dots { display: flex; align-items: center; gap: 2px; margin-left: -5px; }
.svc-app-dots button {
  width: 16px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: grid; place-items: center;
}
.svc-app-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: width 0.2s ease, background-color 0.2s ease; }
.svc-app-dots button[aria-selected="true"]::before { width: 16px; background: var(--link); }
.svc-app-text { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 24px; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc-app-text.swap { opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; }
/* The same sizes as the service's own page (svc-full): the title at its
   smallest, 2rem, and the words at 1.0625rem */
.svc-app-text h2 { flex: none; font-family: Urbanist, Figtree, sans-serif; font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.svc-app-text p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; font-weight: 300; line-height: 1.5; }
.svc-app-links { flex: none; display: flex; gap: 28px; padding-top: 6px; }
.svc-app-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 1rem; font-weight: 500; text-decoration: none; }
.svc-app-more { color: var(--text); }
.svc-app-want { color: var(--link); }
.svc-app-want svg { width: 18px; height: 18px; }
@media (min-width: 721px) {
  /* The top of both columns stays put; only the words below the dots and
     arrows change length when the service changes */
  .svc-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
  /* The illustration in its card, filling the left column from the margin */
  .svc-app-stage {
    aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px;
    background: none; border: 1px solid rgba(255, 255, 255, 0.12); /* an outline only, like Home's cards */
  }
  .svc-app-stage .viz .stack { width: 48cqw; top: 50%; }
  .svc-app-nav { margin-top: -2px; }
  .svc-app-text { margin-top: 40px; }
  .svc-app-text h2 { font-size: clamp(2rem, 2.6vw, 2.5rem); }
  .svc-app-text p { margin-top: 14px; font-size: 1.125rem; line-height: 1.6; }
  .svc-app-links { padding-top: 24px; gap: 32px; }
  .svc-app-links a { font-size: 1.0625rem; }
}
@media (max-width: 720px) {
  /* Services fits one screen on a phone, so the page itself never scrolls:
     it can't be dragged (taking the tab bar with it) or collapse Safari's bar
     and resize mid-swipe. The words scroll inside their own box */
  html:has(.svc-app), html:has(.svc-app) body { height: 100%; overflow: hidden; }
  html:has(.svc-app) body { min-height: 0; }
  body:has(.svc-app) main.page { display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
  body:has(.svc-app) main.page > :not(.svc-app) { display: none; }
  .svc-app {
    display: flex; flex-direction: column; margin: 0 calc(var(--gutter) * -1);
    height: calc(100dvh - 64px - env(safe-area-inset-top) - 96px - env(safe-area-inset-bottom));
  }
  .svc-app-stage { flex: 0 0 30%; } /* leaves room for the words at full size */
  /* No card round it on a phone, so the glow spreads freely instead of
     stopping in a hard line at the edge of the illustration's box */
  .svc-app-stage .viz { overflow: visible; }
  .svc-app-stage .viz .stack { width: 34cqw; top: 50%; }
  .svc-app-sheet {
    flex: 1 1 0; padding: 24px var(--gutter) 8px; /* the dots sit close under the illustration */
    background: linear-gradient(to bottom, rgba(10, 11, 13, 0), rgba(10, 11, 13, 0.85) 30%, var(--bg));
  }
  /* The links follow straight after the words, wherever they end */
  .svc-app-text p {
    flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
    padding-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-app-stage .viz, .svc-app-text { transition: none; }
}

/* ---------- Mix, phones: Work summaries stop at two lines, so View project shows;
   About's Ways to work together stack instead of scrolling sideways ---------- */
@media (max-width: 720px) {
  .work-slide .thumb + .work-text { margin-top: 8px; } /* a little more room between the image and the year */
  .work-slide .work-text p:not(.company) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .about-steps-page .cards.needs { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .about-steps-page .cards.needs > .card { flex: none; }
}

/* ---------- About: Ways to work together, full screen from How I work ---------- */
.ways-modal {
  position: fixed; inset: 0; z-index: 15; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); opacity: 0; transition: opacity 0.4s ease;
}
.ways-modal.open { opacity: 1; }
.ways-modal .close { position: fixed; top: max(20px, env(safe-area-inset-top)); right: max(20px, var(--gutter)); z-index: 2; }
.ways-in { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding-block: 96px 64px; }
.ways-title { font-family: Urbanist, Figtree, sans-serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.ways-modal .cards.needs { margin-top: 32px; }
.ways-modal .ways-go { align-self: flex-start; margin-top: 40px; color: var(--link-hover); }
.ways-modal .ways-go:hover, .ways-modal .ways-go:focus-visible { color: var(--text); }
/* The title, the blocks and the link fade in up, one after the other */
.ways-in > *, .ways-modal .cards.needs > .card { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ways-modal.open .ways-in > *, .ways-modal.open .cards.needs > .card { opacity: 1; transform: none; }
.ways-modal.open .ways-in > .ways-title { transition-delay: 0.1s; }
.ways-modal.open .ways-in > .cards { transition-delay: 0.15s; }
.ways-modal.open .cards.needs > .card:nth-child(1) { transition-delay: 0.2s; }
.ways-modal.open .cards.needs > .card:nth-child(2) { transition-delay: 0.28s; }
.ways-modal.open .cards.needs > .card:nth-child(3) { transition-delay: 0.36s; }
.ways-modal.open .ways-in > .ways-go { transition-delay: 0.45s; }
@media (max-width: 720px) {
  .ways-in { justify-content: flex-start; padding: 88px var(--gutter) calc(env(safe-area-inset-bottom) + 40px); }
  .ways-modal .cards.needs { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 24px 0 0; padding: 0; gap: 12px; }
  .ways-modal .cards.needs > .card { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ways-modal, .ways-in > *, .ways-modal .cards.needs > .card { transition: none; }
}

/* ---------- Contact, phones and small tablets: What to expect swipes sideways,
   the next card peeking in, so the form shows just below ---------- */
@media (max-width: 860px) {
  .expect .contact-steps {
    display: flex; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .expect .contact-steps::-webkit-scrollbar { display: none; }
  .expect .contact-steps > li { flex: 0 0 84%; scroll-snap-align: start; padding: 20px; }
  .expect .contact-steps p { font-size: 0.9375rem; }
}
/* Phones: a tighter column, so the top of the form shows above the tab bar */
@media (max-width: 720px) {
  .contact-intro .faq-link { margin-top: 20px; }
  .contact-intro .btn-secondary { margin-top: 16px; }
  .contact-side .contact-slot { margin-top: 24px; }
}

/* ---------- Contact: "Have a question first? Read the FAQs" on the left and
   LinkedIn on the right, lined up with the edges of What to expect and centred
   on one line; stacked on phones ---------- */
.contact-intro .contact-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 36px; }
.contact-intro .faq-line { color: var(--text); font-size: 1.0625rem; font-weight: 500; }
.contact-intro .contact-more .faq-link { display: inline-flex; margin-top: 0; }
/* LinkedIn: white, turning blue on hover */
.contact-intro .contact-more .li-link { margin-top: 0; color: var(--text); }
.contact-intro .contact-more .li-link:hover, .contact-intro .contact-more .li-link:focus-visible { color: var(--link-hover); }
@media (max-width: 720px) {
  .contact-intro .contact-more { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 48px; }
  .contact-side .contact-slot { margin-top: 72px; }
}

/* A service's or project's name, in the middle of its bar once the page title
   has scrolled up behind it (classes set by svc-detail.js and case.js) */
.svc-full-bar .wrap, .subnav .wrap { position: relative; }
.bar-title {
  position: absolute; left: 50%; top: 50%;
  max-width: calc(100% - 320px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-size: 1.0625rem; font-weight: 500;
  opacity: 0; transform: translate(-50%, calc(-50% + 6px));
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.titled .bar-title { opacity: 1; transform: translate(-50%, -50%); }
.svc-full-bar .lbl, .subnav .lbl { display: inline-block; overflow: hidden; vertical-align: bottom; }
/* Phones: once the name is in the bar, Previous and Next shrink to their arrows
   to give it room */
@media (max-width: 720px) {
  .bar-title { max-width: calc(100% - 168px); }
  .svc-full-bar .lbl, .subnav .lbl { max-width: 6em; transition: max-width 0.25s ease, opacity 0.2s ease; }
  .titled .svc-full-bar .lbl, .titled.subnav .lbl { max-width: 0; opacity: 0; }
  .titled .svc-full-bar .back, .titled.subnav .back { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .bar-title, .svc-full-bar .lbl, .subnav .lbl { transition: none; } }
.svc-full.single .svc-full-bar::before { border-bottom-color: transparent; }

/* Phones: every section title at 2rem (32px), like a service's title, and
   reading text at 1.0625rem (17px) with a 1.6 line height */
@media (max-width: 720px) {
  :root { --t-heading: 2rem; --t-feature: 2rem; }
  main.page .title, main.case .title { font-size: 2.5rem; } /* page titles 40px */
  .card h2, .cols h2, .expect h2, .steps h3, .about-card h2, .about-steps h2, .prose h2, .ways-title { font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
  .work-slide .work-text h2, .pkg h3, .contact h2 { line-height: 1.1; }
  .prose, .card p, .pkg p, .faq p, .cols p, .cols li, .steps p, .expect li, .gets li,
  .about-card .about-body > p, .about-card li, .contact .intro-line,
  .work-text p:not(.company), .section-lede, .about-intro .about-why,
  .svc-full .svc-desc, .svc-full .svc-full-text > .lede, .svc-app-text p,
  .about-steps li li, .expect .contact-steps li p, main .steps-list li { font-size: 1.0625rem; line-height: 1.6; }
}
/* Phones: a service's title and summary on Services sit the same as in its
   detail, 16px apart with the title's lines as tight */
@media (max-width: 720px) {
  .svc-app-text h2 { line-height: 1.05; }
  .svc-app-text p { margin-top: 16px; }
}
/* Phones: a text link after a block of text or cards always sits 32px below it */
@media (max-width: 720px) {
  .pkg-link.read-more, .about-steps .ways-open, .svc-full .svc-full-text > .pkg-link, .svc-full .pkg-link, .svc-full .cta,
  .ways-modal .ways-go, main .nf-cta { margin-top: 32px; }
  .card.linked .work-text .pkg-link { margin-top: 22px; } /* plus the 10px gap the text already has */
}
/* Phones tall enough to have room below the links: Services sits a little
   lower, with more room above the illustration and between the dots and the
   words. Short phones keep every bit of height for the words */
@media (max-width: 720px) and (min-height: 680px) {
  .svc-app-stage { flex-basis: calc(30% + 24px); }
  .svc-app-stage .viz { top: 24px; }
  .svc-app-text { margin-top: 40px; }
}
/* Project cards: the year and client sit above the title */
.card.linked .work-text .company { margin-top: 0; }
/* Ways to work together: the same bar along the top as Meet Jarrod, so it
   starts at the same height and the words scroll up into the same fade */
.ways-modal .ways-in { min-height: calc(100% - 80px); padding-top: 16px; }
@media (max-width: 1024px) {
  .ways-modal .svc-full-bar::before { bottom: -40px; border-bottom: 0; background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 35%, transparent 100%); }
}
@media (max-width: 720px) {
  .ways-modal .ways-in { padding-top: 32px; }
}
/* Project cards: the year in white and the client in grey beside it, like a
   reviewer's name and role on Reviews */
.card.linked .work-text .company { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-meta); }
.card.linked .work-text .company .yr { color: var(--text); }
.card.linked .work-text .company .client { color: var(--muted); font-weight: 300; }
