/* =====================================================================
   NirvanaDeshaun Custom Builds
   Quiet-luxury architectural system — one accent lives only in the photos
   ===================================================================== */

:root {
  --bone:      #e9ebec;   /* cool architectural grey — surface */
  --paper:     #f2f3f4;   /* lifted panels */
  --ink:       #1b1d20;   /* cool near-black */
  --ink-soft:  #43474c;   /* body */
  --muted:     #878b91;   /* meta / captions */
  --line:      rgba(27, 29, 32, 0.15);
  --line-soft: rgba(27, 29, 32, 0.08);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --tracking: 0.02em;
  --space-section: clamp(64px, 9vw, 132px);
  --margin: clamp(22px, 6vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.72;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bone); }

/* ---- Shared type ---------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--light { color: rgba(246, 242, 236, 0.72); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.5em 0 0;
  max-width: 16ch;
  font-optical-sizing: auto;
}

.section-head { max-width: 1400px; margin: 0 auto var(--space-section); }
.section-head .section-title { max-width: 22ch; }

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px) var(--margin);
  color: var(--bone);
  transition: color 0.5s var(--ease), background 0.5s var(--ease), padding 0.5s var(--ease);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);   /* keeps light mark legible over sky */
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: clamp(14px, 1.6vw, 20px);
  padding-bottom: clamp(14px, 1.6vw, 20px);
  text-shadow: none;
}

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: 0.01em;
}
.wordmark__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0.72;
}

.nav { justify-self: center; display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  justify-self: end;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header.is-solid .header-cta:hover { background: var(--ink); color: var(--bone); }
.header-cta:hover { background: currentColor; }
.site-header:not(.is-solid) .header-cta:hover { color: #111; }

.menu-toggle {
  display: none;
  justify-self: end;
  background: none; border: none; color: inherit; cursor: pointer;
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0;
}

/* ---- Mobile menu ---------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bone);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(24px, 5vh, 44px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 9vw, 46px);
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(14, 15, 17, 0.34) 0%,
      rgba(14, 15, 17, 0) 18%),
    linear-gradient(to top,
      rgba(14, 15, 17, 0.64) 0%,
      rgba(14, 15, 17, 0.18) 34%,
      rgba(14, 15, 17, 0) 62%);
}
.hero__copy {
  position: relative;
  z-index: 2;
  color: var(--bone);
  padding: 0 var(--margin) clamp(56px, 8vh, 104px);
  max-width: 900px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0.28em 0 0;
  font-optical-sizing: auto;
}
.hero__lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(246, 242, 236, 0.9);
  max-width: 46ch;
  margin: clamp(20px, 3vh, 34px) 0 0;
}
.hero__place {
  position: absolute;
  right: var(--margin);
  bottom: clamp(56px, 8vh, 104px);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.7);
  margin: 0;
}
@media (max-width: 720px) { .hero__place { display: none; } }

/* ---- Statement ------------------------------------------------------ */
.statement {
  padding: var(--space-section) var(--margin);
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.statement__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 3.4vw, 44px);
  line-height: 1.34;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: clamp(24px, 4vw, 48px) auto 0;
  max-width: 24ch;
  font-optical-sizing: auto;
}
.statement .eyebrow { display: inline-block; }

/* ---- Stats ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
}
.stat {
  padding: clamp(38px, 5vw, 68px) clamp(20px, 2.4vw, 40px);
  border-left: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-bottom: 1px solid var(--line-soft); }
}

/* ---- Work / plates -------------------------------------------------- */
.work { padding: var(--space-section) var(--margin); }
.work .section-head { margin-bottom: clamp(48px, 7vw, 96px); }

.plate { margin: 0; }
.plate img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.plate figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.plate__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink);
  letter-spacing: 0;
}
.plate__meta {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.plate--wide { margin: 0 auto clamp(28px, 4vw, 56px); max-width: 1600px; }
.plate--wide img { aspect-ratio: 16 / 9; }

.plate-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1600px;
  margin: 0 auto clamp(28px, 4vw, 56px);
  align-items: start;
}
.plate-pair .plate img { aspect-ratio: 3 / 2; }
.plate-pair .plate--tall img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .plate-pair { grid-template-columns: 1fr; }
  .plate-pair .plate--tall img { aspect-ratio: 3 / 2; }
}

