/* =====================================================
   NISHI SHAH — Interior Architect
   Core stylesheet: tokens, base, header/nav, buttons,
   home page sections, footer, cookie UI.
   Subpages add ../pages/subpage.css on top of this.
   ===================================================== */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand */
  --red:        #4B1211;
  --red-dark:   #2F0B0A;
  --red-tint:   #F2E6E5;
  --red-faint:  rgba(75, 18, 17, 0.08);

  /* Neutrals — warm parchment & walnut (after Aspelin Reitan) */
  --ink:        #22150F;
  --ink-2:      #4D3E35;
  --ink-3:      #8A7B70;
  --ink-4:      #B9AB9E;
  --line:       rgba(34, 21, 15, 0.16);
  --line-soft:  rgba(34, 21, 15, 0.08);
  --paper:      #F6F0E7;
  --paper-2:    #EFE6D9;
  --paper-3:    #E5D9C8;
  --walnut:     #1C110D;

  /* On dark surfaces */
  --on-dark:        #F6F0E7;
  --on-dark-2:      rgba(246, 240, 231, 0.74);
  --on-dark-3:      rgba(246, 240, 231, 0.5);
  --line-on-dark:   rgba(239, 186, 115, 0.28);

  /* Legacy aliases still used in markup/scripts */
  --color-brand-red:   var(--red);
  --color-brand-hover: var(--red-dark);
  --color-brand-soft:  var(--red-tint);
  --color-brand-light: var(--paper-2);
  --color-brand-dark:  var(--ink);
  --color-accent:      var(--red);
  --color-accent-dark: var(--red-dark);
  --color-black:       var(--ink);
  --color-white:       #FFFFFF;
  --color-text-muted:  var(--ink-3);

  /* Type */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --fs-label: 0.6875rem;                                   /* 11px */
  --fs-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); /* 13–14 */
  --fs-body:  clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); /* 15–17 */
  --fs-lead:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);  /* 18–22 */
  --fs-h3:    clamp(1.625rem, 1.35rem + 1.2vw, 2.5rem);    /* 26–40 */
  --fs-h2:    clamp(2.5rem, 1.6rem + 4vw, 6rem);           /* 40–96 — editorial */
  --fs-h1:    clamp(3.25rem, 1.6rem + 7.5vw, 10.5rem);     /* 52–168 — Liron Moran scale */

  /* Layout */
  --header-h:     76px;
  --container-w:  1320px;
  --container-px: clamp(20px, 5vw, 72px);
  --section-y:    clamp(5rem, 10vw, 8.5rem);
  --gap:          clamp(2rem, 4vw, 3.5rem);
  --radius:       2px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  180ms;
  --dur-med:   380ms;
  --dur-slow:  680ms;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink-2);
  overflow-x: hidden;
}

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

h1, h2, h3, h4,
.serif-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--red); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 8px; }

