/* =========================================================
   DiZain Studio

   Type rule, applied everywhere without exception:
     Cormorant Garamond  — headings, names, titles
     Jost                — labels, data, values, supporting text

   "The final line" — a hairline that fades out at both ends —
   is used only where asked: the nav frames, the hero arc, the
   footer arc, the project cover edges, and the rule under a
   project title.
   ========================================================= */

:root {
  --burgundy: #5C1B1B;
  --gold: #B08D4F;
  --brown: #3B1414;
  --beige: #E3D2AE;
  --ink: #2A1210;
  --cream: #FFFCF6;

  --text: var(--cream);
  --muted: rgba(255, 252, 246, 0.66);
  --faint: rgba(227, 210, 174, 0.42);

  --veil: rgba(59, 20, 20, 0.34);
  --veil-lift: rgba(92, 27, 27, 0.42);
  --edge: rgba(227, 210, 174, 0.10);

  --line: rgba(227, 210, 174, 0.26);
  --line-soft: rgba(227, 210, 174, 0.14);

  --blur: 26px;
  --dim: 0.5;
  --grain: 0.11;

  --display: "Cormorant Garamond", Georgia, serif;
  --util: "Jost", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 18px;
  --r-md: 26px;
  --r-lg: 56px;
  --r-xl: 90px;
  --r-pill: 999px;

  --gutter: clamp(22px, 5.5vw, 84px);
  --measure: 60ch;
  --bay: clamp(84px, 12vw, 168px);

  --nav-h: 62px;

  --glide: cubic-bezier(0.33, 0.05, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--util);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.78;
  letter-spacing: 0.01em;
}

img, video, svg, iframe { max-width: 100%; display: block; }
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.06; font-family: var(--display); }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--r-sm); }

.skip {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; inset: 16px auto auto 16px; width: auto; height: auto;
  margin: 0; padding: 12px 26px; clip-path: none;
  background: var(--cream); color: var(--ink); border-radius: var(--r-pill); z-index: 100;
}

/* =========================================================
   Backdrop
   ========================================================= */

.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }

/* the still frame paints at once, the clip fades over it when ready,
   so the page never opens on an empty backdrop */
.backdrop__still {
  position: absolute; top: 50%; left: 50%;
  width: 108%; height: 108%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(var(--blur)) brightness(var(--dim)) saturate(1.2);
}
.page-projects .backdrop__still { filter: blur(var(--blur)) brightness(0.42) saturate(1.05); }

.backdrop__video {
  position: absolute; top: 50%; left: 50%;
  width: 108%; height: 108%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(var(--blur)) brightness(var(--dim)) saturate(1.2);
  opacity: 0;
  transition: opacity 1.1s linear;
}
.backdrop__video.is-on { opacity: 1; }

.backdrop__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 50% 8%, rgba(92, 27, 27, 0.34), transparent 70%),
    radial-gradient(70% 50% at 82% 88%, rgba(176, 141, 79, 0.10), transparent 72%),
    linear-gradient(180deg, rgba(42, 18, 16, 0.76), rgba(42, 18, 16, 0.60) 45%, rgba(42, 18, 16, 0.88));
}

/* Projects page: no colour cast on the clip, only a neutral dim
   so the footage keeps its own tones and text stays readable. */
.page-projects .backdrop__video { filter: blur(var(--blur)) brightness(0.42) saturate(1.05); }
.page-projects .backdrop__wash {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.46));
}

.backdrop__grain {
  position: absolute; inset: -140px;
  opacity: var(--grain); mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: drift 9s steps(5) infinite;
}
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-10px, 7px); }
  50% { transform: translate(8px, -9px); }
  75% { transform: translate(-6px, -5px); }
}

/* =========================================================
   Shell & type
   ========================================================= */

.wrap { width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.bay { padding-block: var(--bay); }

.tag {
  display: block;
  font-family: var(--util);
  font-size: 0.68rem; font-weight: 300; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.1em;
}
.tag--gap { margin-top: 2.2em; }

.h1, .h2, .h3 { font-family: var(--display); font-weight: 300; letter-spacing: 0; }
.h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.04; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.12; }

.lede {
  font-family: var(--util);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--muted); max-width: var(--measure); margin-top: 1.4em;
}

/* every value / data string in the site */
.value { font-family: var(--util); font-weight: 300; }

