/* =============================================================
   Redheart Glass & Aluminum Supply
   Stylesheet — 2026 redesign
   -------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography & shared elements
   4.  Buttons & icons
   5.  Header / navigation
   6.  Hero
   7.  Capability ticker
   8.  Services
   9.  Work / gallery
   10. Standards
   11. Process
   12. Clients
   13. Enquiry form
   14. Footer & utilities
   15. Lightbox
   16. Motion & reveal
   17. Responsive
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surface */
  --paper:      #ffffff;
  --bone:       #f7f5f2;
  --bone-deep:  #efebe6;
  --charcoal:   #14161a;
  --charcoal-2: #1d2026;

  /* Ink */
  --ink:        #15171b;
  --ink-2:      #474d57;
  --muted:      #797f8a;
  --ink-invert: #f4f2ef;
  --muted-light:#9aa0ab;

  /* Brand */
  --red:        #a51226;
  --red-deep:   #850e1e;
  --red-tint:   #fbeef0;

  /* Lines */
  --line:       #e5e1db;
  --line-dark:  rgba(255, 255, 255, .14);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(72px, 9vw, 136px);
  --maxw:    1240px;

  /* Motion */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease-out-soft: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .22s;
  --t-med:  .45s;
  --t-slow: .9s;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05), 0 6px 18px rgba(20, 22, 26, .05);
  --shadow-md: 0 2px 4px rgba(20, 22, 26, .05), 0 18px 44px rgba(20, 22, 26, .11);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#i-facebook { stroke: none; }
#i-facebook path { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  padding: 10px 18px;
  background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Scroll progress */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 1200;
  height: 2px; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 0;
  background: var(--red);
  transform-origin: left;
}

/* ---------- 3. Typography & shared ---------- */
.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow-light { color: #d9a3ac; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
}
.section-dark .section-title { color: var(--ink-invert); }

.rule {
  display: block;
  width: 64px; height: 2px;
  margin-top: 22px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out-soft) .12s;
}
.rule-center { margin-inline: auto; transform-origin: center; }
.is-visible .rule, .reveal.is-visible .rule { transform: scaleX(1); }

.section { padding-block: var(--section); }
.section-bone { background: var(--bone); }
.section-dark { background: var(--charcoal); color: var(--muted-light); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}
.section-head-center {
  display: block;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}
.rule + .section-lede { margin-top: 26px; }
.section-lede {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 54ch;
}
.section-dark .section-lede { color: var(--muted-light); }

/* ---------- 4. Buttons & icons ---------- */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease);
  will-change: transform;
}
.btn .ico { width: 1.15em; height: 1.15em; transition: transform var(--t-med) var(--ease-out-soft); }
.btn:hover .ico { transform: translateX(4px); }

.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(165, 18, 38, .26); }
.btn-solid:active { transform: translateY(0); }

.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-sm { padding: 11px 20px; font-size: .7rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1100;
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(20, 22, 26, .06);
}

.header-inner {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: padding var(--t-med) var(--ease);
}
.site-header.is-stuck .header-inner { padding-block: 11px; }

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img {
  width: 44px; height: 44px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 3px;
  border: 1px solid var(--line);
  transition: width var(--t-med) var(--ease), height var(--t-med) var(--ease);
}
.site-header.is-stuck .brand img { width: 38px; height: 38px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em;
  color: #fff;
  transition: color var(--t-med) var(--ease);
}
.brand-sub {
  font-size: .6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: color var(--t-med) var(--ease);
}
.site-header.is-stuck .brand-name { color: var(--ink); }
.site-header.is-stuck .brand-sub  { color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; }
.primary-nav ul a {
  position: relative;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .78);
  padding-block: 6px;
  transition: color var(--t-fast) var(--ease);
}
.site-header.is-stuck .primary-nav ul a { color: var(--ink-2); }
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out-soft);
}
.primary-nav ul a:hover::after,
.primary-nav ul a.is-current::after { transform: scaleX(1); transform-origin: left; }
.primary-nav ul a:hover,
.primary-nav ul a.is-current { color: var(--red); }
.site-header.is-stuck .primary-nav ul a:hover,
.site-header.is-stuck .primary-nav ul a.is-current { color: var(--red); }

