/* gb Factory — site styles */

/* Urbanist (variable, self-hosted; OFL licence) */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0e0e0e;
  --bg-2: #151619;
  --beige: #c7baa5;
  --beige-muted: #968c7c;
  --red: #ea3d41;
  --line: rgba(199, 186, 165, 0.17);
  --line-soft: rgba(199, 186, 165, 0.08);

  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: 10vw;
  --pad: 2rem;
  --section-pad: 10rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--beige);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.accent {
  color: var(--red);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  color: var(--bg);
  font-weight: 700;
  background: var(--beige);
  border-radius: 3rem;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 78%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.label {
  display: inline-block;
  min-width: 13rem;
  margin-bottom: 6rem;
  padding: 0.05em 1rem 0 0.4rem;
  color: var(--bg);
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--red);
}

.lead,
.services-list li {
  font-size: min(4vw, 4.75rem);
  font-weight: 200;
  line-height: 1.05;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: 3vh;
  transition: padding-top 0.35s var(--ease-out);
}

/* Blur lives on a pseudo-element so the fixed mobile menu inside the header
   is still positioned against the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.8);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  padding-top: 0;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 78%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.75rem var(--pad);
}

.brand {
  position: relative;
  z-index: 2;
  flex: none;
}

.brand img {
  width: 100px;
  transition: width 0.35s var(--ease-out);
}

.site-header.is-scrolled .brand img {
  width: 64px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 3vw;
}

.site-nav__links a {
  font-size: calc(0.25vw + 1rem);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.site-nav__links a:hover {
  color: var(--red);
}

.site-nav__extra {
  display: none;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  font-size: calc(0.25vw + 1rem);
  letter-spacing: 0.05em;
  border: 1px solid var(--red);
  border-radius: 3rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-pill:hover {
  color: var(--bg);
  background-color: var(--red);
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  margin-left: auto;
  padding: 0;
  color: var(--beige);
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), width 0.2s var(--ease-out);
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(-45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  width: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4rem 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg, #1e1e1e, #1c1f24);
  /* Fade into the page background instead of ending on a hard edge. */
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0.17;
  filter: blur(4px);
  transform: scale(1.03);
  transition: transform 0.9s var(--ease-out);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle farthest-corner at 50% 50%, transparent, var(--bg));
}

.hero__title {
  color: var(--beige);
  font-size: 16vh;
  font-size: 16svh;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  animation: rise 0.8s var(--ease-out) 0.15s both;
}