.soft {
  background: var(--veil);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
  min-height: var(--nav-h);
  margin: 14px clamp(12px, 2.4vw, 26px);
  padding-inline: calc(var(--nav-h) / 2);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 0.5s var(--glide), border-color 0.5s var(--glide),
              backdrop-filter 0.5s var(--glide);
}
.nav.stuck {
  background: rgba(42, 18, 16, 0.58);
  border-color: var(--edge);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; }
.brand__text { width: 100px; opacity: 0.95; }

.menu { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }
.menu a {
  font-family: var(--util);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--glide);
}
.menu a:hover { color: var(--cream); }

.framed {
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 9px 22px;
  transition: border-color 0.45s var(--glide), color 0.45s var(--glide);
}
.framed:hover,
.framed[aria-current="page"] { border-color: var(--line); color: var(--cream); }

.pill {
  border: 1px solid rgba(176, 141, 79, 0.45);
  border-radius: var(--r-pill);
  padding: 9px 24px;
  color: var(--gold);
  transition: background 0.5s var(--glide), color 0.5s var(--glide);
}
.pill:hover { background: var(--gold); color: var(--ink); }

.burger { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.burger span {
  display: block; width: 24px; height: 1px; background: var(--cream);
  border-radius: var(--r-pill);
  transition: transform 0.45s var(--glide);
}
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  /* the arc sits in this bottom band, clear of the lockup */
  padding: 150px var(--gutter) clamp(210px, 26vh, 300px);
}

.hero__lockup { display: grid; justify-items: center; gap: clamp(18px, 3vw, 34px); }
.hero__mark { width: clamp(96px, 15vw, 186px); }
.hero__text { width: clamp(230px, 36vw, 470px); }

.hero__tagline {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  color: var(--muted); margin: 0;
}

/* same geometry and placement as the footer arc, gold instead */
.hero__curve {
  position: absolute; inset: auto 0 0 0;
  width: 100%; height: 130px;
  pointer-events: none;
}
.hero__curve path { stroke-dasharray: 0px 4000px; }

.fade { opacity: 0; transform: translateY(22px); }
.ready .fade { animation: lift 1.4s var(--glide) forwards; }
.ready .fade:nth-child(2) { animation-delay: 0.18s; }
.ready .fade:nth-child(3) { animation-delay: 0.34s; }
@keyframes lift { to { opacity: 1; transform: none; } }

.enter { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--glide), transform 1s var(--glide); }
.enter.seen { opacity: 1; transform: none; }

/* =========================================================
   Studio statement
   ========================================================= */

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.split p { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.split__head { position: sticky; top: calc(var(--nav-h) + 50px); }

.statement {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  font-style: normal;
}

/* =========================================================
   Services
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.card-s {
  padding: clamp(28px, 3.6vw, 46px);
  border-radius: var(--r-lg);
  background: var(--veil);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
  transition: background 0.55s var(--glide), transform 0.55s var(--glide);
}
.card-s:hover { background: var(--veil-lift); transform: translateY(-5px); }
.card-s h3 { margin-bottom: 0.55em; }
.card-s p { color: var(--muted); font-size: 0.96rem; }
.card-s__arc { width: 46px; height: 46px; margin-bottom: 26px; color: var(--gold); opacity: 0.9; }

/* =========================================================
   Projects index
   ========================================================= */

.reel { display: grid; gap: clamp(70px, 10vw, 140px); }
.cover-block { display: block; }

.cover-rule {
  height: 1px; width: 100%;
  background: linear-gradient(90deg,
    rgba(227, 210, 174, 0) 0%,
    rgba(227, 210, 174, 0.05) 8%,
    rgba(227, 210, 174, 0.14) 20%,
    rgba(227, 210, 174, 0.22) 38%,
    rgba(227, 210, 174, 0.22) 62%,
    rgba(227, 210, 174, 0.14) 80%,
    rgba(227, 210, 174, 0.05) 92%,
    rgba(227, 210, 174, 0) 100%);
}

.cover-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  /* a long, even dissolve rather than a hard band at each edge */
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) 6%, rgba(0,0,0,0.32) 12%,
    rgba(0,0,0,0.62) 19%, rgba(0,0,0,0.86) 26%, #000 34%,
    #000 66%, rgba(0,0,0,0.86) 74%, rgba(0,0,0,0.62) 81%,
    rgba(0,0,0,0.32) 88%, rgba(0,0,0,0.10) 94%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) 6%, rgba(0,0,0,0.32) 12%,
    rgba(0,0,0,0.62) 19%, rgba(0,0,0,0.86) 26%, #000 34%,
    #000 66%, rgba(0,0,0,0.86) 74%, rgba(0,0,0,0.62) 81%,
    rgba(0,0,0,0.32) 88%, rgba(0,0,0,0.10) 94%, rgba(0,0,0,0) 100%);
}
.cover-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.8s var(--glide);
}
.cover-block:hover .cover-shot img { transform: scale(1.06); }

