/* ============================================================================
   Components — nav, buttons, badges, cards, tabs, form, footer
   ========================================================================= */

/* --- Site header / nav ---------------------------------------------------- */
/* The header is a transparent, full-width fixed wrapper; the visible chrome is a
   floating pill (.site-nav) centered at the site's content width. pointer-events
   are disabled on the wrapper so its transparent area never blocks the hero. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding-top: var(--space-4);
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
/* Auto-hide: slide the pill up off-screen when scrolling down past About. */
.site-header.is-hidden {
  transform: translateY(-130%);
  opacity: 0;
}
.site-header > .container { pointer-events: none; }
.site-header .site-nav,
.site-header .site-nav__mobile { pointer-events: auto; }

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-surface) 88%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-border-strong) 85%, transparent);
  box-shadow: var(--shadow-nav);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  animation: nav-drop var(--dur-slow) var(--ease-out) both;
  transition: box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
/* Scrolled: the pill gains opacity and lifts (stronger elevation). */
.site-header.is-scrolled .site-nav {
  background: color-mix(in oklab, var(--color-surface) 95%, transparent);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-nav-strong);
}
.site-nav__logo {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(1rem, 0.78rem + 1.2vw, 1.5rem);
  letter-spacing: var(--tracking-tight);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink);
  min-width: 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav__logo:hover { color: var(--color-accent); }
.site-nav__logo span { white-space: nowrap; }
.site-nav__avatar {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex: none;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-border-strong) 75%, transparent), var(--shadow-sm);
}
.site-nav__logo small {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-subtle);
  margin-left: 0.4rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transform: translateY(-0.2rem);
}

.site-nav__links {
  display: none;
  gap: var(--space-1);
  margin-left: auto;
}
@media (min-width: 768px) {
  .site-nav__links { display: flex; }
}
.site-nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-muted);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  position: relative;
}
.site-nav__link:hover {
  color: var(--color-ink);
  background: color-mix(in oklab, var(--color-ink) 5%, transparent);
}
.site-nav__link[aria-current="true"] {
  color: var(--color-ink);
}
.site-nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset-inline: var(--space-3);
  bottom: 0.25rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.site-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 768px) {
  .site-nav__actions { margin-left: 0; }
}

/* Icon button (theme toggle, menu, etc.) */
.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-ink-muted);
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.icon-button:hover {
  color: var(--color-ink);
  background: color-mix(in oklab, var(--color-ink) 6%, transparent);
}
.icon-button svg { width: 1.125rem; height: 1.125rem; }

/* Mobile menu toggle — circular to echo the pill, with a hamburger that
   morphs into an X when the drawer is open. */
.menu-toggle {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklab, var(--color-border) 70%, transparent);
}
.menu-toggle:hover {
  border-color: var(--color-border-strong);
}
.menu-toggle__icon {
  position: relative;
  display: block;
  width: 1.125rem;
  height: 0.75rem;
}
.menu-toggle__icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-spring),
              opacity var(--dur-fast) var(--ease-out);
}
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__icon span:nth-child(3) { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile menu drawer — a floating rounded card that drops below the pill. */
.site-nav__mobile {
  display: none;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-nav__mobile.is-open { display: block; }
.site-nav__mobile .site-nav__link {
  display: block;
  padding-block: var(--space-3);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8125rem 1.25rem;
  min-height: 2.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1rem; height: 1rem; }

.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
  border: 1px solid var(--color-ink);
}
.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  background: color-mix(in oklab, var(--color-ink) 4%, transparent);
}

.btn--small { padding: 0.5rem 0.875rem; min-height: 2.25rem; font-size: var(--text-xs); }

/* --- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}
/* --- Hero (bleed-photo asymmetric layout) -------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-bg);
  /* Cap the hero to a centered band so the bleed photo (anchored right:0) stays
     attached to the content on ultra-wide screens instead of stranding at the
     viewport's far edge. The cream gutters blend with the page background. */
  max-width: var(--hero-max);
  margin-inline: auto;
  /* Mobile defaults: photo bleeds across the top, content stacks below. */
  padding-top: clamp(280px, 48vh, 420px);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
