/* ==========================================================================
   UD Concept — site styles
   ==========================================================================
   Ported from the Claude Design prototype. The prototype carried its layout in
   inline style attributes; here each rule is a named class so the markup stays
   readable and a change lands in one place. Measurements, clamps and colours
   are unchanged from the design.
   ========================================================================== */

/* --- Archivo, self-hosted -------------------------------------------------
   Served from this domain rather than fonts.googleapis.com: one less
   third-party request on every page view, and no visitor IP handed to another
   party — which also keeps the German-language pages simple to reason about
   under GDPR. */

/* One variable file per subset, weight axis 300–800 — the four static weights
   the design uses (300/400/600/800) all come from it. latin-ext carries the
   Turkish ğ ş İ and the rest of the dotted/undotted i pair. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  text-wrap: pretty;
  /* Site-wide pointer: a gold arrow with a thin ink outline. */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M5 3l14 8.5-6.2 1.3L10.4 19z' fill='%23b19677' stroke='%23201e1d' stroke-width='1.2' stroke-linejoin='round'/></svg>")
      5 3,
    auto;
}

/* A white pointing hand over anything clickable. The selector is deliberately
   broad and specific enough to beat the component rules below it. */
body a,
body button,
body .btn,
body .nav a,
body [role="button"],
body label,
body select,
body summary,
body .ud-card-link {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M9 3.5v9.2l-1.6-1.4a1.6 1.6 0 0 0-2.3 2.2l4.3 5.1c.6.7 1.5 1.1 2.4 1.1h4.2c1.7 0 3-1.3 3-3v-4.6a1.5 1.5 0 0 0-3 0v-.8a1.5 1.5 0 0 0-3 0v-.5a1.5 1.5 0 0 0-3 0V3.5a1.5 1.5 0 0 0-3 0z' fill='%23ffffff' stroke='%23201e1d' stroke-width='1.3' stroke-linejoin='round'/></svg>")
      9 3,
    pointer;
}

input,
textarea {
  cursor: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-accent-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

:focus {
  outline: none;
}

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

::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.ud-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 12px 0;
}

.ud-skip:focus {
  left: 0;
  color: var(--color-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Design-system components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}

.btn svg {
  display: block;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-600);
  color: var(--color-bg);
}

.btn-primary:active {
  background: var(--color-accent-700);
}

[data-theme="dark"] .btn-primary {
  color: #141312;
}

.btn-secondary {
  border-color: var(--color-divider);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-text);
}

.btn-secondary:active {
  background: color-mix(in srgb, var(--color-text) 14%, transparent);
}

.btn-ghost {
  color: var(--color-accent);
  padding-inline: var(--space-1);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* Pill and round variants the design uses for arrows, filters and CTAs. */
.btn-pill {
  border-radius: 999px;
  padding: 10px 18px;
  justify-content: flex-start;
}

.btn-round {
  border-radius: 50%;
}

.btn-submit {
  justify-content: flex-start;
  padding-inline: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}

.tag-neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}

.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.tag-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}

.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

.input::placeholder {
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

.input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

textarea.input {
  min-height: 90px;
  resize: vertical;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.ud-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ud-section {
  padding-inline: var(--gutter);
}

.ud-wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

.ud-rule-top {
  border-top: var(--rule);
}

.ud-rule-bottom {
  border-bottom: var(--rule);
}

/* Optical left offset: Archivo's uppercase forms carry visible side bearing, so
   headings are pulled back to sit flush with the text column beneath them. */
.ud-kicker {
  display: block;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 14px;
}

.ud-h1,
.ud-h2,
.ud-h2-sm {
  margin: 0 0 0 -0.058em;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ud-h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
}

.ud-h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
}

.ud-h2-sm {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
}

.ud-accent {
  color: var(--color-accent);
}

.ud-count {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

.ud-muted {
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.ud-page-head {
  padding-top: clamp(28px, 4vw, 48px);
}

.ud-head-pad {
  padding-bottom: clamp(28px, 4vw, 48px);
}

/* ==========================================================================
   Photographs
   ==========================================================================
   Images show in full colour and fade to black-and-white on hover, on the image
   itself or anywhere on the card that holds it. */

.ud-photo {
  filter: none;
  transition: filter 0.45s ease;
  overflow: hidden;
}

.ud-photo:hover,
article:hover .ud-photo,
.ud-card:hover .ud-photo {
  filter: grayscale(1) contrast(1.08);
}

.ud-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ud-photo-4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 16px;
}

.ud-photo-3x2 {
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 20px;
}

.ud-photo-21x9 {
  aspect-ratio: 21 / 9;
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
}

.ud-figure-photo {
  border-radius: 16px;
}

.ud-radius-20 {
  border-radius: 20px;
}

.ud-radius-24 {
  border-radius: 24px;
}

/* Hero frames hold an oversized image that parallax slides inside them. */
.ud-hero-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
}

.ud-parallax {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 140%;
  will-change: transform;
}

.ud-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Header — one rounded box, gold utility strip over a gray nav
   ========================================================================== */

.ud-header {
  display: flex;
  flex-direction: column;
  margin: var(--inset) var(--inset) 0;
  border-radius: var(--card-radius);
  background: var(--color-neutral-200);
  position: relative;
  z-index: 30;
}

.ud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px clamp(16px, 3vw, 40px);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

[data-theme="dark"] .ud-topbar {
  color: #141312;
}

.ud-topbar a,
.ud-topbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
}