/* ---- Craft ---------------------------------------------------------- */
.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding: var(--space-section) var(--margin);
  max-width: 1600px;
  margin: 0 auto;
}
.craft__media { margin: 0; }
.craft__media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.craft__lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(30px, 4vw, 48px);
}
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.spec-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.spec-list li span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 2px;
}
@media (max-width: 900px) {
  .craft { grid-template-columns: 1fr; }
  .craft__media img { aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .spec-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Process -------------------------------------------------------- */
.process { padding: var(--space-section) var(--margin); background: var(--paper); }
.steps {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.step { padding-top: 26px; border-top: 1px solid var(--ink); }
.step__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 44px);
  color: var(--ink);
  display: block;
  line-height: 1;
}
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink);
  margin: 22px 0 12px;
  letter-spacing: 0;
}
.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 1040px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }

/* ---- Services ------------------------------------------------------- */
.services { padding: var(--space-section) var(--margin); }
.services__grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
}
.service p { margin: 0; font-size: 15px; line-height: 1.68; color: var(--ink-soft); max-width: 38ch; }
@media (max-width: 820px) { .services__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Contact -------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  padding: var(--space-section) var(--margin);
  background: var(--ink);
  color: var(--bone);
  max-width: 100%;
}
.contact .eyebrow { color: rgba(246, 242, 236, 0.55); }
.contact .section-title { color: var(--bone); }
.contact__lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(246, 242, 236, 0.78);
  max-width: 42ch;
  margin: clamp(22px, 3vw, 34px) 0 clamp(34px, 4vw, 50px);
}
.contact__direct { display: flex; flex-direction: column; gap: 12px; }
.linkline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--bone);
  width: fit-content;
  position: relative;
}
a.linkline::after {
  content: ''; position: absolute; left: 0; bottom: 1px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
a.linkline:hover::after { transform: scaleX(1); transform-origin: left; }
.linkline--muted {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.5);
}

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px); align-content: start; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.55);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 242, 236, 0.28);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 10px 0;
  transition: border-color 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--bone);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 242, 236, 0.4); }
.field select { appearance: none; cursor: pointer; }
.field select option { color: #1b1d20; }

.submit {
  background: var(--bone);
  color: var(--ink);
  border: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  justify-self: start;
}
.submit:hover { opacity: 0.82; }
.form-note {
  font-size: 12.5px;
  color: rgba(246, 242, 236, 0.6);
  margin: 16px 0 0;
  min-height: 1em;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__form { margin-top: 8px; }
}
@media (max-width: 480px) { .contact__form { grid-template-columns: 1fr; } }

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) var(--margin);
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer__brand .wordmark__name { font-size: 18px; color: var(--ink); }
.footer__brand .wordmark__sub { color: var(--muted); }
.footer__nav { justify-self: center; display: flex; gap: 28px; }
.footer__nav a {
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--ink); }
.footer__fine { justify-self: end; text-align: right; font-size: 11px; color: var(--muted); max-width: 30ch; margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__fine { justify-self: center; text-align: center; }
}

/* ---- Reveal --------------------------------------------------------- */
.reveal { opacity: 0; transition: opacity 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  * { transition: none !important; }
}

/* ---- Responsive header --------------------------------------------- */
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
}

/* =====================================================================
   INTERACTION LAYER — motion, parallax, scroll-driven detail
   ===================================================================== */

/* ---- Scroll progress bar ------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--ink); z-index: 200; pointer-events: none;
}
.site-header.is-solid ~ .scroll-progress,
.scroll-progress { will-change: transform; }

/* ---- Reveal — now travels (opacity + lift), stagger via JS delay --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Statement: scroll-driven word reveal -------------------------- */
.statement__body .word {
  color: var(--muted);
  opacity: 0.24;
  transition: color 0.18s linear, opacity 0.18s linear;
}

/* ---- Stats: line draw + subtle rise on activate -------------------- */
.stat { position: relative; }
.stat__num { display: inline-block; transition: transform 0.9s var(--ease); transform: translateY(6px); }
.stat.is-visible .stat__num { transform: none; }

/* ---- Work plates: framed parallax + hover ------------------------- */
.plate__frame { display: block; overflow: hidden; position: relative; }
.plate__parallax { display: block; will-change: transform; }
.plate__frame img { transform: scale(1.12); will-change: transform; transition: transform 1.4s var(--ease); }
.plate figcaption { transition: color 0.4s var(--ease); }
.plate__name { position: relative; display: inline-block; }
.plate__name::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.plate:hover .plate__name::after { transform: scaleX(1); }
.plate:hover .plate__frame img { transform: scale(1.16); }
@media (hover: none) { .plate__frame img { transform: scale(1.08); } }

