/* ============================================================
   Cape Town Mural Arts — Website UI kit styles
   Layers on top of ../../colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--c-ink); color: var(--fg-on-ink); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* visually-hidden (screen-reader / SEO only) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* page container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ochre);
  margin-bottom: 24px;
}
.eyebrow__rule { width: 22px; height: 1px; background: currentColor; flex-shrink: 0; }
.surface-plaster .eyebrow, .surface-paper .eyebrow, .surface-warm .eyebrow { color: var(--c-brick); }
.surface-terracotta .eyebrow, .surface-brick .eyebrow { color: var(--c-paper); }

/* section header */
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-header .display-l { max-width: 1100px; }

/* ============================================================
   Painted placeholder (used everywhere instead of stock imagery)
   ============================================================ */
.painted-ph {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.painted-ph__tag {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.painted-ph__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c-ochre); }

/* ============================================================
   Buttons — pill + ochre arrow disc (THE signature element)
   ============================================================ */
.ctma-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: var(--r-pill);
  border: none;
  text-decoration: none;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out);
}
.ctma-btn--sm { font-size: 12px; padding: 6px 6px 6px 20px; gap: 10px; }
.ctma-btn--noarrow { padding-right: 26px; }
.ctma-btn__disc {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--c-ochre);
  color: var(--c-ink);
  display: grid; place-items: center;
  transition: transform var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out);
}
.ctma-btn--sm .ctma-btn__disc { width: 34px; height: 34px; }
.ctma-btn__disc svg { width: 18px; height: 18px; transition: transform var(--dur-quick) var(--ease-out); }
.ctma-btn--sm .ctma-btn__disc svg { width: 14px; height: 14px; }
.ctma-btn:hover .ctma-btn__disc { transform: scale(1.08); background: var(--c-ochre-deep); }
.ctma-btn:hover .ctma-btn__disc svg { transform: translateX(2px); }
.ctma-btn:active { transform: scale(0.98); }
.ctma-btn--primary { background: var(--c-plaster); color: var(--c-ink); }
.ctma-btn--inverse { background: var(--c-ink-soft); color: var(--c-plaster); }
.surface-plaster .ctma-btn--inverse, .surface-paper .ctma-btn--inverse, .surface-warm .ctma-btn--inverse { background: var(--c-ink); }
.ctma-btn--ghost { background: transparent; color: inherit; padding-left: 0; }

/* ============================================================
   Site header (floating, sticky)
   ============================================================ */
.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1380px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 22px;
  background: var(--c-ink);
  border-radius: var(--r-pill);
  z-index: 100;
  box-shadow: var(--shadow-header);
}
.site-header__lockup {
  display: flex; align-items: center; gap: 14px;
  color: var(--c-plaster);
  text-decoration: none;
}
.site-header__mark { width: 36px; height: 36px; }
.site-header__wordmark {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.site-header__wordmark span { display: block; }
.site-header__menu {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--c-ink-soft);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 22px;
  color: var(--c-plaster);
  border: none;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-header__menu-icon {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--c-plaster);
  color: var(--c-ink);
  display: grid; place-items: center;
}
.site-header__menu-icon svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .site-header__wordmark { font-size: 11px; }
  .site-header__mark { width: 30px; height: 30px; }
}

/* Menu overlay */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.97);
  z-index: 90;
  overflow-y: auto;
  padding: 110px 0 max(60px, env(safe-area-inset-bottom));
  animation: menuFade var(--dur-base) var(--ease-out);
}
@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
.menu-overlay__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}
.menu-row { border-top: 1px solid var(--c-border-ink); }
.menu-row:last-of-type { border-bottom: 1px solid var(--c-border-ink); }
.menu-row__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  background: transparent; border: none;
  color: var(--c-plaster);
}
.menu-row__label {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color var(--dur-quick) var(--ease-out);
}
.menu-row__head:hover .menu-row__label { color: var(--c-ochre); }
.menu-row__label--active { color: var(--c-ochre); }
/* Original ampersand — the serif italic et-ligature, set against the
 * uppercase sans label for a more characterful glyph. */
.menu-row__amp {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 0.04em;
  font-size: 1.04em;
}
.menu-row__chev {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--c-ink-soft);
  display: grid; place-items: center;
  color: var(--c-plaster);
  flex-shrink: 0;
}
.menu-row__chev svg { width: 18px; height: 18px; }
.menu-row__list {
  display: flex; flex-direction: column;
  padding-bottom: 28px;
  gap: 14px;
}
.menu-row__list a {
  display: flex; align-items: baseline; gap: 22px;
  text-decoration: none;
  color: var(--c-plaster);
  padding: 6px 0;
}
.menu-row__num {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--c-ochre);
  font-size: 14px;
  letter-spacing: 0;
  width: 30px;
}
.menu-row__sub {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.menu-row__list a:hover .menu-row__sub { color: var(--c-ochre); }
.menu-overlay__cta { margin-top: 56px; }
.menu-overlay__foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-ink);
  display: flex; flex-wrap: wrap; gap: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-on-ink-muted);
}
/* Mobile: tighten the menu so all top-level items fit in the viewport instead
   of the last one being cut off below the fold. */