@media (min-width: 960px) {
  .hero {
    /* Desktop: photo bleeds top-right; content sits on the left and gets header-clearance padding. */
    padding-top: clamp(7rem, 5rem + 6vw, 11rem);
    padding-bottom: clamp(5rem, 3rem + 5vw, 8rem);
    min-height: clamp(620px, 88vh, 880px);
  }
}

/* The bleed photo panel ---------------------------------------------------- */
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(280px, 48vh, 420px);
  z-index: -1;
  overflow: hidden;
  /* Real portrait sits over a warm gradient base. The gradient is intentionally
     kept beneath the photo: it still fills the panel behind the cut-out subject
     and shows immediately while the <img> (.hero__photo-img) loads. */
  background:
    radial-gradient(80% 110% at 80% 40%,
      color-mix(in oklab, var(--color-accent) 35%, var(--color-bg)) 0%,
      color-mix(in oklab, var(--color-accent) 18%, var(--color-bg)) 45%,
      var(--color-bg) 90%),
    var(--color-bg);
}

/* The portrait itself, rendered as a real <img> (preloadable LCP element)
   that fills the panel exactly like the previous cover background did. */
.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 38%;
}
@media (min-width: 960px) {
  .hero__photo {
    left: auto;
    width: 56%;
    height: 100%;
  }
  .hero__photo-img {
    object-position: 46% 30%;
  }
}

/* Blend the photo into the page: bottom fade on mobile, left fade on desktop. */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 50%,
    color-mix(in oklab, var(--color-bg) 55%, transparent) 82%,
    var(--color-bg) 100%);
}
@media (min-width: 960px) {
  .hero__photo::after {
    background: linear-gradient(90deg,
      var(--color-bg) 0%,
      color-mix(in oklab, var(--color-bg) 45%, transparent) 13%,
      transparent 32%,
      transparent 88%,
      color-mix(in oklab, var(--color-bg) 50%, transparent) 95%,
      var(--color-bg) 100%);
  }
}

/* Hero text content -------------------------------------------------------- */
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__content {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-ink-subtle);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(2.5rem, 1.5rem + 5.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}
.hero__headline .accent {
  color: var(--color-accent);
  font-style: italic;
  white-space: nowrap;
}
.hero__tagline {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 38ch;
  margin: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* --- About ---------------------------------------------------------------- */
.about {
  background: var(--color-surface);
}
/* Roomier container so the portrait can be large without squeezing the text. */
.about > .container { max-width: var(--container-xl); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: clamp(380px, 40vw, 520px) 1fr;
    align-items: center;
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  }
}

/* Portrait card (left) */
.about__media {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--color-accent-soft);
}
/* Accent frame offset behind the photo */
.about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(1rem, 1rem);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
}
/* Floating "years" badge */
.about__badge {
  position: absolute;
  right: -0.75rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about__badge strong {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-bg);
}
/* Reserve a fixed width for the counting digits so the badge doesn't reflow
   horizontally while the number animates from 0 up to its target. The selector
   is scoped under strong so it beats the `.about__badge span` label style. */
.about__badge strong .about__badge-num {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: inherit;
}
.about__badge span {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-bg) 80%, transparent);
  max-width: 15ch;
  line-height: var(--leading-tight);
}

/* Desktop: the portrait is the taller element; center the text against it and
   pull the centered row up so the photo bleeds into the hero (reference layout). */
@media (min-width: 900px) {
  .about__media {
    margin-inline: 0;
    max-width: none;
    z-index: 2;
  }
  .about__grid { margin-top: calc(-1 * clamp(4.5rem, 11.7vw, 13.5rem)); }
}

/* Body (right) */
.about__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.about__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.about__lead strong,
.services-hero__lede strong,
.services-track__list li strong,
.services-track__pricing strong { color: var(--color-ink); font-weight: var(--weight-semibold); }

