/* ==========================================================================
   SiteWright — Components
   Depends on: design-system.css, global.css
   Naming: BEM (block__element--modifier). Each block maps to a future
   WordPress template part.
   ========================================================================== */

/* ==========================================================================
   1. LOGO (typographic wordmark — placeholder until official logo is supplied)
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.logo__mark {
  width: 0.95em; height: 0.95em;
  flex: none;
  border-radius: 3px;
  background: var(--accent);
  /* Mark placeholder: a square "flick" notch. Replaced by official SVG. */
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%);
}

/* ==========================================================================
   2. HEADER
   States (set by JS): .is-scrolled (solid), .is-hidden (scrolling down)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-height);
  transition:
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- Primary navigation ---------- */
.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text-primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Menu toggle (mobile) ---------- */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
}
.menu-toggle__bar {
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur-base) var(--ease-out);
}
.menu-toggle__bar:nth-child(1) { transform: translateY(-3px); }
.menu-toggle__bar:nth-child(2) { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Mobile menu (full-screen overlay) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + var(--space-8)) var(--gutter) var(--space-8);
  background: var(--bg-primary);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s;
}
.mobile-menu__list { display: grid; gap: var(--space-2); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h1);
  line-height: 1;
  border-bottom: var(--hairline);
  transform: translateY(16px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.mobile-menu__link .mono { color: var(--text-muted); }
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu__footer { margin-top: auto; display: grid; gap: var(--space-4); color: var(--text-secondary); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   3. BUTTONS
   .btn + modifier. Label is wrapped for the roll-up hover:
   <a class="btn btn--primary"><span class="btn__label" data-text="Start a project">Start a project</span><span class="btn__icon">→</span></a>
   ========================================================================== */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: var(--btn-h);
  padding-inline: var(--space-6);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  line-height: var(--lh-ui);
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

/* Label roll-up */
.btn__label { position: relative; display: inline-block; overflow: hidden; }
.btn__label > span { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.btn__label::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 100%;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn__label > span,
.btn:hover .btn__label::after { transform: translateY(-100%); }

/* Arrow */
.btn__icon {
  display: inline-grid;
  place-items: center;
  width: 1em; height: 1em;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn__icon svg { width: 100%; height: 100%; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--btn-primary-bg-hover); }

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
  border-color: var(--btn-secondary-border);
}
.btn--secondary:hover {
  background: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text-hover);
  border-color: var(--btn-secondary-bg-hover);
}

.btn--sm { --btn-h: 40px; padding-inline: var(--space-5); }
.btn--lg { --btn-h: 60px; padding-inline: var(--space-8); font-size: var(--fs-body); }

/* ==========================================================================
   4. LINKS
   ========================================================================== */
/* Arrow link: text + arrow, underline draws on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Inline text link */
.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-fast);
}
.link:hover { text-decoration-color: transparent; }

/* ==========================================================================
   5. TAGS & CHIPS
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* 11px — only uppercase mono, AA at this weight */
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
}
.tag--accent { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }

/* Technology chip (stack cloud) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 48px;
  padding-inline: var(--space-5);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.chip img, .chip svg { width: 22px; height: 22px; }
.chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* Filter pill (blog / work filters) */
.filter {
  height: 40px;
  padding-inline: var(--space-5);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter:hover { color: var(--text-primary); }
.filter[aria-pressed="true"] { color: var(--text-inverse); background: var(--text-primary); border-color: var(--text-primary); }

/* ==========================================================================
   6. SECTION HEADING
   <header class="section-head"> eyebrow + title + optional intro/action
   ========================================================================== */
.section-head { display: grid; gap: var(--space-6); margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head__title { max-width: 18ch; }
.section-head__intro { max-width: var(--measure-narrow); color: var(--text-secondary); font-size: var(--fs-body-lg); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .section-head__title { max-width: 20ch; }
.section-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  column-gap: var(--grid-gap);
}
.section-head--split .eyebrow { grid-column: 1 / -1; }

/* ==========================================================================
   7. CAPABILITY ROW (services — numbered hairline rows)
   ========================================================================== */
.capabilities { border-top: var(--hairline); }
.capability {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--grid-gap);
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-bottom: var(--hairline);
  isolation: isolate;
}
.capability::before {
  /* hover wash */
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--surface);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.capability:hover::before,
.capability:focus-within::before { opacity: 1; }
.capability__index { color: var(--text-muted); padding-top: 0.6em; }
.capability__title { font-size: var(--fs-h3); transition: transform var(--dur-base) var(--ease-out); }
.capability:hover .capability__title { transform: translateX(6px); }
.capability__desc { color: var(--text-secondary); max-width: 40ch; }
.capability__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.capability__cta {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.capability__cta svg { width: 20px; height: 20px; }
.capability:hover .capability__cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
/* Whole row clickable via stretched link */
.capability__link::after { content: ""; position: absolute; inset: 0; }

/* Cursor-follow preview image (desktop, fine pointer only — positioned by JS) */
.cursor-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  width: clamp(16rem, 22vw, 22rem);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, -50%) scale(0.85);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.cursor-preview.is-active { opacity: 1; transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, -50%) scale(1); }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   8. PROJECT CARD
   Default: large media card. Stack variant: sticky stacked list (homepage).
   ========================================================================== */
.project-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  isolation: isolate;
  color: var(--white);
}
.project-card__media { grid-area: 1 / 1; aspect-ratio: 16 / 9; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: var(--image-scrim); }
.project-card__body {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
}
.project-card__client { color: rgba(255, 255, 255, 0.72); }
.project-card__title { color: var(--white); font-size: var(--fs-h2); }
.project-card__summary { color: rgba(255, 255, 255, 0.78); max-width: 46ch; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.project-card .tag { color: rgba(255, 255, 255, 0.82); border-color: rgba(255, 255, 255, 0.24); }
.project-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Project cards inside a card stack get a tall media area */
.project-stack .project-card__media { aspect-ratio: auto; height: min(78vh, 52rem); }

/* Inside project cards the placeholder label sits top-left, clear of the card text */
.project-card__media .placeholder { place-items: start; text-align: left; padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); border-radius: 0; border: 0; }

/* Placeholder (until real project assets are supplied) */
.placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  min-height: 12rem;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 15px),
    var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: inherit;
  text-align: center;
  padding: var(--space-6);
}

/* ==========================================================================
   9. ARTICLE CARD (blog)
   ========================================================================== */
.article-card { position: relative; display: grid; gap: var(--space-5); }
.article-card__media { aspect-ratio: 3 / 2; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); color: var(--text-muted); }
.article-card__category { color: var(--accent-text); }
.article-card__title { font-size: var(--fs-h4); transition: color var(--dur-fast); }
.article-card:hover .article-card__title { color: var(--accent-text); }
.article-card__link::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   10. PROCESS STEP
   ========================================================================== */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); }
