/* ==========================================================================
   UNIVERSAL PRINT HUB — Core stylesheet
   Brand palette + typography lifted from the original site archive.
   Everything is local: no CDN, no tracker, no third-party stylesheet.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Typography
   5.  Buttons & links
   6.  Header / navigation
   7.  Ribbons, marquee & decorative
   8.  Hero
   9.  Cards & grids
   10. Sections (services, catalog, lab, store, app, about)
   11. Blog & article
   12. Forms
   13. Accordion / tabs / modal / lightbox
   14. Footer
   15. Utilities, animation, motion preferences
   16. Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* brand */
  --uph-blue: #1d2cf3;
  --uph-blue-600: #1622c4;
  --uph-blue-100: #e7e9ff;
  --uph-teal: #085c5c;
  --uph-teal-100: #dff0ef;
  --uph-yellow: #ffcb05;
  --uph-red: #ed1c24;

  /* neutrals */
  --ink: #000000;
  --ink-2: #16181d;
  --ink-3: #3c414b;
  --muted: #6a7080;
  --line: #e3e5ea;
  --paper: #ffffff;
  --paper-2: #f5f6f9;
  --paper-3: #eceef3;

  /* semantic */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --bg-sunken: var(--paper-3);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --border: var(--line);
  --card: #ffffff;
  --card-border: #e3e5ea;
  --shadow-sm: 0 1px 2px rgba(10, 12, 30, .06), 0 4px 12px rgba(10, 12, 30, .04);
  --shadow-md: 0 8px 24px rgba(10, 12, 30, .08), 0 2px 6px rgba(10, 12, 30, .05);
  --shadow-lg: 0 24px 60px rgba(10, 12, 30, .14);
  --shadow-blue: 0 16px 40px rgba(29, 44, 243, .28);

  /* type */
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(2.15rem, 8.6vw, 7rem);
  --fs-h1: clamp(2rem, 5.4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.25rem, 2.1vw, 1.75rem);
  --fs-h4: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: clamp(1rem, .55vw + .87rem, 1.0625rem);
  --fs-small: .875rem;
  --fs-tiny: .75rem;

  /* space */
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --maxw: 1280px;
  --maxw-narrow: 760px;

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur: .45s;

  --header-h: 84px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0a0b12;
  --bg-alt: #101220;
  --bg-sunken: #15172a;
  --fg: #f2f3f8;
  --fg-muted: #a4a9bd;
  --border: #262a41;
  --card: #141628;
  --card-border: #262a41;
  --uph-blue-100: #1a1f52;
  --uph-teal-100: #0d2b2b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