@media (max-width: 600px) {
  .menu-overlay { padding: 84px 0 max(28px, env(safe-area-inset-bottom)); }
  .menu-row__head { padding: 14px 0; }
  .menu-row__label { font-size: 30px; }
  .menu-row__chev { width: 40px; height: 40px; }
  .menu-overlay__cta { margin-top: 28px; }
  .menu-overlay__foot { margin-top: 32px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* dvh tracks the Android URL bar so the hero doesn't jump mid-scroll */
  padding: 220px 32px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--c-plaster);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .painted-ph { width: 100%; height: 100%; aspect-ratio: auto; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0.45) 0%, rgba(26,23,20,0.05) 40%, rgba(26,23,20,0.92) 100%);
}
.hero__bg-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__content { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; width: 100%; }
.hero__content .display-xl { letter-spacing: -0.015em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__crumb {
  position: absolute; bottom: 30px; right: 32px;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--ff-body); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-on-ink-muted); z-index: 1;
}
.hero__crumb-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--c-ochre); }
@media (max-width: 720px) {
  .hero { padding: 180px 20px 64px; min-height: auto; }
  .hero__crumb { display: none; }
}

/* ============================================================
   Positioning statement
   ============================================================ */
.positioning { padding: 96px 0; }
.positioning__lead {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 1300px;
  margin: 0;
  color: var(--c-plaster);
}
.positioning__lead em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--c-ochre);
  letter-spacing: 0;
}

/* ============================================================
   Services grid (home)
   ============================================================ */
.services { padding: 96px 0; border-top: 1px solid rgba(243, 234, 216, 0.25); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 14px;
}
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.service-card .painted-ph { transition: transform var(--dur-base) var(--ease-out); }
.service-card__title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.service-card__title-row h3 { margin: 0; transition: color var(--dur-quick) var(--ease-out); }
.service-card__disc {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--c-ochre);
  color: var(--c-ink);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.service-card__disc svg { width: 16px; height: 16px; }
.service-card:hover .service-card__disc { opacity: 1; transform: translateX(0); }
.service-card:hover .service-card__title-row h3 { color: var(--c-ochre); }
.service-card:hover .painted-ph { transform: scale(1.012); }
.service-card__blurb {
  margin: 8px 0 0;
  color: var(--fg-on-ink-muted);
  font-size: 14px;
}

/* ============================================================
   Featured projects (asymmetric)
   ============================================================ */
.featured { padding: 120px 0; }
.featured__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 56px;
}
.featured__head .section-header { margin-bottom: 0; }
.featured__all {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: none;
  font-family: var(--ff-body); font-weight: 700;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-on-plaster); cursor: pointer;
}
.featured__disc {
  width: 38px; height: 38px;
  border-radius: 999px; background: var(--c-ochre); color: var(--c-ink);
  display: grid; place-items: center;
}
.featured__disc svg { width: 15px; height: 15px; }

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}
/* Uniform 2-column landscape grid (home Featured) */
.featured__grid--cols2 {
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  align-items: start;
}
.featured-card {
  text-decoration: none; color: inherit;
  grid-column: span 1;
  min-width: 0;
}
/* Uniform image box for the 2-col featured grid (16:9), crop-to-fill */
.featured__grid--cols2 .painted-ph,
.featured__grid--cols2 .painted-ph--slotted {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
}
.featured__grid--cols2 .ph-slot-host { position: absolute !important; inset: 0 !important; }
.featured__grid--cols2 image-slot { width: 100% !important; height: 100% !important; }
.featured__grid--cols2 img.painted-ph__photo {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; object-fit: cover !important;
}
.featured-card--tall { grid-row: span 2; grid-column: span 2; }
.featured-card--short { grid-column: span 2; }
@media (max-width: 900px) {
  .featured__grid { grid-template-columns: 1fr 1fr; }
  .featured-card--tall, .featured-card--short { grid-column: span 2; grid-row: auto; }
  .featured__grid--cols2 { grid-template-columns: 1fr; }
}
.featured-card__meta {
  display: inline-flex; gap: 10px; align-items: center;
  margin-top: 16px; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-on-plaster-muted); font-weight: 600;
}
.featured-card__note { margin: 6px 0 0; color: var(--fg-on-plaster-muted); font-size: 16px; }