.process__aside { position: sticky; top: calc(var(--header-height) + var(--space-12)); align-self: start; }
.process__steps { position: relative; display: grid; }
.process__progress {
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--border);
}
.process__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--process-progress, 0));
}
.step { padding: 0 0 clamp(3rem, 2rem + 4vw, 6rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
.step:last-child { padding-bottom: 0; }
.step__index { color: var(--accent-text); margin-bottom: var(--space-4); }
.step__title { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.step__desc { color: var(--text-secondary); max-width: 46ch; }

/* ==========================================================================
   11. PRINCIPLE (Why SiteWright — editorial)
   ========================================================================== */
.principle { display: grid; align-content: start; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border-strong); }
.principle__index { color: var(--accent-text); }
.principle__title { font-size: var(--fs-h4); }
.principle__desc { color: var(--text-secondary); }

/* ==========================================================================
   12. TESTIMONIAL (only with real, approved quotes)
   ========================================================================== */
.testimonial { display: grid; gap: var(--space-8); max-width: 60rem; }
.testimonial__quote { font-size: var(--fs-h3); font-weight: var(--fw-medium); letter-spacing: var(--ls-h3); line-height: 1.25; text-wrap: balance; }
.testimonial__quote::before { content: "\201C"; color: var(--accent-text); }
.testimonial__quote::after { content: "\201D"; color: var(--accent-text); }
.testimonial__author { display: flex; align-items: center; gap: var(--space-4); }
.testimonial__avatar { width: 48px; height: 48px; border-radius: var(--radius-pill); object-fit: cover; }
.testimonial__name { font-weight: var(--fw-medium); }
.testimonial__role { color: var(--text-muted); font-size: var(--fs-small); }

/* ==========================================================================
   13. MARQUEE (infinite horizontal loop — duplicate content in markup)
   ========================================================================== */
.marquee {
  --marquee-duration: 40s;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-16);
  padding-right: var(--space-16);
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   14. CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); font-weight: var(--fw-semibold); max-width: 14ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-12); }
.cta-band__email { display: inline-block; margin-top: var(--space-8); color: var(--text-secondary); }

/* ==========================================================================
   15. FORMS
   ========================================================================== */
.field { display: grid; gap: var(--space-2); }
.field__label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--text-primary); }
.field__label .optional { color: var(--text-muted); font-weight: var(--fw-regular); }
.field__hint { font-size: var(--fs-small); color: var(--text-muted); }
.field__error { font-size: var(--fs-small); color: var(--error); display: none; }

.input, .select, .textarea {
  width: 100%;
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
  appearance: none;
}
.textarea { min-height: 10rem; resize: vertical; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-500); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23A3A2B3' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-5) center;
  padding-right: var(--space-12);
}
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--error); }
.field.is-invalid .field__error { display: block; }

/* Option pills (budget / contact method) — radio inputs styled as pills */
.option-group { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center;
  height: 44px; padding-inline: var(--space-5);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
}
.option input:hover + span { color: var(--text-primary); border-color: var(--ink-500); }
.option input:checked + span { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.option input:focus-visible + span { outline: 2px solid var(--border-focus); outline-offset: 3px; }

.form-status { padding: var(--space-5); border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.form-status--success { border-color: color-mix(in srgb, var(--success) 50%, transparent); }
.form-status--error { border-color: color-mix(in srgb, var(--error) 50%, transparent); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer { position: relative; padding-top: var(--section-space-sm); overflow: hidden; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.site-footer__lead { font-size: var(--fs-h4); font-weight: var(--fw-medium); letter-spacing: var(--ls-h4); max-width: 18ch; }
.site-footer__heading { color: var(--text-muted); margin-bottom: var(--space-5); }
.site-footer__list { display: grid; gap: var(--space-3); }
.site-footer__list a { color: var(--text-secondary); transition: color var(--dur-fast); }
.site-footer__list a:hover { color: var(--text-primary); }

/* Giant wordmark — sized to span the container (glyph width ≈ 4.5em) */
.site-footer__wordmark {
  display: block;
  width: 100%;
  font-size: clamp(3rem, 19.6vw, 20rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  color: var(--text-primary);
  user-select: none;
  padding-bottom: 0.06em;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-8);
  border-top: var(--hairline);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.site-footer__legal a:hover { color: var(--text-primary); }

/* Back to top */
.to-top {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.to-top:hover { background: var(--text-primary); color: var(--text-inverse); border-color: var(--text-primary); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   17. BREADCRUMBS
   ========================================================================== */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.breadcrumbs li { display: inline-flex; gap: var(--space-2); color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-600); }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs [aria-current="page"] { color: var(--text-secondary); }

/* ==========================================================================
   18. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-height) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  opacity: 0.6;
}
.hero__content {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
}
.hero__copy { display: grid; gap: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.hero .display-xl { font-size: clamp(3.5rem, 1.6rem + 6vw, 7.5rem); }
.hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-950);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(109, 74, 255, 0.45), var(--shadow-lg);
}
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0) 60%, rgba(8, 8, 11, 0.45) 100%);
}
.hero__title { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: inherit; }
.hero__title .display-xl { display: block; }
.hero__title .display-xl > span { display: block; }
.hero__lower { padding-bottom: 0.5rem; }
.hero__intro { max-width: 32rem; color: var(--text-secondary); font-size: var(--fs-body-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__actions .btn--lg { --btn-h: 56px; padding-inline: var(--space-6); font-size: var(--fs-small); }
.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-block: var(--space-6);
  border-top: var(--hairline);
}
.hero__services { display: flex; flex-wrap: wrap; gap: var(--space-2) clamp(1.25rem, 3vw, 3rem); }
.hero__services a { color: var(--text-secondary); transition: color var(--dur-fast); }
.hero__services a:hover { color: var(--text-primary); }
.hero__services .mono { color: var(--text-muted); margin-right: var(--space-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-muted); }
.scroll-cue__line { position: relative; width: 1px; height: 32px; background: var(--border-strong); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--accent-text);
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   19. MANIFESTO (scroll-lit statement)
   ========================================================================== */
.manifesto__text {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: var(--ls-h1);
  max-width: none;
}
.js .manifesto__text .mword { opacity: 0.2; transition: opacity 300ms linear; }
.js .manifesto__text .mword.is-lit { opacity: 1; }
.highlight {
  position: relative;
  white-space: nowrap;
  color: var(--text-primary);
  background: linear-gradient(var(--accent), var(--accent)) 0 88% / 0% 0.14em no-repeat;
  transition: background-size 900ms var(--ease-out);
}
.highlight.is-painted,
.no-js .highlight { background-size: 100% 0.14em; }
@media (prefers-reduced-motion: reduce) { .highlight { background-size: 100% 0.14em; } }

/* ==========================================================================
   20. INTERFACE VIGNETTE (capability previews)
   ========================================================================== */
.vignette { width: 100%; height: 100%; background: var(--ink-900); }
.cursor-preview .vignette { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.cursor-preview .vignette.is-active { opacity: 1; }

/* ==========================================================================
   21. STACK CLOUD
   ========================================================================== */
.stack-cloud { display: grid; gap: var(--space-10); }
.stack-cloud__group { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-6); align-items: start; padding-top: var(--space-6); border-top: var(--hairline); }
.stack-cloud__label { color: var(--text-muted); padding-top: 0.9rem; }
.stack-cloud__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ==========================================================================
   22. INSIGHT ROW (editorial article list)
   ========================================================================== */
.insights { border-top: var(--hairline); }
.insight-row {
  position: relative;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--grid-gap);
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-bottom: var(--hairline);
}
.insight-row__category { color: var(--accent-text); }
.insight-row__title { font-size: var(--fs-h4); transition: transform var(--dur-base) var(--ease-out); }
.insight-row:hover .insight-row__title { transform: translateX(6px); }
.insight-row__meta { color: var(--text-muted); white-space: nowrap; }
.insight-row__arrow { width: 20px; height: 20px; color: var(--text-muted); transition: color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.insight-row:hover .insight-row__arrow { color: var(--accent-text); transform: translateX(4px); }
.insight-row__link::after { content: ""; position: absolute; inset: 0; }

/* Header must sit above the open mobile menu so the close button stays reachable */
body.menu-open .site-header {
  z-index: calc(var(--z-menu) + 1);
  transform: none;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ==========================================================================
   23. LOGO CHIP (technology / platform)
   Brand badge: monochrome logo masked in white (or dark ink on light brands)
   on the brand colour. --img variant for multi-colour logos.
   ========================================================================== */
.chip--logo { height: 56px; padding: 0 var(--space-5) 0 var(--space-2); gap: var(--space-3); }
.chip__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  background: var(--brand, var(--ink-700));
  color: var(--ink, #fff);
}
.chip__icon {
  width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.chip__badge--img { background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 8, 11, 0.08); }
.chip__badge--img img { width: 22px; height: 22px; }
.chip__badge--mono { font-family: var(--font-sans); font-size: 1rem; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.chip__arrow { width: 16px !important; height: 16px !important; transition: transform var(--dur-base) var(--ease-out); }
a.chip--logo:hover .chip__arrow { transform: translateX(3px); }
.theme-light .chip { border-color: transparent; box-shadow: 0 1px 2px rgba(20, 16, 50, 0.06), 0 10px 28px -14px rgba(20, 16, 50, 0.22); }
.theme-light .chip:hover { box-shadow: 0 1px 2px rgba(20, 16, 50, 0.08), 0 16px 36px -14px rgba(20, 16, 50, 0.3); }

/* ==========================================================================
   24. HERO 3D VISUAL (decorative, js/hero3d.js)
   ========================================================================== */
.hero__visual {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-height) - 3.5rem);
  right: calc(var(--gutter) - 3rem);
  width: min(33vw, 30rem);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1200ms var(--ease-out), transform 1600ms var(--ease-out);
}
.hero__canvas.is-ready { opacity: 1; transform: none; }
.hero__visual-label {
  position: absolute;
  top: 22%;
  right: 4%;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.hero__canvas.is-ready + .hero__visual-label { opacity: 1; }

/* ==========================================================================
   25. CARD STACK (shared sticky stacking for project + service cards)
   JS sets --stack-progress (0..1) per item as the next card covers it.
   ========================================================================== */
.card-stack { display: grid; gap: var(--space-8); }
.card-stack__item {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6) + var(--i, 0) * 14px);
}
.card-stack__item > * {
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--stack-progress, 0) * 0.06));
  filter: brightness(calc(1 - var(--stack-progress, 0) * 0.5));
}

/* ==========================================================================
   26. SERVICE CARD (homepage expertise stack)
   ========================================================================== */
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--grid-gap);
  min-height: min(74vh, 44rem);
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.service-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-12);
  padding: clamp(0.75rem, 0.3rem + 1.6vw, 2.25rem);
}
.service-card__top { display: flex; justify-content: space-between; color: var(--text-muted); }
.service-card__top span:first-child { color: var(--accent-text); }
.service-card__body { display: grid; gap: var(--space-6); }
.service-card__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  line-height: 1.02;
  letter-spacing: var(--ls-h1);
  max-width: 11ch;
}
.service-card__desc { color: var(--text-secondary); font-size: var(--fs-body-lg); max-width: 40ch; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.service-card__cta { justify-self: start; margin-top: var(--space-2); }
.service-card:hover .service-card__cta { background-size: 100% 1px; }
.service-card:hover .service-card__cta svg { transform: translateX(3px); }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.service-card__link:focus-visible { outline: none; }
.service-card:has(.service-card__link:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 4px; }

.service-card__visual {
  position: relative;
  min-height: 18rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-900);
  border: var(--hairline);
}
.service-card__visual .vignette { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1200ms var(--ease-out); }
.service-card:hover .service-card__visual .vignette { transform: scale(1.035); }
.service-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 110%, rgba(109, 74, 255, 0.28), transparent 70%);
}