.hero__title span {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* ---------- Services ---------- */

.services-list li {
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* ---------- Visualisation (light section) ---------- */

.vis {
  --ink: #151515;
  --ink-soft: #4a433b;
  --red-ink: #b8252a; /* darker red: small red text on the light background */
  --rule: rgba(21, 21, 21, 0.16);
  color: var(--ink);
  background: #e9e1d4;
}

.vis .label {
  margin-bottom: 3rem;
}

.vis h3,
.vis h4 {
  font-weight: 700;
  line-height: 1.2;
}

.vis__top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.vis__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--red-ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vis__title {
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.vis__intro {
  max-width: 32rem;
  margin: 1.75rem 0 2.25rem;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1.45;
}

.vis__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid currentColor;
  border-radius: 3rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn--red {
  color: var(--bg);
  background: var(--red);
  border-color: var(--red);
}

.btn--red:hover {
  background: var(--ink, var(--bg));
  border-color: var(--ink, var(--bg));
  color: #e9e1d4;
}

.btn--ghost:hover {
  color: #e9e1d4;
  background: var(--ink);
  border-color: var(--ink);
}

.vis__note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.vis img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.vis__hero {
  aspect-ratio: 16 / 9;
}

.vis__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.vis__thumbs img {
  aspect-ratio: 16 / 10;
}

.vis__thumbs img:last-child {
  object-position: 50% 40%;
}

.vis__caption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vis__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 2.5rem;
  margin: 6rem 0 0;
  padding: 0;
  list-style: none;
}

.vis__steps li {
  border-top: 1px solid var(--rule);
}

.vis__steps li {
  padding-top: 1.4rem;
}

.vis__steps b {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--red-ink);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.vis__steps h3 {
  font-size: 1.3rem;
}

.vis__steps p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.vis__real {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.25rem;
  align-items: end;
  margin-top: 6rem;
}

.vis__real-text {
  align-self: center;
}

.vis__real h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1;
}

.vis__real-text > p:not(.vis__caption) {
  margin-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.vis__real img {
  height: 100%;
  max-height: 34rem;
}

.vis__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.vis__gallery img {
  aspect-ratio: 4 / 3;
}

/* ---------- Lightbox ---------- */

.zoomable {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

.zoomable img {
  transition: transform 0.4s var(--ease-out), filter 0.3s;
}

.zoomable:hover img {
  filter: brightness(1.06);
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--beige);
  background: rgba(10, 10, 10, 0.94);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.6);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade-in 0.25s var(--ease-out);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4.5rem 5rem 2rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__caption {
  max-width: 50rem;
  margin-top: 1rem;
  color: var(--beige-muted);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--beige);
  font: 400 1.5rem/1 var(--font);
  background: rgba(199, 186, 165, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.lightbox__btn:hover {
  color: var(--bg);
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.9rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 1.25rem;
}

.lightbox__next {
  right: 1.25rem;
}

@media (max-width: 767px) {
  .lightbox__figure {
    padding: 4.5rem 0.75rem 5.5rem;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox__prev {
    left: calc(50% - 60px);
  }

  .lightbox__next {
    right: calc(50% - 60px);
  }
}

/* ---------- Contact ---------- */

.contact__title {
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.contact__email {
  display: block;
  width: fit-content;
  margin: 6vh 0 0 auto;
  color: var(--red);
  font-size: clamp(1.5rem, 5vw, 4rem);
  font-weight: 200;
  line-height: 1.2;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}

.contact__email:hover {
  background-size: 100% 1px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.site-footer__brand img {
  width: 64px;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  max-width: 22rem;
  color: var(--beige-muted);
}

.site-footer__heading {
  margin-bottom: 1rem;
  color: var(--beige-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--red);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: var(--beige-muted);
  font-size: 0.85rem;
}

.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  border-top: 1px solid var(--line-soft);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .reveal--delay {
  transition-delay: 0.2s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 991px) {
  :root {
    --pad: 4rem;
    --section-pad: 6rem;
  }

  html.menu-open {
    overflow: hidden;
  }

  .container {
    width: 100%;
  }

  .label {
    min-width: 8rem;
    margin-bottom: 2rem;
    padding-right: 0.75rem;
    font-size: calc(0.5vw + 0.75rem);
  }

  .lead,
  .services-list li {
    font-size: clamp(1.8rem, 6.5vw, 3rem);
  }

  .services-list li {
    margin-bottom: 10px;
    padding-bottom: 5px;
  }

  .site-header__inner {
    width: auto;
    max-width: none;
    margin: 0 var(--pad);
    padding: 0.5rem 0;
  }

  .brand img {
    width: 76px;
  }

  .site-header.is-scrolled .brand img {
    width: 56px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 7rem var(--pad) 3rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
  }

  .site-nav__links {
    flex: none;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-pill {
    align-self: flex-start;
    margin-top: 2.5rem;
    padding: 0.6rem 1.6rem;
    font-size: 1.2rem;
  }

  .site-nav__extra {
    display: block;
    margin-top: 1.5rem;
    color: var(--beige-muted);
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero__title {
    font-size: 18vw;
    line-height: 1;
  }

  .hero__bg::after {
    background: linear-gradient(180deg, var(--bg), transparent 25%);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .vis__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vis__steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2rem;
    margin-top: 4rem;
  }

  .vis__real {
    grid-template-columns: 2fr 1fr;
    margin-top: 4rem;
  }

  .vis__real-text {
    grid-column: 1 / -1;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
  :root {
    --pad: 1.25rem;
  }

  .brand img {
    width: 58px;
  }

  .site-header.is-scrolled .brand img {
    width: 48px;
  }

  .site-nav {
    padding-top: 6rem;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 479px) {
  .label {
    min-width: 7rem;
  }

  .hero__title {
    font-size: 26vw;
  }

  .site-footer__grid {
    gap: 2rem;
  }

  .vis__steps,
  .vis__gallery {
    grid-template-columns: 1fr;
  }

  .vis__real {
    grid-template-columns: 1fr;
  }

  .vis__real img {
    max-height: none;
  }

  .vis__intro {
    font-size: 1.15rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   Polish layer (Sept 2026): hero, trusted-by strip, project card,
   clients grid, service rows, contact paths. Layers on the base above.
   ================================================================ */

/* ---------- Rhythm: less empty space ---------- */
@media (min-width: 992px) {
  :root { --section-pad: 7rem; }
  .label { margin-bottom: 3.5rem; }
  .vis { padding-block: 10rem; } /* light section kept as it was */
}
/* Consecutive dark sections: don't stack bottom + top padding. */
#about,
#in-house { padding-bottom: 2rem; }

/* ---------- Buttons for dark sections ---------- */
.btn--solid {
  color: var(--bg);
  background: var(--red);
  border-color: var(--red);
}
.btn--solid:hover {
  color: var(--bg);
  background: var(--beige);
  border-color: var(--beige);
}
.btn--outline {
  color: var(--beige);
  border-color: rgba(199, 186, 165, 0.45);
}
.btn--outline:hover {
  color: var(--bg);
  background: var(--beige);
  border-color: var(--beige);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Phone frame ---------- */
/* Black glass bezel inside a thin titanium rim; screen corners kept fairly
   tight so the video isn't cropped. Radii are concentric (outer = screen + bezel + rim). */
.phone {
  --bezel: 7px;
  --rim: 2px;
  --screen-r: 16px;
  position: relative;
  width: min(100%, 290px);
  margin: 0;
  padding: var(--bezel);
  border: var(--rim) solid transparent;
  border-radius: calc(var(--screen-r) + var(--bezel) + var(--rim));
  background:
    linear-gradient(#070708, #070708) padding-box,
    linear-gradient(150deg, #8a8a90 0%, #3b3b40 22%, #6e6e74 48%, #2a2a2e 72%, #7c7c82 100%) border-box;
  /* Stepped edge on the right/bottom fakes the phone's metal side (light from top-left). */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    1px 1px 0 #3f3f44,
    2px 2px 0 #3a3a3f,
    3px 3px 0 #35353a,
    4px 4px 0.5px #303034,
    14px 22px 30px -6px rgba(0, 0, 0, 0.55),
    34px 56px 90px -24px rgba(0, 0, 0, 0.75);
}
.phone picture {
  position: relative;
  display: block;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 270 / 451;
  object-fit: cover;
  border-radius: var(--screen-r);
  background: #000;
}
/* Camera pill, just inside the top of the screen */
.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--bezel) + 6px);
  left: 50%;
  z-index: 2;
  width: 24%;
  height: 11px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
}
/* Glass reflection over the screen */
.phone picture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--screen-r);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 22%, transparent 42%);
  pointer-events: none;
}
/* Side buttons: power on the right, volume up/down on the left */
.phone::after,
.phone picture::before {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #56565c, #2c2c30);
}
.phone::after {
  top: 27%;
  right: calc(-1 * var(--rim) - 3px);
  height: 14%;
  border-radius: 0 2px 2px 0;
}
.phone picture::before {
  top: 20%;
  left: calc(-1 * (var(--bezel) + var(--rim) + 3px));
  height: 20%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom, #56565c 0 42%, transparent 42% 58%, #56565c 58% 100%);
}

/* ---------- Hero ---------- */
.hero {
  padding: 7.5rem 0 6.5rem;
}
.hero__bg img {
  opacity: 0.5;
  filter: blur(22px) saturate(1.25);
  transform: scale(1.12);
}
.hero__bg::after {
  background:
    linear-gradient(90deg, rgba(14, 14, 14, 0.95) 0%, rgba(14, 14, 14, 0.82) 40%, rgba(14, 14, 14, 0.2) 100%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.75) 0%, transparent 24%, transparent 72%, var(--bg) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: 78%;
  max-width: 90rem;
  margin-inline: auto;
  padding: 0 var(--pad);
}
.hero__title {
  font-size: min(12.5vh, 8.2vw);
  font-size: min(12.5svh, 8.2vw);
  line-height: 0.86;
  text-align: left;
}
.hero__sub {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 0.6rem + 0.75vw, 1.4rem);
  line-height: 1.45;
  animation: rise 0.8s var(--ease-out) 0.3s both;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
  animation: rise 0.8s var(--ease-out) 0.42s both;
}
.hero__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  animation:
    phone-in 1.1s var(--ease-out) 0.25s both,
    phone-float 7s ease-in-out 1.4s infinite;
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.hero__phone .phone {
  width: min(22vw, 34vh, 400px);
  width: min(22vw, 34svh, 400px);
  transform: perspective(1800px) rotateY(-14deg) rotateX(4deg) rotateZ(3deg);
}
.hero__phone::after { /* soft floor shadow */
  content: "";
  position: absolute;
  bottom: -1.75rem;
  left: 50%;
  z-index: -1;
  width: 78%;
  height: 44px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.65), transparent);
  transform: translateX(-40%);
}
.hero__tag {
  position: absolute;
  bottom: -5%;
  left: -24%;
  z-index: 3;
  margin: 0;
  animation: tag-in 0.8s var(--ease-out) 1.05s both;
}
.hero__tag a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  color: var(--beige);
  background: rgba(20, 20, 21, 0.9);
  border: 1px solid rgba(199, 186, 165, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: border-color 0.3s, background-color 0.3s;
}
.hero__tag img {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 22%;
}
.hero__tag-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}
.hero__tag-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero__tag-text small {
  color: var(--beige-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__tag-arrow {
  margin-left: 0.5rem;
  color: var(--red);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.hero__tag a:hover {
  background: rgba(24, 24, 25, 0.95);
  border-color: rgba(234, 61, 65, 0.55);
}
.hero__tag a:hover .hero__tag-arrow {
  transform: translateX(3px);
}
@keyframes tag-in {
  from {
    opacity: 0;
    transform: translate(-16px, 10px);
  }
}
@media (min-width: 992px) and (max-height: 800px) {
  .hero__title {
    font-size: min(11.5vh, 8.2vw);
    font-size: min(11.5svh, 8.2vw);
  }
  .hero__sub { margin-top: 1.5rem; }
  .hero__ctas { margin-top: 1.75rem; }
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  color: var(--beige-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--beige); }
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(199, 186, 165, 0.25);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--red);
  animation: cue 1.9s var(--ease-out) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Trusted-by marquee ---------- */
.trusted {
  padding: 2rem 0 0;
}
.trusted__caption {
  margin-bottom: 1.1rem;
  color: var(--beige-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}
.marquee {
  overflow: hidden;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line-soft);
  -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;
  align-items: center;
  width: max-content;
}
/* Without JS (or before it measures) the logos just sit centred. */
.marquee:not(.is-ready) .marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.75rem;
  width: auto;
}
.marquee.is-ready .marquee__track {
  animation: marquee var(--marquee-duration, 48s) linear infinite;
}
.marquee__track li {
  flex: none;
  padding: 0 1.6rem;
}
.marquee__track img {
  width: auto;
  max-width: none;
  height: 70px;
  opacity: 0.62;
  transition: opacity 0.3s;
}
.marquee__track img:hover { opacity: 1; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }

/* ---------- About ---------- */
#about { padding-top: 5.5rem; }
#about .label { margin-bottom: 2.5rem; }
#about .lead {
  max-width: 22em;
  line-height: 1.08;
}

/* ---------- In-House project card ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(199, 186, 165, 0.055), rgba(199, 186, 165, 0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  /* WebKit (Safari, all iPhone browsers) ignores overflow + radius for blurred
     children, so the glow's square corners showed; clip-path always clips. */
  clip-path: inset(0 round 18px);
}
.project__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 2rem;
  overflow: hidden;
  background: #101112;
  isolation: isolate;
}
.project__ambient {
  position: absolute;
  inset: -10%;
  z-index: -2;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  opacity: 0.6;
  filter: blur(40px) saturate(1.3);
}
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(closest-side, transparent 30%, rgba(14, 14, 14, 0.75));
}
.project__media .phone {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    1px 1px 0 #3f3f44,
    2px 2px 0 #3a3a3f,
    3px 3px 0.5px #343438,
    12px 20px 28px -6px rgba(0, 0, 0, 0.55),
    26px 44px 70px -20px rgba(0, 0, 0, 0.7);
  width: min(100%, 290px);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease-out);
}
.project:hover .project__media .phone { transform: rotate(0deg) translateY(-6px); }
.project__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 4.5vw, 4.5rem);
}
.project__eyebrow {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.project__icon {
  flex: none;
  width: 84px;
  border-radius: 22%;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.project__title {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.project__text {
  max-width: 27rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 0.8rem + 0.5vw, 1.35rem);
  line-height: 1.45;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.project__tags li {
  padding: 0.3rem 0.85rem;
  color: var(--beige-muted);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding: 0.65rem 1.4rem 0.65rem 1.1rem;
  color: var(--beige);
  background: #050505;
  border: 1px solid rgba(199, 186, 165, 0.45);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background-color 0.3s;
}
.store-btn svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--red);
}
.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-btn__text small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.store-btn__text strong {
  font-size: 1.35rem;
  font-weight: 700;
}
.store-btn:hover {
  border-color: var(--red);
  background: #140c0c;
  transform: translateY(-2px);
}

.nowrap { white-space: nowrap; }

/* ---------- What We Do ---------- */
.services-list { border-top: 1px solid var(--line); }
.services-list li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
}
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 29rem) 2.5rem;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
}
.svc__name {
  font-size: clamp(2.2rem, 3.3vw, 3.5rem);
  font-weight: 200;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s;
}
.svc__desc {
  color: var(--beige-muted);
  font-size: 1.05rem;
  line-height: 1.45;
  transition: color 0.3s;
}
.svc__arrow {
  justify-self: end;
  color: var(--beige-muted);
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.35;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), color 0.3s;
}
.svc:hover .svc__name,
.svc:focus-visible .svc__name,
.svc:hover .svc__arrow,
.svc:focus-visible .svc__arrow { color: var(--red); }
.svc:hover .svc__arrow,
.svc:focus-visible .svc__arrow {
  opacity: 1;
  transform: none;
}
.svc:hover .svc__desc,
.svc:focus-visible .svc__desc { color: var(--beige); }