/* --- Tabs ----------------------------------------------------------------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-subtle);
  cursor: pointer;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.tabs__tab:hover { color: var(--color-ink-muted); }
.tabs__tab[aria-selected="true"] { color: var(--color-ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }

.tabs__panel { animation: tab-fade var(--dur-base) var(--ease-out); }
.tabs__panel[hidden] { display: none; }
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__panel { animation: none; }
}

/* Item rows inside a tab panel */
.about__list { display: flex; flex-direction: column; gap: var(--space-5); }
.about__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: start;
}
.about__item-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
}
.about__item-icon svg,
.contact__socials svg { width: 1.25rem; height: 1.25rem; }
.about__item-title {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  font-size: var(--text-base);
}
.about__item-title span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  margin-left: var(--space-2);
  letter-spacing: var(--tracking-wide);
}
.about__item-desc {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-top: var(--space-1);
}

/* --- Work / Featured projects -------------------------------------------- */
.work__head,
.services__head,
.services-work__head { max-width: 60ch; margin-bottom: var(--space-12); }
.work__title,
.services__title,
.contact__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}
.work__intro { margin-top: var(--space-5); }

.project-grid,
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}
/* Stretched link: whole card clickable from a single tab stop */
.project-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card__title a:focus-visible { outline: none; }

/* Media — neutral stage; the app icon sits on the card surface, no panel. */
.project-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  min-height: 150px;
}

.project-card__logo {
  width: clamp(104px, 40%, 140px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px hsl(30 5% 10% / 0.16));
}
.project-card__monogram {
  display: grid;
  place-items: center;
  width: clamp(104px, 40%, 140px);
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
}

.project-card__badge {
  order: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-bg);
  background: var(--color-ink);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
/* Body — sits directly on the page, no card chrome */
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}
.project-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.project-card:hover .project-card__title a,
.project-card__title a:focus-visible { color: var(--color-accent); }
.project-card__desc {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 44ch;
}
.project-card__visit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
}
.project-card__visit svg,
.services-work__visit svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}
.project-card:hover .project-card__visit svg,
.project-card:focus-within .project-card__visit svg {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover .project-card__visit svg,
  .project-card:focus-within .project-card__visit svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card { transition: none; }
  .project-card:hover { transform: none; }
}

/* --- Services ------------------------------------------------------------ */
.services { background: var(--color-surface); }
.services__intro { margin-top: var(--space-5); }

@media (min-width: 800px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(var(--space-6), 1.5rem + 2vw, var(--space-10));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
}
.service-card__icon svg { width: 1.5rem; height: 1.5rem; }
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}
.service-card__desc {
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-1);
}
.service-card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.service-card__list svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-accent);
  margin-top: 2px;
}
.service-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.service-card__cta svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.service-card__cta:hover { color: var(--color-accent); }
.service-card__cta:hover svg { transform: translateX(4px); }
/* Stretched link: the CTA covers the whole card so it's clickable end-to-end. */
.service-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}
.service-card__cta:focus-visible { outline: none; }
.service-card__cta:focus-visible::after {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card__cta svg { transition: none; }
  .service-card__cta:hover svg { transform: none; }
}

/* --- Contact -------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
}

.contact__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 46ch;
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: flex-start;
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact__email svg { width: 1.25rem; height: 1.25rem; color: var(--color-accent); }
.contact__email:hover { color: var(--color-accent); }

.contact__socials {
  display: flex;
  gap: var(--space-3);
}
.contact__socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.contact__socials a:hover {
  color: var(--color-accent);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .contact__socials a:hover { transform: none; }
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(var(--space-6), 1.5rem + 2vw, var(--space-10));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field,
.ctrl-redeem__field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-ink-subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* Honeypot — hidden from humans, present for bots */
.contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact__form .btn { align-self: flex-start; }

.contact__status {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}
.contact__status:empty { display: none; }
.contact__status[data-state="success"] { color: var(--color-success); }
.contact__status[data-state="error"] { color: var(--color-danger); }

/* --- Footer (minimal Pass 1) --------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
  color: var(--color-ink-subtle);
  font-size: var(--text-sm);
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-footer .site-nav__logo { font-size: 1.25rem; }

/* --- Cookie consent banner (discreet, bottom-left) ----------------------- */
.cookie-banner {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: var(--z-toast);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity var(--dur-fast) var(--ease-out); transform: none; }
}


/* ============================================================================
   Content pages (Notes, Projects) — shared chrome
   ========================================================================= */

/* Narrow container modifier used by single-column content pages. */
.container--narrow { max-width: var(--container-md); }