/* ==========================================================================
   27. TECH GRID (filterable logo wall)
   Hairline grid of equal tiles. Filtering dims non-matching tiles instead of
   removing them, so the layout never shifts.
   ========================================================================== */
.tech__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter .mono { margin-left: var(--space-1); font-size: 0.6875rem; opacity: 0.6; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  transition: background-color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.tech-tile,
.tech-tile > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
}
.tech-tile > a { position: absolute; inset: 0; color: inherit; }
.tech-tile .chip__badge { width: 52px; height: 52px; transition: transform var(--dur-base) var(--ease-out); }
.tech-tile .chip__icon { width: 26px; height: 26px; }
.tech-tile .chip__badge--img img { width: 28px; height: 28px; }
.tech-tile .chip__badge--mono { font-size: 1.25rem; }
.tech-tile__name { font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: 1.2; color: var(--text-primary); }
.tech-tile__cat {
  position: absolute;
  left: 0; right: 0; bottom: var(--space-4);
  font-size: 0.625rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tech-tile:hover { background: var(--surface-raised); }
.tech-tile:hover .chip__badge { transform: translateY(-4px) scale(1.06); }
.tech-tile:hover .tech-tile__cat { opacity: 1; transform: none; }
.tech-tile__arrow { position: absolute; top: var(--space-4); right: var(--space-4); width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast); }
.tech-tile__arrow svg { width: 100%; height: 100%; }
.tech-tile--link:hover .tech-tile__arrow { color: var(--accent-text); transform: translate(2px, -2px) rotate(-45deg); }
.tech-tile > a:focus-visible { outline-offset: -4px; }

/* CTA tile spans two columns to complete the grid */
.tech-tile--cta { grid-column: span 2; aspect-ratio: auto; background: var(--ink-950); }
.tech-tile--cta > a { align-items: flex-start; justify-content: flex-end; padding: var(--space-6); text-align: left; }
.tech-tile--cta .tech-tile__name { color: var(--ink-50); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); }
.tech-tile--cta .tech-tile__cat { position: static; opacity: 1; transform: none; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-mono); color: var(--violet-300); }
.tech-tile--cta .tech-tile__cat svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.tech-tile__plus { position: absolute; top: var(--space-4); right: var(--space-6); font-size: 2.5rem; font-weight: var(--fw-light); line-height: 1; color: var(--violet-300); transition: transform var(--dur-base) var(--ease-out); }
.tech-tile--cta:hover { background: var(--violet-600); }
.tech-tile--cta:hover .tech-tile__cat { color: var(--white); }
.tech-tile--cta:hover .tech-tile__cat svg { transform: translateX(3px); }
.tech-tile--cta:hover .tech-tile__plus { transform: rotate(90deg); color: var(--white); }

