/* ==========================================================================
   Saba Ryan Advertising — static site styles
   Breakpoints: sm 640px · md 768px · lg 1024px · xl 1280px · 2xl 1536px
   ========================================================================== */

:root {
  --primary: #b08d3f;
  --primary-light: #d5b66d;
  --primary-dark: #8c6b2b;
  --black: #0b0b0c;
  --dark: #151515;
  --white: #ffffff;
  --off-white: #f4f4f5;
  --ink: #111111;
  --muted: #71717a;
  --border: #e4e4e7;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  /* Smooth scrolling comes from Lenis; CSS smooth scrolling would fight it. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  font-size: inherit;
  font-weight: inherit;
}

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

::selection {
  background: var(--primary);
  color: var(--white);
}

[hidden] {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 20px;
}

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon { flex-shrink: 0; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.icon-56 { width: 56px; height: 56px; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.break-all { word-break: break-all; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.md-only,
.sm-only { display: none; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  width: auto;
  height: auto;
  clip: auto;
  border-radius: 9999px;
  background: var(--primary);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Lenis ---------- */
/* While Lenis eases a wheel scroll, cards passing under a still cursor would start their hover
   animations mid-scroll; switch hover off for them until the page settles. */
html.lenis-smooth [data-hover-card] {
  pointer-events: none;
}

/* ---------- Brand tint ----------
   Hovering a [data-hover-card] floods its photo with the brand gold. The "color" blend keeps the
   photo's own light and shade and swaps in the gold's hue. Only on devices that really hover. */
.brand-tint {
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  mix-blend-mode: color;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
@media (hover: hover) {
  [data-hover-card]:hover .brand-tint { opacity: 1; }
}
[data-hover-card]:focus-visible .brand-tint { opacity: 1; }

/* ---------- Entrances (CSS, so above-the-fold copy shows at first paint) ---------- */
@keyframes enter-line {
  from { transform: translateY(105%); }
}
@keyframes enter-rise {
  from { opacity: 0; transform: translateY(30px); }
}
@keyframes enter-drop {
  from { opacity: 0; transform: translateY(-16px); }
}
@keyframes enter-settle {
  from { transform: scale(var(--enter-scale, 1.06)); }
}
.enter-line { animation: enter-line 0.9s var(--ease) both; }
.enter-rise { animation: enter-rise 0.7s var(--ease) both; }
.enter-settle { animation: enter-settle 2s var(--ease) both; }
.enter-drop { animation: enter-drop 0.8s var(--ease) both; }

/* Scroll reveals (main.js): hidden until GSAP brings them in. Only when JS runs. */
.js [data-reveal],
.js [data-stagger-item] {
  opacity: 0;
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee var(--marquee-duration, 45s) linear infinite;
}
.marquee-track--reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Page transitions (cross-document view transitions) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition {
  pointer-events: none;
}
::view-transition-old(root) {
  animation: 180ms cubic-bezier(0.4, 0, 1, 1) both page-out;
}
::view-transition-new(root) {
  animation: 420ms var(--ease) 90ms both page-in;
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(18px); }
}
/* The navbar stays put while the page content changes beneath it. */
::view-transition-group(site-header) {
  animation: none;
  z-index: 100;
}
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }

/* ---------- Hero overlay ---------- */
.hero-overlay {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgb(11 11 12 / 0.72) 0%, rgb(11 11 12 / 0.45) 55%, rgb(11 11 12 / 0.12) 100%),
    linear-gradient(180deg, rgb(11 11 12 / 0.55) 0%, rgb(11 11 12 / 0) 22%);
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* ---------- Eyebrow (section badge) ---------- */
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  border-radius: 9999px;
  border-width: 1px;
  padding: 8px 16px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--dark {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
}
.eyebrow--light {
  border-color: rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--primary);
}
.hl { color: var(--primary); }

/* ---------- Section headings ---------- */
.h-section {
  margin-top: 20px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.h-section--light { color: var(--white); }

.section-head {
  margin-inline: auto;
  display: flex;
  max-width: 820px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--wide { max-width: 1040px; }
.section-head__text {
  margin-top: 24px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}
.section-head__text--light { color: rgb(255 255 255 / 0.6); }
.section-head__text--narrow { max-width: 580px; }

/* ---------- Chip button: pill label + circular arrow chip ---------- */
.chip-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.chip-btn--sm {
  height: 44px;
  gap: 12px;
  padding-right: 4px;
  padding-left: 20px;
  font-size: 14px;
}
.chip-btn--lg {
  height: 52px;
  gap: 16px;
  padding-right: 6px;
  padding-left: 24px;
  font-size: 15px;
}
.chip-btn--block {
  width: 100%;
  justify-content: space-between;
}
.chip-btn__chip {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.chip-btn--sm .chip-btn__chip { width: 36px; height: 36px; }
.chip-btn--lg .chip-btn__chip { width: 40px; height: 40px; }
.chip-btn__icon {
  display: flex;
  transition: transform 0.45s var(--ease);
}
.chip-btn__icon--in {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
/* The visible arrow slides out along its direction while a second copy slides in behind it. */
.chip-btn--up-right .chip-btn__icon--in { transform: translate(-140%, 140%); }
.chip-btn--down .chip-btn__icon--in { transform: translate(0, -140%); }

.chip-btn--gold { background: #b08d3f; color: #ffffff; }
.chip-btn--gold .chip-btn__chip { background: rgb(255 255 255 / 0.18); color: #ffffff; }
.chip-btn--dark {
  background: rgb(11 11 12 / 0.6);
  border-color: rgb(255 255 255 / 0.15);
  color: #ffffff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.chip-btn--dark .chip-btn__chip { background: rgb(255 255 255 / 0.1); color: #ffffff; }
.chip-btn--ink { background: #0b0b0c; color: #ffffff; }
.chip-btn--ink .chip-btn__chip { background: rgb(255 255 255 / 0.12); color: #ffffff; }

.can-hover .chip-btn:hover .chip-btn__icon--in,
.chip-btn:focus-visible .chip-btn__icon--in {
  transform: translate(0, 0);
  transition-delay: 0.06s;
}
.can-hover .chip-btn--up-right:hover .chip-btn__icon--out,
.chip-btn--up-right:focus-visible .chip-btn__icon--out { transform: translate(140%, -140%); }
.can-hover .chip-btn--down:hover .chip-btn__icon--out,
.chip-btn--down:focus-visible .chip-btn__icon--out { transform: translate(0, 140%); }

.can-hover .chip-btn--gold:hover,
.chip-btn--gold:focus-visible { background: #ffffff; color: #0b0b0c; }
.can-hover .chip-btn--gold:hover .chip-btn__chip,
.chip-btn--gold:focus-visible .chip-btn__chip { background: #b08d3f; color: #ffffff; }
.can-hover .chip-btn--dark:hover,
.chip-btn--dark:focus-visible { background: #ffffff; border-color: #ffffff; color: #0b0b0c; }
.can-hover .chip-btn--dark:hover .chip-btn__chip,
.chip-btn--dark:focus-visible .chip-btn__chip { background: #0b0b0c; color: #ffffff; }
.can-hover .chip-btn--ink:hover,
.chip-btn--ink:focus-visible { background: #b08d3f; color: #ffffff; }
.can-hover .chip-btn--ink:hover .chip-btn__chip,
.chip-btn--ink:focus-visible .chip-btn__chip { background: #0b0b0c; color: #ffffff; }

/* ==========================================================================
   Header and mobile menu
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  /* Named so page transitions leave the navbar in place. */
  view-transition-name: site-header;
}

/* Slides up out of view while scrolling down and back on the way up (main.js). The slide uses the
   `translate` property because the header's entrance animation owns `transform`. */
.navbar {
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    translate 0.5s var(--ease);
}
.navbar.is-solid {
  /* Solid rather than blurred: a backdrop blur re-renders the page beneath it on every scroll frame. */
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(11 11 12 / 0.95);
}
.navbar.is-hidden { translate: 0 -100%; }
.navbar:focus-within { translate: 0 0; }

.navbar__inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.5s var(--ease-std);
}
.navbar.is-scrolled .navbar__inner { height: 72px; }

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: 6px;
}
.logo img {
  height: 36px;
  width: auto;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 4px;
}
.navbar__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.7);
  transition: color 0.3s var(--ease-std);
}
.navbar__link:hover,
.navbar__link.is-active { color: var(--white); }
.navbar__underline {
  position: absolute;
  inset-inline: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 9999px;
  background: var(--primary);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar__cta { display: none; }

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  color: var(--white);
  transition: border-color 0.15s var(--ease-std);
}
.menu-toggle:hover { border-color: rgb(255 255 255 / 0.5); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  background: var(--black);
  padding-top: 76px;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  padding-block: 32px;
}
.mobile-menu__item { border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.mobile-menu__link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}
.mobile-menu__link.is-active { color: var(--primary-light); }
.mobile-menu__footer { padding-bottom: 48px; }
.mobile-menu__contacts {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.6);
}
.mobile-menu__contacts a:hover { color: var(--white); }

/* ==========================================================================
   Heroes
   ========================================================================== */
.line {
  display: block;
  overflow: hidden;
  margin-bottom: -0.08em;
  padding-bottom: 0.08em;
}
.line__inner { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  width: 100%;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -20;
}
.hero__img { object-position: 40% center; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
}
.hero__content {
  position: relative;
  width: 100%;
  padding-top: 104px;
  padding-bottom: 64px;
}
.hero__inner {
  margin-inline: auto;
  display: flex;
  max-width: 1240px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.hero__text {
  margin-top: 24px;
  max-width: 700px;
  font-size: 16px;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.8);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -20;
  --enter-scale: 1.08;
}
/* Inner-page photos are busier than the homepage hero, so they get an extra tint. */
.page-hero__tint {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: rgb(11 11 12 / 0.4);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
}
.page-hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -10;
  height: 160px;
  background: linear-gradient(to top, rgb(11 11 12 / 0.6), transparent);
}
.page-hero__content {
  position: relative;
  width: 100%;
  padding-top: 128px;
  padding-bottom: 80px;
}
.page-hero__inner {
  margin-inline: auto;
  display: flex;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-hero__title {
  margin-top: 24px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.page-hero__text {
  margin-top: 24px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.75);
}

/* ==========================================================================
   Home: client strip
   ========================================================================== */
.trust {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.trust__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 36px;
}
.trust__intro { flex-shrink: 0; }
.trust__title {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.trust__divider {
  display: none;
  height: 56px;
  width: 1px;
  flex-shrink: 0;
  background: var(--border);
}
.trust__marquee {
  position: relative;
  min-width: 0;
  flex: 1;
}
.marquee__logo {
  flex-shrink: 0;
  padding-inline: 32px;
}
.marquee__logo img {
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ==========================================================================
   About section (home + about page)
   ========================================================================== */
.about {
  background: var(--off-white);
  padding-block: 80px;
}
.about__grid {
  display: grid;
  gap: 48px;
}

/* Scroll-linked reveal (main.js): the frame opens from an inset window and the image settles. */
.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
}
/* Parallax layer is oversized so its drift never exposes the edges. */
.about-image__parallax {
  position: absolute;
  inset: -7%;
  will-change: transform;
}
.about-image__scale {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.about-image__zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}
.can-hover .about-image:hover .about-image__zoom { transform: scale(1.05); }
.about-image__shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 12 / 0.45), rgb(11 11 12 / 0) 50%, rgb(11 11 12 / 0));
}
.about-image__card-wrap {
  position: absolute;
  bottom: 20px;
  left: 20px;
}
.about-image__card {
  max-width: 220px;
  border-radius: 16px;
  border: 1px solid rgb(176 141 63 / 0.6);
  background: rgb(11 11 12 / 0.85);
  padding: 20px;
  transition: translate 0.5s var(--ease);
}
.can-hover .about-image:hover .about-image__card { translate: 0 -6px; }
.about-image__card-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.about-image__card-line {
  margin-top: 16px;
  display: block;
  height: 2px;
  width: 36px;
  transform-origin: left;
  border-radius: 9999px;
  background: var(--primary);
}
.about-image__card-text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.8);
}

.about__rating {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 10px 20px 10px 16px;
}
.about__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}
.about__star { display: flex; }
.icon-star {
  fill: var(--primary);
  color: var(--primary);
}
.about__rating-text {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.h-section.about__title { margin-top: 24px; }
.about__text {
  margin-top: 24px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.about__text--second { margin-top: 20px; }
.about__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 32px;
}
.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-color: var(--border);
  padding-inline: 12px;
  text-align: center;
}
.about__stat:nth-child(even) { border-left-width: 1px; }
.about__stat-text {
  margin-top: 12px;
  color: var(--ink);
}
.about__stat-value {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about__stat-label {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.about__stat-label--muted {
  margin-top: 6px;
  font-weight: 400;
  color: var(--muted);
}

/* ==========================================================================
   Home: services
   ========================================================================== */
.services {
  background: var(--white);
  padding-block: 80px;
}
/* Phones: swipeable row of tall cards. Tablet: 2 columns. Desktop: 4 columns. */
.services__grid {
  margin: 48px -20px 0;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  gap: 16px;
  overflow-x: auto;
  padding-inline: 20px;
}
.services__item {
  width: 78%;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.services__cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Tall image card: hover zooms the photo, reveals the description and swaps the arrow. Touch
   screens can't hover, so they show the open state all the time. */
.service-card {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
}
.service-card__media {
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}
.service-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 12 / 0.9), rgb(11 11 12 / 0.35), rgb(11 11 12 / 0.1));
  opacity: 0.85;
  transition: opacity 0.6s var(--ease);
}
/* Keeps the number and icon readable on light photos. */
.service-card__top-shade {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 128px;
  background: linear-gradient(to bottom, rgb(11 11 12 / 0.5), transparent);
}
.service-card__top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.service-card__number {
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.25);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.9);
}
.service-card__icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(11 11 12 / 0.35);
  color: var(--white);
}
.service-card__bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}
.service-card__body { min-width: 0; }
.service-card__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.service-card__underline {
  margin-top: 12px;
  display: block;
  height: 2px;
  width: 40px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 9999px;
  background: var(--primary);
  transition: transform 0.6s var(--ease);
}
.service-card__desc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s var(--ease),
    opacity 0.45s var(--ease);
}
.service-card__desc > div { overflow: hidden; }
.service-card__desc p {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.8);
}
.service-card__chip {
  position: relative;
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: #b08d3f;
  color: #ffffff;
  transition:
    background-color 0.6s var(--ease),
    color 0.6s var(--ease);
}
.service-card__arrow {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.service-card__arrow--in {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  transform: translate(-140%, 140%);
}

.can-hover .service-card:hover .service-card__media,
.service-card:focus-visible .service-card__media,
html:not(.can-hover) .service-card__media { transform: scale(1.08); }
.can-hover .service-card:hover .service-card__shade,
.service-card:focus-visible .service-card__shade,
html:not(.can-hover) .service-card__shade { opacity: 1; }
.can-hover .service-card:hover .service-card__underline,
.service-card:focus-visible .service-card__underline,
html:not(.can-hover) .service-card__underline { transform: scaleX(1); transition-delay: 0.05s; }
.can-hover .service-card:hover .service-card__desc,
.service-card:focus-visible .service-card__desc,
html:not(.can-hover) .service-card__desc { grid-template-rows: 1fr; opacity: 1; transition-duration: 0.55s; }
.can-hover .service-card:hover .service-card__chip,
.service-card:focus-visible .service-card__chip,
html:not(.can-hover) .service-card__chip { background: #ffffff; color: #0b0b0c; }
.can-hover .service-card:hover .service-card__arrow--out,
.service-card:focus-visible .service-card__arrow--out,
html:not(.can-hover) .service-card__arrow--out { transform: translate(140%, -140%); }
.can-hover .service-card:hover .service-card__arrow--in,
.service-card:focus-visible .service-card__arrow--in,
html:not(.can-hover) .service-card__arrow--in { transform: translate(0, 0); transition-delay: 0.06s; }

/* ==========================================================================
   Home: featured work (stacking cards)
   ========================================================================== */
.featured {
  background: var(--dark);
  padding-block: 80px;
}
.stack { margin-top: 48px; }
/* Every card pins at the same height; gaps are spacers because a margin on a sticky card would push
   it out early. Scale, lift and shade are driven by scroll in main.js. */
.stack__card {
  position: sticky;
  top: 170px;
}
.stack__spacer { height: 14vh; }
.stack-card {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-rows: auto 1fr;
  transform-origin: top;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgb(255 255 255 / 0.1);
  padding: 10px;
  color: var(--white);
  will-change: transform;
}
.stack-card--gold { background: #b08d3f; }
.stack-card--black { background: #0b0b0c; }
.stack-card__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
}
.stack-card__media img { transition: transform 0.9s var(--ease); }
.can-hover .stack-card__media:hover img { transform: scale(1.05); }
.stack-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}
.stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.stack-card__category {
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.3);
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stack-card__service {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.7);
  text-transform: uppercase;
}
.stack-card__title {
  margin-top: 24px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.stack-card__summary {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.8);
}
.stack-card__desc {
  margin: 20px 0 32px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.7);
}
.stack-card__link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  padding-top: 24px;
}
.stack-card__link-label {
  font-size: 15px;
  font-weight: 600;
}
.stack-card__link-chip {
  position: relative;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  transition:
    background-color 0.5s var(--ease-std),
    color 0.5s var(--ease-std);
}
.stack-card__arrow { transition: transform 0.5s var(--ease); }
.stack-card__arrow--in {
  position: absolute;
  transform: translate(-140%, 140%);
}
.stack-card__link:hover .stack-card__link-chip {
  background: var(--ink);
  color: var(--white);
}
.stack-card__link:hover .stack-card__arrow--out { transform: translate(140%, -140%); }
.stack-card__link:hover .stack-card__arrow--in { transform: translate(0, 0); }
/* Darkens the card as later cards stack over it. */
.stack-card__shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
}
.featured__cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Home: testimonials
   ========================================================================== */