.cover-cap {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  padding: clamp(18px, 2.2vw, 30px) 0 0;
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.cover-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  transition: color 0.45s var(--glide);
}
.cover-block:hover .cover-title { color: var(--beige); }
.cover-meta { font-family: var(--util); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.empty {
  padding: clamp(50px, 8vw, 96px);
  text-align: center; color: var(--faint);
  border: 1px dashed var(--line-soft);
  border-radius: var(--r-lg);
}

/* =========================================================
   Project cover
   ========================================================= */

.pcover { position: relative; height: 100svh; overflow: hidden; }

.pcover__img {
  position: absolute; inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
  /* the picture itself thins out downward until nothing is left, so it
     melts into the moving backdrop with no edge at all */
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 26%,
    rgba(0,0,0,0.96) 38%, rgba(0,0,0,0.88) 48%, rgba(0,0,0,0.74) 57%,
    rgba(0,0,0,0.56) 66%, rgba(0,0,0,0.38) 75%, rgba(0,0,0,0.22) 83%,
    rgba(0,0,0,0.10) 91%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 26%,
    rgba(0,0,0,0.96) 38%, rgba(0,0,0,0.88) 48%, rgba(0,0,0,0.74) 57%,
    rgba(0,0,0,0.56) 66%, rgba(0,0,0,0.38) 75%, rgba(0,0,0,0.22) 83%,
    rgba(0,0,0,0.10) 91%, rgba(0,0,0,0) 100%);
}

/* only a soft off-white veil at the very top, to keep the bar readable */
.pcover__melt {
  position: absolute; inset: 0 0 auto 0; height: 26%;
  background: linear-gradient(to bottom,
    rgba(255, 252, 246, 0.16) 0%,
    rgba(255, 252, 246, 0.08) 42%,
    rgba(255, 252, 246, 0) 100%);
}

.pcover__title { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(40px, 7vw, 90px); }
.pcover__title .h1,
.pcover__title .back,
.pcover__title .facts-line dt,
.pcover__title .facts-line dd {
  text-shadow: 0 1px 18px rgba(42, 18, 16, 0.85), 0 1px 3px rgba(42, 18, 16, 0.6);
}
.nav .brand__text, .nav .brand__mark, .menu a {
  filter: drop-shadow(0 1px 10px rgba(42, 18, 16, 0.55));
}
.nav.stuck .brand__text, .nav.stuck .brand__mark, .nav.stuck .menu a { filter: none; }

.title-rule {
  height: 1px; margin: clamp(20px, 2.6vw, 32px) 0 clamp(22px, 2.6vw, 34px);
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 58%, transparent 100%);
}

.facts-line { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 68px); color: var(--muted); }
.facts-line div { display: grid; gap: 4px; }
.facts-line dt { font-family: var(--util); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.facts-line dd { margin: 0; font-family: var(--util); font-size: 1.02rem; color: var(--cream); }

/* =========================================================
   Mood board
   ========================================================= */

.mood__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(40px, 6vw, 76px); }
.mood__head .tag { margin-bottom: 1.4em; }
.mood__intro { font-family: var(--util); color: var(--muted); margin-top: 1.2em; }

/* all columns share one top and one bottom edge, and their rows
   divide that height evenly */
.mood { display: grid; gap: clamp(26px, 3.4vw, 56px); align-items: center; }
.mood--3 { grid-template-columns: repeat(3, 1fr); }
.mood--2 { grid-template-columns: repeat(2, 1fr); }
.mood--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }

.mood__shot {
  margin: 0;
  aspect-ratio: 1 / 1;   /* stays square whatever the columns do */
  align-self: center;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--brown);
}
.mood__shot img { width: 100%; height: 100%; object-fit: cover; }

