/* ==========================================================================
   Qualital — shared stylesheet
   ========================================================================== */

:root {
  --bg: #fdfdfc;
  --alt: #f4f2ef;
  --ink: #161514;
  --text: #4a4540;
  --muted: #6b6560;
  --border: #e8e5e1;
  --red: #7a0303;
  --red-hover: #a11212;
  --red-pressed: #5c0202;
  --red-bright: #c8332a;
  --red-soft: #d0685f;
  --dark: #161514;
  --footer: #100e0d;
  --placeholder: #e5ddd6;
  --white: #ffffff;
  --green: #2f8f4e;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.75rem;
  --radius-sm: 0.625rem;
  --radius-btn: 0.375rem;
  --container: 75rem;
  --gutter: 1.5rem;
  --nav-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Desktop scale. Every size below is in rem, so this single rule scales type,
   spacing, the container and image heights together — the equivalent of viewing
   at 90% browser zoom, which is where the design sits right on typical laptop
   screens (e.g. 1920×1080 at Windows 125% scaling = 1536 CSS px wide).
   Phones and tablets stay at 100%. */
@media (min-width: 800px) {
  html {
    /* 0.9375vw = 14.4px at 1536px wide (90%), 16px from ~1700px up, never below 13px */
    font-size: clamp(13px, 0.9375vw, 16px);
  }
}

html,
body {
  overflow-x: clip;
}

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

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

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

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
.h-font {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.625rem;
  font-weight: 600;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* Eyebrow label: red bar + condensed uppercase text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.125rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 3px;
  background: var(--red);
  flex: none;
}

.eyebrow--light {
  color: var(--red-soft);
}

.eyebrow--light::before {
  background: var(--red-bright);
}

.eyebrow--white {
  color: #fff;
}

.eyebrow--white::before {
  background: var(--red-bright);
}

/* Section headers */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 0.875rem;
}

.section-head__link {
  flex: none;
  padding-bottom: 0.375rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 5.75rem 0;
}

.section--alt {
  background: var(--alt);
}

.section--dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--bordered {
  border-bottom: 1px solid var(--border);
}

/* Grid items must be allowed to shrink below their content's intrinsic width
   (otherwise a placeholder image's aspect ratio can push a column past the viewport). */
.split > *,
.row > *,
.detail > *,
.contact > *,
.cards > *,
.work-cards > *,
.team > *,
.steps > *,
.portfolio > *,
.gallery > *,
.stats-row > *,
.footer__grid > * {
  min-width: 0;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  border: 2px solid var(--red);
  border-radius: var(--radius-btn);
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(161, 18, 18, 0.55);
}

.btn:active {
  background: var(--red-pressed);
  border-color: var(--red-pressed);
  transform: translateY(0) scale(0.96);
  box-shadow: none;
  transition-duration: 0.15s;
}

.btn--outline {
  background: transparent;
  color: var(--red);
}

.btn--outline:hover {
  color: #fff;
}

.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.btn--white:hover {
  background: #fff;
  border-color: #fff;
  color: var(--red-pressed);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45);
}

.btn--white:active {
  background: #f1ecea;
  border-color: #f1ecea;
}

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn--outline-white:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45);
}

.btn--outline-white:active {
  background: #f1ecea;
  border-color: #f1ecea;
  color: var(--ink);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Arrow text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
  transition: gap 0.5s var(--ease), color 0.3s var(--ease);
}

.link-arrow::after {
  content: '→';
  font-family: var(--font-body);
  font-weight: 600;
  transition: transform 0.5s var(--ease);
}

.link-arrow:hover {
  gap: 1rem;
  color: var(--red-hover);
}

.link-arrow--light {
  color: #fff;
  border-color: var(--red-bright);
}

.link-arrow--light:hover {
  color: #fff;
}

.link-arrow--back::after {
  content: none;
}

.link-arrow--back::before {
  content: '←';
  font-family: var(--font-body);
  font-weight: 600;
  transition: transform 0.5s var(--ease);
}