.testimonials {
  overflow: hidden;
  background: var(--off-white);
  padding-block: 80px;
}
.testimonials__rows {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.marquee--testimonials .marquee-track { align-items: stretch; }
.testimonial {
  width: 300px;
  flex-shrink: 0;
  padding-inline: 10px;
}
.testimonial__card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px;
  transition: border-color 0.5s var(--ease-std);
}
.testimonial__card:hover { border-color: rgb(176 141 63 / 0.4); }
.testimonial__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.testimonial__tag {
  border-radius: 9999px;
  background: var(--off-white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.testimonial__quote {
  margin-top: 20px;
  flex: 1;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.testimonial__caption {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.testimonial__role {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.testimonial__company {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   About page
   ========================================================================== */
.mission {
  background: var(--black);
  padding-block: 80px;
}
.mission__grid {
  margin-top: 48px;
  display: grid;
  gap: 20px;
}
.pillar {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
  padding: 32px;
  transition: border-color 0.5s var(--ease-std);
}
.pillar:hover { border-color: rgb(176 141 63 / 0.5); }
.pillar__number {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgb(255 255 255 / 0.3);
}
.pillar__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  transition: rotate 0.5s var(--ease-std);
}
.pillar:hover .pillar__icon { rotate: -6deg; }
.pillar__title {
  margin-top: 32px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.pillar__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: rgb(255 255 255 / 0.65);
}
.pillar__line {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 0.7s var(--ease-std);
}
.pillar:hover .pillar__line { transform: scaleX(1); }

.why {
  background: var(--white);
  padding-block: 80px;
}
.why__grid {
  display: grid;
  gap: 48px;
}
.why__text {
  margin-top: 24px;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.why__list {
  display: grid;
  gap: 16px;
}
.reason {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 28px;
  transition:
    background-color 0.5s var(--ease-std),
    border-color 0.5s var(--ease-std),
    translate 0.5s var(--ease-std);
}
.reason:hover {
  translate: 0 -4px;
  border-color: rgb(176 141 63 / 0.4);
  background: var(--white);
}
.reason__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(176 141 63 / 0.3);
  background: var(--white);
  color: var(--primary-dark);
  transition:
    background-color 0.5s var(--ease-std),
    border-color 0.5s var(--ease-std),
    color 0.5s var(--ease-std);
}
.reason:hover .reason__icon {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.reason__title {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reason__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Process */
.process-wrap {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.process {
  background: var(--white);
  padding-bottom: 80px;
}
.process__steps {
  margin-top: 48px;
  display: grid;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step__row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.step__line {
  display: none;
  height: 0;
  flex: 1;
  transform-origin: left;
  border-top: 2px dotted #d4d4d8;
}
.step__line:first-child { margin-right: 16px; }
.step__line:last-child { margin-left: 16px; }
.step__line.is-invisible { visibility: hidden; }
.step__badge {
  position: relative;
  z-index: 10;
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  cursor: default;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: scale 0.3s var(--ease);
}
.step__badge:hover { scale: 1.08; }
.step__text { margin-top: 20px; }
.step__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step__desc {
  margin: 8px auto 0;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.step__vline {
  margin-block: 20px;
  height: 48px;
  width: 0;
  transform-origin: top;
  border-left: 2px dotted #d4d4d8;
}

/* ==========================================================================
   Services page: horizontal showcase
   ========================================================================== */
.showcase {
  scroll-margin-top: 80px;
  background: var(--white);
  padding-top: 80px;
}
.showcase__pin {
  position: relative;
  margin-top: 48px;
  padding-bottom: 80px;
}
.showcase__track {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  gap: 16px;
  overflow-x: auto;
  padding-inline: 20px;
  will-change: transform;
}
.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 540px;
  width: 84vw;
  flex-shrink: 0;
  scroll-snap-align: start;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  padding: 24px;
}
.poster__img {
  z-index: -20;
  transition: transform 1.2s var(--ease);
}
.can-hover .poster:hover .poster__img { transform: scale(1.05); }
.poster__tint { z-index: -15; }
.poster__shade {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to top, rgb(11 11 12 / 0.9), rgb(11 11 12 / 0.35), rgb(11 11 12 / 0.3));
}
.poster__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.poster__number {
  font-size: 64px;
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.poster__number--faint { color: rgb(255 255 255 / 0.4); }
.poster__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--white);
}
.poster__title {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.poster__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.75);
}
.poster__text--closing {
  max-width: 340px;
  color: rgb(255 255 255 / 0.85);
}
.poster__features {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.poster__features li {
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white);
}
.poster--closing { background: var(--primary); }
.showcase__progress {
  margin-top: 32px;
  display: none;
  align-items: center;
  gap: 24px;
}
.showcase__counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.showcase__bar {
  position: relative;
  height: 2px;
  flex: 1;
  overflow: hidden;
  border-radius: 9999px;
  background: rgb(11 11 12 / 0.1);
}
.showcase__bar-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
}
.showcase__hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   Work page: filterable gallery
   ========================================================================== */
.portfolio {
  scroll-margin-top: 80px;
  background: var(--white);
  padding-block: 80px;
}
.portfolio__head { margin-bottom: 40px; }
.filters {
  margin-inline: -20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-inline: 20px;
}
.filter {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding-inline: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition:
    color 0.3s var(--ease-std),
    border-color 0.3s var(--ease-std);
}
.filter:hover { border-color: var(--ink); }
.filter.is-selected {
  border-color: var(--ink);
  color: var(--white);
}
.filter__pill {
  position: absolute;
  inset: 0;
  z-index: -10;
  border-radius: 9999px;
  background: var(--ink);
}
.filter__count {
  font-size: 12px;
  color: var(--muted);
}
.filter.is-selected .filter__count { color: var(--primary-light); }
.gallery {
  position: relative;
  isolation: isolate;
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

/* Project card: hover zooms the photo and slides the caption up. Touch screens show the caption. */
.project-card {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--off-white);
}
.project-card__media {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.project-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 12 / 0.85), rgb(11 11 12 / 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.project-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary-light);
  text-transform: uppercase;
}
.project-card__title {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
}
.project-card__chip {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--white);
}
.can-hover .project-card:hover .project-card__media,
.project-card:focus-visible .project-card__media,
html:not(.can-hover) .project-card__media { transform: scale(1.06); transition-duration: 0.8s; }
.can-hover .project-card:hover .project-card__shade,
.project-card:focus-visible .project-card__shade,
html:not(.can-hover) .project-card__shade { opacity: 1; }
.can-hover .project-card:hover .project-card__caption,
.project-card:focus-visible .project-card__caption,
html:not(.can-hover) .project-card__caption {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.5s;
  transition-delay: 0.05s;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact {
  background: var(--white);
  padding-block: 80px;
}
.contact__grid {
  display: grid;
  gap: 48px;
}
.contact__text {
  margin-top: 24px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.contact__cards {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px;
}
.info-card--link {
  transition:
    border-color 0.5s var(--ease-std),
    background-color 0.5s var(--ease-std);
}
.info-card--link:hover {
  border-color: rgb(176 141 63 / 0.4);
  background: var(--off-white);
}
.info-card__icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--white);
  transition:
    background-color 0.5s var(--ease-std),
    color 0.5s var(--ease-std);
}
.info-card--link:hover .info-card__icon { background: var(--ink); }
.info-card__body {
  min-width: 0;
  flex: 1;
}
.info-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.info-card__value {
  margin-top: 6px;
  display: block;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}
.info-card__arrow {
  margin-top: 4px;
  color: var(--muted);
  transition:
    color 0.5s var(--ease-std),
    translate 0.5s var(--ease-std);
}
.info-card--link:hover .info-card__arrow {
  translate: 2px -2px;
  color: var(--primary-dark);
}

.quote-anchor { scroll-margin-top: 24px; }
.quote-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 24px;
}
.quote-card__title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote-card__hint {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
.quote-card__body { margin-top: 32px; }

.form {
  display: grid;
  gap: 20px;
}
.field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.input {
  margin-top: 8px;
  display: block;
  height: 52px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  padding-inline: 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.3s var(--ease-std),
    box-shadow 0.3s var(--ease-std);
}
.input::placeholder { color: #a1a1aa; }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgb(176 141 63 / 0.15);
}
.input--area {
  height: auto;
  resize: vertical;
  padding-block: 14px;
  line-height: 1.6;
}
.form__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.form__submit {
  flex-shrink: 0;
  justify-content: space-between;
}

.form-sent {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.form-sent__title {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.form-sent__text {
  margin-top: 12px;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.form-sent__text a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-sent__edit {
  margin-top: 32px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  text-underline-offset: 4px;
}
.form-sent__edit:hover { text-decoration: underline; }

/* Select (ARIA select-only combobox; main.js) */
.select {
  position: relative;
  margin-top: 8px;
}
.select__trigger {
  display: flex;
  height: 52px;
  width: 100%;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  padding-right: 8px;
  padding-left: 16px;
  text-align: left;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.3s var(--ease-std),
    box-shadow 0.3s var(--ease-std);
}
.select__trigger:hover { border-color: #d4d4d8; }
.select__trigger:focus-visible,
.select__trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgb(176 141 63 / 0.15);
}
.select__selected-icon {
  display: none;
  color: var(--primary-dark);
}
.select__selected-icon:not(:empty) { display: flex; }
.select__value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.select__value.is-placeholder { color: #a1a1aa; }
.select__chevron {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--off-white);
  color: var(--ink);
}
.select__chevron svg { transition: rotate 0.35s var(--ease); }
.select__trigger[aria-expanded="true"] .select__chevron svg { rotate: 180deg; }
.select__list {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 30;
  margin-top: 8px;
  max-height: 300px;
  transform-origin: top;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 6px;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.2);
}
.select__option {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: rgb(17 17 17 / 0.8);
  transition: background-color 0.2s var(--ease-std);
}
.select__option.is-active { background: var(--off-white); }
.select__option[aria-selected="true"] {
  font-weight: 600;
  color: var(--ink);
}
.select__option-icon {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(176 141 63 / 0.1);
  color: var(--primary-dark);
  transition:
    background-color 0.2s var(--ease-std),
    color 0.2s var(--ease-std);
}
.select__option[aria-selected="true"] .select__option-icon {
  background: var(--primary);
  color: var(--white);
}
.select__option-label { flex: 1; }
.select__check {
  display: none;
  color: var(--primary-dark);
}
.select__option[aria-selected="true"] .select__check { display: block; }

/* Map */
.map-section {
  background: var(--white);
  padding-bottom: 80px;
}
.map-section__head {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-section__text {
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}
.office-map {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
}
.office-map__frame {
  position: relative;
  height: 380px;
}
/* MapLibre's stylesheet makes this element position: relative, so size it explicitly. */
.office-map__canvas {
  width: 100%;
  height: 100%;
}
.office-map__status {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1a1d 0%, #0b0b0c 70%);
}
.office-map__status[data-state="ready"] { display: none; }
.office-map__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.5);
  text-transform: uppercase;
}
.office-map__error {
  display: none;
  max-width: 300px;
  padding-inline: 24px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.7);
}
.office-map__status[data-state="error"] .office-map__loading { display: none; }
.office-map__status[data-state="error"] .office-map__error { display: block; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.office-map__bounce { animation: bounce 1s infinite; }
.office-map__card {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 24px;
}
.office-map__title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.office-map__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.65);
}
.map-credits {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-credits__text {
  border-radius: 9999px;
  background: rgb(11 11 12 / 0.8);
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.7);
}
.map-credits__text a:hover { color: var(--primary); }
.map-credits__button {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(11 11 12 / 0.6);
  color: rgb(255 255 255 / 0.5);
  transition: color 0.3s var(--ease-std);
}
.map-credits__button:hover { color: var(--white); }

/* Gold pin with a soft pulse (map.js) */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.map-pin {
  position: relative;
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
}
.map-pin__ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgb(176 141 63 / 0.3);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.map-pin__halo {
  position: absolute;
  inset: 12px;
  border-radius: 9999px;
  background: rgb(176 141 63 / 0.25);
}
.map-pin__dot {
  position: relative;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid var(--black);
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--black);
}
.footer__grid {
  display: grid;
  gap: 48px;
  padding-block: 64px;
}
.footer__title {
  margin-top: 20px;
  max-width: 360px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--white);
}
.footer__text {
  margin-top: 16px;
  max-width: 340px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgb(255 255 255 / 0.6);
}
.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
}
.footer__list { margin-top: 20px; }
.footer__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 14.5px;
  color: rgb(255 255 255 / 0.6);
  transition: color 0.3s var(--ease-std);
}
.footer__link:hover { color: var(--primary); }
.footer__contacts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer__icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.06);
  color: var(--primary);
  transition:
    background-color 0.3s var(--ease-std),
    border-color 0.3s var(--ease-std),
    color 0.3s var(--ease-std);
}
a.footer__contact:hover .footer__icon {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.footer__contact-text {
  padding-top: 6px;
  font-size: 14.5px;
  color: rgb(255 255 255 / 0.9);
  transition: color 0.3s var(--ease-std);
}
a.footer__contact:hover .footer__contact-text { color: var(--primary); }
.footer__contact-text--break { word-break: break-all; }
.footer__contact-text--muted {
  line-height: 1.65;
  color: rgb(255 255 255 / 0.6);
}
.footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px;
  font-size: 13px;
  color: rgb(255 255 255 / 0.5);
}
.footer__credit {
  color: rgb(255 255 255 / 0.8);
  transition: color 0.3s var(--ease-std);
}
.footer__credit:hover { color: var(--primary); }