.swatches {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.swatch {
  display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px);
  flex: 1 1 0;
  padding-block: clamp(10px, 1.1vw, 15px);
  border-bottom: 1px solid var(--line-soft);
}
.swatch:first-child { border-top: 1px solid var(--line-soft); }

.swatch__dot {
  flex: 0 0 auto;
  width: clamp(40px, 3.4vw, 54px); height: clamp(40px, 3.4vw, 54px);
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
}
.swatch__body { min-width: 0; }
.swatch__no {
  display: block;
  font-family: var(--util); font-size: 0.62rem; letter-spacing: 0.24em;
  color: var(--gold); margin-bottom: 5px;
}
.swatch__line { display: block; }
.swatch__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  margin-inline-end: 0.7em;
  white-space: nowrap;
}
.swatch__note { font-family: var(--util); color: var(--muted); font-size: 0.9rem; }

.swatches--bare .swatch { border: 0; padding-block: clamp(8px, 1vw, 12px); }
.swatches--bare .swatch__body { display: none; }

.notes .note__bullet {
  flex: 0 0 auto; width: 5px; height: 5px;
  border-radius: var(--r-pill); background: var(--gold);
  margin-inline-start: 6px;
}

/* =========================================================
   Plans
   ========================================================= */

.plans { position: relative; }

.plans__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.414 / 1;      /* A3 landscape */
  /* a long press must not raise the browser's own copy prompt */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(42, 18, 16, 0.5);
  border: 1px solid var(--edge);
  perspective: 2200px;
  perspective-origin: 50% 50%;
}

.plans__leaf {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  will-change: transform;
}
.plans__leaf.is-on { opacity: 1; z-index: 2; }
.plans__leaf img { width: 100%; height: 100%; object-fit: contain; }

/* the shading that travels across the sheet as it lifts */
.plans__leaf::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
    rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.16) 22%,
    rgba(255,255,255,0.16) 46%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.42) 100%);
}

.plans__leaf.turn-fwd {
  z-index: 3;
  transform-origin: left center;
  animation: leafFwd 0.9s cubic-bezier(0.42, 0.02, 0.24, 1) forwards;
}
.plans__leaf.turn-fwd::after { animation: leafShade 0.9s cubic-bezier(0.42, 0.02, 0.24, 1) forwards; }

.plans__leaf.turn-back {
  z-index: 3;
  transform-origin: left center;
  animation: leafBack 0.9s cubic-bezier(0.42, 0.02, 0.24, 1) forwards;
}
.plans__leaf.turn-back::after { animation: leafShadeBack 0.9s cubic-bezier(0.42, 0.02, 0.24, 1) forwards; }

@keyframes leafFwd {
  0%   { transform: rotateY(0deg) skewY(0deg); }
  40%  { transform: rotateY(-58deg) skewY(1.6deg); }
  100% { transform: rotateY(-172deg) skewY(0deg); opacity: 0; }
}
@keyframes leafBack {
  0%   { transform: rotateY(-172deg) skewY(0deg); opacity: 0; }
  60%  { transform: rotateY(-48deg) skewY(1.4deg); opacity: 1; }
  100% { transform: rotateY(0deg) skewY(0deg); opacity: 1; }
}
@keyframes leafShade {
  0%   { opacity: 0; }
  45%  { opacity: 1; }
  100% { opacity: 0.2; }
}
@keyframes leafShadeBack {
  0%   { opacity: 0.2; }
  45%  { opacity: 1; }
  100% { opacity: 0; }
}

/* magnifier, live only inside a sheet */
.plans__lens {
  position: absolute; top: 0; left: 0;
  width: clamp(160px, 17vw, 250px); height: clamp(160px, 17vw, 250px);
  border-radius: var(--r-pill);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  background-repeat: no-repeat;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.6) 82%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.6) 82%, rgba(0,0,0,0) 100%);
  transition: opacity 0.35s var(--glide), transform 0.45s var(--glide);
}
.plans__lens.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.plans__ring {
  position: absolute; top: 0; left: 0;
  width: clamp(160px, 17vw, 250px); height: clamp(160px, 17vw, 250px);
  border-radius: var(--r-pill);
  border: 1px solid rgba(227, 210, 174, 0.35);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  transition: opacity 0.35s var(--glide), transform 0.45s var(--glide);
}
.plans__ring.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.plans__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(42, 18, 16, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--beige);
  cursor: pointer;
  transition: background 0.45s var(--glide), color 0.45s var(--glide), opacity 0.3s;
}
.plans__btn--prev { left: clamp(-26px, -1.6vw, -10px); }
.plans__btn--next { right: clamp(-26px, -1.6vw, -10px); }
.plans__btn:hover:not(:disabled) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.plans__btn:disabled { opacity: 0.25; cursor: default; }
.plans__btn svg { width: 17px; }