.menu-toggle {
  display: none;
  position: relative; z-index: 1095;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);
}
.site-header.is-stuck .menu-toggle { border-color: var(--line); }
.menu-toggle span {
  display: block; width: 17px; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-stuck .menu-toggle span { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(20, 22, 26, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.nav-scrim[hidden] { display: none; }
.nav-scrim.is-open { opacity: 1; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding-block: clamp(140px, 18vh, 200px) clamp(64px, 9vh, 104px);
  background: var(--charcoal);
  color: var(--ink-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  filter: grayscale(.35) brightness(.5) contrast(1.05);
  transform: scale(1.08);
  opacity: 0;
  animation: heroMedia 1.8s var(--ease-out-soft) .1s forwards;
  will-change: transform, opacity;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(104deg, rgba(14,16,20,.95) 0%, rgba(14,16,20,.82) 42%, rgba(14,16,20,.42) 100%),
    linear-gradient(to top, rgba(14,16,20,.9) 0%, transparent 42%);
}

.hero-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.07;
  letter-spacing: -.022em;
  color: #fff;
  max-width: 17ch;
  margin-bottom: 30px;
}
.hero-title em { font-style: italic; color: #e8b4bc; }

.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: block; }

.hero-lede {
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  font-weight: 300; line-height: 1.8;
  color: rgba(244, 242, 239, .76);
  max-width: 56ch;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 7vw, 82px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  max-width: 660px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.stat-label {
  font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244, 242, 239, .5);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { color: var(--red); margin-left: 2px; }

/* Sequenced hero entrance */
[data-seq] { opacity: 0; }
.hero-title .mask { opacity: 1; }
.hero-title .mask > span { transform: translateY(105%); }

/* ---------- 7. Capability ticker ---------- */
.ticker {
  background: var(--charcoal-2);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set li {
  display: flex; align-items: center; gap: 34px;
  padding-inline: 17px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244, 242, 239, .52);
  white-space: nowrap;
}
.ticker-set li::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--red); flex: none;
}

/* ---------- 8. Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
  transition: background var(--t-med) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-med) var(--ease-out-soft);
}
.card:hover { background: var(--bone); }
.card:hover::before { transform: scaleY(1); transform-origin: top; }

.card-index {
  position: absolute; top: clamp(22px, 2.6vw, 32px); right: clamp(22px, 2.6vw, 32px);
  font-family: var(--serif);
  font-size: 1.1rem; color: var(--line);
  transition: color var(--t-med) var(--ease);
}
.card:hover .card-index { color: #d8cdc9; }

.card-icon {
  width: 30px; height: 30px;
  color: var(--red);
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 26px;
  transition: transform var(--t-med) var(--ease-out-soft);
}
.card:hover .card-icon { transform: translateY(-3px); }

.card-title {
  font-family: var(--serif);
  font-size: 1.32rem; font-weight: 500; line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.card-text { font-size: .9rem; font-weight: 300; line-height: 1.78; color: var(--muted); }

/* ---------- 9. Work / gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px;
  gap: 14px;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bone-deep);
  cursor: zoom-in;
  grid-column: span 1; grid-row: span 1;
}
.shot-feature { grid-column: span 2; grid-row: span 2; }
.shot-tall    { grid-row: span 2; }
.shot-wide    { grid-column: span 2; }

.shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.18) brightness(.97);
  transform: scale(1.001);
  transition: transform 1.1s var(--ease-out-soft), filter var(--t-med) var(--ease);
  will-change: transform;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.055); filter: grayscale(0) brightness(1); }

.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 16, 20, .78) 0%, rgba(14, 16, 20, .12) 46%, transparent 72%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 22px 20px;
  overflow: hidden;
}
.shot figcaption span {
  display: block;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: #fff;
  transform: translateY(calc(100% + 20px));
  transition: transform var(--t-med) var(--ease-out-soft);
}
.shot:hover figcaption span, .shot:focus-visible figcaption span { transform: translateY(0); }

/* ---------- 9b. 3D customizer promo ---------- */
.nav-new { position: relative; }
.nav-new::before {
  content: "NEW";
  position: absolute; top: -10px; right: -16px;
  font-size: .5rem; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--red);
  padding: 1px 4px; border-radius: 2px;
}
@media (max-width: 920px) { .nav-new::before { top: 50%; right: 2px; transform: translateY(-50%); } }

.promo { background: var(--charcoal); color: var(--muted-light); padding-block: var(--section); }
.promo-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.promo-copy .section-title { color: var(--ink-invert); }
.promo-copy .rule, .promo-copy { }
.promo-text { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--muted-light); margin: 22px 0 0; max-width: 52ch; }
.promo-list { margin: 22px 0 30px; display: grid; gap: 10px; }
.promo-list li {
  position: relative; padding-left: 26px;
  font-size: .9rem; color: var(--ink-invert);
}
.promo-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 7px;
  border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red);
  transform: rotate(-45deg);
}
.promo-media {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-md);
}
.promo-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.2) brightness(.82);
  transition: transform 1s var(--ease-out-soft), filter var(--t-med) var(--ease);
}
.promo-media:hover img { transform: scale(1.05); filter: grayscale(0) brightness(.92); }
.promo-badge {
  position: absolute; top: 16px; left: 16px;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(165,18,38,.4);
}
.promo-play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.promo-play .ico { width: 16px; height: 16px; color: var(--red); }
.promo-media:hover .promo-play { transform: translateX(4px); }