/* Filtering state (set by JS) */
.tech-tile > * { transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out); }
.tech-grid.is-filtering .tech-tile:not(.is-match):not(.tech-tile--cta) > :not(.tech-tile__cat) { opacity: 0.18; filter: grayscale(1); }

/* ==========================================================================
   28. INSIGHT CARD (homepage blog stack)
   ========================================================================== */
.insight-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  min-height: min(58vh, 34rem);
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.insight-card__content {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: var(--space-6);
  padding: clamp(0.75rem, 0.3rem + 1.6vw, 2.25rem);
}
.insight-card__top { display: flex; gap: var(--space-6); align-items: baseline; }
.insight-card__index { color: var(--text-muted); }
.insight-card__category { color: var(--accent-text); }
.insight-card__title {
  align-self: end;
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.06;
  letter-spacing: var(--ls-h2);
  max-width: 20ch;
  transition: color var(--dur-fast);
}
.insight-card:hover .insight-card__title { color: var(--accent-text); }
.insight-card__excerpt { color: var(--text-secondary); max-width: 46ch; }
.insight-card__meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); padding-top: var(--space-5); border-top: var(--hairline); }
.insight-card__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.insight-card__arrow svg { width: 18px; height: 18px; }
.insight-card:hover .insight-card__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.insight-card__media { border-radius: var(--radius-md); overflow: hidden; }
.insight-card__media .placeholder { min-height: 100%; }
.insight-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.insight-card:has(.insight-card__link:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 4px; }
.insight-card__link:focus-visible { outline: none; }

/* ==========================================================================
   29. SECTION STACK — a following section slides over the previous one
   JS sets --sticky-top so a tall section pins once its bottom is reached,
   and --stack-progress to recede it as the cover arrives.
   ========================================================================== */
.section-stack__item:not(:last-child) {
  position: sticky;
  top: var(--sticky-top, 0px);
  transform-origin: 50% 100%;
  transform: scale(calc(1 - var(--stack-progress, 0) * 0.05));
  filter: brightness(calc(1 - var(--stack-progress, 0) * 0.6));
}
.section-stack__cover {
  position: relative;
  z-index: 1;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   30. MEDIA IN CARDS (responsive <picture> fills its frame)
   ========================================================================== */
.project-card__media picture,
.service-card__visual picture,
.insight-card__media picture { display: block; width: 100%; height: 100%; }
.service-card__visual img,
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.service-card__visual picture { position: absolute; inset: 0; }
.service-card:hover .service-card__visual img,
.insight-card:hover .insight-card__media img { transform: scale(1.04); }
.insight-card__media { position: relative; background: var(--ink-950); }
/* Work covers: stronger scrim on the left where the text sits */
.project-stack .project-card__media::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 11, 0.78) 0%, rgba(8, 8, 11, 0.35) 45%, rgba(8, 8, 11, 0) 70%),
    linear-gradient(180deg, rgba(8, 8, 11, 0) 40%, rgba(8, 8, 11, 0.85) 100%);
}
.project-stack .project-card { outline: 1px solid var(--border); outline-offset: -1px; }
.project-stack .project-card__media img { object-position: 62% 50%; }

/* ==========================================================================
   31. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(2.5rem, 1.5rem + 4vw, 5.5rem));
  padding-bottom: var(--section-space-sm);
  overflow: hidden;
}
.page-hero .breadcrumbs { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.page-hero__content { display: grid; gap: var(--space-6); align-content: start; }
.page-hero__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: var(--ls-h1); font-weight: var(--fw-semibold); }
.page-hero__title.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); max-width: 14ch; }
.page-hero__lead { font-size: var(--fs-body-lg); color: var(--text-secondary); max-width: 46ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.page-hero__media { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; border: var(--hairline); background: var(--ink-950); }
.page-hero__media picture, .page-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero__jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.page-hero__jump a { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding-inline: var(--space-5); font-size: var(--fs-small); color: var(--text-secondary); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast); }
.page-hero__jump a .mono { color: var(--text-muted); }
.page-hero__jump a:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* ==========================================================================
   32. SERVICE SECTION (expertise hub — alternating split)
   ========================================================================== */
.service-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.service-section + .service-section { margin-top: var(--section-space); padding-top: var(--section-space-sm); border-top: var(--hairline); }
.service-section:nth-of-type(even) .service-section__media { order: 2; }
.service-section__media {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--hairline);
  background: var(--ink-950);
}
.service-section__media picture, .service-section__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-section__content { display: grid; gap: var(--space-6); }
.service-section__index { color: var(--accent-text); }
.service-section__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: var(--ls-h1); }
.service-section__positioning { font-size: var(--fs-h4); font-weight: var(--fw-medium); letter-spacing: var(--ls-h4); line-height: 1.25; }
.service-section__desc { color: var(--text-secondary); max-width: 52ch; }
.service-section__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* Check list (capabilities) */
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); margin-top: var(--space-4); border-top: var(--hairline); }
.check-list li { display: flex; gap: var(--space-3); align-items: baseline; padding-block: var(--space-4); border-bottom: var(--hairline); font-size: var(--fs-small); }
.check-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   33. FEATURE GRID (service page capabilities)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature { display: grid; align-content: start; gap: var(--space-4); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--bg-primary); min-height: 16rem; transition: background-color var(--dur-base) var(--ease-out); }
.feature:hover { background: var(--surface); }
.feature__index { color: var(--accent-text); }
.feature__title { font-size: var(--fs-h5); margin-top: auto; padding-top: var(--space-8); }
.feature__desc { color: var(--text-secondary); font-size: var(--fs-small); }

/* ==========================================================================
   34. FAQ (native <details>, FAQPage schema on the page)
   ========================================================================== */
.faq { border-top: var(--hairline); }
.faq__item { border-bottom: var(--hairline); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-h4);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__q:hover .faq__icon { border-color: var(--text-primary); }
.faq__a { padding-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); color: var(--text-secondary); max-width: 68ch; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); align-items: start; }
.faq-layout__aside { position: sticky; top: calc(var(--header-height) + var(--space-12)); }

/* ==========================================================================
   35. RELATED CARD (other services)
   ========================================================================== */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.related-card { position: relative; display: grid; gap: var(--space-5); padding: var(--space-4); background: var(--surface); border: var(--hairline); border-radius: var(--radius-lg); transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.related-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.related-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-950); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.related-card:hover .related-card__media img { transform: scale(1.05); }
.related-card__body { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); padding: var(--space-2) var(--space-2) var(--space-3); }
.related-card__title { font-size: var(--fs-h5); }
.related-card__link::after { content: ""; position: absolute; inset: 0; }
.related-card .capability__cta { width: 44px; height: 44px; flex: none; }
.related-card:hover .capability__cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }

/* Tech grid with a fixed column count (service pages) */
.tech-grid--fixed { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }

/* ==========================================================================
   36. THEME TOGGLE (header) + circular reveal
   ========================================================================== */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.theme-toggle:hover { border-color: var(--text-primary); }