/* ---------- Contact ---------- */
.contact__email { margin-top: 4vh; }
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.path {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 2.25rem;
  background: rgba(199, 186, 165, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease-out);
}
.path__kicker {
  color: var(--beige-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.path__title {
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}
.path__text {
  color: var(--beige-muted);
  line-height: 1.5;
}
.path__cta {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.path__cta span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.path:hover {
  background: rgba(234, 61, 65, 0.05);
  border-color: var(--red);
  transform: translateY(-3px);
}
.path:hover .path__cta span { transform: translateX(4px); }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .hero {
    padding: 6.5rem 0 6.5rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    padding: 0 var(--pad);
    text-align: center;
  }
  .hero__phone { display: none; }
  .hero__title {
    font-size: 17vw;
    line-height: 0.92;
    text-align: center;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
  }
  .hero__sub {
    margin-inline: auto;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
  }
  .hero__ctas { justify-content: center; }
  .hero__bg img {
    opacity: 0.55;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.04);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.72) 30%, rgba(14, 14, 14, 0.74) 70%, var(--bg) 100%);
  }

  #about { padding-top: 4.5rem; }
  #about,
  #in-house { padding-bottom: 1rem; }
  #about .label { margin-bottom: 2rem; }

  .project { grid-template-columns: 1fr 1fr; }
  .project__media { padding: 2.5rem 1.5rem; }
  .project__media .phone { width: min(100%, 240px); }
  .project__body { padding: 2.5rem 2rem; }


  .svc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem) 2rem;
    gap: 1.25rem;
  }
  .svc__name { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
  .svc__desc { font-size: 0.98rem; }
  .svc__arrow { opacity: 0.7; transform: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .hero__bg img {
    opacity: 0.6;
    filter: blur(2px) saturate(1.15);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.85) 0%, rgba(14, 14, 14, 0.6) 22%, rgba(14, 14, 14, 0.6) 66%, var(--bg) 100%);
  }
  .hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7); }
  .scroll-cue { color: var(--beige); }

  .marquee__track li { padding: 0 1.1rem; }
  .marquee__track img { height: 54px; }

  .project { grid-template-columns: 1fr; }
  .project__media { padding: 2.75rem 2rem; }
  .project__media .phone { width: min(72%, 250px); }
  .project__body { padding: 2rem 1.5rem 2.25rem; }
  .project__icon { width: 64px; }


  .svc {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 1rem;
    padding: 1.1rem 0;
  }
  .svc__name { grid-column: 1; }
  .svc__desc { grid-column: 1; font-size: 0.95rem; }
  .svc__arrow { grid-column: 2; grid-row: 1 / span 2; }

  .paths { grid-template-columns: 1fr; }
  .path { padding: 1.6rem 1.5rem; }
}