@media (max-width: 880px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-media { aspect-ratio: 16 / 11; max-height: 420px; }
}

/* ---------- 10. Standards ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
}
.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(.22) brightness(.95);
}
.pull-quote {
  position: absolute; right: -16px; bottom: 44px;
  max-width: 300px;
  padding: 26px 28px;
  background: var(--paper);
  border-left: 2px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem; line-height: 1.5;
  color: var(--ink);
}

.standards { margin-top: clamp(32px, 4vw, 46px); }
.standard { padding-block: 26px; border-top: 1px solid var(--line); }
.standard:last-child { border-bottom: 1px solid var(--line); }
.standard dt {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.standard dt .ico { width: 19px; height: 19px; color: var(--red); }
.standard dd { font-size: .89rem; font-weight: 300; line-height: 1.78; color: var(--muted); padding-left: 31px; }

/* ---------- 11. Process ---------- */
.steps {
  --step-gap: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  position: relative;
}

.step { position: relative; }

/* Connector drawn from each circle to the next, so it tracks the circles exactly. */
.step::before,
.step::after {
  content: ""; position: absolute;
  top: 23px; height: 1px;
  left: 58px; right: calc(-1 * var(--step-gap));
}
.step::before { background: var(--line-dark); }
.step::after {
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .85s var(--ease-out-soft);
}
.step:last-child::before,
.step:last-child::after { display: none; }

.steps.is-drawn .step:nth-child(1)::after { transform: scaleX(1); transition-delay: .10s; }
.steps.is-drawn .step:nth-child(2)::after { transform: scaleX(1); transition-delay: .40s; }
.steps.is-drawn .step:nth-child(3)::after { transform: scaleX(1); transition-delay: .70s; }

.step-num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 26px;
  border: 1px solid rgba(224, 86, 108, .45);
  border-radius: 50%;
  background: var(--charcoal);
  font-family: var(--serif);
  font-size: 1rem;
  color: #e0566c;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.step:hover .step-num { border-color: #e0566c; background: var(--charcoal-2); color: #fff; }

.step-title {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 500;
  color: var(--ink-invert);
  margin-bottom: 10px;
}
.step-text { font-size: .87rem; font-weight: 300; line-height: 1.78; color: var(--muted-light); }

/* ---------- 12. Clients ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.quote {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 3.2vw, 42px);
  transition: transform var(--t-med) var(--ease-out-soft), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d4cd; }
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4.4rem; line-height: 1;
  color: var(--red-tint);
  position: absolute; top: 16px; right: 24px;
}
.quote blockquote {
  position: relative;
  font-size: .95rem; font-weight: 300; line-height: 1.82;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.quote-by {
  margin-top: auto;
  font-size: .76rem; color: var(--muted);
  padding-top: 18px; border-top: 1px solid var(--line);
}
.quote-by span { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* ---------- 13. Enquiry ---------- */
.split-contact { align-items: start; }