.theme-toggle svg {
  position: absolute;
  width: 18px; height: 18px;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
/* Dark theme shows the sun (= "switch to light"); light theme shows the moon */
.theme-toggle__moon { transform: translateY(140%) rotate(-40deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle__sun { transform: translateY(-140%) rotate(40deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle__moon { transform: none; opacity: 1; }

/* Circular reveal from the toggle (same-document View Transition) */
:root.theme-switching::view-transition-old(root) { animation: none; }
:root.theme-switching::view-transition-new(root) {
  animation: theme-reveal 650ms var(--ease-out) both;
}
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); }
  to   { clip-path: circle(var(--tr, 150vmax) at var(--tx, 100%) var(--ty, 0)); }
}
:root[data-theme="light"] .section-stack__cover { box-shadow: 0 -30px 60px -24px rgba(20, 16, 50, 0.14); }

/* ==========================================================================
   37. WORK GRID + WORK CARD (/work/)
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-10); }
.filter-bar__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem) var(--grid-gap); }
.work-grid > :first-child { grid-column: 1 / -1; }
.work-card { position: relative; display: grid; gap: var(--space-6); }
.work-card[hidden] { display: none; }
.work-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-950); border: var(--hairline); }
.work-grid > :first-child .work-card__media { aspect-ratio: 21 / 9; }
.work-card__media picture, .work-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__badge { position: absolute; top: var(--space-5); left: var(--space-5); z-index: 1; display: inline-flex; align-items: center; height: 30px; padding-inline: var(--space-3); color: #fff; background: rgba(8, 8, 11, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.work-card__view {
  position: absolute; right: var(--space-5); bottom: var(--space-5); z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px;
  color: var(--on-accent); background: var(--accent); border-radius: var(--radius-pill);
  transform: scale(0.6); opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.work-card__view svg { width: 22px; height: 22px; transform: rotate(-45deg); }
.work-card:hover .work-card__view, .work-card:focus-within .work-card__view { transform: scale(1); opacity: 1; }
.work-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-8); align-items: start; }
.work-card__client { grid-column: 1 / -1; color: var(--text-muted); }
.work-card__title { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); }
.work-grid > :first-child .work-card__title { font-size: var(--fs-h2); }
.work-card__summary { color: var(--text-secondary); max-width: 52ch; grid-column: 1; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; grid-column: 2; grid-row: 2 / span 2; max-width: 22rem; }
.work-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.work-card:has(.work-card__link:focus-visible) .work-card__media { outline: 2px solid var(--border-focus); outline-offset: 4px; }
.work-card__link:focus-visible { outline: none; }
.empty-state { padding: var(--space-16) 0; text-align: center; color: var(--text-secondary); }

/* ==========================================================================
   38. CASE STUDY (project detail template)
   ========================================================================== */
.case-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); padding-block: var(--space-8); border-block: var(--hairline); margin-top: var(--space-12); }
.case-meta dt { color: var(--text-muted); margin-bottom: var(--space-2); }
.case-meta dd { font-weight: var(--fw-medium); }
.case-cover { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-950); border: var(--hairline); }
.case-cover picture, .case-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--grid-gap); padding-block: var(--section-space-sm); border-top: var(--hairline); }
.case-section__label { position: sticky; top: calc(var(--header-height) + var(--space-8)); align-self: start; display: grid; gap: var(--space-3); }
.case-section__label .mono { color: var(--accent-text); }
.case-section__body { display: grid; gap: var(--space-8); }
.case-section__body .lead { font-size: var(--fs-h4); font-weight: var(--fw-medium); letter-spacing: var(--ls-h4); line-height: 1.3; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.case-gallery > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case-gallery > * { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.metric { display: grid; gap: var(--space-3); padding: var(--space-8); background: var(--bg-primary); }
.metric__value { font-size: var(--fs-h1); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h1); line-height: 1; }
.metric__value--placeholder { color: var(--text-muted); }
.metric__label { color: var(--text-secondary); font-size: var(--fs-small); }
.next-project { position: relative; display: grid; gap: var(--space-4); padding-block: var(--section-space-sm); border-top: var(--hairline); text-align: center; }
.next-project__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); font-weight: var(--fw-semibold); transition: color var(--dur-fast); }
.next-project:hover .next-project__title { color: var(--accent-text); }

/* ==========================================================================
   39. COMPANY — statement, values, team, clocks
   ========================================================================== */
.statement { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.75rem); font-weight: var(--fw-medium); line-height: 1.12; letter-spacing: var(--ls-h1); max-width: 24ch; }
.statement em { font-style: normal; color: var(--accent-text); }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--grid-gap); }
.story__body { display: grid; gap: var(--space-6); color: var(--text-secondary); font-size: var(--fs-body-lg); max-width: 62ch; }
.story__body strong { color: var(--text-primary); font-weight: var(--fw-medium); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.value { display: grid; align-content: start; gap: var(--space-4); padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--bg-secondary); min-height: 18rem; }
.value__index { color: var(--accent-text); }
.value__title { font-size: var(--fs-h4); margin-top: auto; }
.value__desc { color: var(--text-secondary); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.team-card { display: grid; gap: var(--space-4); }
.team-card__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; }
.team-card__name { font-size: var(--fs-h5); font-weight: var(--fw-medium); }
.team-card__role { color: var(--text-muted); }
.clocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.clock { display: grid; gap: var(--space-2); padding: var(--space-6); background: var(--bg-primary); }
.clock__city { color: var(--text-muted); }
.clock__time { font-size: var(--fs-h2); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h2); line-height: 1; font-variant-numeric: tabular-nums; }
.clock__zone { color: var(--text-secondary); font-size: var(--fs-small); }
.clocks--compact .clock { padding: var(--space-4) var(--space-5); }
.clocks--compact .clock__time { font-size: var(--fs-h4); }

/* ==========================================================================
   40. BLOG — listing, search, featured, card states
   ========================================================================== */
.search { position: relative; width: min(100%, 22rem); }
.search svg { position: absolute; left: var(--space-5); top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search .input { min-height: 48px; padding-left: calc(var(--space-5) + 28px); border-radius: var(--radius-pill); }
.featured-post { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding-bottom: var(--section-space-sm); }
.featured-post__media { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-950); border: var(--hairline); }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
.featured-post:hover .featured-post__media img { transform: scale(1.04); }
.featured-post__body { display: grid; gap: var(--space-6); }
.featured-post__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--ls-h2); }
.featured-post:hover .featured-post__title { color: var(--accent-text); }
.featured-post__excerpt { color: var(--text-secondary); font-size: var(--fs-body-lg); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); color: var(--text-muted); }
.post-meta__cat { color: var(--accent-text); }
.author { display: flex; align-items: center; gap: var(--space-3); }
.author__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); }
.author__avatar span { width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%); }
.author__name { font-weight: var(--fw-medium); font-size: var(--fs-small); }
.author__role { color: var(--text-muted); font-size: var(--fs-small); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--grid-gap); }
.post-grid .article-card[hidden], .featured-post[hidden] { display: none; }
.article-card__soon { position: absolute; top: var(--space-4); left: var(--space-4); z-index: 1; }
.article-card--soon { cursor: default; }
.article-card--soon .article-card__media img { filter: saturate(0.6) brightness(0.8); }
.article-card__excerpt { color: var(--text-secondary); font-size: var(--fs-small); }

/* ==========================================================================
   41. ARTICLE (single post)
   ========================================================================== */
