/* =========================================================
   Privy Lighting — landing page (redesign, Dec 2026)
   Concept: "a clear, well-lit office": calm white and cool-grey bands, deep navy panels that frame the
   photography, warm gold used only where the light is switched on (accents, primary actions).
   Layout follows refs/design-reference-final.png section by section.
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
/* Montserrat - same family as the client portal (dashboard.privylighting.com) for brand continuity */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/montserrat-var-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;
}

/* ---------- Tokens ---------- */
/* Palette = the pre-redesign one (navy, logo blue, warm amber). The redesign's token names map onto it. */
:root {
  --ink-900: #060e22;
  --ink-800: #0b1b3a;
  --ink-700: #13284f;
  --blue-700: #2338d0;
  --blue-600: #3452e8; /* logo blue: primary brand colour */
  --blue-500: #3452e8;
  --blue-400: #5a6cff;
  --blue-300: #8196ff; /* brand blue, lightened for text on navy */
  --blue-200: #aab4ff;
  --amber-400: #e5a54b;
  --amber-300: #f2c27b;
  --paper: #f3f5f9;
  --surface: #fff;
  --line: #e2dfd6;
  --text: #111a2e;
  --muted: #4e586b;
  --on-dark: #f3f1ea;
  --on-dark-muted: #aeb6c8;
  --line-dark: rgb(243 241 234 / 14%);
  --error: #b42318;

  /* aliases used by the redesigned sections */
  --ink-950: var(--ink-900);
  --ink-600: var(--blue-700);
  --ink-500: var(--blue-700);
  --tint: #edf1fa; /* light blue-grey section band */
  --tint-2: #e3e9f6;
  --gold-500: var(--amber-400);
  --gold-400: var(--amber-400);
  --gold-300: var(--amber-300);
  --gold-700: var(--blue-600); /* labels on light surfaces were brand blue */
  --bg: var(--paper);
  --bg-2: #eaeef5;
  --line-strong: #cfcbc0;
  --font-display: montserrat, 'Segoe UI', system-ui, sans-serif;
  --font-text: montserrat, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.25rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 2.6vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 7vw, 6.5rem);
  --overlap: clamp(2.5rem, 5vw, 4rem);
  --card-gap: clamp(0.75rem, 1.4vw, 1.25rem);
  --gap: var(--card-gap);
  --grade: saturate(0.88) contrast(1.04) sepia(0.06);
  --max: 1320px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgb(11 27 58 / 5%), 0 8px 24px -12px rgb(11 27 58 / 14%);
  --shadow-float: 0 28px 60px -34px rgb(11 27 58 / 45%);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: var(--blue-500);
}

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

html {
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  --sw: 1.75;

  flex: none;
  width: 1.1em;
  height: 1.1em;
}

/* Sprite icons: one line language; --sw is tuned per rendered size so strokes read ~1.4px everywhere */
.icon,
.value__icon,
.svc__icon,
.library__icon,
.gallery__zoom {
  fill: none;
  stroke: currentcolor;
  stroke-width: var(--sw, 1.5);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--gold-400);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

/* dark surfaces get a gold focus ring */
.hero,
.portal,
.site-nav,
.portal__grid,
.register__intro,
.site-footer {
  --focus: var(--gold-300);
}

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow--amber {
  color: var(--amber-300);
}