.plans__count {
  position: absolute; z-index: 5;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 7px 20px;
  border-radius: var(--r-pill);
  background: rgba(42, 18, 16, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--edge);
  font-family: var(--util); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--beige);
}

/* =========================================================
   Spaces
   ========================================================= */

.space + .space { margin-top: clamp(50px, 7vw, 96px); }
.space__name {
  font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

/* three columns, always */
.grid-space { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.gcol { display: grid; gap: clamp(14px, 1.8vw, 24px); align-content: start; }
.gcol--portrait { order: 3; }

.shot {
  position: relative; margin: 0;
  border-radius: var(--r-md); overflow: hidden; background: var(--brown);
  cursor: pointer;
}
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--glide); }
.shot--p img { aspect-ratio: 9 / 16; object-fit: cover; }
.shot:hover img { transform: scale(1.03); }

/* the bubble that reveals the other version under the pointer */
.shot__peek {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--peek-r, 0px) at var(--peek-x, 50%) var(--peek-y, 50%),
    #000 58%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle var(--peek-r, 0px) at var(--peek-x, 50%) var(--peek-y, 50%),
    #000 58%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 100%);
  transition: opacity 0.45s var(--glide);
}
.shot--dual:hover .shot__peek { opacity: 1; }

.shot__badge {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(42, 18, 16, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--edge);
  color: var(--beige);
  pointer-events: none;
}
.shot__badge svg { width: 15px; }

/* =========================================================
   360 tour
   ========================================================= */

.tour {
  width: min(1500px, 100vw - (var(--gutter) * 0.7));
  margin-inline: calc(50% - min(1500px, 100vw - (var(--gutter) * 0.7)) / 2);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--brown);
}
.tour__frame { width: 100%; height: min(82svh, 860px); border: 0; }

.sec-head { margin-bottom: clamp(28px, 4vw, 54px); }

/* =========================================================
   Lightbox — the panel is exactly the size of the picture,
   so everything around it is empty space that closes the view
   ========================================================= */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
}
.lightbox[hidden], .lightbox__switch[hidden] { display: none; }

.lightbox__veil {
  position: absolute; inset: 0;
  background: rgba(18, 7, 6, 0.90);
  -webkit-backdrop-filter: blur(42px) saturate(0.7);
  backdrop-filter: blur(42px) saturate(0.7);
  opacity: 0;
  transition: opacity 0.42s var(--glide);
}
.lightbox.is-open .lightbox__veil { opacity: 1; }

/* the picture only arrives once the page behind is fully covered */
.lightbox__panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 18px);
  width: max-content; max-width: min(84vw, 1400px);
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.42s var(--glide), transform 0.42s var(--glide);
  pointer-events: none;
}
.lightbox.is-shown .lightbox__panel { opacity: 1; transform: none; pointer-events: auto; }

.lightbox__stage { margin: 0; line-height: 0; }
.lightbox__img {
  max-width: min(84vw, 1400px);
  max-height: min(74svh, 860px);
  width: auto; height: auto;
  border-radius: var(--r-sm);
}

/* caption and switch live under the picture, never over it */
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.lightbox__cap {
  font-family: var(--util); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}

.lightbox__x {
  position: absolute; top: clamp(14px, 3vw, 34px); right: clamp(14px, 3vw, 34px);
  z-index: 4;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 0; color: var(--beige); cursor: pointer;
  transition: color 0.4s var(--glide), transform 0.4s var(--glide);
}
.lightbox__x:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox__x svg { width: 22px; }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: none; color: var(--beige); cursor: pointer;
  transition: border-color 0.4s var(--glide), color 0.4s var(--glide);
}
.lightbox__nav:hover { border-color: var(--line); color: var(--gold); }
.lightbox__nav svg { width: 20px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 30px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 30px); }