.ud-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ud-topbar-signout {
  opacity: 0.85;
}

/* Each label is an icon + word; without its own flex context the inline SVG
   sits on the text baseline instead of centering against it. :not([hidden])
   keeps this from overriding the attribute the theme toggle shows/hides it
   with — an author display rule always wins over the UA [hidden] default. */
[data-theme-when]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 12px clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  justify-content: space-between;
  background: transparent;
}

.nav-brand {
  display: block;
  line-height: 0;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* Mobile menu toggle — hidden on desktop, where nav-links fit inline; see the
   max-width: 900px block for the collapsed/expanded states it drives. */
.ud-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.ud-nav-toggle-icon-close {
  display: none;
}

.nav[data-open="true"] .ud-nav-toggle-icon-menu {
  display: none;
}

.nav[data-open="true"] .ud-nav-toggle-icon-close {
  display: block;
}

/* Logo and partner marks are dark artwork on a light ground; in dark mode they
   are inverted rather than swapped for a second set of files. */
[data-theme="dark"] .ud-invert {
  filter: invert(1) hue-rotate(180deg);
}

/* ==========================================================================
   Language picker
   ==========================================================================
   Opens on hover and stays open while the pointer travels down into the menu;
   a click toggles it, so the caret closes it even while hovered and touch
   devices (which never hover) still work. */

.ud-lang {
  position: relative;
}

.ud-lang-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  color: inherit;
  font: inherit;
}

.ud-lang-button:hover {
  color: var(--color-accent);
}

.ud-lang-button svg.ud-flag {
  transition: transform 0.2s ease;
}

.ud-lang-button:hover svg.ud-flag {
  transform: scale(0.88);
}

.ud-lang-caret {
  transition: transform 0.25s ease;
}

.ud-lang[data-open="true"] .ud-lang-caret {
  transform: rotate(180deg);
}

.ud-lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 8px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ud-lang[data-open="true"] .ud-lang-menu,
.ud-lang:focus-within .ud-lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ud-lang-menu-inner {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-width: 56px;
  overflow: hidden;
}

[data-theme="dark"] .ud-lang-menu-inner {
  background: var(--color-neutral-300);
}

.ud-lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: none;
}

.ud-lang-option + .ud-lang-option {
  border-top: 1px solid var(--color-divider);
}

.ud-lang-option:hover {
  background: var(--color-accent-100);
}

.ud-lang-option svg {
  transition: transform 0.2s ease;
}

.ud-lang-option:hover svg {
  transform: scale(0.92);
}

/* ==========================================================================
   Theme switch, page transition, spinner
   ========================================================================== */

/* Colour, border, fill and filter cross-fade instead of snapping when the
   theme changes. Scoped to a class so it can be switched off for the first
   paint and never fights the page-transition animation. */
body.ud-theme-anim,
body.ud-theme-anim * {
  transition-property: background-color, color, border-color, fill, stroke,
    filter, box-shadow;
  transition-duration: 0.55s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ud-veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--color-accent);
  clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%));
  opacity: 0;
}

