/* ==========================================================================
   Under Bridges — underbridges.co.za
   Design system from "Under Bridges Website v4" (Claude Design)
   ========================================================================== */

/* Font — General Sans (Fontshare, ITF Free Font License), self-hosted. */
@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/general-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/general-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/general-sans-600.woff2') format('woff2');
}

:root {
  --ub-accent: #111111;
  --ub-bg: #F7F7F7;
  --ub-ink: #141414;
  --ub-dark: #0A0A0A;
  --ub-dark-ink: #FFFFFF;
  --ub-hero-bg: #090909;

  /* Chamfered corners */
  --cham-tag: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  --cham-s: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --cham-m: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cham-l: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  --cham-xl: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

/* Base ------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ub-bg);
  font-family: 'General Sans', sans-serif;
  color: var(--ub-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--ub-accent); color: #FFFFFF; }

em { font: inherit; color: inherit; font-style: normal; }

input::placeholder,
textarea::placeholder { color: #737373; }

select option { background: #FFFFFF; color: #141414; }

:focus-visible { outline: 2px solid var(--ub-accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--ub-ink);
  color: var(--ub-bg);
  padding: 12px 18px;
  font: 600 14px/1 'General Sans', sans-serif;
}
.skip-link:focus { left: 0; }

.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

@keyframes ubScrollCue {
  0% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(8px); opacity: .4; }
  100% { transform: translateY(0); opacity: .9; }
}

/* Layout ------------------------------------------------------------------ */

.wrap { margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.w-920 { max-width: 920px; }
.w-1020 { max-width: 1020px; }
.w-1080 { max-width: 1080px; }
.w-1180 { max-width: 1180px; }

.section-light { position: relative; background: var(--ub-bg); }
.section-dark { position: relative; background: var(--ub-dark); color: var(--ub-dark-ink); }

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 34px;
  color: #F7F7F7;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.nav.is-solid {
  color: #141414;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav__logo { display: flex; align-items: center; }
.nav__logo-stack { position: relative; display: inline-flex; height: 28px; }
.nav__logo-stack img { height: 28px; width: auto; display: block; transition: opacity .25s ease; }
.nav__logo-stack img:last-child { position: absolute; left: 0; top: 0; }
.nav__logo-stack .logo-white { opacity: 1; }
.nav__logo-stack .logo-black { opacity: 0; }
.nav.is-solid .logo-white { opacity: 0; }
.nav.is-solid .logo-black { opacity: 1; }

.nav__links { display: flex; align-items: center; gap: 6px; }

.nav__link {
  font: 500 15px/1 'General Sans', sans-serif;
  color: inherit;
  padding: 10px 15px;
  transition: opacity .2s;
}
.nav__link:hover { opacity: .6; }

.nav__cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F7F7F7;
  color: #141414;
  font: 600 14px/1 'General Sans', sans-serif;
  padding: 13px 21px;
  cursor: pointer;
  clip-path: var(--cham-m);
  transition: transform .2s, background .25s ease, color .25s ease;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav.is-solid .nav__cta { background: #141414; color: #F7F7F7; }

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  clip-path: var(--cham-s);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  padding: 0;
}

/* Mobile menu --------------------------------------------------------------- */

.mnav {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: #F7F7F7;
  display: none;
  flex-direction: column;
  padding: 84px 26px 36px;
}
.mnav.is-open { display: flex; }

.mnav__links { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }

.mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -.02em;
  color: #141414;
}
.mnav__link span { color: var(--ub-accent); font-size: 24px; }

.mnav__contact { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.mnav__contact a,
.mnav__contact .mnav__line { font: 600 16px/1.4 'General Sans', sans-serif; color: #141414; word-break: break-word; }
.mnav__contact .mnav__loc { font: 500 14.5px/1.5 'General Sans', sans-serif; color: #737373; margin-top: 4px; }

/* Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 15px/1 'General Sans', sans-serif;
  padding: 18px 30px;
  border: none;
  cursor: pointer;
  clip-path: var(--cham-m);
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--light { background: #F7F7F7; color: #141414; }
.btn--ink { background: #141414; color: #F7F7F7; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #F7F7F7;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s;
}
.btn--ghost:hover { transform: none; background: rgba(255, 255, 255, 0.16); }

.btn--md { font-size: 14px; padding: 17px 26px; }
.btn--lg { padding: 20px 34px; gap: 10px; }

/* Tag / eyebrow ---------------------------------------------------------------- */

.tag { display: inline-flex; align-items: center; gap: 11px; }
.tag--top { align-items: flex-start; }
.tag--top .tag__chip { margin-top: 4px; }

.tag__chip {
  width: 22px;
  height: 13px;
  background: var(--ub-accent);
  display: inline-block;
  flex: none;
  clip-path: var(--cham-tag);
}

.tag__label {
  font: 600 12.5px/1 'General Sans', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #626262;
}
.tag--s .tag__label { letter-spacing: .16em; }
.section-dark .tag__label { color: #B8B8B8; }

/* Reveal ------------------------------------------------------------------------ */
/* [data-reveal] elements are hidden and translated by JS, then revealed on scroll. */

/* Hero (home) --------------------------------------------------------------------- */

.hero { position: relative; height: 100vh; background: var(--ub-bg); }

.hero__frame {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ub-hero-bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ub-hero-bg);
  pointer-events: none;
}


.hero__video { display: none; }
.hero__frame { background: #0a0a0f; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.85);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.star.on {
  opacity: 1;
  transition: opacity .12s ease;
}

  12% { opacity: .1; }
  20% { opacity: 1; }
  35% { opacity: .6; }
  48% { opacity: 1; }
  63% { opacity: .2; }
  70% { opacity: 1; }
  84% { opacity: .5; }
  94% { opacity: 1; }
}

}

}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,9,0.55) 0%, rgba(9,9,9,0.3) 38%, rgba(9,9,9,0.34) 62%, rgba(9,9,9,0.72) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  color: #F7F7F7;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(46px, 7.6vw, 116px);
  line-height: .94;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.hero__sub {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: clamp(16.5px, 2.2vw, 19px);
  line-height: 1.55;
  color: #E0E0E0;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  pointer-events: none;
}
.hero__cue-label {
  font: 500 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.hero__cue-arrow { font-size: 17px; animation: ubScrollCue 1.8s ease-in-out infinite; }

/* Statement sections (approach / why it works) -------------------------------------- */

.statement { display: flex; flex-direction: column; align-items: center; text-align: center; }
.statement--approach { padding-top: clamp(110px, 15vw, 170px); padding-bottom: clamp(110px, 15vw, 170px); }
.statement--why { padding-top: clamp(96px, 13vw, 130px); padding-bottom: clamp(96px, 13vw, 130px); }

.statement .tag { margin-bottom: 36px; }
.statement--why .tag { margin-bottom: 32px; }

.statement__text {
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 48px);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.statement--why .statement__text {
  font-size: clamp(25px, 3.6vw, 46px);
  line-height: 1.2;
  max-width: 21ch;
}

.statement__sub {
  margin: 30px 0 0;
  font-size: 18.5px;
  line-height: 1.6;
  color: #626262;
  max-width: 44ch;
  text-wrap: pretty;
}
.statement--why .statement__sub { color: #B8B8B8; max-width: 48ch; }

/* Service cards (home) ---------------------------------------------------------------- */

.services-home { padding-bottom: 110px; }

.services-home__title {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 40px;
  text-align: center;
}

.grid { display: grid; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.scard {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-l);
  transition: transform .25s, border-color .25s;
}
.scard:hover { transform: translateY(-6px); border-color: rgba(20, 20, 20, 0.28); }

.scard--dark { background: var(--ub-dark); color: var(--ub-dark-ink); border: none; }

.scard__media { margin: 0; overflow: hidden; }
.scard__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(.16) contrast(1.04) brightness(.99);
  transition: filter .5s ease, transform .5s ease;
}
.scard:hover .scard__media img { filter: none; transform: scale(1.03); }

.scard__body { padding: 30px 36px 34px; display: flex; flex-direction: column; flex: 1; }
.scard--dark:hover { border-color: transparent; }

.scard__num { font: 600 14px/1 'General Sans', sans-serif; color: var(--ub-accent); }

.scard__title {
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 16px 0 0;
}

.scard__copy {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: #626262;
  max-width: 44ch;
}
.scard--dark .scard__copy { color: #B8B8B8; }

.scard__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  font: 600 13.5px/1 'General Sans', sans-serif;
  color: #141414;
}
.scard--dark .scard__link { color: var(--ub-dark-ink); }

/* How we work (home) ------------------------------------------------------------------- */

.process { padding-bottom: clamp(90px, 11vw, 120px); }

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process__step { border-top: 1.5px solid rgba(20, 20, 20, 0.16); padding-top: 24px; }

.process__num { font: 600 14px/1 'General Sans', sans-serif; color: var(--ub-accent); }

.process__title {
  font-weight: 600;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 14px 0 0;
}

.process__copy {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #626262;
}

/* Trusted by — logo marquee ------------------------------------------------------------------ */

.clients { padding-block: clamp(48px, 6vw, 72px); }
.clients > .wrap { width: 100%; min-width: 0; }

.clients__label {
  font: 600 12.5px/1 'General Sans', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #626262;
  margin-bottom: 38px;
}

.marquee__label {
  font: 600 12.5px/1 'General Sans', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #626262;
  text-align: center;
  margin-bottom: 24px;
}

.marquee {
  /* Keep a common height that fits even the widest mark in one of five slots. */
  --logo-height: min(52px, 4.4cqw);
  width: 75%;
  container-type: inline-size;
  margin-inline: auto;
  padding-block: 16px;
  position: relative;
  overflow: hidden;
  /* Centre the carousel at three quarters of the CTA's content width. */
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ubMarquee 48s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20cqw;
  width: 20cqw;
  min-width: 0;
  height: 96px;
  padding-inline: min(1.3cqw, 16.64px);
}

.marquee__logo {
  /* Scale includes each source file's blank margins, equalising the visible marks. */
  height: calc(var(--logo-height) * var(--logo-scale, 1));
  width: auto;
  max-width: none;
  flex: none;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .92;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
svg.marquee__logo { overflow: hidden; }
.marquee__item:hover .marquee__logo { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* The track holds two identical sets; shifting by half loops seamlessly. */
@keyframes ubMarquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.clients__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 52px;
  max-width: 900px;
}

/* All marks pre-processed to the same ink colour; heights tuned per logo
   proportions so they read as one consistent size. */
.clients__logo { height: 26px; width: auto; display: block; }
.clients__logo--tall { height: 38px; }
.clients__logo--squat { height: 30px; }
.clients__logo--wide { height: 16px; }
.clients__logo--xwide { height: 12px; }

/* CTA block --------------------------------------------------------------------------------- */

.cta-strip { padding-bottom: 110px; }
.cta-strip--services { padding-top: 80px; }

.cta-block {
  position: relative;
  overflow: hidden;
  padding: 90px 56px;
  clip-path: var(--cham-xl);
  background: var(--ub-dark);
  color: var(--ub-dark-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
}

.cta-block__title {
  font-weight: 600;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.cta-block__title--sm { font-size: clamp(32px, 4.8vw, 60px); }

.cta-block__ctas { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }

/* Page headers (services / about / contact) ---------------------------------------------------- */

.page-head { padding-top: clamp(120px, 18vw, 160px); padding-bottom: 64px; }
.page-head--about { padding-top: clamp(124px, 18vw, 165px); padding-bottom: 90px; }
.page-head--contact { padding-bottom: 100px; }

.page-head__title {
  font-weight: 600;
  font-size: clamp(42px, 6.6vw, 104px);
  line-height: .94;
  letter-spacing: -.035em;
  margin: 0;
}

.page-head__title--about {
  font-size: clamp(36px, 5.8vw, 92px);
  line-height: 1;
  max-width: 19ch;
}

.page-head__sub {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.55;
  color: #626262;
}

/* Service detail sections ------------------------------------------------------------------------ */

.svc { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.svc--first { padding-top: 30px; padding-bottom: 60px; }
.svc--dark { padding-top: 96px; padding-bottom: 96px; }
.svc--last { padding-top: 96px; padding-bottom: 40px; }
.svc--mid { padding-top: 96px; padding-bottom: 96px; }
#brands { scroll-margin-top: 90px; }

.svc__intro .tag { margin-bottom: 22px; }

.svc__title {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
}

.svc__copy {
  margin: 22px 0 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: #505050;
  max-width: 46ch;
}
.svc__copy + .svc__copy { margin-top: 14px; }
.section-dark .svc__copy { color: #B8B8B8; }

.svc__intro .btn { margin-top: 28px; }

.svc__card {
  padding: 36px 34px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-l);
}
.section-dark .svc__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.svc__card-label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #626262;
  margin-bottom: 6px;
}
.section-dark .svc__card-label { color: #999999; }

.svc__list { list-style: none; margin: 0; padding: 0; }

.svc__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
  font-size: 16px;
  color: #141414;
}
.section-dark .svc__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--ub-dark-ink); }

.svc__list li::before {
  content: "";
  flex: none;
  margin-top: 5px;
  width: 16px;
  height: 10px;
  background: var(--ub-accent);
  display: inline-block;
  clip-path: var(--cham-tag);
}

/* About ---------------------------------------------------------------------------------------------- */

.about-who { padding-bottom: 80px; display: grid; grid-template-columns: 220px 1fr; gap: 54px; }

.about-who__body p {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  color: #373737;
  max-width: 60ch;
}
.about-who__body p + p { margin-top: 24px; }

.founder-wrap { padding-bottom: 110px; }

.founder {
  padding: 42px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-xl);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}

.founder__photo {
  overflow: hidden;
  border: 1.5px solid rgba(20, 20, 20, 0.14);
  clip-path: var(--cham-l);
}
.founder__photo img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}