/* ==========================================================================
   404
   ========================================================================== */
.not-found {
  display: flex;
  min-height: 100svh;
  align-items: center;
  background: var(--black);
}
.not-found__inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
}
.not-found__code {
  margin-top: 24px;
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--primary);
}
.not-found__title {
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.not-found__text {
  margin-top: 20px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: balance;
  color: rgb(255 255 255 / 0.7);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 380px) {
  .hero__title { font-size: 40px; }
  .page-hero__title { font-size: 40px; }
}

@media (min-width: 640px) {
  .sm-only { display: inline; }
  .eyebrow { font-size: 12px; }
  .h-section { font-size: 42px; }
  .section-head__text { font-size: 16px; }
  .chip-btn--lg {
    height: 56px;
    padding-right: 8px;
    padding-left: 28px;
    font-size: 16px;
  }
  .logo img { height: 44px; }
  .navbar__cta { display: block; }

  .hero__title { font-size: 48px; }
  .hero__text { margin-top: 28px; font-size: 18px; }
  .hero__actions { gap: 16px; }
  .page-hero { min-height: 580px; }
  .page-hero__title { font-size: 50px; }
  .page-hero__text { font-size: 17.5px; }

  .about,
  .services,
  .featured,
  .testimonials,
  .mission,
  .why,
  .contact,
  .portfolio { padding-block: 96px; }
  .process-wrap,
  .showcase { padding-top: 96px; }
  .process,
  .map-section { padding-bottom: 96px; }

  .about-image { aspect-ratio: 16 / 15; }
  .about-image__card-wrap { bottom: 32px; left: 32px; }
  .about-image__card { max-width: 260px; padding: 24px; }
  .about-image__card-title { font-size: 22px; }
  .about-image__card-text { margin-top: 16px; font-size: 14px; line-height: 1.6; }
  .about__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
  .about__stat { border-left-width: 1px; }
  .about__stat:first-child { border-left-width: 0; }

  .services__grid {
    margin-inline: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    padding-inline: 0;
  }
  .services__item { width: auto; }
  .service-card__top,
  .service-card__bottom { padding: 24px; }
  .service-card__title { font-size: 24px; }

  .stack-card { min-height: 0; padding: 12px; }
  .stack-card__body { padding: 32px 24px 16px; }
  .stack-card__title { font-size: 38px; }

  .testimonial { width: 400px; }
  .testimonial__card { padding: 32px; }
  .testimonial__quote { font-size: 16.5px; }

  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .showcase__pin { padding-bottom: 96px; }
  .showcase__track {
    scroll-padding-inline: 24px;
    gap: 20px;
    padding-inline: 24px;
  }
  .poster { height: 600px; width: 440px; padding: 32px; }
  .poster__number { font-size: 80px; }
  .poster__title { font-size: 36px; }

  .filters {
    margin-inline: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 0;
  }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .quote-card { padding: 32px; }
  .quote-card__title { font-size: 24px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide,
  .form__footer { grid-column: span 2 / span 2; }
  .form__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .office-map__frame { height: 480px; }
  .office-map__card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    max-width: 380px;
    border-radius: 22px;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(11 11 12 / 0.85);
    padding: 28px;
  }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__title { font-size: 28px; }
  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .not-found__code { font-size: 180px; }
  .not-found__title { font-size: 44px; }
  .not-found__text { font-size: 17px; }
}

@media (min-width: 768px) {
  .container { padding-inline: 24px; }
  .md-only { display: inline; }
  .hero__img { object-position: center; }
  .hero__title { font-size: 42px; }
  .hero__line { white-space: nowrap; }

  .trust__inner {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .trust__intro { padding-right: 40px; }
  .trust__divider { display: block; }
  .trust__marquee { margin-left: 16px; }

  .mission__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .map-section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
  .h-section { font-size: 48px; }
  .h-section--contact { font-size: 46px; }

  .navbar__inner { height: 96px; }
  .navbar__links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero__title { font-size: 54px; }
  .hero__content { padding-top: 96px; }
  .page-hero { min-height: 660px; }
  .page-hero__content { padding-top: 150px; padding-bottom: 96px; }
  .page-hero__title { font-size: 60px; }

  .about,
  .services,
  .featured,
  .testimonials,
  .mission,
  .why,
  .contact,
  .portfolio { padding-block: 112px; }
  .process-wrap,
  .showcase { padding-top: 112px; }
  .process,
  .map-section { padding-bottom: 112px; }

  .trust__inner { padding-block: 44px; }
  .marquee__logo { padding-inline: 40px; }

  .about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 64px;
  }
  .about-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 560px;
  }

  .services__grid {
    margin-top: 56px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .services__cta { margin-top: 56px; }

  .stack { margin-top: 64px; }
  .stack-card {
    min-height: 540px;
    grid-template-columns: 1fr 1.15fr;
    grid-template-rows: 1fr;
  }
  .stack-card__media {
    order: 2;
    aspect-ratio: auto;
  }
  .stack-card__body { padding: 40px; }
  .stack-card__title {
    margin-top: auto;
    font-size: 46px;
  }
  .stack-card__desc { margin-bottom: 40px; }
  .featured__cta { margin-top: 32px; }

  .testimonials__rows { margin-top: 56px; }

  .mission__grid { margin-top: 56px; gap: 24px; }
  .pillar { padding: 40px; }
  .pillar__number { top: 40px; right: 40px; }
  .why__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
  .why__intro {
    position: sticky;
    top: 128px;
    align-self: start;
  }
  .reason { padding: 32px; }

  .process__steps {
    margin-top: 56px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .step__line { display: block; }
  .step__text {
    margin-top: 24px;
    padding-inline: 16px;
  }
  .step__vline { display: none; }

  .showcase__pin {
    margin-top: 0;
    padding-bottom: 0;
  }
  /* overflow: clip, not hidden: a hidden box can still be scrolled sideways by anchor jumps. */
  .showcase__sticky {
    position: sticky;
    top: 0;
    display: flex;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    overflow: clip;
    padding-top: 72px;
  }
  .showcase__track {
    scroll-snap-type: none;
    gap: 24px;
    overflow: visible;
    padding-inline: max(40px, calc((100vw - 1240px) / 2));
  }
  .poster {
    height: min(68svh, 660px);
    width: clamp(380px, 34vw, 500px);
  }
  .showcase__progress { display: flex; }

  .portfolio__head { margin-bottom: 48px; }
  .gallery {
    margin-top: 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .contact__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
  .quote-card { padding: 40px; }
  .map-section__head { margin-bottom: 48px; }
  .office-map__frame { height: 540px; }

  .footer__grid {
    grid-template-columns: 1.5fr 0.8fr 1fr 1.4fr;
    gap: 40px;
    padding-block: 80px;
  }
  .footer__title { font-size: 30px; }

  .not-found__code { font-size: 220px; }
  .not-found__title { font-size: 48px; }
}

@media (min-width: 1280px) {
  .navbar__link { padding-inline: 20px; }
  .navbar__underline { inset-inline: 20px; }
  .hero__title { font-size: 64px; }
  .page-hero__title { font-size: 66px; }
  .h-section--xl { font-size: 52px; }
  .h-section.about__title { font-size: 52px; }
  .about__grid { gap: 80px; }
  .why__grid { gap: 96px; }
  .contact__grid { gap: 80px; }
}

@media (min-width: 1536px) {
  .hero__title { font-size: 70px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .enter-line,
  .enter-rise,
  .enter-settle,
  .enter-drop,
  .office-map__bounce,
  .map-pin__ping {
    animation: none;
  }

  .js [data-reveal],
  .js [data-stagger-item] {
    opacity: 1;
  }

  ::view-transition-old(*),
  ::view-transition-new(*),
  ::view-transition-group(*) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}