body.is-locked { overflow: hidden; }

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { padding: 0; list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

::selection {
  background: var(--uph-blue);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--uph-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--wide { max-width: 1520px; }

.section {
  padding-block: var(--section-y);
  position: relative;
  overflow-x: clip; /* contain reveal transforms without creating a scroll container */
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }

.section--ink {
  background: var(--ink-2);
  color: #fff;
  --fg: #fff;
  --fg-muted: #b6bbcd;
  --border: #2a2e42;
  --card: #1c1f30;
  --card-border: #2c3145;
}
[data-theme='dark'] .section--ink { background: #06070d; }

.section--blue {
  background: var(--uph-blue);
  color: #fff;
  --fg: #fff;
  --fg-muted: #d5d8ff;
  --border: rgba(255, 255, 255, .26);
  --card: rgba(255, 255, 255, .1);
  --card-border: rgba(255, 255, 255, .22);
}

.section--teal {
  background: var(--uph-teal);
  color: #fff;
  --fg: #fff;
  --fg-muted: #bcd9d6;
  --border: rgba(255, 255, 255, .24);
  --card: rgba(255, 255, 255, .08);
  --card-border: rgba(255, 255, 255, .2);
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
}

/* nothing inside a grid track may force the track wider than its share */
.grid > *,
.split > *,
.showcase__item > *,
.calc > *,
.article-layout > *,
.form-grid > *,
.opt-grid > *,
.hero__meta > * { min-width: 0; }
.split--top { align-items: start; }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em; }

p { text-wrap: pretty; }

.display {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--uph-blue);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section--blue .eyebrow,
.section--ink .eyebrow,
.section--teal .eyebrow { color: #fff; opacity: .9; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--fg-muted);
}

.muted { color: var(--fg-muted); }
.upper { text-transform: uppercase; }
.center { text-align: center; }
.blue { color: var(--uph-blue); }
.mono-num { font-variant-numeric: tabular-nums; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1.1rem; }

.outline-text {
  -webkit-text-stroke: 2px currentColor;
  color: transparent;
}

.highlight {
  background: linear-gradient(180deg, transparent 62%, rgba(29, 44, 243, .28) 62%);
  padding-inline: .1em;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--uph-blue);
  --btn-fg: #fff;
  --btn-border: var(--uph-blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
  z-index: -1;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
  border-color: var(--ink);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: currentColor;
}
.btn--ghost:hover { color: #fff; box-shadow: none; }
.btn--ghost::before { background: var(--uph-blue); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-border: #fff;
}
.btn--light:hover { color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-border: var(--ink);
}
.btn--dark::before { background: var(--uph-blue); }
.btn--dark:hover { border-color: var(--uph-blue); box-shadow: var(--shadow-blue); }

.btn--sm { padding: .65rem 1.15rem; font-size: .72rem; }
.btn--lg { padding: 1.15rem 2.3rem; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

/* text link with underline sweep */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--uph-blue);
}
.section--blue .link, .section--ink .link, .section--teal .link { color: #fff; }
.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .85rem 1.4rem;
  background: var(--uph-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  --header-h: 68px;
  box-shadow: var(--shadow-sm);
}
.site-header.is-hidden { transform: translateY(-105%); }

.header-inner {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  margin-right: auto;
}
.brand img { width: auto; height: 38px; transition: height .35s var(--ease); }
.site-header.is-stuck .brand img { height: 32px; }
.brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: currentColor;
}
.brand__fallback[hidden] { display: none; }
.brand__words {
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: .95rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.site-footer .brand__words { font-size: 1.15rem; }
.site-footer .brand__mark { width: 44px; height: 44px; }
.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--uph-blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav { display: flex; align-items: center; gap: .15rem; }

.nav__link {
  position: relative;
  padding: .55rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: color .25s var(--ease), background-color .25s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--uph-blue);
  transform: translate(-50%, 6px) scale(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--uph-blue); }
.nav__link[aria-current='page'] { color: var(--uph-blue); }
.nav__link[aria-current='page']::after { transform: translate(-50%, 0) scale(1); }

.nav__item { position: relative; }

/* dropdown "More" */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav__toggle svg { width: .7em; height: .7em; transition: transform .3s var(--ease); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  padding: .55rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__item.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .6rem .8rem;
  border-radius: var(--r-sm);
  font-size: .84rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__menu a small {
  font-size: .72rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.nav__menu a:hover { background: var(--uph-blue); color: #fff; }
.nav__menu a:hover small { color: rgba(255, 255, 255, .8); }

.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--fg);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover {
  background: var(--uph-blue);
  border-color: var(--uph-blue);
  color: #fff;
  transform: translateY(-2px);
}
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

.burger { display: none; }
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger span + span { margin-top: 5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
  overflow-y: auto;
}
body.nav-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__body {
  padding: 1.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.drawer a.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(18px);
}
body.nav-open .drawer a.drawer__link {
  animation: drawerIn .55s var(--ease) forwards;
}
.drawer a.drawer__link span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--fg-muted);
}
.drawer a.drawer__link:hover { color: var(--uph-blue); }
.drawer__footer { margin-top: 2rem; display: grid; gap: .9rem; }

@keyframes drawerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--uph-blue), var(--uph-teal));
  z-index: 210;
  pointer-events: none;
}

/* ==========================================================================
   7. RIBBONS, MARQUEE, DECOR
   ========================================================================== */