/* ---- Process: animated progress rail + active steps --------------- */
.process { position: relative; }
.steps-rail {
  position: relative;
  max-width: 1400px;
  margin: 0 auto clamp(30px, 4vw, 52px);
  height: 1px;
  background: var(--line);
}
.steps-rail__fill {
  position: absolute; left: 0; top: 0; height: 1px; width: 0%;
  background: var(--ink);
  transition: width 0.15s linear;
}
.step { padding-top: 26px; border-top: none; }
.step__num { transition: color 0.5s var(--ease), transform 0.6s var(--ease); color: var(--muted); }
.step.is-active .step__num { color: var(--ink); }
.step.is-active .step__title { color: var(--ink); }

/* ---- Services: cards lift on hover -------------------------------- */
.service { transition: transform 0.5s var(--ease); }
.service h3 { transition: color 0.4s var(--ease); }
.service:hover { transform: translateY(-4px); }

/* ---- Contact redesign: photo backdrop + inner grid --------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 0;
  display: block;
}
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) brightness(0.5);
  transform: scale(1.05);
}
.contact__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(20,21,24,0.94) 0%, rgba(20,21,24,0.7) 46%, rgba(20,21,24,0.55) 100%);
}
.contact__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  padding: var(--space-section) var(--margin);
}
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }

/* animated field underline (bright overlay over the dim base border) */
.field { position: relative; }
.field__line {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--bone); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line,
.field select:focus ~ .field__line { transform: scaleX(1); }
.field label { transition: color 0.4s var(--ease); }
.field:focus-within label { color: var(--bone); }

/* magnetic submit + arrow */
.magnetic { display: inline-block; will-change: transform; }
.submit { display: inline-flex; align-items: center; gap: 12px; will-change: transform; }
.submit__arrow { transition: transform 0.45s var(--ease); display: inline-block; }
.submit:hover .submit__arrow { transform: translateX(7px); }

/* ---- Hero: very slow settle drift (not parallax scroll) ----------- */
.hero__media img { animation: heroSettle 14s var(--ease) forwards; }
@keyframes heroSettle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ---- Reduced motion: disable all of the above -------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement__body .word { opacity: 1; color: var(--ink); }
  .stat__num { transform: none; }
  .plate__frame img,
  .plate:hover .plate__frame img { transform: scale(1); transition: none; }
  .hero__media img { animation: none; }
  .service:hover { transform: none; }
  .scroll-progress { display: none; }
}

/* ---- Tighten dead space that read as "sparse/AI-default" ---------- */
.process .section-head,
.services .section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.statement { padding-top: clamp(70px, 10vw, 150px); padding-bottom: clamp(70px, 10vw, 150px); }

/* =====================================================================
   TURN-IT-UP LAYER — intro, grain, custom cursor, lightbox
   ===================================================================== */

/* ---- Cinematic intro loader -------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.loader.is-lifting { transform: translateY(-100%); }
.loader.is-done { display: none; }
.loader__mark { text-align: center; overflow: hidden; }
.loader__name {
  display: block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 6vw, 76px);
  letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; transform: translateY(0.5em);
  animation: loaderIn 1s var(--ease) 0.15s forwards;
}
.loader__sub {
  display: block; margin-top: 14px;
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: loaderIn 1s var(--ease) 0.42s forwards;
}
@keyframes loaderIn { to { opacity: 1; transform: none; } }

/* ---- Film grain --------------------------------------------------- */
.grain {
  position: fixed; inset: -120%; z-index: 250; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4%, 2%); }
  66%  { transform: translate(3%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ---- Custom "View" cursor (gallery, hover devices) --------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 240; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 999px;
  background: rgba(27, 29, 32, 0.82);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: var(--bone);
  font-family: var(--sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  transform: scale(0); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
}
.cursor.is-active { transform: scale(1); opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---- Lightbox ----------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 280;
  background: rgba(16, 17, 19, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: clamp(20px, 5vw, 60px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(1400px, 92vw); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.lightbox__cap {
  font-family: var(--sans); font-weight: 400;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246,242,236,0.72); text-align: center;
}
.lightbox__cap b { font-family: var(--serif); font-weight: 400; text-transform: none; font-size: 17px; color: var(--bone); display: block; margin-bottom: 6px; letter-spacing: 0; }
.lightbox__close {
  position: absolute; top: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 34px);
  background: none; border: none; color: var(--bone); cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--bone); cursor: pointer;
  font-size: 34px; line-height: 1; padding: 20px; opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: clamp(4px, 2vw, 30px); }
.lightbox__nav--next { right: clamp(4px, 2vw, 30px); }
@media (max-width: 640px) { .lightbox__nav { font-size: 26px; padding: 10px; } }

/* clickable affordance on plates */
.plate__frame { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .loader__name, .loader__sub { animation: none; opacity: 1; transform: none; }
  .grain { animation: none; }
}

/* hide native cursor over gallery when custom cursor active */
body.has-cursor .plate__frame { cursor: none; }