.founder__meta .tag { margin-bottom: 20px; }

.founder__name {
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}

.founder__role {
  margin-top: 12px;
  font: 600 13.5px/1 'General Sans', sans-serif;
  letter-spacing: .02em;
  color: #737373;
  text-transform: uppercase;
}

.founder__bio {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: #505050;
  max-width: 52ch;
}

/* Contact ----------------------------------------------------------------------------------------------- */

.contact-head__sub { margin: 28px 0 52px; max-width: 540px; font-size: 19px; line-height: 1.55; color: #626262; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px; align-items: start; }

.contact-card {
  padding: 42px 40px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-xl);
}

.form { display: flex; flex-direction: column; gap: 18px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form label {
  display: block;
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 9px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  background: #FAFAFA;
  font: 500 15.5px 'General Sans', sans-serif;
  color: #141414;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
}
.form textarea { line-height: 1.5; resize: vertical; }
.form select { cursor: pointer; appearance: auto; }

.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--ub-accent); outline: none; }

.form .btn { align-self: flex-start; gap: 10px; }
.form .btn[disabled] { opacity: .6; cursor: default; transform: none; }

.form__note { margin: 4px 0 0; font-size: 14.5px; color: #737373; }
.form__note a { color: #141414; font-weight: 600; border-bottom: 1px solid var(--ub-accent); }

.form__error { margin: 0; font-size: 14.5px; color: #111111; display: none; }
.form__error.is-visible { display: block; }
.form__error a { font-weight: 600; border-bottom: 1px solid currentColor; }

.form-sent { padding: 14px 0; display: none; }
.form-sent.is-visible { display: block; }

.form-sent__check {
  width: 46px;
  height: 34px;
  background: var(--ub-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
  color: #FFFFFF;
  clip-path: var(--cham-s);
}

.form-sent__title { font-weight: 600; font-size: 32px; line-height: 1.04; letter-spacing: -.02em; margin: 0; }

.form-sent__copy { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: #505050; max-width: 46ch; }
.form-sent__copy a { color: #141414; font-weight: 600; border-bottom: 1px solid var(--ub-accent); }

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 34px;
  background: var(--ub-dark);
  color: var(--ub-dark-ink);
  clip-path: var(--cham-xl);
}

.contact-panel__label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 20px;
}

.contact-panel__email {
  display: block;
  font: 500 17px/1.4 'General Sans', sans-serif;
  color: var(--ub-dark-ink);
  margin-bottom: 16px;
  word-break: break-word;
  transition: color .2s;
}
.contact-panel__email:hover { color: var(--ub-accent); }

.contact-panel__phone { display: block; font: 500 17px/1.4 'General Sans', sans-serif; color: var(--ub-dark-ink); margin-bottom: 16px; transition: color .2s; }
.contact-panel__phone:hover { color: var(--ub-accent); }

.contact-panel__wa {
  display: table;
  font: 600 15.5px/1.4 'General Sans', sans-serif;
  color: var(--ub-dark-ink);
  margin-bottom: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color .2s, border-color .2s;
}
.contact-panel__wa:hover { color: var(--ub-accent); border-color: var(--ub-accent); }
.contact-panel__wa + .contact-panel__wa { margin-top: -10px; }

.contact-head__sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.contact-head__sub a:hover { color: var(--ub-accent); }

.contact-panel__loc { font: 500 15.5px/1.5 'General Sans', sans-serif; color: #B8B8B8; }

.contact-panel__entity {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font: 500 14px/1.5 'General Sans', sans-serif;
  color: #999999;
}

/* Contact methods ------------------------------------------------------------------------------------------ */

.contact-grid--methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.contact-method {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-l);
  transition: transform .25s, border-color .25s;
}
.contact-method:hover { transform: translateY(-6px); border-color: rgba(20, 20, 20, 0.28); }

.contact-method__label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 18px;
}

.contact-method__value {
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ub-ink);
  word-break: break-word;
}

.contact-method__note {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #626262;
  max-width: 34ch;
}

.contact-method__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  font: 600 13.5px/1 'General Sans', sans-serif;
  color: var(--ub-ink);
}

/* Office / visit block -------------------------------------------------------------------------------------- */

.contact-office {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: clamp(84px, 10vw, 120px);
  padding-bottom: clamp(84px, 10vw, 120px);
}

.contact-office__intro .tag { margin-bottom: 22px; }

.contact-office__title {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
}

.contact-office__copy {
  margin: 22px 0 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: #B8B8B8;
  max-width: 46ch;
}

.contact-office__card {
  padding: 38px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  clip-path: var(--cham-l);
  font-style: normal;
}

.contact-office__label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 14px;
}