/* ============================================================================
   Home — "See all projects" link at the bottom of the Work section
   ========================================================================= */

.work__more {
  margin-top: var(--space-12);
  text-align: center;
}
.work__more-link,
.services__more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.work__more-link svg,
.services__more-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.work__more-link:hover,
.services__more-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  transform: translateY(-1px);
}
.work__more-link:hover svg,
.services__more-link:hover svg { transform: translateX(3px); }


/* ============================================================================
   Notes — index list + single-article view
   ========================================================================= */

.notes-page { background: var(--color-bg); }

.notes-hero {
  padding-block: clamp(7rem, 5rem + 8vw, 11rem) clamp(3rem, 2rem + 3vw, 5rem);
}
.notes-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-ink-subtle);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.notes-hero__title,
.projects-hero__title,
.services-hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.notes-hero__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 62ch;
}

.notes-list { padding-block: 0 clamp(4rem, 3rem + 6vw, 8rem); }
.notes-list__empty {
  color: var(--color-ink-muted);
  font-style: italic;
  padding-block: var(--space-12);
}
.notes-list__items { display: flex; flex-direction: column; }
.notes-list__item {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.notes-list__item:last-child { border-bottom: 1px solid var(--color-border); }
.notes-list__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-subtle);
  margin-bottom: var(--space-3);
}
.notes-list__category { color: var(--color-ink-muted); }
.notes-list__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-3);
}
.notes-list__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.notes-list__title a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}
.notes-list__desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: 62ch;
}

/* Single-article view: .note__header / __body / __footer */
.note { background: var(--color-bg); }
.note__header {
  padding-block: clamp(6rem, 4rem + 6vw, 9rem) clamp(2rem, 1rem + 2vw, 3rem);
}
.note__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}
.ctrl-redeem__field > span,
.ctrl-redeem__key figcaption,
.services-work__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-subtle);
}
.note__body {
  padding-block: var(--space-6) clamp(4rem, 2rem + 5vw, 6rem);
  color: var(--color-ink);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.note__body > * + * { margin-top: var(--space-5); }
.note__body h2 {
  margin-top: var(--space-12);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}
.note__body h3 {
  margin-top: var(--space-10);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}
.note__body p { color: var(--color-ink); }
.note__body p,
.note__body li,
.note__body blockquote { max-width: 31em; }
.note__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.note__body a:hover { color: var(--color-accent-hover); }
.note__body ul,
.note__body ol { padding-left: 1.5rem; }
.note__body ul { list-style: disc; }
.note__body ol { list-style: decimal; }
.note__body li { margin-top: var(--space-2); }
.note__body pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.note__body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: color-mix(in oklab, var(--color-accent-soft) 60%, transparent);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}
.note__body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.note__body img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.note__body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-4);
  color: var(--color-ink-muted);
  font-style: italic;
}


/* ============================================================================
   Projects archive (/projects) — Now + Past sections of cards
   ========================================================================= */

.projects-page { background: var(--color-bg); }

.projects-hero {
  padding-block: clamp(7rem, 5rem + 8vw, 11rem) clamp(2rem, 1rem + 3vw, 4rem);
}
.projects-hero__eyebrow { margin-bottom: var(--space-4); }
.projects-hero__lede,
.services-hero__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 64ch;
}

.projects-section {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
.projects-section--past {
  padding-bottom: clamp(5rem, 4rem + 6vw, 9rem);
}
.projects-section--now { background: var(--color-surface); }
.projects-section__header { margin-bottom: var(--space-10); }
.projects-section__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.projects-section--past .projects-section__title { color: var(--color-ink-muted); }
.projects-section__subtitle {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
  max-width: 60ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
  }
}

.project-archive-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.project-archive-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.projects-section--now .project-archive-card {
  background: var(--color-bg);
}
.projects-section--past .project-archive-card {
  background: color-mix(in oklab, var(--color-surface) 70%, var(--color-bg));
}

/* Icon block — image or monogram fallback */
.project-archive-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-archive-card__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.project-archive-card__monogram {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.75rem;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
}