.ud-veil[data-run="true"] {
  animation: ud-veil 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ud-veil {
  0% {
    clip-path: circle(0 at var(--vx) var(--vy));
    opacity: 0.9;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    clip-path: circle(160vmax at var(--vx) var(--vy));
    opacity: 0;
  }
}

.ud-page {
  display: flex;
  flex-direction: column;
  animation: ud-page-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ud-page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Leaving state, set on the outgoing document while the next page loads. */
body[data-leaving="true"] .ud-page {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  animation: none;
}

.ud-spinner {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ud-spinner[data-show="true"] {
  opacity: 1;
}

.ud-spinner-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-200);
  border-top-color: var(--color-accent);
  animation: ud-spin 0.8s linear infinite;
}

@keyframes ud-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Drag affordance
   ==========================================================================
   Over a slider the pointer stays the normal gold arrow; a small gold pill with
   pulsing arrows follows it just to the right, and darkens while dragging. */

.ud-drag-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(18px, -50%) scale(0.8);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ud-drag-cursor[data-show="true"] {
  opacity: 1;
  transform: translate(18px, -50%) scale(1);
}

.ud-cur-ring {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

[data-theme="dark"] .ud-cur-ring {
  color: #141312;
}

.ud-drag-cursor[data-grab="true"] .ud-cur-ring {
  transform: scale(0.92);
  background: var(--color-accent-600);
}

.ud-cur-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.ud-cur-l {
  animation: ud-nudge-l 1.2s ease-in-out infinite;
}

.ud-cur-r {
  animation: ud-nudge-r 1.2s ease-in-out infinite;
}

@keyframes ud-nudge-l {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-4px);
    opacity: 1;
  }
}

@keyframes ud-nudge-r {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

@media (hover: none) {
  .ud-drag-cursor {
    display: none;
  }
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

.ud-home-hero {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 360px;
  max-height: 82vh;
  overflow: hidden;
  margin: var(--inset) var(--inset) 0;
  border-radius: var(--card-radius);
}

.ud-hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--gutter) clamp(20px, 4vw, 48px);
  pointer-events: none;
}

.ud-hero-badge {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  display: inline-block;
}

[data-theme="dark"] .ud-hero-badge {
  color: #141312;
}

/* ==========================================================================
   Home — projects rail
   ========================================================================== */

.ud-rail-wrap {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: var(--rule);
}

.ud-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, max(320px, calc((100% - clamp(20px, 3vw, 40px)) / 2)));
  gap: 0 clamp(20px, 3vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  user-select: none;
  touch-action: pan-y;
}

.ud-rail::-webkit-scrollbar {
  display: none;
}

.ud-rail article {
  padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: var(--rule);
  scroll-snap-align: start;
}

.ud-rail .ud-photo {
  pointer-events: none;
  border-radius: 20px;
}

.ud-rail-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
}

.ud-rail-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  font-feature-settings: "tnum" 1;
}

.ud-rail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.ud-rail-type {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* Client marks — the supplied asset is a logo, not a project render, so it
   sits contained and padded on a neutral ground rather than cropped to fill
   the frame like a photo. */
.ud-client-mark {
  background: var(--color-bg);
}

.ud-client-mark img {
  object-fit: contain;
  padding: clamp(20px, 5vw, 40px);
  box-sizing: border-box;
}

.ud-rail-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  flex-wrap: wrap;
}

.ud-rail-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ud-rail-hint {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* ==========================================================================
   Home — work process / services grid
   ========================================================================== */

.ud-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  border-top: var(--rule);
}

.ud-step {
  padding: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: var(--rule);
}

.ud-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ud-step-icon {
  color: var(--color-accent);
}

.ud-step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

/* Titles reserve two lines so the copy beneath them lines up across columns. */
.ud-step-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 2.4em;
}

.ud-step-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 34ch;
}

/* ==========================================================================
   Solution partners marquee
   ========================================================================== */

.ud-partners {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.ud-partners-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  flex: none;
}

.ud-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ud-marquee-track {
  display: flex;
  width: max-content;
  animation: ud-marquee 30s linear infinite;
}

.ud-marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  flex: none;
  padding-right: 56px;
}

/* Partner marks stay grayscale so the row reads evenly whatever their brand
   colours are. */
.ud-marquee img {
  width: auto;
  opacity: 0.75;
  flex: none;
  filter: grayscale(1);
}

[data-theme="dark"] .ud-marquee img {
  filter: grayscale(1) invert(1);
}

@keyframes ud-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.ud-services-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: var(--rule);
}

.ud-services-intro {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.65;
  max-width: 44ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.ud-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}

.ud-service {
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: var(--rule);
}

.ud-service-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  font-feature-settings: "tnum" 1;
}

.ud-service-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 2.3em;
}

.ud-service-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 38ch;
}

/* ==========================================================================
   Projects page
   ========================================================================== */

.ud-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: var(--rule);
}