/* reference: a short gold rule after the label (Who we serve, About) */
.serve .eyebrow,
.about .eyebrow {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.serve .eyebrow::after,
.about .eyebrow::after {
  width: 3rem;
  height: 1px;
  content: '';
  background: currentcolor;
  opacity: 0.7;
}

.h2 {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
}

.section-head {
  display: grid;
  gap: 0;
  justify-items: start;
}

.section-head .lead {
  margin-top: 1rem;
}

.section-head--center {
  justify-items: center;
  text-align: center;
}

.section-head--center .h2 {
  max-width: 26ch;
}

.section-head--center .lead {
  max-width: 62ch;
}

/* Placeholder for unconfirmed client content */
.tbd {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  font-size: 0.92em;
  color: var(--muted);
  background: rgb(214 166 112 / 12%);
  border: 1px dashed rgb(140 96 43 / 55%);
  border-radius: 4px;
}

/* ---------- Buttons (colour-only hover, no motion) ---------- */
.btn {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn .icon {
  transition: transform 0.25s ease;
}

.btn:is(:hover, :focus-visible) .icon:has(use[href='#i-arrow']) {
  transform: translateX(3px);
}

.btn--amber {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 10px 24px -14px rgb(52 82 232 / 80%);
}

.btn--amber:hover {
  background: var(--blue-700);
  box-shadow: 0 12px 28px -12px rgb(52 82 232 / 90%);
}

.btn--ink {
  color: #fff;
  background: var(--blue-600);
}

.btn--ink:hover {
  background: var(--ink-800);
}

.btn--ghost-light {
  color: var(--on-dark);
  border-color: rgb(245 247 251 / 70%);
}

.btn--ghost-light:hover {
  color: var(--ink-900);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

.btn--outline {
  color: var(--ink-800);
  border-color: var(--ink-800);
}

.btn--outline:hover {
  color: #fff;
  background: var(--ink-800);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
  background: rgb(255 255 255 / 96%);
  box-shadow:
    0 1px 0 var(--line),
    0 10px 30px -18px rgb(11 27 58 / 35%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.site-header__bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  position: relative;
  display: block;
  flex: none;
  width: 104px;
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.brand__logo {
  width: 100%;
  transition: opacity 0.3s var(--ease);
}

.brand__logo--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.site-header.is-scrolled {
  color: var(--text);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-scrolled .brand {
  transform: scale(0.86);
}

.site-header.is-scrolled .brand__logo--light {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--dark {
  opacity: 1;
}

.site-header.is-scrolled .site-nav {
  --focus: var(--blue-500);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: center;
}

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav__list a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__list a::after {
  position: absolute;
  inset: auto 0 0.2rem;
  height: 1px;
  content: '';
  background: currentcolor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--login {
  min-height: 42px;
  padding-inline: 1.15rem;
  color: var(--on-dark);
  border-color: rgb(243 241 234 / 45%);
}

.btn--login:hover {
  color: var(--ink-900);
  background: var(--on-dark);
}

.site-header.is-scrolled .btn--login {
  color: var(--ink-800);
  border-color: rgb(11 27 58 / 35%);
}

.site-header.is-scrolled .btn--login:hover {
  color: #fff;
  background: var(--ink-800);
}

/* Register = primary (amber), Login = secondary (outline + lock), everywhere */
.site-nav__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn--register {
  min-height: 42px;
  padding-inline: 1.25rem;
  color: #fff;
  background: var(--blue-600);
}

.btn--register:hover {
  background: var(--blue-700);
}

.nav-toggle {
  display: none;
}

@media (width < 1024px) {
  .js .nav-toggle {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem 0 0.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: 0;
  }

  .nav-toggle__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 12px;
  }

  .nav-toggle__icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentcolor;
    transition: transform 0.35s var(--ease);
  }

  .nav-toggle__icon span:first-child {
    top: 0;
  }

  .nav-toggle__icon span:last-child {
    bottom: 0;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__icon span:first-child {
    transform: translateY(5.25px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__icon span:last-child {
    transform: translateY(-5.25px) rotate(-45deg);
  }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    color: var(--on-dark);
    visibility: hidden;
    background: radial-gradient(60% 40% at 85% 10%, rgb(47 70 232 / 28%), transparent 70%), var(--ink-900);
    opacity: 0;
    transition:
      opacity 0.35s var(--ease),
      visibility 0s linear 0.35s;
  }

  .js .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .js .site-nav__list a {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .site-header.is-open {
    color: var(--on-dark);
  }

  .site-header.is-open::before {
    opacity: 0;
  }

  .site-header.is-open .brand__logo--light {
    opacity: 1;
  }

  .site-header.is-open .brand__logo--dark {
    opacity: 0;
  }

  .site-header.is-open .site-nav {
    --focus: var(--amber-300);

    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s var(--ease);
  }

  .site-header.is-open .btn--login {
    color: var(--on-dark);
    background: transparent;
    border-color: rgb(243 241 234 / 45%);
  }

  /* No-JS fallback: nav wraps under the bar */
  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .site-header__bar {
    flex-wrap: wrap;
    padding-block: 1rem;
  }

  html:not(.js) .site-nav,
  html:not(.js) .site-nav__list {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(620px, min(92svh, 860px));
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: calc(clamp(3.5rem, 7vw, 5.5rem) + var(--overlap));
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
  background: var(--ink-900);
}

.hero__media {
  position: absolute;
  /* top bleed = room for the scroll parallax (js/main.js moves the picture down by up to 8%) */
  inset: -9% 0 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background:
    linear-gradient(180deg, rgb(6 14 34 / 55%) 0%, rgb(6 14 34 / 0%) 22%),
    linear-gradient(0deg, var(--ink-900) 0%, rgb(6 14 34 / 0%) 45%),
    linear-gradient(90deg, rgb(6 14 34 / 92%) 0%, rgb(6 14 34 / 70%) 38%, rgb(6 14 34 / 10%) 78%);
}

.hero__eyebrow {
  display: block;
}

@media (width < 760px) {
  .hero::after {
    background: linear-gradient(
      180deg,
      rgb(6 14 34 / 60%) 0%,
      rgb(6 14 34 / 35%) 30%,
      rgb(6 14 34 / 88%) 62%,
      var(--ink-900) 100%
    );
  }
}

.hero__title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title-glow {
  display: block;
  color: var(--blue-300);
  text-shadow: 0 0 42px rgb(90 108 255 / 35%);
}

@media (width >= 600px) {
  .hero__title {
    max-width: none;
  }
}

.hero__lead {
  max-width: 50ch;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #d5dae5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-settle 2.6s var(--ease) both;
  }

  /* CTAs are never animated: only the text group rises in */
  .hero__inner > :not(.hero__actions) {
    animation: rise 0.9s var(--ease) both;
  }

  /* LCP candidate: never start invisible */
  .hero__inner > .hero__title {
    animation-name: rise-soft;
  }

  .hero__inner > :nth-child(1) {
    animation-delay: 0.1s;
  }

  .hero__inner > :nth-child(3) {
    animation-delay: 0.65s;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes rise-soft {
  from {
    transform: translateY(14px);
  }
}

/* soft warm bloom behind the chandeliers */
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  background: radial-gradient(40% 46% at 68% 28%, rgb(242 194 123 / 22%), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ---------- Value strip: white card overlapping the hero foot ---------- */
.values {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--overlap));
}

.values__list {
  display: grid;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.value {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding-block: 1.25rem;
}

.value + .value {
  border-top: 1px solid var(--line);
}

.value__icon {
  --sw: 1.2;

  flex: none;
  width: 44px;
  height: 44px;
  color: var(--blue-600);
}

.value__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-800);
}

.value__text {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (width >= 760px) {
  .values__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value {
    justify-content: center;
    padding: 1.5rem clamp(0.75rem, 2vw, 1.75rem);
  }

  .value + .value {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
}

@media (width >= 760px) and (width < 1100px) {
  .value {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ---------- Who we serve: intro left, four tall photo cards right ---------- */
.serve {
  background: var(--tint);
  margin-top: calc(-1 * clamp(3rem, 5vw, 4rem));
  padding-top: calc(var(--section) + clamp(3rem, 5vw, 4rem));
}

.serve__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.serve__head .lead {
  margin-top: 1rem;
}

.serve__roles {
  max-width: 44ch;
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.serve__head .btn {
  margin-top: 1.75rem;
}

.serve__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.1rem);
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
}

.tile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, rgb(6 19 41 / 88%) 0%, rgb(6 19 41 / 40%) 38%, rgb(6 19 41 / 0%) 62%);
}

.tile__body {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: clamp(0.9rem, 1.4vw, 1.25rem);
  color: #fff;
}

.tile__tag {
  padding: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold-400);
  border-radius: 99px;
}

.tile__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.tile__note {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #dfe5f0;
}

@media (width >= 760px) {
  /* Multifamily (primary focus) gets a slightly wider card */
  .serve__tiles {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }

  .tile {
    aspect-ratio: auto;
    min-height: clamp(260px, 24vw, 330px);
  }
}

@media (width >= 1100px) {
  .serve__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

/* applications / building types: a quiet typeset index under the cards */
.serve__facts {
  display: grid;
  gap: 1.25rem 3rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.serve__facts dt {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* separators sit before each item; the one that lands at a line start is clipped away */
.serve__facts dd {
  overflow: hidden;
}

.serve__facts .chips {
  gap: 0.25rem 0;
  margin-left: -1.5rem;
}

.serve__facts .chips li {
  padding: 0;
  font-size: 0.9375rem;
  color: var(--text);
  background: none;
  border: 0;
}

.serve__facts .chips li::before {
  display: inline-block;
  width: 1.5rem;
  color: var(--gold-700);
  text-align: center;
  content: '/';
}

@media (width >= 900px) {
  .serve__facts {
    grid-template-columns: 1fr 1fr;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-800);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
}

/* ---------- About: photo with a diagonal cut, copy right, faded brand mark ---------- */
.about {
  position: relative;
  display: grid;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 70%, #f7f9fd 100%);
  box-shadow: inset 0 1px 0 rgb(11 27 58 / 6%);
}

.about__media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
}

.about__content {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
}

.about__lede {
  max-width: 60ch;
  margin-top: 1.1rem;
  color: var(--muted);
}

.about__quote {
  max-width: 52ch;
  padding-left: 1.1rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-800);
  border-left: 3px solid var(--gold-400);
}

.about__content .btn {
  margin-top: 1.75rem;
}

.about__mark {
  position: absolute;
  top: clamp(2rem, 4vw, 3rem);
  right: -3%;
  z-index: 0;
  width: clamp(220px, 24vw, 360px);
  height: clamp(220px, 24vw, 360px);
  color: var(--ink-800);
  opacity: 0.045;
  fill: currentcolor;
  pointer-events: none;
}

.about__more {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--gap);
  padding-block: clamp(1rem, 3vw, 2rem) var(--section);
}

.offer,
.about__expertise {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
}

.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.offer__title,
.about__label {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}

.offer__title {
  color: var(--ink-800);
}

.offer__list {
  display: grid;
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
}

.offer__list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-block: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  border-bottom: 1px solid #eceae4;
}

.offer__list .icon {
  --sw: 2.5;

  width: 1.5rem;
  height: 1.5rem;
  padding: 0.32rem;
  margin-top: -0.05rem;
  color: var(--blue-600);
  background: #e9ecff;
  border-radius: 50%;
}

@media (width >= 700px) {
  .offer__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* the last row closes on the card edge, not on a hairline */
  .offer__list li:nth-last-child(-n + 2):nth-child(odd),
  .offer__list li:last-child {
    border-bottom: 0;
  }
}

@media (width < 700px) {
  .offer__list li:last-child {
    border-bottom: 0;
  }
}

.about__expertise {
  --focus: var(--amber-300);

  color: var(--on-dark);
  background: radial-gradient(80% 60% at 100% 0%, rgb(47 70 232 / 28%), transparent 70%), var(--ink-800);
  box-shadow: var(--shadow-float);
}

.about__expertise .about__label {
  color: var(--on-dark);
  border-bottom-color: var(--line-dark);
}

.about__expertise .chips {
  align-content: flex-start;
  padding-top: 1rem;
}

.about__expertise .chips li {
  color: var(--on-dark);
  background: rgb(255 255 255 / 6%);
  border-color: rgb(243 241 234 / 22%);
}

@media (width >= 960px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about__media {
    min-height: 460px;
    clip-path: polygon(0 0, 89% 0, 100% 100%, 0 100%);
  }

  .about__content {
    align-self: center;
    padding: clamp(3rem, 5vw, 4.5rem) max(var(--gutter), calc((100vw - var(--max)) / 2))
      clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  }

  .about__more {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: stretch;
  }
}

/* ---------- Section heads ---------- */
.services .section-head {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

@media (width >= 900px) {
  .services .section-head {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

/* ---------- Services: four cards + offer list ---------- */
/* reference-style backdrop: cool light neutral + oversized faint brand mark (bar + triangle) */
.services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) clamp(5rem, 10vw, 8rem));
}

.services::after {
  position: absolute;
  right: -3vw;
  bottom: -6%;
  z-index: -1;
  width: clamp(280px, 30vw, 460px);
  aspect-ratio: 100 / 112;
  content: '';
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112'%3E%3Cg fill='%230b1b3a' fill-opacity='.045'%3E%3Crect width='24' height='112' rx='2'/%3E%3Cpath d='M34 0 100 42 34 84z'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
}

.services .svc__card:not(.svc__card--accent) {
  border-color: transparent;
  box-shadow:
    0 1px 2px rgb(11 27 58 / 5%),
    0 8px 24px -12px rgb(11 27 58 / 14%);
}

.svc {
  display: grid;
  gap: var(--card-gap);
}

.svc__card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.svc__card:hover {
  border-color: rgb(11 27 58 / 28%);
  box-shadow: 0 22px 44px -32px rgb(11 27 58 / 45%);
}

.svc__icon {
  --sw: 1.25;

  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.svc__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.svc__card p {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--muted);
}

.svc__card--accent {
  --focus: var(--amber-300);

  color: var(--on-dark);
  background: var(--ink-800);
  border-color: var(--ink-800);
}

.svc__card--accent:hover {
  border-color: var(--ink-800);
}

.svc__card--accent .svc__icon {
  color: var(--amber-300);
}

.svc__card--accent p {
  color: var(--on-dark-muted);
}

@media (width >= 600px) {
  .svc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1000px) {
  .svc {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Client portal (dark) ---------- */
.portal {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(55% 70% at 80% 40%, rgb(47 70 232 / 26%), transparent 70%),
    radial-gradient(30% 40% at 12% 100%, rgb(229 165 75 / 10%), transparent 70%), var(--ink-900);
}

.portal__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (width >= 1000px) {
  .portal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1200px) {
  .portal__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.portal__accent {
  color: var(--blue-300);
}

.portal__text .lead {
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
}

.portal__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.7rem 2rem;
  margin-block: 2rem 2.5rem;
  font-size: 0.95rem;
}

.portal__features li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.portal__features .icon {
  color: var(--amber-300);
}

.portal__figure {
  container-type: inline-size;
}

.portal__caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
  text-align: right;
  letter-spacing: 0.04em;
}

/* HTML/CSS dashboard mock */
.dash {
  font-size: clamp(9px, 2.05cqi, 14px);
  line-height: 1.3;
  color: var(--text);
  background: var(--surface);
  border-radius: 1em;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 8%),
    0 40px 80px -30px rgb(0 0 0 / 70%),
    0 0 120px -30px rgb(90 108 255 / 50%);
}

.dash__chrome {
  display: flex;
  gap: 0.45em;
  padding: 0.9em 1.1em;
  border-bottom: 1px solid #eceae4;
}

.dash__chrome span {
  width: 0.7em;
  height: 0.7em;
  background: #dcd9d1;
  border-radius: 50%;
}

.dash__body {
  display: grid;
  grid-template-columns: 27% 1fr;
}

.dash__side {
  display: grid;
  gap: 0.35em;
  align-content: start;
  padding: 1.2em 0.9em;
  background: #f7f7fb;
  border-right: 1px solid #eceae4;
  border-bottom-left-radius: 1em;
}

.dash__mark {
  width: 2.2em;
  height: 2.2em;
  margin: 0 0 0.9em 0.4em;
}

.dash__nav {
  padding: 0.55em 0.75em;
  font-family: var(--font-display);
  font-size: 0.92em;
  font-weight: 500;
  color: var(--muted);
  border-radius: 0.5em;
}

.dash__nav.is-active {
  color: var(--blue-600);
  background: #e7eaff;
}

.dash__main {
  display: grid;
  gap: 1.2em;
  align-content: start;
  padding: 1.4em;
}

.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash__title {
  font-family: var(--font-display);
  font-size: 1.25em;
  font-weight: 600;
}

.dash__pill {
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-weight: 600;
  color: #1d6b43;
  background: #e3f4ea;
  border-radius: 99em;
}

.dash__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75em;
}

.dash__stat {
  display: grid;
  gap: 0.15em;
  padding: 0.9em;
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
  border: 1px solid #eceae4;
  border-radius: 0.7em;
}

.dash__stat b {
  font-family: var(--font-display);
  font-size: 2em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.dash__stat--glow {
  background: #fff8ec;
  border-color: #f2d6a8;
}

.dash__panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.75em;
}

.dash__panel {
  display: grid;
  gap: 0.8em;
  align-content: start;
  min-height: 11em;
  padding: 1em;
  background: #f7f7fb;
  border-radius: 0.7em;
}

.dash__label {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 600;
}

.dash__row {
  display: flex;
  gap: 0.7em;
  align-items: center;
}

.dash__row i {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  background: var(--blue-500);
  border-radius: 50%;
}

.dash__row i.amber {
  background: var(--amber-400);
}

.dash__row i.muted {
  background: #c9ccd6;
}

.dash__row s {
  width: var(--w);
  height: 0.5em;
  background: #e1e3ea;
  border-radius: 1em;
}

.dash__bars {
  display: flex;
  gap: 0.5em;
  align-items: flex-end;
  height: 7em;
}

.dash__bars s {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
  border-radius: 0.3em 0.3em 0.1em 0.1em;
}

.dash__bars s:nth-child(4) {
  background: linear-gradient(180deg, var(--amber-300), var(--amber-400));
}

@media (width < 520px) {
  .dash__body {
    grid-template-columns: 1fr;
  }

  .dash__side {
    display: none;
  }

  .dash {
    font-size: 10px;
  }
}

.portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Portal mock: live status dot */
.dash__live {
  position: relative;
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  vertical-align: 0.05em;
  background: #1d9a5b;
  border-radius: 50%;
}

.dash__live::after {
  position: absolute;
  inset: 0;
  content: '';
  background: inherit;
  border-radius: 50%;
  opacity: 0;
}

/* ---------- Specs & cutsheets: copy + fanned category covers, then the full library ---------- */
.cutsheets {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) clamp(5rem, 10vw, 8rem));
}

/* faint gold arc lines behind the covers (reference) */
.cutsheets::before {
  position: absolute;
  top: -340px;
  right: -260px;
  width: 1100px;
  height: 900px;
  pointer-events: none;
  content: '';
  border: 1px solid rgb(214 166 112 / 35%);
  border-radius: 50%;
}

.cutsheets__intro {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3rem);
  align-items: center;
}

.cutsheets__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  margin-top: 1.75rem;
}

.cutsheets__catalog-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s var(--ease);
}

.cutsheets__catalog-link:hover,
.cutsheets__catalog-link:focus-visible {
  text-decoration-color: var(--ink-800);
}

.cutsheets__catalog-link .icon {
  width: 1rem;
  height: 1rem;
}

/* three tilted covers */
.covers {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  justify-content: center;
  padding-block: 1rem 1.5rem;
}

.cover {
  position: relative;
  flex: 0 1 220px;
  min-width: 0;
}

.cover:nth-child(1) {
  z-index: 1;
  transform: rotate(-6deg) translateY(6%);
}

.cover:nth-child(2) {
  z-index: 2;
  transform: translateY(-4%);
}

.cover:nth-child(3) {
  z-index: 1;
  transform: rotate(5deg) translateY(8%);
}

.cover__link {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  transition: transform 0.35s var(--ease);
}

.cover__link:hover,
.cover__link:focus-visible {
  transform: translateY(-6px);
}

.cover__img {
  width: 100%;
  min-height: 0;
  object-fit: cover;
  filter: var(--grade);
}

.cover__title {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.cover--paper .cover__link {
  padding: 0.6rem 0.6rem 0;
  background: var(--surface);
}

.cover--paper .cover__img {
  flex: 1;
  border-radius: calc(var(--radius) - 4px);
}

.cover--paper .cover__title {
  padding: 0.9rem 0.5rem 1rem;
  color: var(--ink-800);
}

.cover--ink .cover__link {
  background: var(--ink-800);
}

.cover--ink .cover__img {
  flex: 1;
  opacity: 0.85;
}

.cover--ink .cover__title {
  padding: 1rem 1.1rem 1.2rem;
  color: #fff;
}

.cover--photo .cover__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
}

.cover--photo .cover__link {
  justify-content: flex-end;
  background: var(--ink-800);
}

.cover--photo .cover__link::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, rgb(6 19 41 / 88%), rgb(6 19 41 / 0%) 60%);
}