/* Body column */
.project-archive-card__body { min-width: 0; display: flex; flex-direction: column; }
.project-archive-card__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.project-archive-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}
.project-archive-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  white-space: nowrap;
}
.project-archive-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-subtle);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.project-archive-card__sep { opacity: 0.55; }
.project-archive-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-4);
}
.project-archive-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: auto;
}
.project-archive-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  padding-block: var(--space-1);
  transition: color var(--dur-fast) var(--ease-out);
}
.project-archive-card__link svg {
  opacity: 0.7;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.project-archive-card__link:hover {
  color: var(--color-accent-hover);
}
.project-archive-card__link:hover svg {
  opacity: 1;
  transform: translate(2px, -2px);
}
/* Internal links use a horizontal arrow, so nudge sideways instead of diagonally. */
.project-archive-card__link--internal:hover svg {
  transform: translateX(3px);
}

/* Very small viewports: stack icon above body */
@media (max-width: 380px) {
  .project-archive-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}


/* ============================================================================
   CtrlHelp — marketing page + license redemption (subdomain pages)
   Shared with the main site CSS so the subdomain renders identically.
   ========================================================================= */

/* Local section-heading utility — used only by CtrlHelp pages */
.ctrl-hero .section-heading,
.ctrl-buy .section-heading,
.ctrl-feature .section-heading,
.ctrl-apps .section-heading,
.ctrl-cta .section-heading,
.ctrl-redeem .section-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}

/* ----- Hero ----- */
.ctrl-hero,
.sz-hero {
  background: var(--color-bg);
  padding-block: clamp(7rem, 5rem + 8vw, 11rem) clamp(3rem, 2rem + 3vw, 5rem);
}
.ctrl-hero__inner,
.sz-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .ctrl-hero__inner,
.sz-hero__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-16);
  }
}
.ctrl-hero__eyebrow,
.sz-hero__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink-subtle);
  margin: 0 0 var(--space-4);
}
.ctrl-hero__headline {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  font-size: clamp(2.4rem, 1.8rem + 3.5vw, 4.25rem);
  margin: 0 0 var(--space-6);
  color: var(--color-ink);
}
.ctrl-hero__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 56ch;
  margin: 0 0 var(--space-8);
}
.ctrl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.ctrl-hero__small {
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
  margin: 0;
}
.ctrl-hero__visual,
.sz-hero__visual {
  display: grid;
  place-items: center;
}
.ctrl-hero__logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  filter: drop-shadow(0 24px 48px hsl(30 5% 10% / 0.12));
}

/* ----- Buy strip ----- */
.ctrl-buy {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.ctrl-buy__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 760px) {
  .ctrl-buy__inner { grid-template-columns: 1.4fr auto; }
}
.ctrl-buy__copy h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-2); }
.ctrl-buy__copy p { margin: 0; color: var(--color-ink-muted); }
.ctrl-buy__placeholder {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}
.ctrl-buy__placeholder a { color: var(--color-accent); }

/* ----- Video ----- */
.ctrl-video,
.sz-video {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--color-bg);
}
.ctrl-video__frame,
.sz-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.ctrl-video__frame iframe,
.sz-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- Alternating feature blocks ----- */
.ctrl-feature {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.ctrl-feature--alt-1 { background: var(--color-surface); }
.ctrl-feature__inner {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ctrl-feature__inner { grid-template-columns: 1fr 1fr; }
  .ctrl-feature__inner--swap .ctrl-feature__visual { order: -1; }
}
.ctrl-feature__eyebrow,
.sz-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink-subtle);
  margin: 0 0 var(--space-3);
}
.ctrl-feature__copy h2 { font-size: var(--text-2xl); }
.ctrl-feature__copy p:not(.ctrl-feature__eyebrow) {
  color: var(--color-ink-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  max-width: 52ch;
}
.ctrl-feature__copy kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 0.05em 0.45em;
  color: var(--color-ink);
}
.ctrl-feature__visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-elev);
  box-shadow: var(--shadow-md);
}
.ctrl-feature__visual img,
.ctrl-redeem__activate figure img,
.sz-gallery__link img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- Supported apps grid ----- */
.ctrl-apps {
  padding-block: clamp(4rem, 3rem + 4vw, 6rem);
  background: var(--color-bg);
}
.ctrl-apps__header,
.sz-features__header,
.sz-gallery__header { margin-bottom: var(--space-10); max-width: 60ch; }
.ctrl-apps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) { .ctrl-apps__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ctrl-apps__grid { grid-template-columns: 1fr 1fr 1fr; } }
.ctrl-apps__grid li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
}
.ctrl-apps__grid h3,
.sz-features__item h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  margin: 0 0 var(--space-2);
}
.ctrl-apps__grid p,
.sz-features__item p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
}