.ud-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ud-filter {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.ud-shown {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}

.ud-project {
  padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: var(--rule);
}

.ud-project[hidden] {
  display: none;
}

.ud-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.ud-meta-dash {
  width: 16px;
  height: 2px;
  background: var(--color-divider);
  flex: none;
}

.ud-meta-dash-lg {
  width: 24px;
}

.ud-project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ud-project-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ud-project-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  font-feature-settings: "tnum" 1;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.ud-project-place {
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   References
   ========================================================================== */

.ud-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}

.ud-ref {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: baseline;
}

.ud-ref-num {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  font-feature-settings: "tnum" 1;
}

.ud-ref-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.ud-ref-place {
  font-size: 13px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  grid-column: 2;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.ud-blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ud-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: var(--rule);
  align-items: center;
}

.ud-featured-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ud-featured-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: inherit;
  text-decoration: none;
}

.ud-featured-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 52ch;
}

.ud-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}

.ud-post-card {
  padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: var(--rule);
}

.ud-post-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ud-post-card-title a {
  color: inherit;
  text-decoration: none;
}

.ud-post-card-title a:hover {
  color: var(--color-accent);
}

.ud-post-card-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.ud-post-card-read {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.ud-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  text-decoration: none;
}

.ud-post-hero {
  padding-top: clamp(20px, 3vw, 40px);
}

.ud-more-head {
  padding-bottom: 20px;
  border-bottom: var(--rule);
}

.ud-post-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 clamp(28px, 4vw, 48px);
  border-bottom: var(--rule);
}

.ud-post-title {
  margin: 0 0 0 -0.058em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.ud-post-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 60ch;
}

.ud-post-byline {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  flex-wrap: wrap;
}

/* Sidebar beside the article on desktop, stacked above it when narrow. */
.ud-article-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
}

.ud-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
  flex: 1 1 220px;
  max-width: 300px;
}

.ud-aside-block {
  border-top: var(--rule);
  padding-top: 20px;
}

.ud-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.ud-toc li {
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.ud-toc a {
  color: inherit;
  text-decoration: none;
}

.ud-toc a:hover {
  color: var(--color-accent);
}

.ud-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 66ch;
  flex: 3 1 400px;
  min-width: 0;
}

.ud-article h2 {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ud-article p {
  margin: 0;
}

.ud-article blockquote {
  margin: 8px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.ud-article figure {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ud-article figcaption {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: var(--rule);
}

.ud-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* White glyphs in black circles, so all four marks read at the same size. */
.ud-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  flex: none;
}

.ud-social:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.ud-legal-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
  flex: 3 1 400px;
  min-width: 0;
}

.ud-legal-intro {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.ud-legal-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: var(--rule);
  scroll-margin-top: 24px;
}

.ud-legal-section h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ud-legal-section h2 span {
  color: var(--color-accent);
  margin-right: 12px;
}

.ud-legal-section p {
  margin: 0;
}

.ud-legal-foot {
  padding-top: 24px;
  border-top: var(--rule);
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.ud-legal-links a {
  color: inherit;
  text-decoration: none;
}

.ud-legal-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Our Company
   ==========================================================================
   The intro paragraph is sized by the title above it: a max-content grid column
   fixes the column to the width of "ABOUT US", and the paragraph is then forced
   to fill exactly that width rather than widening the column. */

.ud-about-head {
  display: grid;
  grid-template-columns: max-content;
  max-width: 100%;
}

.ud-about-head h1 {
  white-space: nowrap;
}

.ud-about-intro {
  margin: clamp(16px, 2.4vw, 28px) 0 0 -0.05em;
  width: 0;
  min-width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
  text-wrap: pretty;
}

.ud-about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  border-top: var(--rule);
}

.ud-about-column {
  padding: 28px 0 36px;
  border-bottom: var(--rule);
}

.ud-about-column p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 44ch;
}

.ud-about-column .ud-kicker {
  margin-bottom: 16px;
}

.ud-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px clamp(20px, 3vw, 40px);
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 28px 0;
}

.ud-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ud-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
  margin-left: -0.045em;
}

.ud-stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.ud-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-bottom: clamp(48px, 7vw, 96px);
  border-bottom: var(--rule);
}

.ud-value {
  padding: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ud-value-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

.ud-value h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ud-value p {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  text-wrap: pretty;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.ud-contact-hero {
  aspect-ratio: 16 / 6;
  min-height: 220px;
}

.ud-contact-title {
  margin-top: clamp(28px, 4vw, 48px);
}

.ud-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding-top: clamp(28px, 4vw, 48px);
}

.ud-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--color-neutral-200);
  border-radius: 20px;
}