.side-ribbon {
  position: fixed;
  top: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--fg-muted);
  pointer-events: none;
  white-space: nowrap;
}
.side-ribbon--left { left: 14px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.side-ribbon--right { right: 14px; transform: translateY(-50%); writing-mode: vertical-rl; }

.marquee {
  --marquee-duration: 34s;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  padding-block: clamp(1rem, 2vw, 1.6rem);
  border-block: 1px solid var(--border);
  background: var(--bg);
}
.marquee--blue { background: var(--uph-blue); color: #fff; border-color: transparent; }
.marquee--ink { background: var(--ink-2); color: #fff; border-color: transparent; }
.marquee__track {
  display: flex;
  flex: none;
  gap: 2.5rem;
  padding-right: 2.5rem;
  align-items: center;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item i {
  width: 12px;
  height: 12px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.marquee--sm .marquee__item { font-size: clamp(.85rem, 1.4vw, 1.05rem); letter-spacing: .16em; gap: 1.4rem; }
.marquee--sm .marquee__track { gap: 1.4rem; padding-right: 1.4rem; }

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

.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("../img/noise.svg");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero--home { min-height: min(100svh, 900px); display: flex; align-items: center; }

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__title { font-size: var(--fs-display); line-height: .9; text-transform: uppercase; letter-spacing: -.04em; }
.hero__title .word { display: inline-block; }
.hero__title em {
  font-style: normal;
  color: var(--uph-blue);
  position: relative;
}

.hero__sub { margin-top: 1.6rem; max-width: 620px; }

.hero__meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .5rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.scroll-cue i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--uph-blue), transparent);
  display: block;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* page hero (interior) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero--blue { background: var(--uph-blue); color: #fff; }
.page-hero--ink { background: var(--ink-2); color: #fff; }
.page-hero--teal { background: var(--uph-teal); color: #fff; }
.page-hero--blue .eyebrow,
.page-hero--ink .eyebrow,
.page-hero--teal .eyebrow { color: rgba(255, 255, 255, .85); }
.page-hero--blue .lead,
.page-hero--ink .lead,
.page-hero--teal .lead { color: rgba(255, 255, 255, .82); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  font-size: var(--fs-tiny);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .8;
  margin-bottom: 1.2rem;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li { display: inline-flex; gap: .45rem; align-items: center; }
.breadcrumbs li + li::before { content: '/'; opacity: .5; }

/* ==========================================================================
   9. CARDS
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--uph-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--uph-blue-100);
  color: var(--uph-blue);
  flex: none;
}
.card__icon svg { width: 26px; height: 26px; }
.section--blue .card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.section--ink .card__icon { background: rgba(29, 44, 243, .22); color: #7f8bff; }

.card__num {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--uph-blue);
}
.section--ink .card__num { color: #97a0ff; }
.card h3 { font-size: 1.2rem; }
.card p { font-size: .95rem; color: var(--fg-muted); }

.card--link:hover { border-color: var(--uph-blue); }

.card__list {
  display: grid;
  gap: .45rem;
  margin-top: .35rem;
  font-size: .88rem;
  color: var(--fg-muted);
}
.card__list li { display: flex; gap: .5rem; align-items: flex-start; }
.card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--uph-blue);
  flex: none;
}

/* stat */
.stat { display: grid; gap: .25rem; }
.stat__value {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* pill / chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  transition: all .28s var(--ease);
}
.chip--solid { background: var(--uph-blue); border-color: var(--uph-blue); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

button.chip { cursor: pointer; }
button.chip:hover,
button.chip.is-active {
  background: var(--uph-blue);
  border-color: var(--uph-blue);
  color: #fff;
}

/* logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.logo-wall__cell {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: var(--card);
  transition: background-color .35s var(--ease);
}
.logo-wall__cell img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
[data-theme='dark'] .logo-wall__cell img { filter: grayscale(1) invert(1) brightness(1.6); }
.logo-wall__cell:hover img { filter: none; opacity: 1; transform: scale(1.06); }
[data-theme='dark'] .logo-wall__cell:hover img { filter: invert(1) brightness(1.8); }

/* product / catalog tile */
.tile {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--card-border);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tile__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  transition: transform .6s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__body {
  padding: .95rem 1.1rem 1.2rem;
  display: grid;
  gap: .3rem;
  background: var(--card);
}
.tile__body h3 { font-size: .98rem; }
.tile__body p { font-size: .8rem; color: var(--fg-muted); }
.tile__badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--uph-blue);
  color: #fff;
}
.tile__zoom {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tile:hover .tile__zoom { opacity: 1; transform: translateY(0); }

/* feature row */
.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row__k {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--uph-blue);
  padding-top: .35rem;
  min-width: 46px;
}

/* process steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--uph-blue);
  letter-spacing: -.04em;
  transition: color .4s var(--ease);
}
.step:hover::before { color: var(--uph-blue); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--fg-muted); font-size: .95rem; max-width: 62ch; }

/* testimonial */
.quote {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  height: 100%;
}
.quote__stars { display: flex; gap: .2rem; color: var(--uph-yellow); }
.quote__stars svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.quote blockquote { font-size: 1.02rem; line-height: 1.6; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--uph-blue);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  flex: none;
}
.quote__who strong { display: block; font-size: .92rem; }
.quote__who span { font-size: .78rem; color: var(--fg-muted); }

/* team */
.person { text-align: center; display: grid; gap: .85rem; justify-items: center; }
.person__photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--uph-blue);
  background: var(--bg-sunken);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.15rem; }
.person span {
  font-size: var(--fs-tiny);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--uph-blue);
}

/* media frame */
.frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--card-border);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1; }
.frame--contain img { object-fit: contain; padding: 8%; background: #fff; }

.frame-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.frame-stack > *:first-child { grid-row: span 2; }

/* ==========================================================================
   10. SPECIFIC SECTIONS
   ========================================================================== */
/* Big alternating feature blocks */
.showcase { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.showcase__item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.showcase__item:nth-child(even) .showcase__media { order: -1; }
@media (max-width: 780px) {
  .showcase__item:nth-child(even) .showcase__media { order: 0; }
}
.showcase__body h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 1rem; }

/* price / quote calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc__panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
}
.calc__result {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--r-md);
  background: var(--ink-2);
  color: #fff;
  display: grid;
  gap: 1rem;
}
.calc__price {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc__break { display: grid; gap: .55rem; font-size: .86rem; }
.calc__break div { display: flex; justify-content: space-between; gap: 1rem; }
.calc__break div span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.calc__note { font-size: .74rem; color: #9aa0bb; line-height: 1.5; }

.range-field { display: grid; gap: .5rem; }
.range-field__top { display: flex; justify-content: space-between; align-items: baseline; }
.range-field output {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--uph-blue);
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--bg-sunken);
  outline-offset: 6px;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--uph-blue);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(29, 44, 243, .5);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--uph-blue);
  border: 3px solid #fff;
  cursor: pointer;
}

/* option cards (radio grid) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .7rem; }
.opt {
  position: relative;
  display: grid;
  gap: .2rem;
  padding: .85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.opt:hover { border-color: var(--uph-blue); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt strong { font-size: .88rem; }
.opt small { font-size: .72rem; color: var(--fg-muted); }
.opt:has(input:checked) {
  border-color: var(--uph-blue);
  background: var(--uph-blue-100);
}
.opt:has(input:focus-visible) { outline: 3px solid var(--uph-blue); outline-offset: 2px; }

/* opening hours table */
.hours { display: grid; gap: .2rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .92rem;
}
.hours div.is-today { color: var(--uph-blue); font-weight: 700; }
.calc__result .hours div.is-today,
.section--ink .hours div.is-today { color: #97a0ff; }
.hours dt { font-weight: 600; }

/* app mock */
.phone {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19;
  margin-inline: auto;
  border-radius: 38px;
  border: 10px solid var(--ink-2);
  background: linear-gradient(160deg, var(--uph-blue), #0b1466);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 90px;
  height: 18px;
  border-radius: 99px;
  background: var(--ink-2);
}
.phone__screen { display: grid; gap: .6rem; }
.phone__screen strong { font-size: 1.4rem; font-weight: 900; letter-spacing: -.03em; }
.phone__screen span { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.store-badge:hover { border-color: var(--uph-blue); transform: translateY(-3px); }
.store-badge img { width: 30px; height: 30px; object-fit: contain; }
.store-badge span { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.store-badge strong { display: block; font-size: .98rem; }

/* ==========================================================================
   11. BLOG & ARTICLE
   ========================================================================== */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  height: 100%;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--uph-blue); }
.post-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--uph-blue);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.3rem; display: grid; gap: .6rem; align-content: start; flex: 1; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--fs-tiny);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-muted);
}
.post-card__meta .tag { color: var(--uph-blue); }
.post-card h3 { font-size: 1.12rem; }
.post-card p { font-size: .9rem; color: var(--fg-muted); }
.post-card__foot {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 700;
  color: var(--uph-blue);
}