/* ─── UTILITIES ─── */
.invisible {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.container--bleed-right { padding-right: 0; }
.nowrap { white-space: nowrap; }

.skip-to-content {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; font-size: var(--fs-small); font-weight: 500;
  z-index: 9999; transition: top var(--dur-fast);
}
.skip-to-content:focus { top: 16px; }

/* Eyebrow label: the single small-caps style used everywhere */
.section-eyebrow,
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.section-heading { font-size: var(--fs-h2); }

/* Section header: eyebrow + heading left, lead paragraph right */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__lead {
  font-size: var(--fs-lead);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
}

/* Reveal on scroll (home page + legacy subpages).
   Hidden only when JS is running (loader.js adds .ns-js), so no-JS visitors see everything. */
.ns-js .revealable {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.ns-js .revealable.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ns-js .revealable { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ─── BUTTONS ─── */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px;
  padding: 0 1.9rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  white-space: nowrap;
}
.button:hover, .btn:hover { background: var(--ink); color: #fff; }
.button:active, .btn:active { transform: translateY(1px); }
.button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.button--fill-red, .button--fill-accent, .btn--primary {
  background: var(--red); border-color: var(--red); color: #fff;
}
.button--fill-red:hover, .button--fill-accent:hover, .btn--primary:hover {
  background: var(--red-dark); border-color: var(--red-dark); color: #fff;
}
.button--outline-dark, .btn--outline { border-color: var(--ink); color: var(--ink); }
.button--outline-white { border-color: rgba(255,255,255,0.6); color: #fff; }
.button--outline-white:hover { background: #fff; color: var(--ink); border-color: #fff; }
.button--ghost { border-color: transparent; padding-left: 0; padding-right: 0; }
.button--ghost:hover { background: transparent; color: var(--red); }
.button--rounded { border-radius: 100px; }
.button__arrow { transition: transform var(--dur-fast); }
.button:hover .button__arrow { transform: translateX(3px); }

/* Text link with underline */
.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.text-link:hover { color: var(--red); border-color: var(--red); }

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 7000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur-med) var(--ease-in-out), box-shadow var(--dur-med), height var(--dur-med);
}
.header .container { width: 100%; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-open .header { background: transparent; backdrop-filter: none; box-shadow: none; }

.header__logo { display: flex; align-items: center; z-index: 7100; flex-shrink: 0; }
.header__logo-image {
  height: 34px; width: auto;
  transition: opacity var(--dur-fast), filter var(--dur-med);
}
.header__logo:hover .header__logo-image { opacity: 0.7; }
/* While the red overlay is open, the header logo turns white — the nav has no second logo */
.nav-open .header__logo-image { filter: brightness(0) invert(1); }

/* Hamburger */
.header__menu-toggle {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  z-index: 7100; flex-shrink: 0;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.header__menu-toggle:hover { background: var(--red); border-color: var(--red); }
.header__menu-toggle-bar {
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-med) var(--ease-out-expo), background var(--dur-fast);
}
.header__menu-toggle:hover .header__menu-toggle-bar { background: #fff; }
.nav-open .header__menu-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.nav-open .header__menu-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.nav-open .header__menu-toggle-bar { background: #fff; }
.nav-open .header__menu-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-open .header__menu-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ─── FULL-SCREEN NAV ─── */
.nav {
  position: fixed; inset: 0; z-index: 6000;
  background: var(--red);
  color: #fff;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out-expo), visibility var(--dur-slow);
}
.nav-open .nav { opacity: 1; visibility: visible; pointer-events: all; }
.nav__container {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 2vh);
  padding-bottom: 32px;
  overflow-y: auto;
}
.nav__top-row { display: none; }
.nav__content-wrap { flex: 1; display: flex; align-items: center; }
.nav__list { width: 100%; max-width: 560px; }
.nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.nav__item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.nav__link-row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: clamp(14px, 2.2vh, 22px) 0;
  color: #fff;
  transition: padding-left var(--dur-med) var(--ease-out-expo);
  transform: translateY(14px); opacity: 0;
}
.nav-open .nav__link-row { transform: none; opacity: 1; transition: transform 0.7s var(--ease-out-expo), opacity 0.7s, padding-left var(--dur-med) var(--ease-out-expo); }
.nav-open .nav__item:nth-child(1) .nav__link-row { transition-delay: 0.08s; }
.nav-open .nav__item:nth-child(2) .nav__link-row { transition-delay: 0.14s; }
.nav-open .nav__item:nth-child(3) .nav__link-row { transition-delay: 0.20s; }
.nav-open .nav__item:nth-child(4) .nav__link-row { transition-delay: 0.26s; }
.nav-open .nav__item:nth-child(5) .nav__link-row { transition-delay: 0.32s; }
.nav__link-row:hover, .nav__link--active { padding-left: 14px; }
.nav__item-number {
  font-size: var(--fs-label); letter-spacing: 0.1em; font-weight: 500;
  color: rgba(255, 255, 255, 0.55); width: 2.5rem; flex-shrink: 0;
}
.nav__item-text {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.8rem + 2.4vw, 4rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.01em;
  flex: 1;
}
.nav__link--active .nav__item-text { font-style: italic; }
.nav__item-arrow {
  font-size: 1.5rem; color: #fff;
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.nav__link-row:hover .nav__item-arrow { opacity: 1; transform: none; }
.nav__bottom-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.nav__bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav__bottom-link {
  font-size: var(--fs-label); letter-spacing: 0.16em; font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur-fast);
}
.nav__bottom-link:hover { color: #fff; }
@media (max-width: 640px) {
  .nav__bottom-row { flex-direction: column; align-items: flex-start; }
}

/* ─── HOME HERO ─── */
.hero-wrapper { position: relative; }
.hero--home { position: relative; width: 100%; background: var(--paper); overflow: hidden; }
.hero__split-container {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  min-height: 100svh;
}
.hero__left-col {
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 4vh) clamp(2rem, 6vw, 6rem) 12vh var(--container-px);
}
.hero__headline-content { max-width: 36rem; }
.hero__eyebrow {
  display: block; font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.75rem;
}
.hero__headline {
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero__headline br { display: none; }
.hero__description {
  font-size: var(--fs-lead);
  font-family: var(--font-serif);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 30rem;
  margin-bottom: 2.5rem;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__right-col { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper-3); }
.hero__media-wrap { position: absolute; inset: 0; }
.hero__media-image {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  animation: heroZoom 14s var(--ease-out-expo) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 26, 27, 0.22), transparent 45%);
}
.hero__scroll-down {
  position: absolute; left: var(--container-px); bottom: 5vh; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3);
}
.hero__scroll-down::before { content: 'Scroll'; }
.hero__arrow { animation: arrowBob 2.4s ease-in-out infinite; }
.hero__arrow svg { width: 14px; height: 28px; }
@keyframes arrowBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (max-width: 1024px) {
  .hero__split-container { grid-template-columns: 1fr; min-height: auto; }
  .hero__right-col { order: -1; min-height: 62svh; }
  .hero__left-col { padding: clamp(2.5rem, 7vw, 4rem) var(--container-px) clamp(3rem, 8vw, 5rem); }
  .hero__scroll-down { display: none; }
}

/* ─── PORTFOLIO CATEGORY TABS (sticky) ─── */
.portfolio-snap-group { position: relative; background: var(--ink); }
.carousel-nav-wrapper {
  position: sticky; top: 0; z-index: 5000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.carousel-nav { overflow-x: auto; scrollbar-width: none; }
.carousel-nav::-webkit-scrollbar { display: none; }
.carousel-nav__ul { display: flex; white-space: nowrap; gap: clamp(0.5rem, 2vw, 2rem); }
.carousel-nav__item a {
  position: relative; display: block;
  padding: 20px 4px;
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--dur-fast);
}
.carousel-nav__item a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.carousel-nav__item a:hover { color: var(--ink); }
.carousel-nav__item.active a { color: var(--ink); }
.carousel-nav__item.active a::after { transform: scaleX(1); }

/* ─── PORTFOLIO CAROUSELS ─── */
.scroll-section { position: relative; width: 100%; }
.hp-carousel {
  position: relative; width: 100%;
  height: clamp(540px, 86vh, 900px);
  overflow: hidden; background: var(--ink); outline: none;
}
.hp-carousel__viewport { position: absolute; inset: 0; overflow: hidden; }
.hp-carousel__track { display: flex; height: 100%; transition: transform 800ms var(--ease-out-expo); }
.hp-carousel__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; background: var(--ink); }
.hp-carousel__slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(30, 26, 27, 0.82) 0%, rgba(30, 26, 27, 0.25) 45%, transparent 70%);
}
.hp-carousel__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out-expo);
}
.hp-carousel__slide:hover .hp-carousel__img { transform: scale(1.03); }
.hp-carousel__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 0 var(--container-px) clamp(3rem, 7vh, 5.5rem);
  color: #fff;
}
.hp-carousel__tag {
  display: block; font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 0.9rem;
}
.hp-carousel__content h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 0.5rem; max-width: 18ch; }
.hp-carousel__content h2 a { transition: opacity var(--dur-fast); }
.hp-carousel__content h2 a:hover { opacity: 0.75; }
.hp-carousel__location { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.72); margin-bottom: 1.5rem; }
.hp-carousel__link {
  display: inline-flex; align-items: center;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.hp-carousel__link:hover { border-color: #fff; }

/* Arrows: bottom-right cluster, alongside dots */
.hp-carousel > .container {
  position: absolute; right: 0; bottom: clamp(3rem, 7vh, 5.5rem); left: auto; z-index: 20;
  width: auto; max-width: none; padding: 0 var(--container-px) 0 0;
  pointer-events: none;
}
.hp-carousel__controls { pointer-events: all; }
.carousel__buttons { display: flex; gap: 10px; }
.carousel__button {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 26, 27, 0.25); backdrop-filter: blur(8px);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.carousel__button:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hp-carousel__dots {
  position: absolute; right: var(--container-px); bottom: clamp(1.25rem, 3vh, 2rem); z-index: 20;
  display: flex; gap: 8px;
}
.hp-carousel__dot {
  width: 22px; height: 2px; background: rgba(255, 255, 255, 0.35);
  transition: background var(--dur-fast), width var(--dur-med);
}
.hp-carousel__dot.active { background: #fff; width: 36px; }
@media (max-width: 760px) {
  .hp-carousel { height: clamp(520px, 80vh, 720px); }
  .hp-carousel > .container { display: none; }
  .hp-carousel__content { padding-bottom: 4rem; }
}

/* ─── HOME: ABOUT ─── */
.about-section { background: var(--paper); padding: var(--section-y) 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about__image-wrapper { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.about__portrait { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out-expo); }
.about__image-wrapper:hover .about__portrait { transform: scale(1.03); }
.about__image-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  font-size: var(--fs-small); color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(to top, rgba(30, 26, 27, 0.65), transparent);
}
.about__eyebrow { margin-bottom: 1.25rem; }
.about__heading { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.about__body p { color: var(--ink-2); max-width: 54ch; }
.about__body p:first-child { font-size: var(--fs-lead); font-family: var(--font-serif); line-height: 1.45; color: var(--ink); }
.about__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin: 2.5rem 0; padding: 2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about__stat-number {
  display: block; font-family: var(--font-serif);
  font-size: var(--fs-h3); line-height: 1; color: var(--red);
}
.about__stat-label {
  display: block; margin-top: 0.5rem;
  font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image-wrapper { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .about__stats { grid-template-columns: 1fr 1fr; } }

/* ─── HOME: PROCESS ─── */
.process-section { background: var(--paper-2); padding: var(--section-y) 0; border-top: 1px solid var(--line-soft); }
.process__header {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap); align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.process__title { font-size: var(--fs-h2); }
.process__title br { display: none; }
.process__intro-desc { font-size: var(--fs-lead); font-family: var(--font-serif); line-height: 1.4; color: var(--ink-2); }
.process__header-line { display: none; }
.process__connecting-line { display: none; }
.process__steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.process__step {
  position: relative;
  padding: 2.5rem 1.75rem 2.5rem 0;
  border-right: 1px solid var(--line);
  margin-right: 1.75rem;
}
.process__step:last-child { border-right: none; margin-right: 0; }
.process__step-icon-wrap { margin-bottom: 1.75rem; }
.process__step-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-tint);
}
.process__svg-icon { width: 18px; height: 18px; fill: var(--red); }
.process__step-number {
  display: block; font-size: var(--fs-label); letter-spacing: 0.18em; font-weight: 500;
  color: var(--red); margin-bottom: 0.75rem;
}
.process__step-title { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
.process__step-desc { font-size: var(--fs-small); line-height: 1.75; color: var(--ink-2); }
.process__bottom-separator { display: none; }
@media (max-width: 1024px) {
  .process__header { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__step:nth-child(2) { border-right: none; margin-right: 0; }
  .process__step { padding-top: 2rem; padding-bottom: 2rem; }
}
@media (max-width: 600px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__step { border-right: none; margin-right: 0; border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: none; }
}

/* ─── HOME: SERVICES ─── */
.services-section { background: var(--paper); padding: var(--section-y) 0; }
.services__header {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap); align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services__title { font-size: var(--fs-h2); }
.services__title br { display: none; }
.services__title .accent-text { color: var(--red); font-style: italic; }
.services__intro-desc { font-size: var(--fs-lead); font-family: var(--font-serif); line-height: 1.4; color: var(--ink-2); }
.services__header-line { display: none; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.services__card { display: flex; flex-direction: column; }
.services__card-img-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.services__card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.services__card:hover .services__card-img { transform: scale(1.04); }
.services__card-icon {
  position: absolute; top: 1rem; left: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.services__svg-icon { width: 18px; height: 18px; fill: var(--red); }
.services__card-content { padding: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.services__card-title { font-size: var(--fs-h3); }
.services__card-title .accent-word { font-style: italic; }
.services__card-desc { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.7; flex: 1; }
.services__learn-link {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.5rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); transition: color var(--dur-fast);
}
.services__learn-link:hover { color: var(--red); }
.services__learn-link .arrow { transition: transform var(--dur-fast); }
.services__learn-link:hover .arrow { transform: translateX(4px); }
@media (max-width: 1024px) {
  .services__header { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .services__grid { grid-template-columns: 1fr; } }

/* ─── HOME: CONTACT ─── */
.contact-section { position: relative; padding: var(--section-y) 0; background: var(--ink); color: #fff; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.contact__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(30, 26, 27, 0.95) 30%, rgba(30, 26, 27, 0.6)); }
.contact__inner { position: relative; z-index: 2; }
.contact__content { max-width: 820px; }
.contact-section .section-eyebrow { color: var(--red-tint); }
.contact__heading { font-size: var(--fs-h2); color: #fff; margin-bottom: 1.25rem; }
.contact__heading em { color: var(--red-tint); }
.contact__sub { font-size: var(--fs-lead); font-family: var(--font-serif); line-height: 1.45; color: var(--on-dark-2); max-width: 36rem; margin-bottom: 3rem; }

.contact__form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact__form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.contact__form-group--full { grid-column: 1 / -1; }
.contact__form-group label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 0.75rem 0;
  color: #fff; font-size: var(--fs-body);
  outline: none;
  transition: border-color var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.contact__form-group select {
  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 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; padding-right: 1.5rem; cursor: pointer;
}
.contact__form-group select option { background: var(--ink); color: #fff; }
.contact__form-group input::placeholder, .contact__form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.contact__form-group input:focus, .contact__form-group select:focus, .contact__form-group textarea:focus { border-color: #fff; }
.contact__form-group textarea { resize: vertical; min-height: 120px; }
.contact__form-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.contact__form .button { background: #fff; border-color: #fff; color: var(--ink); }
.contact__form .button:hover { background: var(--red-tint); border-color: var(--red-tint); color: var(--red-dark); }
.contact__form-note { font-size: var(--fs-small); color: var(--on-dark-3); }
.contact__form-success {
  display: none; padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; font-size: var(--fs-small);
}
.contact__form-success.is-visible { display: block; }
@media (max-width: 700px) {
  .contact__form-row { grid-template-columns: 1fr; }
  .contact__form-footer { flex-direction: column; align-items: flex-start; }
}

/* ─── FOOTER ─── */
.footer--main {
  background: var(--ink); color: var(--on-dark-2);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  border-top: 1px solid var(--line-on-dark);
}
.footer__layout {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.footer__brand-logo { display: block; margin-bottom: 1.5rem; }
.footer__brand-logo-image { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__brand-title { font-family: var(--font-serif); font-size: var(--fs-lead); letter-spacing: 0.14em; color: #fff; }
.footer__brand-subtitle { font-size: var(--fs-label); letter-spacing: 0.22em; color: var(--on-dark-3); margin-top: 4px; text-transform: uppercase; }
.footer__brand-bio { font-size: var(--fs-small); line-height: 1.8; color: var(--on-dark-2); margin-bottom: 1.5rem; max-width: 34ch; }
.footer__work-link {
  display: inline-flex; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color var(--dur-fast);
}
.footer__work-link:hover { border-color: #fff; }
.footer__divider { width: 1px; background: var(--line-on-dark); }
.footer__info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.footer__info-heading {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line-on-dark);
}
.footer__info-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer__info-link, .footer__address-text {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: var(--fs-small); line-height: 1.8; color: var(--on-dark-2);
}
.footer__info-link { transition: color var(--dur-fast); }
.footer__info-link:hover { color: #fff; }
.footer__icon-wrap { display: none; }
.footer__social-row { display: flex; gap: 1.1rem; align-items: center; margin-top: 0.5rem; }
.footer__social-svg { width: 18px; height: 18px; fill: var(--on-dark-2); transition: fill var(--dur-fast), transform var(--dur-fast); }
.footer__social-row a:hover .footer__social-svg { fill: #fff; transform: translateY(-2px); }
.footer__bottom-strip {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line-on-dark);
}
.footer__copyright { font-size: var(--fs-small); color: var(--on-dark-3); }
.footer__bottom-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.footer__bottom-link {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-3); transition: color var(--dur-fast);
}
.footer__bottom-link:hover { color: #fff; }
.footer__bottom-divider { color: rgba(255, 255, 255, 0.2); font-size: 10px; }
@media (max-width: 900px) {
  .footer__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__divider { display: none; }
  .footer__bottom-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .footer__info-cols { grid-template-columns: 1fr; } }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 6500;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(30, 26, 27, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-med), transform var(--dur-med), visibility var(--dur-med), background var(--dur-fast), color var(--dur-fast);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  background: var(--ink); color: #fff;
  border-top: 1px solid var(--line-on-dark);
  transform: translateY(0); transition: transform var(--dur-med) var(--ease-out-expo), visibility var(--dur-med);
}
.cookie-banner.is-hidden { transform: translateY(100%); visibility: hidden; }
.cookie-banner__inner {
  max-width: var(--container-w); margin: 0 auto;
  padding: 1rem var(--container-px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem;
}
.cookie-banner__inner p { font-size: var(--fs-small); color: var(--on-dark-2); margin: 0; }
.cookie-banner__inner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__buttons { display: flex; gap: 0.5rem; }
.cookie-banner__button {
  min-height: 38px; padding: 0 1.1rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); color: #fff;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.cookie-banner__button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-banner__button--primary { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-banner__button--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.cookie-banner__button-customise {
  font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px;
}
.cookie-banner__button-customise:hover { color: #fff; }

/* ─── COOKIE MANAGER ─── */
.cookie-manager {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-med), visibility var(--dur-med);
}
.cookie-manager.is-open { opacity: 1; visibility: visible; }
.cookie-manager__overlay { position: absolute; inset: 0; background: rgba(30, 26, 27, 0.6); backdrop-filter: blur(6px); }
.cookie-manager__panel {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--ink-2);
  width: min(560px, 92vw); max-height: 90vh; overflow-y: auto;
  padding: 2.5rem;
}
.cookie-manager__logo { margin-bottom: 1.25rem; }
.cookie-manager__panel h2 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.cookie-manager__panel p { font-size: var(--fs-small); line-height: 1.7; }
.cookie-manager__category-list { margin: 1.25rem 0; }
.cookie-manager__category { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cookie-manager__category-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
.cookie-manager__category h3 { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 500; color: var(--ink); margin-bottom: 0.25rem; }
.cookie-manager__lightswitch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cookie-manager__lightswitch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-manager__lightswitch-slider { position: absolute; inset: 0; background: var(--ink-4); border-radius: 24px; cursor: pointer; transition: background var(--dur-fast); }
.cookie-manager__lightswitch-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform var(--dur-fast);
}
.cookie-manager__lightswitch input:checked + .cookie-manager__lightswitch-slider { background: var(--red); }
.cookie-manager__lightswitch input:checked + .cookie-manager__lightswitch-slider::before { transform: translateX(18px); }
.cookie-manager__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cookie-manager__button {
  min-height: 42px; padding: 0 1.25rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.cookie-manager__button:hover { background: var(--ink); color: #fff; }
.cookie-manager__button--primary { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-manager__button--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ─── RESPONSIVE TOKENS ─── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header__logo-image { height: 28px; }
}

/* =====================================================
   LOADER & PAGE TRANSITIONS  (driven by loader.js)
   ===================================================== */
html.ns-loading:not(.ns-mode-none) { background: var(--red); }
html.ns-loading:not(.ns-mode-none) body { background: transparent; }
html.ns-loading:not(.ns-mode-none) body > :not(.loader) { visibility: hidden; animation: nsFailsafe 0s 6s forwards; }
html.ns-loading .loader { animation: nsFailsafeHide 0.4s 6s forwards; }
@keyframes nsFailsafe { to { visibility: visible; } }
@keyframes nsFailsafeHide { to { opacity: 0; visibility: hidden; } }

/* Hold entrance animations until the loader lifts */
html.ns-loading .revealable.is-visible,
html.ns-loading.js-reveal .reveal.is-visible { opacity: 0; transform: translateY(22px); }
html.ns-loading .hero__media-image { animation-play-state: paused; }

.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--red); color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: clip-path;
}
.loader.is-leaving { clip-path: inset(0 0 100% 0); }
.loader--curtain { transition-duration: 0.8s; }
.loader--entering { clip-path: inset(100% 0 0 0); transition: clip-path 0.5s cubic-bezier(0.76, 0, 0.24, 1); }
.loader--entering.is-covering { clip-path: inset(0 0 0 0); }

.loader__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  transition: opacity 0.5s ease, transform 0.9s var(--ease-out-expo);
}
.loader.is-leaving .loader__center { opacity: 0; transform: translateY(-48px); }
.loader__mark {
  width: clamp(84px, 9vw, 124px); height: auto; margin-bottom: 0.75rem;
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s ease, transform 1.2s var(--ease-out-expo);
}
.loader.is-in .loader__mark { opacity: 1; transform: none; }
.loader__mark-ghost path { fill: rgba(255, 255, 255, 0.16); }
.loader__mark-solid path { fill: #fff; }
.loader__name, .loader__role { overflow: hidden; margin: 0; }
.loader__name span, .loader__role span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
}
.loader__name span {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1; letter-spacing: 0.02em; transition-delay: 0.15s;
}
.loader__role span {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); transition-delay: 0.3s;
}
.loader.is-in .loader__name span, .loader.is-in .loader__role span { transform: none; }
.loader__foot {
  position: absolute; left: var(--container-px); right: var(--container-px); bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  transition: opacity 0.4s ease;
}
.loader.is-leaving .loader__foot { opacity: 0; }
.loader__tag { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.loader__count {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height: 0.9;
  font-variant-numeric: tabular-nums; color: #fff;
}
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.15); }
.loader__bar span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
@media (max-width: 560px) { .loader__tag { display: none; } .loader__foot { justify-content: flex-end; } }

/* =====================================================
   MOTION LAYER  (driven by motion.js, only with .js-motion)
   ===================================================== */
/* Headline word reveal */
.is-split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.is-split .w > span {
  display: inline-block; transform: translateY(112%);
  transition: transform 1.1s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 45ms + 120ms);
}
.is-split.is-in .w > span { transform: none; }

/* Image wipe-in */
.js-motion .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(0.76, 0, 0.24, 1); }
.js-motion .wipe.is-in { clip-path: inset(0 0 0 0); }
.js-motion .wipe:not(.is-in) img { transform: scale(1.18); }
.js-motion .wipe img { transition: transform 1.8s var(--ease-out-expo); }

/* Parallax (motion.js sets --py) */
.js-motion .hero__media-wrap { transform: translate3d(0, var(--py, 0), 0) scale(1.1); will-change: transform; }
.js-motion .project-detail-hero__media { transform: translate3d(0, var(--py, 0), 0) scale(1.12); will-change: transform; }
.js-motion .next-project__bg { transform: translate3d(0, var(--py, 0), 0) scale(1.12); }
html.js-motion .next-project:hover .next-project__bg { transform: translate3d(0, var(--py, 0), 0) scale(1.17); }

/* View cursor badge */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none;
  width: 0; height: 0;
  transform: translate3d(-200px, -200px, 0);
}
.view-cursor span {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transform: scale(0); opacity: 0;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.3s ease;
}
.view-cursor.is-on span { transform: scale(1); opacity: 1; }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.project-gallery__img-wrapper[role="button"] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9800;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 19, 20, 0.96);
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1600px); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__figure img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  opacity: 0; transform: scale(0.98); transition: opacity 0.35s ease, transform 0.5s var(--ease-out-expo);
}
.lightbox.is-shown .lightbox__figure img { opacity: 1; transform: none; }
.lightbox__figure figcaption { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.7); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 1.25rem;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.lightbox__close:hover, .lightbox__nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lightbox__close { top: 1.25rem; right: 1.25rem; font-size: 1.6rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 1.5rem; bottom: 1.5rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; width: 46px; height: 46px; }
  .lightbox__nav--prev { left: auto; right: 4.5rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__count { bottom: 1.85rem; left: 1rem; }
}

/* =====================================================
   GOLD LOGO  (client brand gold — used only on dark surfaces)
   ===================================================== */
:root { --gold: #EFBA73; }

/* Header: maroon symbol normally, gold symbol while the menu overlay is open */
.header__logo-image--gold { display: none; }
.nav-open .header__logo-image { display: none; }
.nav-open .header__logo-image--gold { display: block; filter: none; }

/* Footer lockup */
.footer__brand-lockup { display: block; width: clamp(180px, 17vw, 240px); height: auto; margin-bottom: 0.25rem; }

/* Loader mark fills in gold */
.loader__mark-ghost path { fill: rgba(239, 186, 115, 0.18); }
.loader__mark-solid path { fill: var(--gold); }

/* Whole home slide is clickable */
.hp-carousel__slide { cursor: pointer; }

/* =====================================================
   EDITORIAL LAYER
   Base: Aspelin Reitan — parchment canvas, walnut bands,
   gold hairlines, photography carries the colour.
   Type: Liron Moran — oversized light serif, tight leading,
   ghost controls, hairlines, zero elevation.
   ===================================================== */
body { background: var(--paper); color: var(--ink-2); }

h1, h2, h3, .serif-heading {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
h1 { line-height: 0.9; }
h3 { line-height: 1.05; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-weight: 300; color: inherit; font-style: italic; }

.section-eyebrow, .eyebrow { color: var(--ink-3); letter-spacing: 0.24em; }
.section-eyebrow::before, .eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 0.9rem; opacity: 0.6;
}

/* Ghost buttons — no filled colour blocks */
.button, .btn {
  border-radius: 0; min-height: 52px; padding: 0 2.1rem;
  letter-spacing: 0.22em; font-weight: 500;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
}
.button:hover, .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--fill-red, .button--fill-accent, .btn--primary { background: transparent; border-color: var(--red); color: var(--red); }
.button--fill-red:hover, .button--fill-accent:hover, .btn--primary:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.button--rounded { border-radius: 0; }

/* Ghost buttons on dark surfaces: gold hairline */
.hero--home .button, .contact-section .button, .contact__form .button,
.footer--main .button, .page-cta .btn, .page-cta .button {
  background: transparent; border-color: var(--gold); color: var(--gold);
}
.hero--home .button:hover, .contact-section .button:hover, .contact__form .button:hover,
.page-cta .btn:hover, .page-cta .button:hover { background: var(--gold); border-color: var(--gold); color: var(--walnut); }

.text-link { border-bottom-color: var(--line); }

/* Header: parchment when scrolled; light marks while over dark photography */
.header--scrolled { background: rgba(246, 240, 231, 0.9); box-shadow: 0 1px 0 var(--line-soft); }
.header__menu-toggle { background: transparent; border-color: var(--line); }
.header__menu-toggle:hover { background: var(--ink); border-color: var(--ink); }
.home .header:not(.header--scrolled) .header__logo-image,
.page-project-detail .header:not(.header--scrolled) .header__logo-image { display: none; }
.home .header:not(.header--scrolled) .header__logo-image--gold,
.page-project-detail .header:not(.header--scrolled) .header__logo-image--gold { display: block; }
.home .header:not(.header--scrolled) .header__menu-toggle,
.page-project-detail .header:not(.header--scrolled) .header__menu-toggle { border-color: rgba(246, 240, 231, 0.45); }
.home .header:not(.header--scrolled) .header__menu-toggle-bar,
.page-project-detail .header:not(.header--scrolled) .header__menu-toggle-bar { background: var(--paper); }

/* Menu overlay */
.nav__item-number { color: var(--gold); opacity: 0.9; }
.nav__item, .nav__item:first-child { border-color: rgba(239, 186, 115, 0.22); }
.nav__bottom-row { border-top-color: rgba(239, 186, 115, 0.22); }
.nav__item-text { font-weight: 300; }

/* ─── HOME HERO: one full-bleed photograph, oversized type over it ─── */
.hero--home .hero__split-container { position: relative; display: block; min-height: 100svh; }
.hero--home .hero__right-col { position: absolute; inset: 0; min-height: 0; background: var(--walnut); }
.hero--home .hero__media-overlay {
  background: linear-gradient(to top, rgba(28, 17, 13, 0.86) 0%, rgba(28, 17, 13, 0.42) 42%, rgba(28, 17, 13, 0.18) 100%);
}
.hero--home .hero__left-col {
  position: relative; z-index: 3; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4vh) var(--container-px) clamp(2.5rem, 7vh, 5rem);
}
.hero--home .hero__headline-content {
  max-width: none; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: end;
}
.hero--home .hero__eyebrow, .hero--home .hero__headline { grid-column: 1 / -1; }
.hero--home .hero__eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.hero--home .hero__headline {
  color: var(--paper); font-weight: 300;
  font-size: clamp(3rem, 1rem + 7vw, 9.5rem); line-height: 0.88; letter-spacing: -0.035em;
  max-width: 15ch; margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.hero--home .hero__description {
  color: var(--on-dark-2); margin: 0; max-width: 30rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line-on-dark);
}
.hero--home .hero__cta { align-self: end; }
.hero--home .hero__scroll-down { display: none; }
@media (max-width: 760px) {
  .hero--home .hero__headline-content { grid-template-columns: 1fr; row-gap: 1.75rem; }
}

/* Category tabs */
.carousel-nav-wrapper { background: rgba(246, 240, 231, 0.94); }
.carousel-nav__item a { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.carousel-nav__item.active a { font-style: italic; }
.carousel-nav__item a::after { background: var(--ink); height: 1px; }

/* Carousel captions */
.hp-carousel__tag { color: var(--gold); }
.hp-carousel__content h2 { font-size: clamp(2.75rem, 1.4rem + 5vw, 7.5rem); max-width: 14ch; }
.hp-carousel__link { border-bottom-color: rgba(239, 186, 115, 0.6); }
.hp-carousel__dot.active { background: var(--gold); }

/* ─── HOME: ABOUT ─── */
.about-section { background: var(--paper); }
.about__heading { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.5rem); }
.about__stat-number { color: var(--ink); font-weight: 300; font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); }
.about__stats { border-color: var(--line); }

/* ─── HOME: PROCESS — numbered hairline columns, no icon badges ─── */
.process-section { background: var(--paper-2); border-top: 0; }
.process__title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.5rem); }
.process__step-icon-wrap { display: none; }
.process__step-number {
  font-family: var(--font-serif); font-size: clamp(2.75rem, 2rem + 2vw, 4rem); font-weight: 300;
  letter-spacing: -0.02em; color: var(--red); margin-bottom: 1.25rem;
}

/* ─── HOME: SERVICES — image + caption, no badges ─── */
.services__title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.5rem); }
.services__title .accent-text { color: inherit; }
.services__card-icon { display: none; }
.services__card-title .accent-word { font-style: italic; }

/* ─── HOME: CONTACT — walnut band ─── */
.contact-section { background: var(--walnut); }
.contact__overlay { background: linear-gradient(to right, rgba(28, 17, 13, 0.96) 35%, rgba(28, 17, 13, 0.7)); }
.contact-section .section-eyebrow { color: var(--gold); }
.contact__heading { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.5rem); color: var(--paper); }
.contact__heading em { color: var(--gold); }
.contact__form-group input, .contact__form-group select, .contact__form-group textarea { border-bottom-color: var(--line-on-dark); color: var(--paper); }
.contact__form-group input:focus, .contact__form-group select:focus, .contact__form-group textarea:focus { border-color: var(--gold); }
.contact__form-group select option { background: var(--walnut); }