.article-header { display: grid; gap: var(--space-6); max-width: 56rem; }
.article-header__title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: var(--ls-h1); }
.article-header__lead { font-size: var(--fs-body-lg); color: var(--text-secondary); max-width: 52ch; }
.article-header__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); padding-top: var(--space-6); border-top: var(--hairline); }
.article-cover { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-950); margin-top: var(--space-12); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) minmax(0, 1fr); gap: var(--grid-gap); }
.toc { position: sticky; top: calc(var(--header-height) + var(--space-8)); align-self: start; display: grid; gap: var(--space-4); }
.toc__title { color: var(--text-muted); }
.toc ol { list-style: none; display: grid; gap: var(--space-3); border-left: var(--hairline); }
.toc a { display: block; padding-left: var(--space-4); margin-left: -1px; border-left: 1px solid transparent; font-size: var(--fs-small); color: var(--text-secondary); transition: color var(--dur-fast), border-color var(--dur-fast); }
.toc a:hover, .toc a.is-active { color: var(--text-primary); border-left-color: var(--accent); }
.article-body { font-size: var(--fs-body-lg); }
.article-body.prose { max-width: 44rem; }
.share { display: flex; align-items: center; gap: var(--space-2); }
.share__label { color: var(--text-muted); margin-right: var(--space-2); }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-primary); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.share a:hover, .share button:hover { background: var(--text-primary); color: var(--text-inverse); border-color: var(--text-primary); }
.share svg { width: 16px; height: 16px; }
.share button.is-copied { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.callout { padding: var(--space-6) var(--space-8); border: 1px solid var(--border-strong); border-left: 2px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--text-primary); }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: calc(var(--z-header) + 1); height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--read-progress, 0)); }

/* ==========================================================================
   42. CONTACT
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-height) + var(--space-8)); display: grid; gap: var(--space-12); }
.contact-details { display: grid; gap: var(--space-6); }
.contact-details dt { color: var(--text-muted); margin-bottom: var(--space-1); }
.contact-details dd a { font-size: var(--fs-h5); font-weight: var(--fw-medium); }
.next-steps { counter-reset: step; display: grid; gap: var(--space-5); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); }
.next-steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--accent-text); padding-top: 0.2em; }
.next-steps strong { display: block; font-weight: var(--fw-medium); margin-bottom: var(--space-1); }
.next-steps p { color: var(--text-secondary); font-size: var(--fs-small); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--grid-gap); padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--bg-secondary); border: var(--hairline); border-radius: var(--radius-lg); }
.contact-form .field--full, .contact-form .form-actions, .contact-form .form-status { grid-column: 1 / -1; }
.contact-form .field__label .req { color: var(--accent-text); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.form-note { color: var(--text-muted); font-size: var(--fs-small); max-width: 36ch; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; gap: var(--space-6); justify-items: start; padding: clamp(2rem, 1.5rem + 3vw, 4rem); background: var(--bg-secondary); border: var(--hairline); border-radius: var(--radius-lg); }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); }
.form-success__icon svg { width: 28px; height: 28px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.7; }
/* <picture> must fill fixed-ratio media frames */
.featured-post__media picture, .article-card__media picture, .article-cover picture, .related-card__media picture { display: block; width: 100%; height: 100%; }
.featured-post__media img, .article-card__media img, .article-cover img, .related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-cover img { object-position: 50% 15%; }


/* Tech-grid CTA tile follows the light theme */
:root[data-theme="light"] .tech-tile--cta { background: var(--violet-100); }
:root[data-theme="light"] .tech-tile--cta .tech-tile__name { color: var(--ink-950); }
:root[data-theme="light"] .tech-tile--cta .tech-tile__cat,
:root[data-theme="light"] .tech-tile--cta .tech-tile__plus { color: #5A35F0; }
:root[data-theme="light"] .tech-tile--cta:hover { background: var(--violet-600); }
:root[data-theme="light"] .tech-tile--cta:hover .tech-tile__name,
:root[data-theme="light"] .tech-tile--cta:hover .tech-tile__cat,
:root[data-theme="light"] .tech-tile--cta:hover .tech-tile__plus { color: var(--white); }

/* Full-width rounded image banner (Company page) */
.feature-banner { border-radius: var(--radius-lg); overflow: hidden; border: var(--hairline); background: var(--ink-50); box-shadow: var(--shadow-md); }
.feature-banner picture, .feature-banner img { display: block; width: 100%; height: auto; }

/* Avoid double section padding before the closing CTA band */
.section:not(.section-stack__item):has(+ .cta-band) { padding-bottom: 0; }
.cta-band:not(.section-stack__cover) { padding-top: var(--section-space-sm); }

/* Company story — image in the left column */
.story__aside { display: grid; gap: var(--space-8); align-content: start; }
.story__media { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; border: var(--hairline); background: var(--ink-50); }
.story__media picture, .story__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   43. CONTACT FORM — premium card
   ========================================================================== */
.contact-form { background: var(--surface); box-shadow: var(--shadow-md); row-gap: var(--space-8); }
.contact-form__head { grid-column: 1 / -1; display: grid; gap: var(--space-3); padding-bottom: var(--space-6); border-bottom: var(--hairline); }
.contact-form__title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); line-height: 1.15; }
.contact-form__sub { color: var(--text-secondary); font-size: var(--fs-small); }
.contact-form .req { color: var(--accent-text); }
.contact-form .field__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); letter-spacing: -0.005em; color: var(--text-primary); }
.contact-form .field { gap: var(--space-3); align-content: start; }
.contact-form .input, .contact-form .select, .contact-form .textarea { background-color: var(--bg-primary); border-radius: var(--radius-md); }
.contact-form .option span { font-weight: var(--fw-medium); background: var(--bg-primary); }
.contact-form .option input:checked + span { background: var(--accent); }
/* Light theme: pure white card on the page, soft grey inputs */
:root[data-theme="light"] .contact-form { background: var(--white); border-color: rgba(8, 8, 11, 0.08); box-shadow: 0 1px 2px rgba(20, 16, 50, 0.04), 0 30px 70px -30px rgba(20, 16, 50, 0.22); }
:root[data-theme="light"] .contact-form .input,
:root[data-theme="light"] .contact-form .select,
:root[data-theme="light"] .contact-form .textarea,
:root[data-theme="light"] .contact-form .option span { background-color: var(--ink-50); border-color: rgba(8, 8, 11, 0.12); }
:root[data-theme="light"] .contact-form .input:focus-visible,
:root[data-theme="light"] .contact-form .select:focus-visible,
:root[data-theme="light"] .contact-form .textarea:focus-visible { background-color: var(--white); }
:root[data-theme="light"] .contact-form .option input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
:root[data-theme="light"] .form-success { background: var(--white); }

/* ==========================================================================
   44. MEGA MENU (Expertise)
   Opens on hover / focus (desktop) or via the chevron button. Left: services
   (hover switches the panel, click opens the page). Right: capabilities.
   ========================================================================== */
.nav__item { position: static; display: flex; align-items: center; gap: 2px; }
.nav__chev { display: grid; place-items: center; width: 24px; height: 24px; color: var(--text-secondary); border-radius: var(--radius-xs); }
.nav__chev svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.has-mega.is-open .nav__chev svg { transform: rotate(180deg); }
.has-mega.is-open > .nav__link { color: var(--text-primary); }