.post-card--wide { flex-direction: row; }
@media (max-width: 760px) { .post-card--wide { flex-direction: column; } }
.post-card--wide .post-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }

/* article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  font-size: .86rem;
}
@media (max-width: 1000px) { .toc { position: static; } }
.toc h2 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: .9rem;
}
.toc ol { display: grid; gap: .1rem; counter-reset: toc; }
.toc a {
  display: block;
  padding: .42rem .6rem;
  border-radius: var(--r-xs);
  border-left: 2px solid transparent;
  color: var(--fg-muted);
  transition: all .25s var(--ease);
  line-height: 1.35;
}
.toc a:hover { color: var(--uph-blue); background: var(--bg-alt); }
.toc a.is-active {
  color: var(--uph-blue);
  border-left-color: var(--uph-blue);
  font-weight: 700;
  background: var(--bg-alt);
}

.prose { max-width: 74ch; font-size: 1.05rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin-top: 3rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-top: 2.2rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h4 { margin-top: 1.7rem; font-size: 1.05rem; }
.prose ul, .prose ol { display: grid; gap: .6rem; padding-left: 1.35rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.6rem; }
.prose ul > li::before {
  content: '';
  position: absolute;
  left: .25rem;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--uph-blue);
  rotate: 45deg;
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { font-weight: 900; color: var(--uph-blue); }
.prose a { color: var(--uph-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin-inline: 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--uph-blue);
  background: var(--bg-alt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 1.08rem;
  font-style: italic;
}
.prose figure { margin: 2rem 0; }
.prose figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--fg-muted);
  text-align: center;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  padding: .15em .4em;
  background: var(--bg-sunken);
  border-radius: 4px;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-md);
  background: var(--uph-blue-100);
  border: 1px solid color-mix(in srgb, var(--uph-blue) 26%, transparent);
  font-size: .96rem;
}
.callout svg { width: 24px; height: 24px; color: var(--uph-blue); margin-top: .15rem; }
.callout strong { display: block; margin-bottom: .2rem; }
.callout--warn { background: #fff6e0; border-color: #f0c66a; }
.callout--warn svg { color: #b57d0a; }
[data-theme='dark'] .callout--warn { background: #2a2109; border-color: #6b551a; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th,
.data-table td {
  padding: .8rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  background: var(--bg-alt);
}
.data-table tbody tr:hover { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }

.article-cover {
  background: var(--bg-sunken);
  line-height: 0;
}
.article-cover img {
  width: 100%;
  height: clamp(150px, 20vw, 300px);
  object-fit: cover;
  object-position: left center;
}

.article-header { display: grid; gap: 1.1rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.article-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.share-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.article-cta {
  margin-top: 3.5rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--uph-blue);
  color: #fff;
  display: grid;
  gap: 1.1rem;
}
.article-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ==========================================================================
   12. FORMS
   ========================================================================== */