.link-arrow--back:hover::before {
  transform: translateX(-0.25rem);
}

/* ---------- Media & placeholders ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--placeholder);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.2s var(--ease);
}

.media img.is-missing {
  visibility: hidden;
}

.media--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
    var(--placeholder);
}

/* Red decorative frame offset 1.25rem down-left */
.frame {
  position: relative;
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  transform: translate(-1.25rem, 1.25rem);
  z-index: 0;
  pointer-events: none;
}

.frame .media {
  position: relative;
  z-index: 1;
}

/* ---------- Stats ---------- */
.stat {
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--ink);
}

.stat__num small {
  font-size: 0.7em;
  color: var(--red);
}

.stat__label {
  margin-top: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .stat__num {
  color: #fff;
}

/* ---------- Scroll progress & page curtain ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  border-bottom: 3px solid var(--red);
  transform: translateY(0);
  pointer-events: none;
  will-change: transform;
}

.curtain.is-lifting {
  animation: curtain-lift 1s var(--ease) forwards;
}

.curtain.is-covering {
  transform: translateY(100%);
  animation: curtain-cover 0.7s var(--ease) forwards;
}

.curtain.is-idle {
  transform: translateY(-101%);
}

@keyframes curtain-lift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-101%);
  }
}

@keyframes curtain-cover {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo img {
  height: 2.875rem;
  width: auto;
}

.nav__logo .nav__logo-text {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.875rem;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__logo.is-missing img {
  display: none;
}

.nav__logo.is-missing .nav__logo-text {
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  position: relative;
  padding: 0.375rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}

.nav__link:hover {
  color: var(--red);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--red);
}

.nav__links .btn {
  padding: 0.75rem 1.5rem;
}

.nav__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
}

.nav__toggle span {
  display: block;
  width: 1.625rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

/* ---------- Page header (dark) ---------- */
.page-header {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 6rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 55%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(200, 51, 42, 0.18), transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
}

.page-header .lead {
  max-width: 40rem;
  margin-top: 1.375rem;
  color: rgba(255, 255, 255, 0.72);
}

.page-header .link-arrow {
  display: flex;
  width: max-content;
  margin-bottom: 1.875rem;
}

/* ---------- Homepage hero ---------- */
.hero {
  position: relative;
  /* fills the viewport (capped on very tall screens) but always grows to fit
     its content, so nothing is ever clipped at the top on short windows */
  min-height: clamp(36rem, calc(100vh - var(--nav-h)), 53.75rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #2a2624;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  animation: ken-burns 22s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}

.hero__bg img.is-missing {
  visibility: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 20, 0.35) 0%, rgba(22, 21, 20, 0.55) 55%, rgba(22, 21, 20, 0.72) 100%);
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.125rem, 7.5vw, 6rem);
  white-space: nowrap; /* the <br> in the markup is the only line break */
  max-width: none;
}

.hero__line {
  width: 6.875rem;
  height: 0.25rem;
  background: var(--red-bright);
  margin: 1.625rem 0 1.625rem;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.hero p {
  max-width: 37.5rem;
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.125rem;
}

/* Sequenced hero entrance */
.hero__anim {
  opacity: 0;
  transform: translateY(2.125rem);
}

.hero.is-ready .hero__anim {
  animation: fade-up 1.2s var(--ease) forwards;
}

.hero.is-ready .hero__anim:nth-child(1) {
  animation-delay: 0.1s;
}

.hero.is-ready .hero__anim:nth-child(2) {
  animation-delay: 0.25s;
}

.hero.is-ready .hero__anim:nth-child(4) {
  animation-delay: 0.4s;
}

.hero.is-ready .hero__anim:nth-child(5) {
  animation-delay: 0.55s;
}

.hero.is-ready .hero__line {
  animation: draw-line 1.2s var(--ease) 0.85s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-line {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3.5rem 0;
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.split .media {
  height: 28.75rem;
}

.split__text h2 {
  margin-bottom: 1.5rem;
}

.split__text .link-arrow,
.split__text .btn {
  margin-top: 0.75rem;
}

.split--reverse .split__media {
  order: 2;
}

.split__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
}

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 24px 48px -20px rgba(22, 21, 20, 0.25);
}

.card .media {
  height: 15rem;
  border-radius: 0;
}

.card:hover .media img {
  transform: scale(1.02);
}

.card__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  margin-bottom: 0.75rem;
}