/* Featured card hover — matches service card animation */
.featured-card .painted-ph { transition: transform var(--dur-base) var(--ease-out); }
.featured-card:hover .painted-ph { transform: scale(1.012); }
.featured-card h3 { transition: color var(--dur-quick) var(--ease-out); }
.featured-card:hover h3 { color: var(--c-ochre); }

/* Breadcrumb link hover */
.page-hero__crumb a {
  transition: color var(--dur-quick) var(--ease-out);
}
.page-hero__crumb a:hover { color: var(--c-ochre); }

/* Body text hyperlinks — case study, about, services */
.case-body__copy a,
.about-founder__body a,
.service-row__body a {
  transition: color var(--dur-quick) var(--ease-out);
}
.case-body__copy a:hover,
.about-founder__body a:hover,
.service-row__body a:hover { color: var(--c-ochre); }

/* ============================================================
   Why hand-painted
   ============================================================ */
.why { padding: 120px 0; color: var(--fg-on-terracotta); }
.why__list {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 56px;
}
@media (max-width: 900px) { .why__list { grid-template-columns: 1fr; gap: 24px; } }
.why__list li { display: flex; gap: 22px; align-items: flex-start; }
.why__num {
  font-family: var(--ff-serif); font-style: italic;
  font-size: 22px; color: var(--c-paper);
  min-width: 36px;
}
.why__text { font-size: 18px; line-height: 1.5; max-width: 28ch; }
.why .display-l { color: var(--c-paper); }

/* ============================================================
   In Action collage
   ============================================================ */
.in-action { padding: 120px 0; }
.in-action__collage {
  position: relative;
  height: 860px;
  margin-bottom: 64px;
}
.in-action__tile { position: absolute; overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); cursor: pointer; }
.in-action__tile .painted-ph { width: 100%; height: 100%; aspect-ratio: auto; transition: transform var(--dur-base) var(--ease-out); }
.in-action__tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); z-index: 10 !important; }
.in-action__tile:hover .painted-ph { transform: scale(1.04); }

/* original four */
.in-action__tile--a { left: 0;    top: 0;   width: 30%; height: 55%; z-index: 1; }
.in-action__tile--b { right: 4%; top: 8%;   width: 38%; height: 38%; z-index: 1; }
.in-action__tile--c { left: 28%; top: 35%;  width: 30%; height: 60%; z-index: 2; }
.in-action__tile--d { right: 0;  top: 46%; width: 36%; height: 48%; z-index: 2; }

/* three new slots */
/* e — square, bottom-left (below tile a) */
.in-action__tile--e { left: 0;    top: 58%;   width: 25%; height: 34%; z-index: 3; }

.in-action__text { text-align: left; max-width: 1100px; }

/* Square 3×2 grid layout (used on Process page) */
.in-action__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.in-action__cell {
  overflow: hidden;
  border-radius: var(--r-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.in-action__cell .painted-ph { border-radius: var(--r-card); overflow: hidden; transition: transform var(--dur-base) var(--ease-out); }
.in-action__cell:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.in-action__cell:hover .painted-ph { transform: scale(1.04); }

@media (max-width: 760px) {
  .in-action__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .in-action__collage {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .in-action__tile {
    position: relative;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
  }
  /* square tiles keep 1:1, portrait keep 3:4 */
  .in-action__tile--e .painted-ph,
  .in-action__tile--f .painted-ph { aspect-ratio: 1 / 1 !important; }
  .in-action__tile--g .painted-ph { aspect-ratio: 3 / 4 !important; }
  .in-action__tile--a .painted-ph,
  .in-action__tile--c .painted-ph { aspect-ratio: 3 / 4 !important; }
  .in-action__tile--b .painted-ph,
  .in-action__tile--d .painted-ph { aspect-ratio: 4 / 3 !important; }
}

/* ============================================================
   Process summary + full timeline
   ============================================================ */
.process-summary { padding: 64px 0; border-top: 1px solid var(--c-border-plaster); }
.process-page { padding: 120px 0; }
.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
  padding-left: 72px;
  display: flex; flex-direction: column;
  gap: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--fg-on-plaster-faint);
}
.timeline__step { position: relative; }
.timeline__node {
  position: absolute;
  left: -72px;
  top: 6px;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--c-brick);
  color: var(--c-paper);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.timeline__body h3, .timeline__body h4 { margin: 0 0 6px; font-size: 20px; }
.timeline__body p { margin: 0; max-width: 640px; color: var(--fg-on-plaster-muted); font-size: 16px; }
.timeline--full { gap: 64px; }

/* ============================================================
   Founder quote
   ============================================================ */
.founder { padding: 140px 0; }
.founder__quote {
  margin: 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.3;
  color: var(--c-plaster);
  max-width: 1100px;
  text-wrap: balance;
}
.founder__cite {
  display: block;
  margin-top: 28px;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ochre);
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta { padding: 140px 0; }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero { padding: 200px 0 100px; position: relative; }
.page-hero__crumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-on-ink-muted); margin-bottom: 36px;
}
.page-hero__crumb a { text-decoration: none; color: var(--c-plaster); }
.page-hero__crumb-current { color: var(--c-ochre); }
.page-hero .display-xl { letter-spacing: -0.015em; }
/* Mobile: the 200px/100px desktop padding leaves a huge gap under the floating
   header and below the intro copy. Tighten it — the header is only ~96px tall. */