.cover--photo .cover__title {
  padding: 1rem 1.1rem 1.2rem;
  color: #fff;
}

@media (width >= 1000px) {
  .cutsheets__intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (width < 600px) {
  .cover:nth-child(1) {
    transform: rotate(-5deg) translateY(5%);
  }

  .cover:nth-child(3) {
    transform: rotate(4deg) translateY(6%);
  }

  .cover__title {
    font-size: 0.8125rem;
  }

  .cover--paper .cover__title,
  .cover--ink .cover__title,
  .cover--photo .cover__title {
    padding: 0.6rem 0.6rem 0.75rem;
  }
}

/* the library itself */
.library {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.library__status {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.library__cats,
.library__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-800);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.pill:hover {
  border-color: var(--ink-800);
}

.pill[aria-selected='true'] {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.library__panel {
  display: grid;
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.library__panel:focus-visible {
  outline-offset: 4px;
}

.library__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--gold-300);
  background: radial-gradient(70% 60% at 50% 40%, rgb(47 70 232 / 25%), transparent 70%), var(--ink-800);
}

.library__icon {
  --sw: 0.5;

  width: 88px;
  height: 88px;
}

.library__index {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-muted);
  letter-spacing: 0.08em;
}

.library__body {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  justify-items: start;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.library__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-800);
}