.ud-contact-statement {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.ud-contact-intro {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 40ch;
}

.ud-details {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  gap: 12px 24px;
  font-size: 15px;
  line-height: 1.55;
}

.ud-details dt {
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.ud-details dd {
  margin: 0;
}

.ud-details dd a {
  color: inherit;
}

/* ==========================================================================
   Contact band — on every page, a gold card matched to the footer
   ========================================================================== */

.ud-contact-band {
  background: var(--color-accent);
  color: var(--color-bg);
  margin: 0 var(--inset);
  border-radius: var(--card-radius);
}

[data-theme="dark"] .ud-contact-band {
  color: #141312;
}

.ud-contact-band-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.ud-contact-band h2 {
  margin: 0 0 0 -0.058em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ud-contact-band-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.ud-contact-photo {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
}

.ud-contact-form {
  background: var(--color-bg);
  color: var(--color-text);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 16px;
}

[data-theme="dark"] .ud-contact-form {
  color: var(--color-text);
}

.ud-contact-form .input {
  border-radius: 8px;
}

.ud-contact-form .btn {
  border-radius: 8px;
}

.ud-form-error {
  margin: 0;
  font-size: 13px;
  color: #b3261e;
}

[data-theme="dark"] .ud-form-error {
  color: #f2b8b5;
}

.ud-form-success {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-accent-700);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ud-footer {
  margin: var(--inset);
  padding: clamp(36px, 5vw, 64px) var(--gutter) 28px;
  background: var(--color-neutral-200);
  border-radius: var(--card-radius);
}

.ud-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: var(--rule);
}

.ud-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ud-footer-brand img {
  height: 56px;
  width: auto;
  align-self: flex-start;
}

.ud-footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  max-width: 28ch;
  text-wrap: pretty;
}

.ud-footer-head {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 18px;
}

.ud-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.ud-footer-links a {
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  text-decoration: none;
}

.ud-footer-links a:hover {
  color: var(--color-accent);
}

.ud-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.ud-footer-mail {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
}

.ud-footer-mail:hover {
  color: var(--color-accent);
}

.ud-footer-address {
  margin: 0;
  max-width: 30ch;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.ud-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.ud-footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.ud-footer-legal a {
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  text-decoration: none;
}

.ud-footer-legal a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Section spacing helpers
   ========================================================================== */

.ud-pad-block {
  padding-block: clamp(40px, 6vw, 84px) clamp(32px, 5vw, 72px);
}

.ud-pad-bottom {
  padding-bottom: clamp(48px, 7vw, 96px);
}

.ud-pad-bottom-lg {
  padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px);
}

.ud-pad-top {
  padding-top: clamp(32px, 5vw, 64px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .ud-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .ud-nav-toggle {
    display: flex;
  }

  /* Collapsed by default: brand + toggle on one row. Opening it drops a
     full-width panel of stacked links below, still inside the same rounded
     header card. */
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding-top: 4px;
    border-top: var(--rule);
  }

  .nav[data-open="true"] .nav-links {
    display: flex;
  }

  .nav-links > * + * {
    border-top: 1px solid var(--color-divider);
  }

  .nav-links a {
    padding: 14px 4px;
    font-size: 14px;
  }

  .nav-links .ud-lang {
    padding: 4px 0;
  }

  .nav-links .ud-lang-button {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 4px;
  }

  .nav-links .ud-lang-menu {
    position: static;
    padding-top: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .nav-links .ud-lang[data-open="true"] .ud-lang-menu {
    display: block;
  }

  .nav-links .ud-lang-menu-inner {
    flex-direction: row;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }

  .nav-links .ud-lang-option + .ud-lang-option {
    border-top: 0;
    border-left: 1px solid var(--color-divider);
  }
}

@media (max-width: 640px) {
  .ud-about-head h1 {
    white-space: normal;
  }

  .ud-about-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .ud-partners {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ud-marquee {
    width: 100%;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ud-page {
    animation: none;
  }

  body[data-leaving="true"] .ud-page {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ud-marquee-track,
  .ud-cur-l,
  .ud-cur-r,
  .ud-spinner-ring {
    animation: none !important;
  }

  .ud-veil[data-run="true"] {
    animation: none;
  }
}

/* ==========================================================================
   Error pages
   ========================================================================== */

.ud-404-actions {
  padding-top: clamp(24px, 3vw, 36px);
  flex-wrap: wrap;
}