@media (max-width: 720px) {
  .page-hero { padding: 112px 0 44px; }
  .page-hero__crumb { margin-bottom: 22px; }
}

/* ============================================================
   Work page
   ============================================================ */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 48px;
}
.filter-tag {
  border: 1px solid var(--c-border-ink);
  background: transparent; color: var(--c-plaster);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--ff-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all var(--dur-quick) var(--ease-out);
}
.filter-tag:hover { background: var(--c-ink-soft); }
.filter-tag--active { background: var(--c-ochre); color: var(--c-ink); border-color: transparent; }

/* Language-switcher filter */
.page-hero__top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch__btn {
  padding: 9px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  color: var(--c-plaster);
  opacity: 0.55;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-switch__btn:last-child { border-right: none; }
.lang-switch__btn:hover { opacity: 1; background: rgba(255,255,255,0.07); }
.lang-switch__btn--active { background: var(--c-ochre); color: var(--c-ink); opacity: 1; }
@media (max-width: 600px) {
  /* display:flex (not inline-flex) so the row is viewport-constrained and the
     wrap actually triggers — otherwise the pills stay on one line and clip. */
  .lang-switch { display: flex; flex-wrap: wrap; max-width: 100%; border-radius: 16px; }
  .lang-switch__btn { font-size: 10px; padding: 8px 13px; }
}

.work-grid-section { padding: 0 0 120px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .work-grid { grid-template-columns: 1fr; } }
.work-card { text-decoration: none; color: inherit; display: block; min-width: 0; }
/* Force every work-card image to a uniform 4:3 box regardless of the
   source photo OR a user-dropped slot image. object-fit:cover crops. */
.work-card .painted-ph,
.work-card .painted-ph--slotted {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  height: auto !important;
}
.work-card .ph-slot-host {
  position: absolute !important;
  inset: 0 !important;
}
.work-card image-slot {
  width: 100% !important;
  height: 100% !important;
}
.work-card img.painted-ph__photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.work-card .painted-ph { transition: transform var(--dur-base) var(--ease-out); }
.work-card:hover .painted-ph { transform: scale(1.008); }
.work-card__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.work-card__meta {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-on-ink-muted); font-weight: 600;
}
.work-card__row h3 { margin: 0; transition: color var(--dur-quick) var(--ease-out); }
.work-card:hover .work-card__row h3 { color: var(--c-ochre); }
.work-card__disc {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--c-ochre);
  color: var(--c-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--dur-base) var(--ease-out);
}
.work-card__disc svg { width: 14px; height: 14px; }
.work-card:hover .work-card__disc { opacity: 1; transform: translateX(0); }

.founder-cta { padding: 120px 0; }

/* ============================================================
   Services page rows
   ============================================================ */
.services-page { padding: 80px 0 120px; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--c-border-plaster);
}
.service-row:last-of-type { border-bottom: none; }
.service-row--reverse .service-row__media { order: 2; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .service-row--reverse .service-row__media { order: 0; }
}

/* ============================================================
   Process aside (3-col grid on terracotta)
   ============================================================ */