.library__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.library__meta::before {
  flex: none;
  width: 6px;
  height: 6px;
  content: '';
  background: var(--gold-500);
  border-radius: 50%;
}

.library__text {
  max-width: 56ch;
  color: var(--muted);
}

.library__body .btn {
  margin-top: 0.5rem;
}

@media (width >= 760px) {
  .library__panel {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    min-height: 280px;
  }
}

/* Real entries from the data array (future ACF repeater) */
.spec__files {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-height: 22rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
  margin-top: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (width >= 1100px) {
  .spec__files {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width >= 700px) and (width < 1100px) {
  .spec__files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec__file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.75rem;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}

.spec__file:hover {
  border-color: var(--ink-800);
}

.spec__file .icon {
  grid-row: span 2;
  color: var(--blue-500);
}

.spec__file-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec__file-meta {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Get inspired: photo strip + "View all projects" ---------- */
.inspire {
  background: linear-gradient(180deg, #f7f9fd 0%, var(--surface) clamp(4rem, 8vw, 6rem));
  box-shadow: inset 0 1px 0 rgb(11 27 58 / 6%);
}

.inspire .section-head {
  gap: 0;
}

.inspire__strip {
  display: grid;
  gap: var(--gap);
  align-items: center;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.inspire__more {
  justify-self: start;
}

@media (width >= 900px) {
  .inspire .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: end;
  }

  .inspire .section-head .lead {
    grid-row: 1 / span 2;
    grid-column: 2;
    place-self: end end;
    margin: 0;
  }

  .inspire__strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1vw, 0.9rem);
}

@media (width >= 760px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 4;
}

@media (width < 760px) {
  .gallery__item {
    aspect-ratio: 4 / 5;
  }
}

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
  background: var(--ink-800);
  border: 0;
  border-radius: var(--radius-sm);
}

.gallery__btn img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transition: transform 0.6s var(--ease);
}

.gallery__btn::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(0deg, rgb(6 19 41 / 80%) 0%, rgb(6 19 41 / 0%) 50%);
}