.mega {
  position: absolute;
  top: calc(var(--header-height) - 8px);
  left: 50%;
  width: min(72rem, calc(100vw - var(--gutter) * 2));
  padding-top: 8px; /* hover bridge */
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.has-mega.is-open .mega, .no-js .has-mega:hover .mega, .has-mega:focus-within:not(.is-closed) .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s;
}
.has-mega.is-closed .mega { opacity: 0; visibility: hidden; pointer-events: none; }
.mega__inner {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
:root[data-theme="light"] .mega__inner { box-shadow: 0 30px 70px -24px rgba(20, 16, 50, 0.25); }
.mega__tabs { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-5); border-right: var(--hairline); background: var(--bg-secondary); }
.mega__tab {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-md);
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--text-secondary);
  border: 1px solid transparent;
  transition: color var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast);
}
.mega__num { color: var(--text-muted); font-size: 0.6875rem; }
.mega__tab-arrow { width: 16px; height: 16px; margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.mega__tab:hover, .mega__tab.is-active { color: var(--text-primary); background: var(--bg-primary); border-color: var(--border-strong); }
.mega__tab.is-active { color: var(--accent-text); box-shadow: inset 2px 0 0 var(--accent); }
.mega__tab.is-active .mega__num { color: var(--accent-text); }
.mega__tab.is-active .mega__tab-arrow { opacity: 1; transform: none; }
.mega__panels { padding: var(--space-8) var(--space-10) var(--space-6); }
.mega__panel { display: grid; gap: var(--space-4); }
.mega__panel[hidden] { display: none; }
.mega__panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--space-4); border-bottom: var(--hairline); }
.mega__overview { font-size: var(--fs-small); color: var(--accent-text); }
.mega__lead { font-size: var(--fs-h5); font-weight: var(--fw-medium); letter-spacing: var(--ls-h4); }
.mega__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-6); }
.mega__item { display: grid; gap: var(--space-1); padding: var(--space-3); margin-inline: calc(var(--space-3) * -1); border-radius: var(--radius-sm); transition: background-color var(--dur-fast); }
.mega__item:hover { background: var(--bg-secondary); }
.mega__item-title { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-primary); }
.mega__item:hover .mega__item-title { color: var(--accent-text); }
.mega__item-desc { font-size: 0.8125rem; line-height: 1.45; color: var(--text-muted); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-5) var(--space-8); border-top: var(--hairline); background: var(--bg-secondary); color: var(--text-secondary); font-size: var(--fs-small); }

/* Mobile menu: service sub-links */
.mobile-menu__sub { display: grid; gap: var(--space-2); padding: var(--space-3) 0 var(--space-4) calc(var(--space-4) + 1.5rem); border-bottom: var(--hairline); }
.mobile-menu__sub a { font-size: var(--fs-body); color: var(--text-secondary); }
.mobile-menu__sub a:hover { color: var(--text-primary); }
.mobile-menu__list > li:has(.mobile-menu__sub) > .mobile-menu__link { border-bottom: 0; }
.tech-grid--fixed .tech-tile { aspect-ratio: auto; min-height: 9.5rem; }

/* WordPress: uploaded logo image in the header */
.logo__img { display: block; height: 32px; width: auto; max-width: 200px; object-fit: contain; }
/* WordPress: editor content inside articles */
.article-body img { border-radius: var(--radius-md); }
.article-body figure { margin-block: var(--space-8); }
.article-body figcaption { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-2); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-16); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-secondary); font-size: var(--fs-small); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--text-primary); color: var(--text-inverse); border-color: var(--text-primary); }
.work-card__live { position: relative; z-index: 3; justify-self: start; }
.case-live { margin-top: var(--space-8); }