.process-aside { padding: 120px 0; }
.process-aside__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}
@media (max-width: 900px) { .process-aside__grid { grid-template-columns: 1fr; gap: 28px; } }
.process-aside__grid h4 { margin: 0 0 10px; }
.process-aside__grid p { margin: 0; color: rgba(42,17,8,0.72); font-size: 16px; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form { padding: 80px 0 120px; }
.contact-form__container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .contact-form__container { grid-template-columns: 1fr; gap: 48px; }
  /* Mobile stack order: quote form first, then signwriting, then studio details. */
  .contact-form__form { order: -1; }
  .contact-form__aside { display: flex; flex-direction: column; }
  .contact-form__cross { order: -1; border-top: 0; padding-top: 0; }
  .contact-form__studio { padding-top: 32px; border-top: 1px solid var(--c-border-plaster); }
}
.contact-form__aside .display-s { line-height: 1; margin: 0 0 24px; }
.contact-form__details { display: flex; flex-direction: column; gap: 14px; margin: 0 0 40px; }
.contact-form__details li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; font-size: 16px; }
.contact-form__details a { display: inline-block; padding: 10px 0; }
.contact-form__details li span:first-child {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-on-plaster-muted);
}
.contact-form__details a { text-decoration: none; color: var(--fg-on-plaster); }
.contact-form__cross { padding-top: 24px; border-top: 1px solid var(--c-border-plaster); }
.contact-form__cross p { font-size: 16px; margin: 12px 0 0; }
.contact-form__cross a { color: var(--c-brick); }

.contact-form__form { display: flex; flex-direction: column; gap: 28px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-brick);
}
.cf-field input, .cf-field textarea {
  font-family: var(--ff-body); font-size: 16px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--fg-on-plaster-faint);
  padding: 10px 0;
  color: var(--fg-on-plaster);
  outline: none;
  transition: border-color var(--dur-quick) var(--ease-out);
}
.cf-field textarea { resize: vertical; min-height: 80px; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--c-terracotta); }
.cf-field--inline { flex-direction: row; align-items: center; gap: 20px; }
.cf-toggle { display: inline-flex; background: var(--c-paper); border-radius: 999px; padding: 4px; }
.cf-toggle__btn {
  background: transparent; border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--ff-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-on-plaster-muted);
}
.cf-toggle__btn--on { background: var(--c-ink); color: var(--c-plaster); }
.cf-dropzone {
  position: relative;
  border: 1px dashed var(--fg-on-plaster-faint);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px;
  color: var(--fg-on-plaster-muted);
  cursor: pointer;
}
/* Real file input fills the dropzone, invisible — supports both click-to-browse
   and drag-and-drop while keeping the styled box. */
.cf-dropzone__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.cf-dropzone:focus-within { border-color: var(--c-ochre); }
.cf-dropzone__icon {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--c-ochre); color: var(--c-ink);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 22px;
}
/* Accumulated attachment list (add up to 6 across multiple picker sessions). */
.cf-filelist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cf-filelist__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--c-paper);
  border: 1px solid var(--c-border-plaster);
  border-radius: 10px;
  font-size: 14px;
}
.cf-filelist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-on-plaster); }
.cf-filelist__size { flex-shrink: 0; font-size: 12px; color: var(--fg-on-plaster-muted); }
.cf-filelist__remove {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px;
  border: 0; background: transparent; color: var(--fg-on-plaster-muted);
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cf-filelist__remove:hover { background: var(--c-ink); color: var(--c-plaster); }
.cf-submit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.cf-submit__note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-plaster-muted); }
.cf-error { margin-top: 16px; font-size: 15px; color: #b3261e; font-weight: 600; }
.contact-form__sent { background: var(--c-paper); padding: 48px; border-radius: var(--r-card-lg); }
.contact-form__sent p { color: var(--fg-on-plaster-muted); margin: 12px 0 24px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--c-ink); color: var(--fg-on-ink); padding: 120px 32px 40px; }
.site-footer__top { max-width: 1320px; margin: 0 auto; }
.site-footer__brand img { width: 56px; height: 56px; }
.site-footer__cols {
  max-width: 1320px;
  margin: 100px auto 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-top: 60px;
  border-top: 1px solid var(--c-border-ink);
}
@media (max-width: 900px) { .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer__cols p { font-size: 16px; color: var(--fg-on-ink-muted); margin: 8px 0; line-height: 1.55; }
.site-footer__cols ul { display: flex; flex-direction: column; gap: 0; }
/* Links in <p> (email/phone) and the sitemap list get a ≥44px tap target. */
.site-footer__cols ul a { display: inline-block; padding: 11px 0; min-width: 44px; }
.site-footer__cols p a { display: inline-block; padding: 10px 0; }
.site-footer__cols a { color: var(--fg-on-ink); text-decoration: none; font-size: 16px; }
.site-footer__cols a:hover { color: var(--c-ochre); }
.site-footer__base {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--c-border-ink);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-on-ink-faint);
  flex-wrap: wrap; gap: 12px;
}
/* keep the domain on its own clean line on mobile (no mid-domain wrap) */
.site-footer__base span:last-child { white-space: nowrap; }
@media (max-width: 600px) {
  .site-footer__base { flex-direction: column; gap: 8px; }
}