@media (max-width: 479px) {
  .hero__title { font-size: 23vw; }
  .hero__ctas .btn { padding: 0.8rem 1.25rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
    width: auto;
    animation: none !important;
  }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .scroll-cue__line::after {
    top: 30%;
    animation: none !important;
  }
  .hero__phone { animation: none !important; }
}

/* ================================================================
   Interaction layer: smooth scroll, hover underlines, magnetic
   buttons, "View" cursor, app store buttons, text cursor.
   ================================================================ */

/* Plain arrow over text (no I-beam) and no blinking text caret. */
body {
  cursor: default;
  caret-color: transparent;
}

/* Lenis smooth scrolling (from lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Underlines that draw in on hover */
@media (hover: hover) {
  .site-nav__links a,
  .site-footer li a,
  .site-footer__bottom a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color 0.3s, background-size 0.45s var(--ease-out);
  }
  .site-nav__links a:hover,
  .site-footer li a:hover,
  .site-footer__bottom a:hover {
    background-size: 100% 1px;
  }
}
@media (hover: hover) and (max-width: 991px) {
  .site-nav__links a {
    background: none;
  }
}

/* Magnetic buttons (class added by JS on mouse devices only) */
.btn.magnetic,
.btn-pill.magnetic,
.store-btn.magnetic {
  transition: transform 0.45s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* "View" bubble that follows the cursor over zoomable images */
.view-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  /* Centred on the pointer; JS sets \`translate\`, so scaling happens around the centre. */
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  opacity: 0;
  scale: 0;
  /* Scale-out when leaving an image */
  transition: opacity 0.3s ease-in, scale 0.35s cubic-bezier(0.5, 0, 0.75, 0);
}
.view-cursor.is-active {
  opacity: 1;
  scale: 1;
  /* Scale-in with a small overshoot when entering an image */
  transition: opacity 0.2s ease-out, scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.has-view-cursor .zoomable {
  cursor: none;
}

/* App store buttons side by side */
.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.store-btns .store-btn {
  margin-top: 0;
}
.store-btn--apple svg {
  color: var(--beige);
}

/* ================================================================
   Premium layer: brass palette + film grain, editorial section
   numbers + sticky section indicator, cinematic reveals.
   ================================================================ */
:root {
  --brass: #b89a6a;              /* 7.2:1 on #0e0e0e: OK for small text */
  --brass-ink: #74582c;          /* 5.1:1 on #e9e1d4: brass for the light section */
  --hair: rgba(184, 154, 106, 0.26);
  --hair-soft: rgba(184, 154, 106, 0.13);
  --hair-ink: rgba(116, 88, 44, 0.32);
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Colour: brass for hairlines, eyebrows, numbers ---------- */
/* Faint warm vignette behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(184, 154, 106, 0.045), transparent 72%),
    radial-gradient(ellipse 130% 105% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}
/* Static film grain over the whole page (no animation, no pointer events) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.06;
}

.trusted__caption,
.hero__tag-text small,
.project__eyebrow,
.path__kicker,
.site-footer__heading {
  color: var(--brass);
}
.scroll-cue__line { background: var(--hair); }
.scroll-cue__line::after { background: var(--brass); }
.site-header::before { border-bottom-color: var(--hair-soft); }
.marquee { border-color: var(--hair-soft); }
.project,
.path,
.project__tags li { border-color: var(--hair); }
.services-list { border-top-color: var(--hair); }
.services-list li { border-bottom-color: var(--hair); }
.svc__arrow { color: var(--brass); }
.site-footer { border-top-color: var(--hair); }
.site-footer__bottom::before { border-top-color: var(--hair-soft); }

.vis__eyebrow,
.vis__steps b { color: var(--brass-ink); }
.vis__steps li { border-top-color: var(--hair-ink); }


/* ---------- 6. Editorial section heads: big thin number + red chip ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 1.6vw, 1.75rem);
  margin-bottom: 3.5rem;
}
.sec-head .label,
#about .sec-head .label,
.vis .sec-head .label {
  flex: none;
  margin: 0;
}
.sec-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hair);
  transform-origin: 0 50%;
}
.sec-num {
  flex: none;
  margin-bottom: -0.035em;
  color: var(--brass);
  font-size: clamp(3.4rem, 7.4vw, 8.5rem);
  font-weight: 160;
  line-height: 0.74;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
#about .sec-head { margin-bottom: 2.75rem; }
.vis .sec-head { margin-bottom: 3rem; }
.vis .sec-num { color: var(--brass-ink); font-weight: 200; }
.vis .sec-head::after { background: var(--hair-ink); }
.contact .sec-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Sticky section indicator (desktop only) */
.sec-rail { display: none; }
@media (min-width: 1024px) {
  .js .sec-rail {
    position: fixed;
    top: 50%;
    left: max(1.25rem, calc((100vw - min(78vw, 90rem)) / 2 - 3.4rem));
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    color: var(--brass);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.5s var(--ease-out), color 0.4s;
  }
  .js .sec-rail.is-active { opacity: 1; }
  .js .sec-rail.is-active.over-media { opacity: 0; }
  .sec-rail__num {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  .sec-rail__track {
    position: relative;
    width: 1px;
    height: 4.5rem;
    overflow: hidden;
    background: var(--hair);
  }
  .sec-rail__fill {
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleY(var(--p, 0));
    transform-origin: 50% 0;
  }
  .sec-rail__name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }
  .sec-rail.on-light { color: var(--brass-ink); }
  .sec-rail.on-light .sec-rail__track { background: var(--hair-ink); }
  .sec-rail.is-swapping .sec-rail__num,
  .sec-rail.is-swapping .sec-rail__name {
    animation: rail-swap 0.6s var(--ease-cine) both;
  }
}
@keyframes rail-swap {
  from { opacity: 0; translate: 0 8px; }
}

/* Visualisation: full-bleed cinematic render above the intro */
.vis { overflow-x: clip; }
.vis__title { font-size: clamp(2.6rem, 5.6vw, 6.4rem); }
.vis__cinema {
  position: relative;
  margin: clamp(2.5rem, 4.5vw, 4.5rem) calc(50% - 50vw) 0;
}
.vis__cinema .zoomable { border-radius: 0; }
.vis__cinema .zoomable:focus-visible { outline-offset: -8px; } /* full-bleed: keep the ring inside the frame */
.vis .vis__cinema img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 84vh;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 0;
}
.vis__top {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
}
.vis__intro {
  max-width: 34rem;
  margin-top: 0;
  font-size: clamp(1.2rem, 0.9rem + 0.5vw, 1.45rem);
}
.vis__media { padding-top: 0.4rem; }
.vis__thumbs { margin-top: 0; }


/* ---------- 3. Cinematic reveals (JS adds classes; nothing hides without JS) ---------- */
/* Hero: each headline line slides up from behind its own mask. */
.hero__title .line {
  display: block;
  padding: 0.06em 0.25em 0.16em 0.04em;
  margin: -0.06em -0.25em -0.16em -0.04em;
}
.js .hero__title:not(.is-done) .line { overflow: hidden; }
.js .hero__title { animation: none; }
.js .hero__title .line__in {
  transform-origin: 0 100%;
  animation: line-up 1s var(--ease-cine) both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.09s);
}
.js .hero__sub { animation: rise-cine 1s var(--ease-cine) 0.62s both; }
.js .hero__ctas { animation: rise-cine 1s var(--ease-cine) 0.74s both; }
.js .scroll-cue { animation: fade-in 1s var(--ease-out) 1.25s both; }
.js .site-header__inner { animation: fade-in 0.9s var(--ease-out) 0.55s both; }
@keyframes line-up {
  from { transform: translate3d(0, 118%, 0) rotate(2.5deg); }
}
@keyframes rise-cine {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
}