/* ----- Closing CTA ----- */
.ctrl-cta {
  padding-block: clamp(4rem, 3rem + 4vw, 6rem);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.ctrl-cta__inner,
.sz-links__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.ctrl-cta__inner > p { color: var(--color-ink-muted); margin: 0 0 var(--space-6); }
.ctrl-cta__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-6) !important;
}
.ctrl-cta__buy {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.ctrl-cta__note {
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
  margin: 0 !important;
}
.ctrl-cta__note a { color: var(--color-accent); }

/* ============================================================================
   CtrlHelp redeem page
   ========================================================================= */

.ctrl-redeem {
  padding-block: clamp(7rem, 5rem + 8vw, 10rem) clamp(4rem, 3rem + 4vw, 6rem);
  background: var(--color-bg);
}
.ctrl-redeem__inner {
  max-width: var(--container-md);
  margin-inline: auto;
}
.ctrl-redeem__header { margin-bottom: var(--space-8); text-align: left; }
.ctrl-redeem__header h1 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.ctrl-redeem__header p { color: var(--color-ink-muted); margin: 0; line-height: var(--leading-relaxed); }

.ctrl-redeem__alert {
  background: var(--color-danger-soft);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.ctrl-redeem__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.ctrl-redeem__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 540px) { .ctrl-redeem__row { grid-template-columns: 1fr 1fr; } }
.ctrl-redeem__field input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.ctrl-redeem__field input:hover { border-color: var(--color-ink-subtle); }
.ctrl-redeem__field input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.ctrl-redeem__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ctrl-redeem__actions { margin: var(--space-3) 0 0; }
.ctrl-redeem__legal {
  font-size: var(--text-xs);
  color: var(--color-ink-subtle);
  margin: 0;
}

.ctrl-redeem__key {
  margin: 0 0 var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.ctrl-redeem__key pre {
  margin: 0;
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
}
.ctrl-redeem__key code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink);
  word-break: break-all;
  white-space: pre-wrap;
}
.ctrl-redeem__copy { align-self: flex-start; }
.ctrl-redeem__namehint {
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-8);
}

.ctrl-redeem__activate {
  margin-top: var(--space-10);
}
.ctrl-redeem__activate h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.ctrl-redeem__activate ol {
  margin: 0;
  padding: 0 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  color: var(--color-ink-muted);
  line-height: var(--leading-relaxed);
}
.ctrl-redeem__activate ol li::marker { color: var(--color-accent); font-weight: var(--weight-semibold); }
.ctrl-redeem__activate figure {
  margin: var(--space-3) 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elev);
  max-width: 480px;
}

.ctrl-redeem__support {
  margin-top: var(--space-8);
  color: var(--color-ink-muted);
}
.ctrl-redeem__support a { color: var(--color-accent); }

/* =========================================================================
   Services page (/services) — dedicated full-page pitch
   ========================================================================= */
.page-services { background: var(--color-bg); }

/* --- Hero --------------------------------------------------------------- */
.services-hero {
  padding-block: clamp(7rem, 5rem + 8vw, 11rem) clamp(2rem, 1rem + 3vw, 4rem);
}

/* --- Chooser ------------------------------------------------------------ */
.services-chooser {
  padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(2rem, 1rem + 3vw, 4rem);
}
.services-chooser__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 760px) {
  .services-chooser__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
.services-chooser__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.services-chooser__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.services-chooser__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: var(--radius-md);
}
.services-chooser__icon svg { width: 1.35rem; height: 1.35rem; }
.services-chooser__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  min-width: 0;
}
.services-chooser__arrow {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-ink-muted);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.services-chooser__arrow svg { width: 1.1rem; height: 1.1rem; }
.services-chooser__card:hover .services-chooser__arrow { transform: translateX(4px); color: var(--color-accent); }