.form { display: grid; gap: 1.15rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.15rem;
}

.field { display: grid; gap: .4rem; }
.field > label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field .req { color: var(--uph-red); }

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='number'],
.field input[type='url'],
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  font-size: .98rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("../img/chevron.svg"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--uph-blue);
  box-shadow: 0 0 0 4px rgba(29, 44, 243, .16);
}

.field .hint { font-size: .76rem; color: var(--fg-muted); }

.field .error {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--uph-red);
}
.field .error svg { width: 14px; height: 14px; flex: none; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--uph-red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, .12);
}
.field.is-invalid .error { display: flex; }
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea { border-color: #1aa06b; }

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .88rem;
  cursor: pointer;
  color: var(--fg-muted);
}
.checkbox input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .22s var(--ease);
  flex: none;
}
.checkbox input::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  rotate: -45deg;
  translate: 0 -1px;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.checkbox input:checked { background: var(--uph-blue); border-color: var(--uph-blue); }
.checkbox input:checked::after { opacity: 1; }
.checkbox a { color: var(--uph-blue); text-decoration: underline; }
.checkbox.is-invalid input { border-color: var(--uph-red); }

.form-status {
  display: none;
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status--error { background: #fdeaea; color: #9b1620; border: 1px solid #f3b6ba; }
[data-theme='dark'] .form-status--error { background: #2b0e11; color: #ff9ba1; border-color: #632228; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* newsletter inline */
.inline-form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.inline-form input {
  flex: 1 1 220px;
  padding: .9rem 1.1rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}
.inline-form input:focus { outline: none; border-color: var(--uph-blue); }

/* ==========================================================================
   13. ACCORDION / TABS / MODAL
   ========================================================================== */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color .25s var(--ease);
}
.acc-head:hover { color: var(--uph-blue); }
.acc-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  transition: all .3s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; }
.acc-head[aria-expanded='true'] .acc-icon { background: var(--uph-blue); border-color: var(--uph-blue); color: #fff; rotate: 180deg; }
.acc-head[aria-expanded='true'] .acc-icon::after { transform: scaleY(0); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: 1.4rem; color: var(--fg-muted); max-width: 78ch; }

.tabs { display: grid; gap: 1.8rem; }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .4rem;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
}
.tabs__btn {
  padding: .65rem 1.35rem;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.tabs__btn[aria-selected='true'] { background: var(--uph-blue); color: #fff; box-shadow: var(--shadow-sm); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .5s var(--ease); }

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

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(4, 5, 18, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  transform: translateY(24px) scale(.97);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 1rem; right: 1rem; }

/* back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--uph-blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .4s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ink); transform: translateY(-4px); }

/* floating whatsapp */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem .7rem .8rem;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #05270f;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 211, 102, .45); }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: .8rem; } }

/* preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; gap: 1.2rem; justify-items: center; }
.preloader__logo {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -.05em;
  text-transform: uppercase;
  line-height: 1;
}
.preloader__logo em { font-style: normal; color: var(--uph-blue); }
.preloader__bar {
  width: min(260px, 60vw);
  height: 3px;
  background: rgba(255, 255, 255, .18);
  border-radius: 99px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--uph-blue);
  animation: preload 1.15s var(--ease) forwards;
}
@keyframes preload { to { width: 100%; } }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .site-footer { background: #04050a; border-top: 1px solid #1b1e30; }
.site-footer .inline-form input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-footer .inline-form input::placeholder { color: rgba(255, 255, 255, .45); }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }

.footer-top {
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
}
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-content: start;
  min-width: 0;
}
.site-footer .inline-form input { flex: 1 1 100%; min-width: 0; }
.footer-col { min-width: 0; }
@media (max-width: 1100px) { .footer-brand { grid-column: 1 / -1; max-width: 480px; } }
.footer-brand p { color: rgba(255, 255, 255, .62); font-size: .92rem; }

.footer-col h3 {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .55rem; font-size: .92rem; }

.social-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  transition: all .3s var(--ease);
}
.social-row a:hover { background: var(--uph-blue); border-color: var(--uph-blue); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

.footer-big {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.4rem, 11vw, 9rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .26);
  text-align: center;
  user-select: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem 5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

.contact-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
}
.contact-line svg { width: 17px; height: 17px; color: var(--uph-blue); flex: none; }

.copy-btn {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .25rem .7rem;
  transition: all .25s var(--ease);
}
.copy-btn:hover { background: var(--uph-blue); border-color: var(--uph-blue); color: #fff; }
.copy-btn.is-copied { background: #1aa06b; border-color: #1aa06b; color: #fff; }

/* toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  z-index: 320;
  display: grid;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  padding: .8rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--ink-2);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .4s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   15. UTILITIES & ANIMATION
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: 3.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }

.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* base reveal (progressive enhancement: visible if JS off) */
[data-reveal] { will-change: transform, opacity; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='left'] { transform: translateX(-26px); }
.js [data-reveal='right'] { transform: translateX(26px); }
.js [data-reveal='zoom'] { transform: scale(.94); }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease); }

.swiper { overflow: hidden; padding-block: 4px; }
.swiper-slide { height: auto; }
.slider-nav { display: flex; gap: .6rem; }
.slider-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: all .3s var(--ease);
}
.slider-nav button:hover { background: var(--uph-blue); border-color: var(--uph-blue); color: #fff; }
.slider-nav button:disabled { opacity: .35; pointer-events: none; }
.slider-nav svg { width: 17px; height: 17px; }

.swiper-pagination-bullet { background: var(--fg-muted); }
.swiper-pagination-bullet-active { background: var(--uph-blue); }

/* cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s var(--ease);
}
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(255, 255, 255, .18); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
}

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
}

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

@media (max-width: 430px) {
  :root { --fs-display: clamp(1.85rem, 9.4vw, 3.2rem); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .side-ribbon { display: none; }
  .step { grid-template-columns: 1fr; gap: .4rem; }
  .frame-stack { grid-template-columns: 1fr; }
  .frame-stack > *:first-child { grid-row: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .person__photo { width: 150px; height: 150px; }
}

@media print {
  .site-header, .site-footer, .to-top, .wa-float, .side-ribbon,
  .marquee, .cursor-dot, .cursor-ring, .preloader { display: none !important; }
  body { color: #000; background: #fff; }
  .prose { max-width: none; }
}


#print-methods{
  display: none!important;
}

.quote__avatar{
  border-radius: 50%;
  overflow: hidden;
}

.post-card__foot svg, .tile__zoom svg{
  width: 24px;
  height: 24px;
}