/* Sections: rise + fade as they enter, staggered inside groups. */
.js .rv {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.9s var(--ease-cine), transform 1.1s var(--ease-cine);
  transition-delay: var(--rv-d, 0ms);
}
.js .rv.is-in {
  opacity: 1;
  transform: none;
}
/* Images: rise + a slow settle of the picture inside its frame */
.js .rv--img {
  overflow: hidden;
  border-radius: 6px;
}
.js .rv--img img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-cine);
  transition-delay: var(--rv-d, 0ms);
}
.js .rv--img.is-in img { transform: none; }
/* Cinematic render: opens like a letterbox, picture settles */
.js .rv--cinema {
  opacity: 1;
  transform: none;
  clip-path: inset(9% 7% 9% 7%);
  transition: clip-path 1.5s var(--ease-cine);
}
.js .rv--cinema img {
  transform: scale(1.14);
  transition: transform 2s var(--ease-cine);
}
.js .rv--cinema.is-in { clip-path: inset(0 0 0 0); }
.js .rv--cinema.is-in img { transform: none; }
/* Section heads: number rises, chip wipes in, hairline draws */
.js .sec-head.rv {
  opacity: 1;
  transform: none;
}
.js .sec-head.rv .sec-num {
  opacity: 0;
  transform: translate3d(0, 35%, 0);
  transition: opacity 0.9s var(--ease-cine), transform 1.2s var(--ease-cine);
}
.js .sec-head.rv .label {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-cine) 0.12s;
}
.js .sec-head.rv::after {
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-cine) 0.25s;
}
.js .sec-head.rv.is-in .sec-num { opacity: 1; transform: none; }
.js .sec-head.rv.is-in .label { clip-path: inset(0 0 0 0); }
.js .sec-head.rv.is-in::after { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sec-head { margin-bottom: 2rem; }
  #about .sec-head { margin-bottom: 2rem; }
  .vis .sec-head { margin-bottom: 2rem; }
  .sec-num { font-weight: 200; }
  .vis .vis__cinema img { aspect-ratio: 16 / 10; }
  .vis__top { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .vis .vis__cinema img { aspect-ratio: 4 / 3; object-position: 38% 62%; }
}
@media (max-width: 479px) {
  .sec-num { font-size: 3rem; }
  .sec-head { gap: 0.75rem; }
}

/* ---------- Reduced motion: no animation at all ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line__in,
  .js .hero__sub,
  .js .hero__ctas,
  .js .scroll-cue,
  .js .site-header__inner,
  .sec-rail.is-swapping .sec-rail__num,
  .sec-rail.is-swapping .sec-rail__name { animation: none !important; }
  .js .rv,
  .js .rv img,
  .js .sec-head.rv .sec-num,
  .js .sec-head.rv .label,
  .js .sec-head.rv::after {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