/* --- Service tracks (full-width, alternating) --------------------------- */
.services-track {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  scroll-margin-top: 5rem;
  background: var(--color-surface);
}
.services-track--alt { background: var(--color-surface); }

.services-track__head,
.services-proof__head {
  max-width: 760px;
  margin-bottom: var(--space-12);
}
.services-track__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.services-track__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 60ch;
}
.services-track__lede em {
  font-style: italic;
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}

.services-track__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
@media (min-width: 900px) {
  .services-track__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.services-track__panel {
  padding: clamp(var(--space-6), 1.5rem + 1.5vw, var(--space-8));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.services-track--alt .services-track__panel { background: var(--color-bg); }
.services-track__panel--soft {
  background: transparent;
  border-style: dashed;
}
.services-track--alt .services-track__panel--soft { background: transparent; }

.services-track__panel-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}
.services-track__panel-title--later { margin-top: var(--space-8); }

.services-track__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-track__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}
.services-track__list svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-accent);
  margin-top: 5px;
}
.services-track__list--muted svg { color: var(--color-ink-subtle); }

.services-track__pricing {
  max-width: 64ch;
  margin: 0 0 var(--space-10);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
}

.services-track__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  align-items: center;
  margin: 0;
}
.services-track__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-medium);
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.services-track__cta-secondary svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.services-track__cta-secondary:hover { color: var(--color-accent); }
.services-track__cta-secondary:hover svg { transform: translateX(3px); }

/* --- Proof (selected shipped work) ------------------------------------- */
.services-proof {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--color-bg);
}
.services-proof__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}
.services-proof__lede {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: 60ch;
}

.services-proof__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .services-proof__grid { grid-template-columns: repeat(3, 1fr); }
}
/* --- FAQ ---------------------------------------------------------------- */
.services-faq {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--color-surface);
}
.services-faq__head { max-width: 760px; margin-bottom: var(--space-10); }
.services-faq__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0;
}

.services-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 900px;
}
.services-faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.services-faq__item[open] {
  border-color: var(--color-accent);
}
.services-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  list-style: none;
  user-select: none;
}
.services-faq__q::-webkit-details-marker { display: none; }
.services-faq__q:hover { color: var(--color-accent); }
.services-faq__plus {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--color-ink-muted);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.services-faq__plus::before,
.services-faq__plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.services-faq__plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.services-faq__plus::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.services-faq__item[open] .services-faq__plus {
  color: var(--color-accent);
  transform: rotate(180deg);
}
.services-faq__item[open] .services-faq__plus::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.services-faq__a {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.services-faq__a p { margin: 0; }

/* --- Final CTA ---------------------------------------------------------- */
.services-cta {
  padding-block: clamp(4rem, 3rem + 4vw, 8rem) clamp(5rem, 4rem + 5vw, 9rem);
  background: var(--color-bg);
}
.services-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  text-align: center;
}
.services-cta__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-bg);
  margin: 0 0 var(--space-4);
}
.services-cta__copy {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: color-mix(in srgb, var(--color-bg) 85%, transparent);
  margin: 0 auto var(--space-8);
  max-width: 50ch;
}
.services-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin: 0;
}
.services-cta__btn {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.services-cta__btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* --- Home #services teaser: "See full services" link ------------------- */
.services__more {
  margin: var(--space-10) 0 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .services-chooser__card,
  .services-chooser__arrow,
  .services-track__cta-secondary svg,
  .services-faq__item,
  .services-faq__plus,
  .services-faq__plus::after,
  .work__more-link svg,
  .services__more-link svg {
    transition: none;
  }
  .services-chooser__card:hover { transform: none; }
  .work__more-link:hover,
  .services__more-link:hover { transform: none; }
  .services-chooser__card:hover .services-chooser__arrow,
  .services-track__cta-secondary:hover svg,
  .work__more-link:hover svg,
  .services__more-link:hover svg {
    transform: none;
  }
}

/* ============================================================================
   SoftwareZator — archived project showcase (/softwarezator)
   Self-contained family so the retired-project page stays easy to maintain.
   ========================================================================= */

.sz-section__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-ink);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  margin: 0 0 var(--space-4);
}