.gallery__cap {
  position: absolute;
  right: 3.25rem;
  bottom: 0.8rem;
  left: 0.9rem;
  display: grid;
  gap: 0.05rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery__cap span {
  font-size: 0.8125rem;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.gallery__zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 34px;
  height: 34px;
  padding: 8px;
  color: #fff;
  background: rgb(6 19 41 / 55%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery__btn:hover img,
.gallery__btn:focus-visible img {
  transform: scale(1.04);
}

.gallery__btn:hover .gallery__zoom,
.gallery__btn:focus-visible .gallery__zoom {
  opacity: 1;
}

@media (hover: none) {
  .gallery__zoom {
    opacity: 1;
  }
}

/* narrow tiles: the caption keeps only the photo name (the label stays in the text for the lightbox) */
@media (width < 1100px) {
  .gallery__cap {
    right: 0.75rem;
    font-size: 0;
  }

  .gallery__cap span {
    font-size: 0.8125rem;
  }

  .gallery__zoom {
    top: 0.6rem;
    bottom: auto;
  }
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  margin: 0;
  color: var(--on-dark);
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgb(4 10 24 / 94%);
}

.lightbox__frame {
  --focus: var(--gold-300);

  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.5rem clamp(1rem, 7vw, 6rem) 2rem;
}

.lightbox__figure {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  max-width: 100%;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 10rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
}

.lightbox__count {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  letter-spacing: 0.08em;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.25rem;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease);
}

.lightbox__btn:hover {
  background: rgb(255 255 255 / 18%);
}

.lightbox__btn--prev {
  top: 50%;
  left: clamp(0.5rem, 2vw, 1.5rem);
  translate: 0 -50%;
}

.lightbox__btn--next {
  top: 50%;
  right: clamp(0.5rem, 2vw, 1.5rem);
  translate: 0 -50%;
}

.lightbox__btn--close {
  top: 1rem;
  right: clamp(0.5rem, 2vw, 1.5rem);
}

@media (width < 600px) {
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 1rem;
    translate: none;
  }

  .lightbox__frame {
    padding-bottom: 5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__figure {
    animation: fade-in 0.35s var(--ease);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Register: navy contact panel + white form ---------- */
.register {
  background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) clamp(5rem, 10vw, 8rem));
}

.register__card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

@media (width >= 1000px) {
  .register__card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.register__intro {
  position: relative;
  z-index: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(160deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.register__mark {
  position: absolute;
  right: -6%;
  bottom: -4%;
  z-index: -1;
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  color: #fff;
  opacity: 0.05;
  fill: currentcolor;
  pointer-events: none;
}

.register__intro .h2 {
  max-width: 16ch;
}

.register__intro .lead {
  margin-top: 0.9rem;
  font-size: var(--fs-body);
  color: #d3dae7;
}

.register__steps {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.register__steps li {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.9375rem;
}

.register__step-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--gold-400);
  border-radius: 50%;
}

.register__contact {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  font-style: normal;
  border-top: 1px solid var(--line-dark);
}

.register__contact > a,
.register__contact > span {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.register__contact .icon {
  --sw: 1.6;

  width: 36px;
  height: 36px;
  padding: 9px;
  color: #fff;
  background: var(--ink-600);
  border-radius: 50%;
  transition: background-color 0.2s var(--ease);
}

.register__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register__contact a:hover .icon {
  background: var(--ink-500);
}

.register__login {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.register__login a {
  font-weight: 600;
  color: var(--gold-300);
  text-underline-offset: 3px;
}

.register__form-wrap {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form__note {
  margin-bottom: 1.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.form__grid {
  display: grid;
  gap: 1rem 1.25rem;
}

@media (width >= 600px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-800);
}

.field__opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #8a94a8;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgb(47 70 232 / 20%);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field [aria-invalid='true']:focus-visible {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgb(180 35 24 / 18%);
}

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding-top: 0.25rem;
}

.field--check input[type='checkbox'] {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin: 0.1rem 0 0;
  accent-color: var(--ink-800);
}

.field--check input[type='checkbox']:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

.field--check label {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.field--check .field__error {
  grid-column: 2;
  margin-top: 0;
}

.select {
  position: relative;
}

.select::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 8px;
  height: 8px;
  pointer-events: none;
  content: '';
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}

.select select {
  padding-right: 2.5rem;
  appearance: none;
}

.field__error {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error);
}

.field__error::before {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  content: '!';
  background: var(--error);
  border-radius: 50%;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.75rem;
}

.form__summary {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--error);
}

.form__summary:empty {
  display: none;
}

.form-success {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding-block: clamp(1rem, 4vw, 3rem);
}

.form-success:focus {
  outline: 0;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--ink-900);
  background: var(--gold-300);
  border-radius: 50%;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-800);
}

.form-success p {
  color: var(--muted);
}

.form-success .form-success__note {
  font-size: var(--fs-small);
}

.form-success .btn {
  margin-top: 1rem;
}

/* ---------- Footer: brand | nav + contact | Client Login, then the legal line ---------- */
.site-footer {
  padding-block: clamp(3rem, 5vw, 4rem) 1.75rem;
  color: var(--on-dark);
  background: var(--ink-900);
}

.site-footer__top {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer__brand img {
  width: 128px;
}

.site-footer__tagline {
  padding-left: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-left: 1px solid var(--line-dark);
}

.site-footer__head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--gold-300);
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-size: var(--fs-small);
  font-style: normal;
  color: var(--on-dark-muted);
}