.contact-list { margin-top: clamp(30px, 4vw, 44px); }
.contact-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row dt {
  display: flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.contact-row dt .ico { width: 16px; height: 16px; color: var(--red); }
.contact-row dd { font-size: .92rem; color: var(--ink); }
.contact-row dd a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.contact-row dd a:hover { color: var(--red); border-bottom-color: var(--red); }

.enquiry {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: .93rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23797f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(165, 18, 38, .1);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }

.field-error {
  display: block;
  font-size: .72rem; color: var(--red);
  min-height: 0; margin-top: 0;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity var(--t-fast) var(--ease), max-height var(--t-fast) var(--ease), margin var(--t-fast) var(--ease);
}
.field.has-error .field-error { opacity: 1; max-height: 40px; margin-top: 6px; }

.form-status {
  font-size: .82rem; font-weight: 500;
  margin-top: 14px; min-height: 1.2em;
  color: var(--red);
}
.form-status.is-ok { color: #1a7a43; }
.form-note { font-size: .72rem; color: var(--muted); margin-top: 10px; }

/* ---------- 14. Footer & utilities ---------- */
.site-footer { background: var(--charcoal); color: var(--muted-light); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 18px; }
.footer-name { font-family: var(--serif); font-size: 1.18rem; color: var(--ink-invert); margin-bottom: 10px; }
.footer-blurb { font-size: .84rem; font-weight: 300; line-height: 1.75; max-width: 34ch; }

.footer-col h2 {
  font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-invert);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .86rem; text-decoration: none; color: var(--muted-light); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .86rem; line-height: 1.8; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.footer-social a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.footer-social .ico { width: 17px; height: 17px; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: .74rem; color: #6d737e;
}

.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px);
  z-index: 1150;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--ink); color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out-soft), visibility var(--t-med), background var(--t-fast) var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); }
.to-top .ico { width: 18px; height: 18px; }

/* ---------- 15. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1300;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 9, 12, .97);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure {
  display: grid; gap: 16px; justify-items: center;
  transform: scale(.96);
  transition: transform var(--t-med) var(--ease-out-soft);
}
.lightbox.is-open .lb-figure { transform: scale(1); }
.lb-figure img {
  max-width: min(92vw, 1200px); max-height: 78vh;
  object-fit: contain; border-radius: var(--radius);
  transition: opacity var(--t-fast) var(--ease);
}
.lb-figure figcaption {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  text-align: center;
}
.lb-btn {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.lb-btn .ico { width: 19px; height: 19px; }
.lb-close { top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); }
.lb-prev  { left: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }

/* ---------- 16. Motion & reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out-soft), transform .8s var(--ease-out-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

.seq-in { animation: seqIn .95s var(--ease-out-soft) forwards; }
.line-in { animation: lineIn 1.05s var(--ease-out-soft) forwards; }

@keyframes seqIn  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { transform: translateY(105%); }            to { transform: translateY(0); } }
@keyframes heroMedia { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   Load robustness — content must never depend on JS finishing.
   ============================================================= */
/* Hero content is visible immediately (pure-CSS entrance), never JS-gated. */
[data-seq] { opacity: 1; }
.hero-title .mask > span { transform: none; }
.hero .seq-in, .hero .line-in { animation: none !important; }
.hero-inner { animation: heroRise .6s var(--ease-out-soft) both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scroll reveals are hidden only while JS is active and ready to animate them.
   No JS, or JS failed to start → everything is shown. */
html:not(.js) .reveal,
html.rh-fallback .reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) .rule,
html.rh-fallback .rule { transform: scaleX(1) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-seq] { opacity: 1; }
  .hero-title .mask > span { transform: none; }
  .hero-media img { opacity: 1; transform: none; }
  .rule { transform: scaleX(1); }
  .step::after { transform: scaleX(1); }
  .shot img { transform: none; }
  .shot figcaption span { transform: none; }
  .shot::after { opacity: 1; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .gallery { grid-auto-rows: 176px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .menu-toggle { display: flex; }

  .primary-nav {
    position: fixed; top: 0; right: 0; z-index: 1090;
    width: min(320px, 84vw); height: 100svh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: 96px 28px 32px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 48px rgba(20, 22, 26, .16);
    transform: translateX(100%);
    transition: transform .42s var(--ease-out-soft);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--line); }
  .primary-nav ul a { display: block; padding: 16px 2px; font-size: .84rem; color: var(--ink-2) !important; }
  .primary-nav ul a::after { bottom: -1px; }
  .nav-quote { margin-top: 26px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .split, .split-contact { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 16 / 11; }
  .pull-quote { position: static; max-width: none; margin-top: -40px; margin-inline: 18px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step::before, .step::after { display: none; }

  /* Two even columns: only the lead photograph spans. */
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 172px; gap: 12px; }
  .shot, .shot-tall, .shot-wide { grid-column: span 1; grid-row: span 1; }
  .shot-feature { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-block: 132px 68px; }
  .hero-title { max-width: 20ch; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stats .stat { padding-block: 16px; border-bottom: 1px solid var(--line-dark); }
  .hero-stats .stat:last-child { border-bottom: 0; }
  .hero-stats .stat {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  }
  .stat-label { margin-bottom: 0; }

  .gallery { grid-auto-rows: 156px; }

  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.06rem; }
  .hero-actions .btn { width: 100%; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 136px; gap: 10px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}