/* ----- Hero ----- */
@media (min-width: 900px) {
  }
.sz-hero__headline {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  font-size: clamp(2.2rem, 1.7rem + 3vw, 3.75rem);
  margin: 0 0 var(--space-6);
  color: var(--color-ink);
}
.sz-hero__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 58ch;
  margin: 0 0 var(--space-4);
}
.sz-hero__lede strong { color: var(--color-ink); }
.sz-hero__note {
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
  margin: 0 0 var(--space-8);
}
.sz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
}
.sz-hero__logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 24px 48px hsl(30 5% 10% / 0.12));
}

/* ----- Stats band ----- */
.sz-stats {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.sz-stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-4);
  text-align: center;
}
@media (min-width: 760px) { .sz-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.sz-stats__grid li { display: flex; flex-direction: column; gap: var(--space-1); }
.sz-stats__value {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  color: var(--color-ink);
  letter-spacing: var(--tracking-tight);
}
.sz-stats__label {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
}

/* ----- Story + pull quote ----- */
.sz-story {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--color-bg);
}
.sz-story__inner {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  grid-template-columns: 1fr;
}
/* Spacing between the heading and the body is handled by the grid row-gap. */
.sz-story__head .sz-section__title { margin-bottom: 0; }
@media (min-width: 900px) {
  .sz-story__inner {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
      "head  ."
      "prose quote";
    column-gap: clamp(2rem, 1rem + 3vw, 3.5rem);
    row-gap: var(--space-4);
  }
  .sz-story__head  { grid-area: head; }
  .sz-story__prose { grid-area: prose; }
  .sz-quote        { grid-area: quote; }
}
.sz-story__prose p {
  color: var(--color-ink-muted);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-4);
  max-width: 60ch;
}
.sz-story__prose p:last-child { margin-bottom: 0; }
.sz-quote {
  margin: 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sz-quote blockquote {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink);
}
.sz-quote figcaption {
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
}

/* ----- Features grid ----- */
.sz-features,
.sz-gallery {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.sz-features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .sz-features__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .sz-features__grid { grid-template-columns: repeat(4, 1fr); } }
.sz-features__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

/* ----- Video ----- */
.sz-video__header { margin-bottom: var(--space-8); max-width: 60ch; }
.sz-video__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
  margin: var(--space-4) 0 0;
}

/* ----- Screenshot gallery ----- */
.sz-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 760px) { .sz-gallery__grid { grid-template-columns: 1fr 1fr; } }
.sz-gallery__item figure { margin: 0; }
.sz-gallery__link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sz-gallery__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sz-gallery__item figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
}

/* ----- Closing links band ----- */
.sz-links {
  padding-block: clamp(4rem, 3rem + 4vw, 6rem);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.sz-links__list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
}
.sz-links__list a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.sz-links__list a:hover {
  border-color: var(--color-border-strong);
  color: var(--color-accent-hover);
}
.sz-links__legacy {
  margin: var(--space-6) auto 0;
  max-width: 60ch;
  font-size: var(--text-sm);
  color: var(--color-ink-subtle);
  line-height: var(--leading-normal);
}
.sz-links__legacy a { color: var(--color-accent); }

/* ============================================================================
   Services — Selected work (website screenshots)
   ========================================================================= */
.services-work {
  background: var(--color-bg);
}
.services-work__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}
.services-work__lede {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 60ch;
}
.services-work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 640px) { .services-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .services-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.services-work__item { display: flex; }
.services-work__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.services-work__card:hover,
.services-work__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}
.services-work__card:focus-visible { outline: none; }
.services-work__shot {
  display: block;
  aspect-ratio: 1040 / 650;
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.services-work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.services-work__card:hover .services-work__shot img,
.services-work__card:focus-visible .services-work__shot img {
  transform: scale(1.03);
}
.services-work__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-5);
}
.services-work__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.services-work__name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}
.services-work__desc {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
}
.services-work__visit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
}
.services-work__card:hover .services-work__visit svg,
.services-work__card:focus-visible .services-work__visit svg {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .services-work__card:hover .services-work__shot img,
  .services-work__card:focus-visible .services-work__shot img { transform: none; }
}