/* Hero: large violet-blue orb behind the video */
.hero__stage { position: relative; isolation: isolate; }
.hero__orb {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 50%, #7E6BFF 0%, #5B36F5 48%, #3B2BC4 78%, #2A1C8E 100%);
  box-shadow: 0 60px 120px -40px rgba(91, 54, 245, 0.55), inset 0 -30px 80px rgba(20, 10, 70, 0.35);
  animation: hero-orb 14s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
@keyframes hero-orb {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-48%, -52%) scale(1.04); }
}
@media (max-width: 1023px) { .hero__orb { width: 80%; } }
/* Mobile: keep the orb inside the gap so it never covers the hero buttons */
.hero__copy { position: relative; z-index: 1; }
@media (max-width: 767px) { .hero__orb { width: 60%; } }
@media (prefers-reduced-motion: reduce) { .hero__orb { animation: none; } }
/* Hero video badges (floating pills on the video corners) */
.hero__badge {
  position: absolute;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.7em 1.15em;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 30px -12px rgba(20, 16, 50, 0.35);
  pointer-events: none;
  animation: hero-badge-float 6s var(--ease-in-out) infinite alternate;
}
.hero__badge--tl { top: 4%; left: -3%; }
.hero__badge--bl { bottom: 4%; left: -3%; animation-delay: -2s; }
.hero__badge--br { bottom: -5%; right: -3%; animation-delay: -4s; }
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
@keyframes hero-badge-float { from { translate: 0 0; } to { translate: 0 -6px; } }
@media (max-width: 767px) {
  /* Mobile: smaller pills sitting half outside the video edges, so they don't cover it */
  .hero__badge { font-size: 0.5625rem; letter-spacing: 0.06em; padding: 0.55em 0.85em; gap: 0.45em; box-shadow: 0 6px 18px -10px rgba(20, 16, 50, 0.35); }
  .hero__badge-dot { width: 5px; height: 5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
  .hero__badge { animation: none; }
  .hero__badge--tl { top: -12px; left: 12px; }
  .hero__badge--bl { top: auto; bottom: -12px; left: 12px; }
  .hero__badge--br { bottom: -12px; right: 12px; }
  .hero__stage { margin-bottom: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }
/* Hero left rail: giant vertical wordmark (desktop only, decorative) */
.hero__rail { display: none; }
@media (min-width: 1024px) {
  .hero__content { grid-template-columns: auto minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hero__rail {
    display: flex; align-items: flex-end; gap: clamp(0.75rem, 1.2vw, 1.25rem);
    align-self: stretch;
    margin-left: calc(var(--gutter) * -0.35);
    pointer-events: none; user-select: none;
  }
  .hero__rail-word, .hero__rail-label { writing-mode: vertical-rl; transform: rotate(180deg); }
  .hero__rail-word {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(5.5rem, 8.2vw, 9.5rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    background: linear-gradient(0deg, color-mix(in srgb, var(--text-primary) 16%, transparent), color-mix(in srgb, var(--text-primary) 5%, transparent));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .hero__rail-label { font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
}

/* ==========================================================================
   45. CLIENT REVIEWS
   ========================================================================== */
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.review-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-8);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: var(--bg-secondary);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.review-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.review-card--featured { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: var(--white); }
.review-card__stars { display: flex; gap: 4px; color: #F5B227; }
.review-card__stars svg { width: 18px; height: 18px; }
.review-card__quote { font-size: var(--fs-h5); font-weight: var(--fw-medium); line-height: 1.4; letter-spacing: var(--ls-h4); color: var(--text-primary); }
.review-card--featured .review-card__quote { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: var(--ls-h3); color: var(--white); }
.review-card__quote::before { content: "“"; }
.review-card__quote::after { content: "”"; }
.review-card__author { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-6); border-top: var(--hairline); }
.review-card--featured .review-card__author { border-top-color: rgba(255, 255, 255, 0.25); }
.review-card__avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent-text); font-weight: var(--fw-semibold); }
.review-card--featured .review-card__avatar { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__name { font-weight: var(--fw-semibold); }
.review-card__role { font-size: var(--fs-small); color: var(--text-muted); }
.review-card--featured .review-card__name, .review-card--featured .review-card__role { color: var(--white); }
.review-card--featured .review-card__role { opacity: 0.8; }
.review-card--placeholder .review-card__quote { color: var(--text-muted); font-style: italic; }
.review-card--featured.review-card--placeholder .review-card__quote { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 1023px) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .review-card--featured { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .reviews { grid-template-columns: 1fr; } }


/* Work page: cards show only the project name (details live on the project page) */
.work-card__body--name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.work-card__body--name .work-card__title, .work-grid > :first-child .work-card__body--name .work-card__title { font-size: var(--fs-h3); }
.work-card__go { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.work-card__go svg { width: 18px; height: 18px; }
.work-card:hover .work-card__go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }

/* Reviews: source label + single-review layout */
.review-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.review-card__source { font-size: 0.6875rem; color: var(--text-muted); }
.review-card--featured .review-card__source { color: rgba(255, 255, 255, 0.8); }

/* Reviews intro card (violet, points to the reviews) */
.review-intro {
  grid-column: span 2;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-10);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: var(--accent);
  border-radius: var(--radius-lg);
  color: var(--white);
}
.review-intro__text { font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: 1.08; letter-spacing: var(--ls-h2); max-width: 16ch; color: var(--white); }
.review-intro__arrow {
  justify-self: end;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  color: var(--white);
  animation: review-nudge 2.4s var(--ease-in-out) infinite;
}
.review-intro__arrow svg { width: 26px; height: 26px; }
@keyframes review-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .review-intro__arrow { animation: none; } }
@media (max-width: 1023px) { .review-intro { grid-column: 1 / -1; } }
@media (max-width: 767px) { .review-intro__arrow { transform: rotate(90deg); animation: none; width: 56px; height: 56px; } }

/* Rating-only review card (no quote) */
.review-card__score { display: grid; align-content: start; gap: var(--space-3); }
.review-card__score-value { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: var(--fw-semibold); letter-spacing: var(--ls-display); line-height: 1; }
.review-card__score-label { color: var(--text-secondary); }
.review-card__score .link-arrow { justify-self: start; margin-top: var(--space-2); font-size: var(--fs-small); }

/* Tables inside articles */
.prose .wp-block-table, .prose figure:has(table) { margin-block: var(--space-8); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: var(--hairline); }
.prose th { color: var(--text-primary); font-weight: var(--fw-semibold); background: var(--bg-secondary); }
.prose .wp-block-quote, .prose blockquote { margin-block: var(--space-8); }
.prose .wp-block-table table, .prose .wp-block-table th, .prose .wp-block-table td, .prose .wp-block-table thead { border: 0; }
.prose .wp-block-table td, .prose .wp-block-table th { border-bottom: var(--hairline); }
.prose .wp-block-table { border: var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }

/* Header WhatsApp link (left of the theme toggle), same circle style as the toggle */
.header-wa {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.header-wa:hover { border-color: var(--text-primary); color: var(--text-primary); }
.header-wa:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header-wa svg { width: 20px; height: 20px; }
@media (max-width: 379px) { .site-header__actions { gap: var(--space-2); } }

/* Header search button + command-palette search dialog */
.header-search {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.header-search:hover { border-color: var(--text-primary); }
.header-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header-search svg { width: 19px; height: 19px; }
.kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  font: 500 12px/1 var(--font-mono, ui-monospace, monospace); color: var(--text-secondary);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 7px;
  background: var(--bg-primary);
}
.site-search { position: fixed; inset: 0; z-index: 250; display: grid; justify-items: center; align-items: start; padding: clamp(16px, 11vh, 120px) 16px 16px; }
.site-search[hidden] { display: none; }
.site-search__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 11, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ss-fade .18s ease-out; }
.site-search__panel {
  position: relative; width: min(760px, 100%); max-height: min(640px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(8, 8, 11, 0.55);
  animation: ss-in .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes ss-fade { from { opacity: 0; } }
@keyframes ss-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.site-search__bar { display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--border); }
.site-search__icon { width: 22px; height: 22px; flex: none; color: var(--accent); }
.site-search__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  font: 400 18px/1.2 var(--font-sans); color: var(--text-primary);
  background: transparent; border: 1.5px solid var(--accent); border-radius: 10px; outline: none;
}
.site-search__input::placeholder { color: var(--text-muted); }
.site-search__input::-webkit-search-cancel-button { display: none; }
.site-search__esc { cursor: pointer; }
.site-search__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.site-search__hint, .site-search__empty { margin: 0; padding: 40px 28px; text-align: center; color: var(--text-secondary); font-size: 15px; }
.site-search__results { list-style: none; margin: 0; padding: 8px; }
.site-search__item { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; color: inherit; text-decoration: none; }
[aria-selected="true"] > .site-search__item, .site-search__item:hover { background: var(--bg-primary); box-shadow: inset 3px 0 0 var(--accent); }
.site-search__kind { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.site-search__title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.site-search__desc { font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site-search mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.site-search__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.site-search__foot > span { display: inline-flex; align-items: center; gap: 6px; }
.site-search__count { margin-left: auto; color: var(--text-muted); }
html.search-open { overflow: hidden; }
@media (max-width: 767px) {
  .site-search { padding: 12px; }
  .site-search__bar { padding: 12px; gap: 10px; }
  .site-search__input { font-size: 16px; height: 44px; }
  .site-search__foot > span:not(.site-search__count) { display: none; }
  .site-search__foot { justify-content: flex-end; }
}
@media (max-width: 379px) { .header-search { width: 40px; height: 40px; } .header-wa, .theme-toggle { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .site-search__panel, .site-search__backdrop { animation: none; } }

/* Brand logo images: dark-theme version by default, light version on the light theme */
.logo__img { height: 34px; max-width: 220px; }
.logo__img--on-light { display: none; }
:root[data-theme="light"] .logo__img--on-dark { display: none; }
:root[data-theme="light"] .logo__img--on-light { display: block; }
.site-footer__wordmark { font-size: clamp(3rem, calc(19.6vw * 8 / var(--wm-chars, 8)), 20rem); }

@media (max-width: 767px) {
  .logo__img { height: 28px; }
  .site-header__actions { gap: 8px; }
  .header-search, .header-wa, .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .logo__img { height: 24px; }
  .site-header__actions { gap: 6px; }
  .header-search, .header-wa, .theme-toggle, .menu-toggle { width: 36px; height: 36px; }
}