/* ─── FOOTER — walnut, gold hairlines ─── */
.footer--main { background: var(--walnut); border-top: 1px solid var(--line-on-dark); }
.footer__info-heading { color: var(--gold); border-bottom-color: var(--line-on-dark); }
.footer__divider { background: var(--line-on-dark); }
.footer__bottom-strip { border-top-color: var(--line-on-dark); }
.footer__work-link { border-bottom-color: var(--gold); }

/* Misc */
.view-cursor span { background: var(--walnut); color: var(--gold); border: 1px solid var(--gold); }
.back-to-top { background: var(--paper); }
.cookie-banner { background: var(--walnut); }
::selection { background: var(--red); color: var(--paper); }

/* =====================================================
   INSTAGRAM — reels grid (home + project pages)
   ===================================================== */
.reels-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.reels-grid:empty { display: none; }
.reels-grid[data-count="1"] { max-width: 420px; }
.reels-grid[data-count="2"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 420px)); }
.reel { min-width: 0; }
.reels-grid .instagram-media {
  width: 100% !important; min-width: 0 !important; max-width: 100% !important;
  margin: 0 !important; border-radius: 0 !important;
  border: 1px solid var(--line) !important; box-shadow: none !important;
  background: var(--paper) !important;
}
.reels-grid blockquote.instagram-media { padding: 2rem; font-size: var(--fs-small); }
.reels-grid blockquote.instagram-media a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Home: Instagram presence */
.ig-section { background: var(--paper-2); padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.ig-section__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ig-section__title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.5rem); }
.ig-section__lead { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); margin-bottom: 1.75rem; }
@media (max-width: 860px) { .ig-section__head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; } }

/* Project pages: Watch the reel */
.project-reels { background: var(--paper); padding: var(--section-y) var(--container-px); border-top: 1px solid var(--line); }
.project-reels[hidden] { display: none; }
.project-reels__inner { max-width: var(--container-w); margin: 0 auto; }
.project-reels__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.project-reels__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