.card__body p {
  flex: 1;
  margin-bottom: 1.375rem;
  font-size: 1rem;
}

/* ---------- Vision band ---------- */
.vision {
  text-align: center;
  padding: 6.5rem 0;
}

.vision__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 1.375rem;
}

.vision blockquote {
  margin: 0 auto;
  max-width: 56.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.vision__bar {
  width: 3.5rem;
  height: 3px;
  background: var(--red-bright);
  margin: 1.875rem auto 0;
}

/* ---------- Work cards (recent projects) ---------- */
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.work-card {
  position: relative;
  display: block;
  height: 23.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.work-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 24px 48px -20px rgba(22, 21, 20, 0.35);
}

.work-card .media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.work-card:hover .media img {
  transform: scale(1.02);
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 20, 0) 40%, rgba(22, 21, 20, 0.85) 100%);
  pointer-events: none;
}

.work-card__caption {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 1;
  color: #fff;
}

.work-card__caption h3 {
  color: #fff;
  margin-bottom: 0.375rem;
}

.work-card__tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--red);
  color: #fff;
  padding: 5rem 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta h2 {
  color: #fff;
  max-width: 40rem;
}

.cta p {
  margin-top: 0.875rem;
  max-width: 35rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta .btn-group {
  flex: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 3rem;
  padding: 4.5rem 0 3.5rem;
}

.footer__logo img {
  height: 2.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo.is-missing img {
  display: none;
}

.footer__logo .footer__logo-text {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.875rem;
  text-transform: uppercase;
  color: #fff;
}

.footer__logo.is-missing .footer__logo-text {
  display: block;
}

.footer__desc {
  margin: 1.25rem 0 1.375rem;
  max-width: 22.5rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.footer a {
  transition: color 0.3s var(--ease);
}

.footer a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 1.375rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__social a:hover {
  color: var(--red-soft);
}

.footer__list li + li {
  margin-top: 0.75rem;
}

.footer__list a {
  display: inline-block;
}

.footer__contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer__contact li + li {
  margin-top: 0.875rem;
}

.footer__contact li::before {
  content: '';
  flex: none;
  width: 0.875rem;
  height: 2px;
  background: var(--red-bright);
  margin-top: 0.6875rem;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.375rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bar span:last-child {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
}

/* ---------- Alternating rows (services / featured / delivered) ---------- */
.rows > * + * {
  margin-top: 5.5rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.row .media {
  height: 26.25rem;
}

.row--reverse .row__media {
  order: 2;
}

.row__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  margin-bottom: 1.5rem;
}

.row__num--pale {
  font-size: 7.5rem;
  color: var(--ink);
  opacity: 0.07;
  margin-bottom: 1.25rem; /* clear gap between the big number and the title */
}

.row__text h2 {
  margin-bottom: 1.25rem;
}

.row__text .link-arrow {
  margin-top: 0.5rem;
}

.bullets {
  margin: 0 0 1.875rem;
}

.bullets li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: 0.625rem;
  font-weight: 500;
  color: var(--ink);
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.75rem;
  height: 2px;
  background: var(--red);
}

/* Delivered projects meta */
.rows--compact > * + * {
  margin-top: 4rem;
}

.row--compact .media {
  height: 22.5rem;
}

.meta {
  margin: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--border);
}

.meta li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.meta__key {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 3px;
}

.meta__val {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.team-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 24px 48px -20px rgba(22, 21, 20, 0.25);
}

.team-card .media {
  height: 15rem;
  border-radius: 0;
}

.team-card .media img {
  object-position: 50% 25%;
  filter: grayscale(0.35);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}

.team-card:hover .media img {
  filter: grayscale(0);
}

.team-card__caption {
  padding: 1.125rem 1.25rem 1.375rem;
  border-top: 3px solid var(--red);
}

.team-card__caption h3 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Partners marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 50s linear infinite;
}

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

.marquee__item {
  flex: none;
  width: 11.875rem;
  height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.5rem;
}

.marquee__item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* logos keep their own colours */
}