.lightbox__switch {
  display: flex; gap: 4px; padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(42, 18, 16, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--edge);
  margin-inline-start: auto;
}
.lightbox__mode {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  border: 0; border-radius: var(--r-pill);
  background: none; color: var(--muted);
  font-family: var(--util); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.45s var(--glide), color 0.45s var(--glide);
}
.lightbox__mode svg { width: 15px; }
.lightbox__mode.is-on { background: var(--gold); color: var(--ink); }

/* =========================================================
   Cursor
   ========================================================= */

.cursor { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: none; opacity: 0; transition: opacity 0.3s var(--glide); }
.cursor.is-live { opacity: 1; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }

.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: var(--r-pill);
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 5px; height: 5px;
  background: var(--beige);
  transition: opacity 0.3s var(--glide);
}
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(227, 210, 174, 0.45);
  transition: width 0.4s var(--glide), height 0.4s var(--glide),
              border-color 0.4s var(--glide), background 0.4s var(--glide);
}
.cursor.is-active .cursor__ring {
  width: 58px; height: 58px;
  border-color: rgba(176, 141, 79, 0.75);
  background: rgba(176, 141, 79, 0.10);
}
.cursor.is-active .cursor__dot { opacity: 0; }

/* =========================================================
   Calls to action & contact
   ========================================================= */

.call {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(52px, 7.5vw, 108px) clamp(28px, 5vw, 80px);
  text-align: center;
  background: var(--veil);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
}
.call p { color: var(--muted); max-width: 46ch; margin-inline: auto; margin-top: 1em; }

/* project pages carry the darkest tone, same treatment otherwise */
.call--deep { background: rgba(42, 18, 16, 0.82); }

.btn {
  display: inline-block; margin-top: 2.4em;
  font-family: var(--util);
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(176, 141, 79, 0.5);
  color: var(--gold);
  transition: background 0.5s var(--glide), color 0.5s var(--glide), border-color 0.5s var(--glide);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.more {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(30px, 4vw, 54px);
  font-family: var(--util);
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.more svg { width: 26px; transition: transform 0.5s var(--glide); }
.more:hover svg { transform: translateX(7px); }

.back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--util);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.back svg { width: 18px; }

.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.reach__card {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--veil);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
}
.reach__card a {
  display: block;
  font-family: var(--util); font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  padding-block: 6px;
  transition: color 0.4s var(--glide);
}
.reach__card a:hover { color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */

.foot { position: relative; margin-top: clamp(60px, 9vw, 130px); padding-top: 60px; }
.foot__arc {
  position: absolute; inset: 0 0 auto 0;
  width: 100%; height: 130px;
}

.foot__inner {
  width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(44px, 6vw, 76px);
}
.foot__mark { width: 52px; opacity: 0.85; }
.foot__slogan {
  margin-top: 1.2em; color: var(--faint);
  font-family: var(--display); font-size: 1.15rem;
}
.foot__col a {
  display: block; color: var(--muted);
  font-family: var(--util); font-size: 1rem;
  padding-block: 5px;
  transition: color 0.4s var(--glide);
}
.foot__col a:hover { color: var(--gold); }

.foot__base {
  position: relative;
  width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 24px 40px;
  font-family: var(--util);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.foot__base::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .mood--3 { grid-template-columns: 1fr 1fr; }
  .mood--3 .mood__shot { grid-column: 1 / -1; max-width: 620px; margin-inline: auto; }
  .grid-space { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .foot__inner { grid-template-columns: 1fr; }
  .mood--3, .mood--2 { grid-template-columns: 1fr; }
  .mood--3 .mood__shot { max-width: none; }
  .grid-space { grid-template-columns: 1fr; }
  .gcol--portrait { order: 0; }
  .plans__btn--prev { left: 8px; }
  .plans__btn--next { right: 8px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; --blur: 18px; }
  .burger { display: block; position: relative; z-index: 60; }
  .menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(42, 18, 16, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--glide), visibility 0.5s;
  }
  .menu.open { opacity: 1; visibility: visible; }
  .menu a { font-size: 1rem; letter-spacing: 0.22em; }
  .brand__mark { width: 30px; }
  .brand__text { width: 88px; }
  .foot__base { flex-direction: column; }
  .cover-shot { aspect-ratio: 4 / 3; }
  .tour { width: 100%; margin-inline: 0; }
  .tour__frame { height: 62svh; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__switch { right: 50%; transform: translateX(50%); }
  .lightbox__cap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fade, .enter { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
  .has-cursor, .has-cursor * { cursor: auto !important; }
}