.contact-office__name {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
}

.contact-office__lines { margin: 0; font-size: 16.5px; line-height: 1.6; color: #E0E0E0; }

/* Footer -------------------------------------------------------------------------------------------------- */

.footer { position: relative; background: var(--ub-dark); color: var(--ub-dark-ink); }

.footer__inner { padding-top: 84px; padding-bottom: 40px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo { display: inline-block; }
.footer__logo img { height: 30px; margin-bottom: 22px; }

.footer__tagline {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 14ch;
}

.footer__label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 18px;
}

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font: 500 15.5px/1 'General Sans', sans-serif; color: #CCCCCC; transition: color .2s; }
.footer__links a:hover { color: var(--ub-accent); }

.footer__email {
  display: block;
  font: 500 15.5px/1.4 'General Sans', sans-serif;
  color: #CCCCCC;
  margin-bottom: 11px;
  word-break: break-word;
  transition: color .2s;
}
.footer__email:hover { color: var(--ub-accent); }

.footer__phone { display: block; font: 500 15.5px/1.4 'General Sans', sans-serif; color: #CCCCCC; margin-bottom: 11px; transition: color .2s; }
.footer__phone:hover { color: var(--ub-accent); }
.footer__wa { display: block; font: 600 15.5px/1.4 'General Sans', sans-serif; color: #CCCCCC; margin-bottom: 11px; transition: color .2s; }
.footer__wa:hover { color: var(--ub-accent); }
.footer__loc { font: 500 14.5px/1.5 'General Sans', sans-serif; color: #999999; }
.footer__social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.footer__social a { font: 500 14.5px/1.4 'General Sans', sans-serif; color: #CCCCCC; transition: color .2s; }
.footer__social a:hover { color: var(--ub-accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  color: #999999;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom .footer__entity { letter-spacing: .02em; }

/* Honeypot field — visually removed, still present for bots */
.hp { display: none; }

/* FAQ ------------------------------------------------------------------------------------------------------- */

.faq { padding-top: clamp(76px, 9vw, 104px); padding-bottom: clamp(90px, 12vw, 130px); }

.faq__head { max-width: 620px; margin-bottom: 46px; }

.faq__title {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0;
}

.faq__sub { margin: 18px 0 0; font-size: 17.5px; line-height: 1.62; color: #505050; }

.faq__list { max-width: 880px; }

.faq__item { border-bottom: 1px solid rgba(20, 20, 20, 0.14); }
.faq__item:first-child { border-top: 1px solid rgba(20, 20, 20, 0.14); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ub-ink);
  list-style: none;
  transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--ub-accent); }

.faq__icon { flex: none; position: relative; width: 16px; height: 16px; margin-top: 6px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ub-accent);
  transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }

.faq__a { padding: 0 48px 30px 0; }
.faq__a p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: #505050; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--ub-ink); font-weight: 500; border-bottom: 1px solid var(--ub-accent); }

/* Legal / long-form ------------------------------------------------------------------------------------------ */

.page-head--legal { padding-bottom: 44px; }
.page-head__title--legal { font-size: clamp(40px, 5.6vw, 82px); }

.legal {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
  padding-bottom: clamp(90px, 12vw, 130px);
}

.legal__toc { position: sticky; top: 104px; }

.legal__toc-label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #626262;
  margin-bottom: 16px;
}

.legal__toc nav { display: flex; flex-direction: column; border-left: 1.5px solid rgba(20, 20, 20, 0.12); }

.legal__toc a {
  font: 500 14.5px/1.4 'General Sans', sans-serif;
  color: #626262;
  padding: 8px 0 8px 16px;
  margin-left: -1.5px;
  border-left: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.legal__toc a:hover { color: var(--ub-ink); border-left-color: var(--ub-accent); }

.legal__body { max-width: 66ch; }

.legal__meta { font: 500 14px/1 'General Sans', sans-serif; color: #626262; margin: 0 0 44px; }

.legal__body h2,
.article__body h2 {
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 54px 0 18px;
  scroll-margin-top: 104px;
}
.legal__body h2:first-of-type, .article__body h2:first-of-type { margin-top: 0; }

.legal__body h3,
.article__body h3 { font-weight: 600; font-size: 17.5px; line-height: 1.3; margin: 30px 0 10px; }

.legal__body p,
.article__body p { font-size: 17px; line-height: 1.72; color: #505050; margin: 0 0 18px; }

.legal__body a,
.article__body a { color: var(--ub-ink); font-weight: 500; border-bottom: 1px solid var(--ub-accent); }

.legal__body strong,
.article__body strong { font-weight: 600; color: var(--ub-ink); }

.legal__list,
.article__list { list-style: none; margin: 0 0 18px; padding: 0; }

/* Marker is absolute, not a flex child, so inline <strong> lead-ins stay in flow. */
.legal__list li,
.article__list li {
  position: relative;
  padding: 7px 0 7px 27px;
  font-size: 17px;
  line-height: 1.62;
  color: #505050;
}
.legal__list li::before,
.article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 9px;
  background: var(--ub-accent);
  clip-path: var(--cham-tag);
}

.legal__card {
  padding: 30px 32px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-l);
  margin: 34px 0;
}
.legal__card p:last-child, .legal__card .legal__list { margin-bottom: 0; }
.legal__card .legal__list li:last-child { padding-bottom: 0; }

/* Insights index + article ------------------------------------------------------------------------------------ */

.insights { padding-bottom: clamp(90px, 12vw, 130px); }

.insights__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.gcard {
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  clip-path: var(--cham-l);
  transition: transform .25s, border-color .25s;
}
.gcard:hover { transform: translateY(-6px); border-color: rgba(20, 20, 20, 0.28); }

.gcard__kicker {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ub-accent);
  margin-bottom: 16px;
}

.gcard__title {
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0;
}

.gcard__desc { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: #505050; }

.gcard__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font: 600 13.5px/1 'General Sans', sans-serif;
  color: var(--ub-ink);
}

/* Article --------------------------------------------------------------------------------------------------- */

.article { padding-bottom: clamp(90px, 12vw, 130px); }
.article__body { max-width: 68ch; }
.article__meta { font: 500 14px/1 'General Sans', sans-serif; color: #626262; margin: 0 0 34px; }

.article__lede {
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ub-ink);
  font-weight: 500;
  margin: 0 0 34px;
  letter-spacing: -.01em;
}

.article__cta {
  padding: 34px 34px 32px;
  background: var(--ub-dark);
  color: var(--ub-dark-ink);
  clip-path: var(--cham-l);
  margin: 42px 0;
}
.article__cta p { color: #B8B8B8; font-size: 16.5px; line-height: 1.62; margin: 0 0 22px; }
.article__cta-title { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }

.article__related { margin-top: 60px; padding-top: 34px; border-top: 1.5px solid rgba(20, 20, 20, 0.14); }
.article__related-label {
  font: 600 11.5px/1 'General Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #626262;
  margin-bottom: 18px;
}
.article__related a {
  display: block;
  padding: 13px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--ub-ink);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  transition: color .2s;
}
.article__related a:hover { color: var(--ub-accent); }

/* 404 ------------------------------------------------------------------------------------------------------- */

.notfound { padding-top: clamp(140px, 22vw, 220px); padding-bottom: 120px; }
.notfound__cta { margin-top: 36px; }

/* Responsive --------------------------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }

  .grid--3,
  .svc,
  .about-who,
  .founder,
  .contact-grid,
  .contact-grid--methods,
  .contact-office,
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }

  .process__steps { grid-template-columns: 1fr 1fr; gap: 34px 24px; }

  .cta-block { padding: 64px 34px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .nav { padding-left: 18px; padding-right: 18px; }

  .founder__photo img { height: 300px; }

  .scard__body { padding: 28px 26px 28px; }
  .scard__media img { height: 180px; }
  .svc__card { padding: 34px 26px; }
  .contact-method { padding: 30px 26px 28px; }
  .contact-office__card { padding: 30px 26px; }
  .founder { padding: 34px 28px 30px; }

  .clients__row { gap: 24px 32px; }
  /* Mobile logo marquee: 3 larger logos, equal gaps between logo edges */
  .marquee { --logo-height: min(56px, 11cqw); width: 100%; }
  .marquee__track { gap: 0; }
  .marquee__group { display: flex; align-items: center; gap: 0; }
  .marquee__item { flex: 0 0 auto; width: auto; height: 88px; padding-inline: 0; margin-inline: 18px; }
  .marquee__group[aria-hidden='true'] { margin-left: 18px; }
  .marquee__logo { filter: none; opacity: 1; }
  .marquee__track { animation: ubMarquee 60s linear infinite; }

  .process__steps { grid-template-columns: 1fr; gap: 26px; }
  .faq__a { padding-right: 0; }
  .insights__grid { grid-template-columns: 1fr; gap: 18px; }
  .gcard { padding: 28px 26px 26px; }
  .article__cta { padding: 28px 26px 26px; }
  .legal { grid-template-columns: 1fr; gap: 0; }
  .legal__toc { display: none; }
  .legal__card { padding: 26px 24px; }
  .clients__logo { height: 22px; }
  .clients__logo--tall { height: 32px; }
  .clients__logo--squat { height: 26px; }
  .clients__logo--wide { height: 13px; }
  .clients__logo--xwide { height: 10px; }

/* Reduced motion -------------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  /* Respect reduced motion: hold the poster frame instead of a moving video. */
  .hero__video { display: none; }
  .hero__frame { background-image: url('/assets/orbit-poster.jpg'); background-size: cover; background-position: center; }
  /* Stop the logo marquee; show the first set, centred. */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; transform: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