.marquee__item img.is-missing {
  display: none;
}

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

/* ---------- Steps (how we work) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
  padding: 2rem 1.75rem 2.25rem;
  overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.step:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 24px 48px -20px rgba(22, 21, 20, 0.2);
}

.step__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 5.25rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.07;
  margin-bottom: 0.375rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.step p {
  font-size: 0.9375rem;
}

/* ---------- Portfolio grid ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.portfolio__item .media {
  height: 10.625rem;
  border-radius: var(--radius-sm);
}

.portfolio__item:hover .media img {
  transform: scale(1.02);
}

.portfolio__name {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Project detail page ---------- */
.detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.detail .media {
  height: 28.75rem;
}

.detail-card {
  background: var(--alt);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.detail-card h2 {
  font-size: 1.875rem;
  margin-bottom: 1.375rem;
}

.detail-card__list li {
  border-left: 3px solid var(--red);
  padding: 0.25rem 0 0.25rem 1.125rem;
}

.detail-card__list li + li {
  margin-top: 1.125rem;
}

.detail-card__key {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.detail-card__val {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--ink);
  text-transform: uppercase;
}

.detail-card .btn {
  margin-top: 1.875rem;
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery .media {
  height: 16.25rem;
}

.gallery .media:hover img {
  transform: scale(1.02);
}

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact h2 {
  font-size: 1.875rem;
  margin-bottom: 1.75rem;
}

.info-block {
  border-left: 3px solid var(--red);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.info-block + .info-block {
  margin-top: 1.625rem;
}

.info-block__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-block__value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}

.info-block__value--plain {
  text-transform: none;
}

.info-block__value a {
  transition: color 0.3s var(--ease);
}

.info-block__value a:hover {
  color: var(--red);
}

.contact .footer__social {
  margin-top: 2rem;
  color: var(--muted);
}

.contact .footer__social a:hover {
  color: var(--red);
}

.form-card {
  background: var(--alt);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

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

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 9.375rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(122, 3, 3, 0.12);
}

.form-card .btn {
  margin-top: 0.5rem;
}

.form-error {
  display: none;
  grid-column: 1 / -1;
  color: var(--red-hover);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  border-left: 4px solid var(--green);
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.map {
  margin-top: 4rem;
}

.map__frame {
  height: 26.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  filter: grayscale(0.4);
}

.map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 404 ---------- */
.notfound {
  padding: 8.75rem 0;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(5rem, 14vw, 11.25rem);
  color: var(--red);
  line-height: 0.9;
}

.notfound p {
  margin: 1.25rem auto 2rem;
  max-width: 28.75rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Image curtain (clip-path wipe bottom → top) */
.img-curtain {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
}

.img-curtain.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Heading mask reveal */
.h-reveal {
  clip-path: inset(0 0 0 0);
}

.h-reveal > .h-reveal__inner {
  display: block;
  transform: translateY(1.1em);
  transition: transform 1.2s var(--ease);
}

.h-reveal.is-visible > .h-reveal__inner {
  transform: translateY(0);
}

/* Parallax targets */
.parallax img {
  object-position: 50% var(--py, 50%);
}

/* Reduced motion: switch everything off */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .img-curtain,
  .h-reveal > .h-reveal__inner,
  .hero__anim,
  .hero__line {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .curtain {
    display: none;
  }

  .parallax img {
    object-position: 50% 50%;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio {
    grid-template-columns: repeat(4, 1fr);
  }

  .split,
  .row {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .split,
  .row,
  .detail,
  .contact {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media,
  .row--reverse .row__media {
    order: 0;
  }

  .split .media,
  .row .media,
  .row--compact .media {
    height: 21.25rem;
  }

  .cards,
  .work-cards {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .frame::before {
    transform: translate(-0.75rem, 0.75rem);
  }
}

@media (max-width: 800px) {
  .nav__toggle {
    display: flex;
  }

  /* Anchored to the bottom of the nav bar with an explicit screen height.
     (position: fixed would be resolved against the nav itself, because the nav's
     backdrop-filter / slide-in transform make it the containing block — which
     crushed the menu to a thin strip.) */
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 2.5rem;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(20, 18, 16, 0.25);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease), visibility 0s linear 0.7s;
    overflow-y: auto;
  }

  .nav__links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease), visibility 0s;
  }

  .nav__link {
    font-size: 1.5rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after {
    content: none; /* active page shown by colour in the menu */
  }

  .nav__links .btn {
    margin-top: 1.75rem;
    width: 100%;
    padding: 1.0625rem 2rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.25rem;
  }

  .hero {
    height: auto;
    min-height: 38.75rem;
  }

  .hero__content {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  .cards,
  .work-cards,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .team,
  .portfolio {
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
  }

  .work-card {
    height: 20rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3.5rem 0 2.5rem;
  }

  .footer__bar {
    flex-direction: column;
    gap: 0.375rem;
  }

  .form-card {
    padding: 1.75rem 1.375rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .meta li {
    grid-template-columns: 6.25rem 1fr;
  }

  .split__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .row__num--pale {
    font-size: 5.625rem;
  }

  .stat__num {
    font-size: 3rem;
  }

  .rows > * + * {
    margin-top: 4rem;
  }

  .detail .media {
    height: 20rem;
  }

  .detail-card {
    padding: 1.75rem 1.5rem;
  }

  .info-block__value {
    font-size: 1.5rem;
  }

  .map__frame {
    height: 20rem;
  }
}

/* ==========================================================================
   Homepage-only nav: hidden at first, slides in after scrolling past the hero
   ========================================================================== */
.site-nav {
  position: fixed; /* overrides the sticky default; takes no space in the flow */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.site-nav.show {
  transform: translateY(0);
  box-shadow: 0 8px 30px rgba(20, 18, 16, 0.08);
}

/* With no nav in the flow, the hero fills the whole viewport */
.site-nav + main .hero {
  min-height: clamp(36rem, 100vh, 53.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav {
    transition: none;
  }
}

/* ==========================================================================
   Homepage-only sizing (body.home): 0.625rem image radius, 6rem sections,
   hero photo framing and type, stats padding, about image height, tag colour
   ========================================================================== */
.home {
  --radius: 0.625rem;
  --radius-sm: 0.625rem;
}

.home .section {
  padding: 6rem 0;
}

.home .hero__bg img {
  object-position: 62% 50%; /* keeps the QUALITAL sign on the building visible */
}

.home .hero__bg::after {
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.35) 0%, rgba(12, 10, 9, 0.72) 100%);
}

.home .hero h1 {
  line-height: 0.98;
  max-width: 51.25rem;
}

.home .hero p {
  font-size: 1.125rem;
  max-width: 35rem;
  color: rgba(255, 255, 255, 0.92);
}

.home .hero.is-ready .hero__anim {
  animation-duration: 0.9s;
}

.home .stats-row {
  padding: 2.75rem 0;
}

.home .split .media {
  height: 27.5rem;
}

.home .work-card__tag {
  color: #e3aca7;
}

.home .vision {
  padding: 6rem 0;
}

@media (max-width: 900px) {
  .home .split .media {
    height: 21.25rem;
  }
}

/* ==========================================================================
   About page — leadership team: CEO alone on row 1, the rest in a centred grid
   ========================================================================== */
.team-lead {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.team-lead .team-card {
  width: 100%;
  max-width: 22.5rem;
  text-align: center;
}

.team-lead .team-card .media {
  height: 20rem;
}

/* Cards 220–16.25rem wide, 4 per row on desktop; a wrapping flex row (rather than
   an auto-fit grid) is what lets a partial last row sit centred. */
.team--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.team--centered .team-card {
  flex: 0 1 16.25rem;
  min-width: min(100%, 13.75rem);
}

.team-card .media img {
  object-position: 50% 0; /* center top */
}

/* Hero headline: exactly two lines on tablet/desktop; photo nudged right so the
   QUALITAL sign on the building clears the headline */
.home .hero h1 {
  max-width: none;
}


@media (min-width: 900px) {
  .home .hero__bg img {
    width: 114%;
    max-width: none;
    object-position: 0 50%;
    transform-origin: 30% 50%;
  }
}

/* ==========================================================================
   Projects page — featured projects, two per row
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 2.5rem;
}

.featured-card .media {
  height: 22.5rem;
}

.featured-card:hover .media img {
  transform: scale(1.02);
}

.featured-card__body {
  padding-top: 1.5rem;
}

.featured-card__body .row__num--pale {
  font-size: 5.5rem;
  margin-bottom: 0.75rem;
}

.featured-card__body h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  margin-bottom: 0.875rem;
}

.featured-card__body .eyebrow {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .featured-card .media {
    height: 16rem;
  }
}

/* ==========================================================================
   Refinements: label style, hero buttons, vision band
   ========================================================================== */

/* Subtitle labels: no red bar, Barlow (not condensed) semibold with tracking */
.eyebrow {
  gap: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: none;
}

/* Hero buttons: pill shape; secondary is a frosted white pill */
.hero .btn {
  border-radius: 999px;
  padding: 1rem 2.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.hero .btn--outline-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: calc(1rem + 1px) calc(2.25rem + 1px);
}

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

/* Vision band: brand-red gradient instead of flat black */
.section--dark.vision {
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(200, 51, 42, 0.45), transparent 70%),
    radial-gradient(50% 100% at 0% 100%, rgba(0, 0, 0, 0.35), transparent 70%),
    linear-gradient(120deg, #4a0202 0%, #7a0303 55%, #8f0a0a 100%);
}

.vision__label {
  color: #e3aca7;
}

.vision__bar {
  background: #e3aca7;
}

/* ==========================================================================
   Remove red line accents beside text; red-gradient page headers
   ========================================================================== */
.footer__contact li::before,
.bullets li::before {
  content: none;
}

.bullets li {
  padding-left: 0;
}

.stat,
.info-block,
.detail-card__list li {
  border-left: 0;
  padding-left: 0;
}

.hero__line,
.vision__bar {
  display: none;
}

/* Dark page headers (About, Services, Projects, Project, Contact) take the
   same brand-red gradient as the vision band */
.page-header {
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(200, 51, 42, 0.45), transparent 70%),
    radial-gradient(50% 100% at 0% 100%, rgba(0, 0, 0, 0.35), transparent 70%),
    linear-gradient(120deg, #4a0202 0%, #7a0303 55%, #8f0a0a 100%);
}

.page-header::after {
  content: none;
}

.page-header .eyebrow--light {
  color: #e3aca7;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-header .link-arrow--light {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Muted burgundy for the red bands (vision band + page headers) */
.section--dark.vision,
.page-header {
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(178, 74, 66, 0.22), transparent 70%),
    radial-gradient(50% 100% at 0% 100%, rgba(0, 0, 0, 0.28), transparent 70%),
    linear-gradient(120deg, #3f1414 0%, #5c1a1a 55%, #67201f 100%);
}

/* ==========================================================================
   Phones (≤640px): readable hero, compact team grid, shorter photos
   ========================================================================== */
@media (max-width: 640px) {
  /* stronger scrim so the text never fights the building behind it */
  .home .hero__bg::after {
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.35) 0%, rgba(12, 10, 9, 0.6) 45%, rgba(12, 10, 9, 0.88) 100%);
  }

  .home .hero p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero .btn-group .btn {
    width: 100%;
  }

  /* team: CEO full width, the rest two per row */
  .team-lead .team-card {
    max-width: none;
  }

  .team-lead .team-card .media {
    height: 18rem;
  }

  .team--centered {
    gap: 0.875rem;
  }

  .team--centered .team-card {
    flex: 0 1 calc(50% - 0.4375rem);
    min-width: 0;
  }

  .team--centered .team-card .media {
    height: 11rem;
  }

  .team-card__caption {
    padding: 0.875rem 0.875rem 1rem;
  }

  .team-card__caption h3 {
    font-size: 1.125rem;
  }

  .team-card__role {
    font-size: 0.75rem;
  }

  /* shorter photos so pages don't scroll forever */
  .split .media,
  .home .split .media,
  .row .media,
  .row--compact .media,
  .featured-card .media {
    height: 14.5rem;
  }

  .card .media {
    height: 12.5rem;
  }

  .work-card {
    height: 17.5rem;
  }

  .rows > * + *,
  .rows--compact > * + * {
    margin-top: 3.5rem;
  }

  .row,
  .split {
    gap: 1.75rem;
  }

  .row__num--pale,
  .featured-card__body .row__num--pale {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
  }

  .row__num {
    font-size: 3rem;
    margin-bottom: 0.75rem;
  }

  .featured-grid {
    gap: 2.5rem;
  }

  .featured-card__body {
    padding-top: 1rem;
  }
}

/* gap between headline and paragraph (was provided by the removed hero underline) */
.hero__content p {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .hero__content p {
    margin-top: 1.125rem;
  }
}

/* ==========================================================================
   Phones (≤640px): spacing pass for every page
   ========================================================================== */
@media (max-width: 640px) {
  /* vertical rhythm: desktop padding is too tall on a phone */
  .section,
  .home .section {
    padding: 3.5rem 0;
  }

  .vision,
  .home .vision {
    padding: 4rem 0;
  }

  .page-header {
    padding: 3.5rem 0 3.25rem;
  }

  .page-header .lead {
    font-size: 1.0625rem;
    margin-top: 1rem;
  }

  .page-header .link-arrow {
    margin-bottom: 1.25rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
    gap: 1rem;
  }

  .split__text h2,
  .row__text h2 {
    margin-bottom: 1rem;
  }

  /* red photo frame: keep it inside the side margin */
  .frame::before {
    transform: translate(-0.5rem, 0.5rem);
  }

  /* stats */
  .stats-row,
  .home .stats-row {
    padding: 2.25rem 0;
    gap: 1.75rem 1rem;
  }

  .stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  /* cards */
  .card__body {
    padding: 1.375rem 1.375rem 1.5rem;
  }

  .cards,
  .work-cards,
  .steps {
    gap: 1.25rem;
  }

  .step {
    padding: 1.5rem 1.375rem 1.75rem;
  }

  .step__num {
    font-size: 3.5rem;
  }

  /* partners belt */
  .marquee__item {
    width: 9.5rem;
    height: 5rem;
    padding: 0.875rem 1.125rem;
  }

  .marquee__track {
    gap: 0.875rem;
  }

  /* portfolio */
  .portfolio {
    gap: 1.25rem 0.875rem;
  }

  .portfolio__item .media {
    height: 8.5rem;
  }

  .portfolio__name {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
  }

  /* delivered project meta */
  .meta {
    margin: 1rem 0 1.5rem;
  }

  .meta li {
    grid-template-columns: 5.75rem 1fr;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
  }

  .meta__key {
    font-size: 0.75rem;
  }

  /* project detail page */
  .detail {
    gap: 1.75rem;
  }

  .detail .media,
  .gallery .media {
    height: 14.5rem;
  }

  .gallery {
    gap: 0.875rem;
  }

  .detail-card h2 {
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
  }

  .detail-card__list li + li {
    margin-top: 1rem;
  }

  .detail-card__val {
    font-size: 1.1875rem;
  }

  /* contact page */
  .contact {
    gap: 2.5rem;
  }

  .contact h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .info-block + .info-block {
    margin-top: 1.25rem;
  }

  .info-block__value {
    font-size: 1.375rem;
  }

  .contact .footer__social {
    margin-top: 1.5rem;
  }

  .form-card h2 {
    font-size: 1.625rem;
  }

  .form-card .btn {
    width: 100%;
  }

  .map {
    margin-top: 2.5rem;
  }

  .map__frame {
    height: 16rem;
  }

  /* footer: shorter, quick links in two columns */
  .footer__grid {
    gap: 2rem;
    padding: 3rem 0 2rem;
  }

  .footer__desc {
    margin: 1rem 0 1.25rem;
  }

  .footer h4 {
    margin-bottom: 0.875rem;
  }

  .footer__contact li + li {
    margin-top: 0.625rem;
  }

  .footer__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 1rem;
  }

  .footer__list li + li {
    margin-top: 0;
  }

  .footer__bar {
    padding: 1.25rem 0 1.5rem;
  }
}

/* ==========================================================================
   Homepage hero on phones: full first screen. The photo is zoomed so the
   QUALITAL sign sits large in the upper half (pillar cropped out); label,
   headline and side-by-side buttons sit at the bottom on a dark fade.
   ========================================================================== */
@media (max-width: 640px) {
  .home .hero,
  .home .site-nav + main .hero {
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--dark);
  }

  /* sign centre is ~64% down the photo; scaling 1.7x from the bottom edge
     lifts it to ~40% of the screen height on any phone */
  .home .hero__bg img {
    width: 100%;
    max-width: none;
    object-position: 69% 50%;
    scale: 1.7;
    transform-origin: 50% 100%;
  }

  .home .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(12, 10, 9, 0.05) 0%,
      rgba(12, 10, 9, 0.1) 48%,
      rgba(12, 10, 9, 0.78) 74%,
      rgba(12, 10, 9, 0.94) 100%
    );
  }

  .home .hero__content {
    padding-top: 0;
    padding-bottom: 2.75rem;
    padding-bottom: max(2.75rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  }

  .home .hero .eyebrow {
    margin-bottom: 0.75rem;
    color: #e3aca7;
  }

  .home .hero h1 {
    font-size: 2.375rem;
    line-height: 1;
  }

  /* keep the headline, drop the long paragraph on phones */
  .home .hero__content p {
    display: none;
  }

  .home .hero .btn-group {
    flex-direction: row;
    gap: 0.625rem;
    margin-top: 1.5rem;
  }

  .home .hero .btn-group .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0.9375rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .home .hero .btn--outline-white {
    padding: calc(0.9375rem + 1px) calc(0.75rem + 1px);
  }
}

/* ==========================================================================
   Framed image cropping
   ========================================================================== */
/* The aluminium logo artwork is square and fills most of the frame, so it is
   never cropped: square frame, centred, no parallax — on every screen size. */
.media.media--logo,
.split .media.media--logo,
.row .media.media--logo,
.home .split .media.media--logo {
  height: auto;
  aspect-ratio: 1 / 1;
}

.media--logo img {
  object-position: 50% 50%;
}

/* Phones: framed photos in the about / services rows show their natural
   shape instead of a short landscape crop, and parallax sliding is off. */
@media (max-width: 640px) {
  .split .media,
  .home .split .media,
  .row:not(.row--compact) .media {
    height: auto;
  }

  .split .media img,
  .row:not(.row--compact) .media img {
    height: auto;
  }

  .parallax img {
    object-position: 50% 50%;
  }
}