.site-footer__contact > a,
.site-footer__contact > span {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__contact .icon {
  color: var(--gold-300);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.site-footer__credit a,
.site-footer__top-link {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--line-dark);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s var(--ease);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible,
.site-footer__top-link:hover {
  text-decoration-color: var(--gold-300);
}

.site-footer__top-link {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  min-height: 44px;
}

@media (width >= 1000px) {
  .site-footer__top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'brand nav cta'
      'brand contact cta';
    gap: 0 clamp(2rem, 4vw, 4rem);
  }

  .site-footer__brand {
    grid-area: brand;
  }

  .site-footer__col--nav {
    grid-area: nav;
  }

  .site-footer__col--contact {
    grid-area: contact;
  }

  .site-footer__cta {
    grid-area: cta;
  }

  .site-footer__nav,
  .site-footer__contact {
    justify-content: center;
  }
}

/* ==========================================================
   Motion: one signature moment (hero lights on, headline rises through a mask),
   one quiet reveal, the portal counters. Transform / opacity / filter only.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation:
      hero-settle 2.6s var(--ease) both,
      lights-on 2.4s ease-out both;
  }

  .hero::before {
    animation: bloom 2.8s ease-out both;
  }

  /* grid stops the lines' negative margins collapsing */
  .hero__title {
    display: grid;
  }

  .hero__title .line {
    padding-block: 0.5em;
    margin-block: -0.5em;
    overflow: clip;
  }

  .hero__title .line > span {
    display: block;
    animation: line-up 1s cubic-bezier(0.2, 0.75, 0.15, 1) 0.2s both;
  }

  .hero__title .line:nth-child(2) > span {
    animation-delay: 0.35s;
  }

  /* Portal mock comes alive (JS adds .is-live in view) */
  .js .dash .dash__row {
    opacity: 0;
    transform: translateX(-10px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
  }

  .js .dash .dash__row s {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
  }

  .js .dash .dash__bars s {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.8s var(--ease);
  }

  .js .dash.is-live .dash__row,
  .js .dash.is-live .dash__row s,
  .js .dash.is-live .dash__bars s {
    opacity: 1;
    transform: none;
  }

  .dash__row:nth-child(3),
  .dash__row:nth-child(3) s,
  .dash__bars s:nth-child(2) {
    transition-delay: 0.1s;
  }

  .dash__row:nth-child(4),
  .dash__row:nth-child(4) s,
  .dash__bars s:nth-child(3) {
    transition-delay: 0.2s;
  }

  .dash__row:nth-child(5),
  .dash__row:nth-child(5) s,
  .dash__bars s:nth-child(4) {
    transition-delay: 0.3s;
  }

  .dash__bars s:nth-child(5) {
    transition-delay: 0.4s;
  }

  .dash.is-live .dash__live::after {
    animation: live-ping 2.2s var(--ease) 0.6s infinite;
  }

  /* Scroll reveal (JS-gated) */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
    transition-delay: calc(var(--d, 0) * 80ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Photos: fade up only; the image itself settles from a slight zoom */
  .js [data-reveal='clip'] img {
    transition: transform 0.8s var(--ease);
  }

  .js [data-reveal='clip']:not(.is-in) img {
    transform: scale(1.06);
  }
}

@keyframes lights-on {
  from {
    filter: brightness(0.4) saturate(0.6);
  }
}

@keyframes bloom {
  0%,
  30% {
    opacity: 0;
  }

  62% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

@keyframes line-up {
  from {
    transform: translateY(calc(100% + 0.6em));
  }
}

@keyframes live-ping {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Hover depth: cards lift, covers fan out (pointer devices, motion allowed) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile,
  .svc__card,
  .value,
  .gallery__btn,
  .spec__file {
    transition:
      transform 0.45s var(--ease),
      box-shadow 0.45s var(--ease),
      border-color 0.3s var(--ease);
  }

  .tile:hover,
  .svc__card:hover,
  .gallery__btn:hover {
    box-shadow: 0 26px 48px -28px rgb(11 27 58 / 55%);
    transform: translateY(-6px);
  }

  .spec__file:hover {
    transform: translateY(-2px);
  }

  .cover {
    transition: transform 0.6s var(--ease);
  }

  .covers:hover .cover:nth-child(1) {
    transform: rotate(-10deg) translate(-6%, 4%);
  }

  .covers:hover .cover:nth-child(2) {
    transform: translateY(-8%);
  }

  .covers:hover .cover:nth-child(3) {
    transform: rotate(9deg) translate(6%, 6%);
  }
}

/* ---------- Staggered heads: label, heading and copy rise in sequence once their block is revealed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js
    :is(.section-head, .serve__head, .about__content, .portal__text, .register__intro)[data-reveal]
    > :not(.btn, .portal__actions, .cutsheets__actions, svg) {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.6s var(--ease),
      transform 0.6s var(--ease);
  }

  .js
    :is(.section-head, .serve__head, .about__content, .portal__text, .register__intro)[data-reveal].is-in
    > :not(.btn, .portal__actions, .cutsheets__actions, svg) {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal].is-in > :nth-child(2) {
    transition-delay: 0.08s;
  }

  .js [data-reveal].is-in > :nth-child(3) {
    transition-delay: 0.16s;
  }

  .js [data-reveal].is-in > :nth-child(4) {
    transition-delay: 0.24s;
  }

  .js [data-reveal].is-in > :nth-child(n + 5) {
    transition-delay: 0.32s;
  }
}

@media (hover: hover) {
  .js [data-reveal].is-in:hover {
    transition-delay: 0s;
  }
}

/* ---------- Who we serve: accordion on hover / keyboard focus ---------- */
@media (width >= 1100px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .serve__tiles {
    display: flex;
  }

  .tile {
    flex: 1 1 0;
    min-width: 0;
  }

  /* once revealed, the card's own transitions take over from the reveal transition */
  .serve__tiles .tile,
  .js .serve__tiles .tile[data-reveal].is-in {
    transition:
      flex-grow 0.5s var(--ease),
      transform 0.45s var(--ease),
      box-shadow 0.45s var(--ease),
      opacity 0.7s var(--ease);
    transition-delay: 0s;
  }

  .tile:first-child {
    flex-grow: 1.3;
  }

  .serve__tiles:is(:hover, :focus-within) .tile {
    flex-grow: 0.85;
  }

  .serve__tiles .tile:is(:hover, :focus-within) {
    flex-grow: 1.8;
  }

  .tile:focus-visible {
    outline-offset: 4px;
  }
}
