/* ==========================================================================
   gunsul.quest — McBling Construction
   ========================================================================== */

:root {
  --c-deep-forest: #1a3c2a;
  --c-emerald: #2d5a3f;
  --c-chrome-gold: #c9a84c;
  --c-pale-gold: #e8d5a3;
  --c-blueprint-navy: #0a1628;
  --c-blueprint-mid: #152238;
  --c-rhinestone: #f2f0ed;
  --c-floodlight: #d4a44c;
  --c-hardhat-orange: #e87a3a;
  --c-concrete: #b8b2a8;
  --c-midnight: #0d1117;

  --f-display: "Poiret One", "Josefin Sans", serif;
  --f-sub: "Josefin Sans", "Inter", sans-serif;
  --f-body: "IBM Plex Sans", "Inter", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --grad-chrome: linear-gradient(135deg, #c9a84c 0%, #e8d5a3 40%, #c9a84c 60%, #f2f0ed 80%, #c9a84c 100%);
  --grad-forest: linear-gradient(180deg, #1a3c2a 0%, #0d1117 100%);
  --grad-blueprint: linear-gradient(180deg, #0a1628 0%, #152238 50%, #0a1628 100%);

  --ease-crane: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--c-rhinestone);
  background: var(--c-midnight);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  z-index: 1;
}

em {
  font-style: italic;
  color: var(--c-pale-gold);
}

/* ==========================================================================
   Rhinestone parallax overlay
   ========================================================================== */

.rhinestone-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(201,168,76,0.04), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(232,213,163,0.03), transparent 55%);
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
}

.rhinestone-overlay.visible {
  opacity: 1;
}

.rhinestone-overlay::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201, 168, 76, 0.0) 0 14px,
      rgba(201, 168, 76, 0.35) 14px 18px,
      rgba(201, 168, 76, 0.0) 18px 32px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201, 168, 76, 0.0) 0 14px,
      rgba(201, 168, 76, 0.35) 14px 18px,
      rgba(201, 168, 76, 0.0) 18px 32px
    );
  background-size: 32px 32px, 32px 32px;
  opacity: 0.04;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* ==========================================================================
   Crane-hook navigation
   ========================================================================== */

.crane-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.crane-hook {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px;
  cursor: pointer;
  transition: transform 300ms var(--ease-crane), border-color 200ms ease, box-shadow 200ms ease;
  display: grid;
  place-items: center;
  color: var(--c-chrome-gold);
}

.crane-hook:hover {
  transform: translateY(2px);
  border-color: var(--c-chrome-gold);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.crane-hook.active {
  border-color: var(--c-floodlight);
  box-shadow: 0 4px 28px rgba(212, 164, 76, 0.4);
}

.crane-hook svg {
  display: block;
}

.elevation-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 280ms ease, transform 280ms var(--ease-crane);
  width: 240px;
  padding: 18px 18px 20px;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-image: var(--grad-chrome) 1;
  color: var(--c-rhinestone);
  font-family: var(--f-sub);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.elevation-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.elevation-title {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-pale-gold);
  margin-bottom: 12px;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.elevation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column-reverse; /* stack like a building */
  gap: 6px;
}

.elevation-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  cursor: pointer;
  color: var(--c-concrete);
  transition: color 200ms ease;
}

.elevation-list li:first-child {
  border-top: none;
}

.elevation-list li:hover {
  color: var(--c-pale-gold);
}

.elevation-list li.current {
  color: var(--c-floodlight);
}

.elevation-list li .outline {
  flex: 1;
  height: 10px;
  border: 1px solid currentColor;
  opacity: 0.6;
}

.elevation-list li.current .outline {
  background: rgba(212, 164, 76, 0.25);
  opacity: 1;
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.5);
}

.elevation-list li .idx {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  width: 24px;
}

/* ==========================================================================
   General block system
   ========================================================================== */

.block {
  position: relative;
  overflow: hidden;
  transition:
    transform 700ms var(--ease-crane),
    opacity 700ms var(--ease-crane),
    box-shadow 200ms ease;
}

.block[data-animate="crane"] {
  opacity: 0;
  transform: translateY(30px) scale(0.85);
}

.block.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Crane hook descending animation on reveal */
.block[data-animate="crane"]::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 16px;
  height: 40px;
  transform: translateX(-50%);
  background-image:
    linear-gradient(to bottom, rgba(201, 168, 76, 0.9) 0 20px, transparent 20px 100%),
    linear-gradient(to bottom, transparent 0 20px, rgba(201,168,76,0) 20px 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.block.descending::before {
  opacity: 1;
  animation: crane-descend 600ms var(--ease-crane) forwards;
}

@keyframes crane-descend {
  0%   { transform: translate(-50%, -32px); opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* ==========================================================================
   Foundation Block
   ========================================================================== */

.block-foundation {
  background: var(--grad-forest);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: var(--grad-chrome) 1;
  scroll-snap-align: start;
}

.block-thin {
  min-height: 22vh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 6vw, 5rem);
}

.block-foundation::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(201,168,76,0.22) 14px 18px,
      transparent 18px 32px),
    repeating-linear-gradient(-45deg,
      transparent 0 14px,
      rgba(201,168,76,0.22) 14px 18px,
      transparent 18px 32px);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
}

.foundation-heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  color: var(--c-pale-gold);
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.foundation-sub {
  font-family: var(--f-sub);
  font-weight: 600;
  color: var(--c-floodlight);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin-top: 0.75rem;
}

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

.block-hero {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 60%, #152238 0%, #0d1117 70%);
  padding: 0 1.5rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
}

.hero-domain {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  color: var(--c-chrome-gold);
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-domain .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 600ms var(--ease-crane), transform 600ms var(--ease-crane);
  min-width: 0.5ch;
}

.hero-domain .ltr.shown {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-family: var(--f-sub);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: var(--c-pale-gold);
  margin: 1.25rem 0 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms var(--ease-crane), transform 700ms var(--ease-crane);
}

.hero-sub.shown {
  opacity: 1;
  transform: translateY(0);
}

.ground-line {
  display: block;
  width: 0;
  height: 2px;
  margin: 2.25rem auto 1.25rem;
  background: var(--grad-chrome);
  transition: width 800ms var(--ease-crane);
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.35);
}

.ground-line.extended {
  width: min(700px, 80vw);
}

.hero-caption {
  font-family: var(--f-sub);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--c-concrete);
  opacity: 0;
  transition: opacity 600ms ease 600ms;
}

.hero-caption.shown {
  opacity: 1;
}

/* ==========================================================================
   Column Block
   ========================================================================== */

.block-column {
  background: linear-gradient(160deg, #1a3c2a 0%, #2d5a3f 50%, #152238 100%);
  border: 2px solid transparent;
  border-image: var(--grad-chrome) 1;
  padding: 1.5rem 0.75rem;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.block-column-gold {
  background: linear-gradient(180deg, #2d5a3f 0%, #1a3c2a 50%, #0d1117 100%);
}

.column-inner {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--c-pale-gold);
}

.column-label {
  font-family: var(--f-sub);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.3em;
  color: var(--c-floodlight);
  text-transform: uppercase;
}

.column-text {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--c-rhinestone);
  margin: 0;
}

.column-spec {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-concrete);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==========================================================================
   Display Block
   ========================================================================== */

.block-display {
  background:
    linear-gradient(160deg, rgba(26,60,42,0.85) 0%, rgba(13,17,23,0.9) 100%),
    linear-gradient(135deg, rgba(201,168,76,0.05), rgba(232,213,163,0.02));
  border-radius: 16px;
  border: 2px solid transparent;
  border-image: var(--grad-chrome) 1;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 700ms var(--ease-crane),
    opacity 700ms var(--ease-crane),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.block-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(201,168,76,0.25) 14px 18px,
      transparent 18px 32px),
    repeating-linear-gradient(-45deg,
      transparent 0 14px,
      rgba(201,168,76,0.25) 14px 18px,
      transparent 18px 32px);
  background-size: 32px 32px;
  opacity: 0.035;
  pointer-events: none;
  border-radius: inherit;
}

.block-display.in-view:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.block-display-large {
  min-height: 60vh;
}

.block-angle-neg {
  transform-origin: center;
}

.block-angle-neg.in-view {
  transform: rotate(-0.6deg);
}

.block-angle-neg.in-view:hover {
  transform: rotate(-0.6deg) translateY(-2px);
}

.display-inner {
  position: relative;
  z-index: 2;
}

.block-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-floodlight);
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  margin-bottom: 1.1rem;
}

.display-heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-pale-gold);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.display-heading-xl {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.display-body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-rhinestone);
  margin: 0 0 0.9rem;
  max-width: 60ch;
}

.material-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.material-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-rhinestone);
  font-family: var(--f-body);
  font-size: 0.98rem;
}

.diamond-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--grad-chrome);
  transform: rotate(45deg);
  flex: 0 0 auto;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.45);
}

/* ==========================================================================
   Accent Block
   ========================================================================== */

.block-accent {
  background: linear-gradient(135deg, #0d1117 0%, #152238 100%);
  border: 2px solid transparent;
  border-image: var(--grad-chrome) 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: chrome-pulse 3.2s ease-in-out infinite;
}

@keyframes chrome-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.25), inset 0 0 0 0 rgba(232,213,163,0); }
  50%      { box-shadow: 0 0 28px 2px rgba(201, 168, 76, 0.35), inset 0 0 18px 0 rgba(232,213,163,0.08); }
}

.block-accent svg {
  width: 70%;
  height: 70%;
}

/* ==========================================================================
   Blueprint Block
   ========================================================================== */

.block-blueprint {
  background: var(--grad-blueprint);
  min-height: 60vh;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  color: var(--c-rhinestone);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: var(--grad-chrome) 1;
}

.blueprint-slim {
  min-height: 32vh;
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
}

.block-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(242,240,237,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,240,237,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.blueprint-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.blueprint-head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-pale-gold);
  flex-wrap: wrap;
}

.blueprint-code {
  color: var(--c-floodlight);
}

.blueprint-label {
  color: var(--c-rhinestone);
  flex: 1;
  text-align: center;
}

.blueprint-divider {
  height: 1px;
  background: var(--grad-chrome);
  margin: 1.2rem 0 2rem;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.25);
}

.blueprint-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.blueprint-specs {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--c-rhinestone);
  font-variant-numeric: tabular-nums;
  margin: 0;
  white-space: pre;
  letter-spacing: 0.02em;
}

.floor-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(232, 213, 163, 0.35);
}

.plan-room {
  border: 1px dashed rgba(201, 168, 76, 0.5);
  background: rgba(242, 240, 237, 0.03);
  box-shadow: inset 0 0 12px rgba(201, 168, 76, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--c-pale-gold);
  text-transform: uppercase;
}

.room-a { grid-column: 1 / 3; grid-row: 1; }
.room-b { grid-column: 3 / 5; grid-row: 1; }
.room-c { grid-column: 1 / 3; grid-row: 2 / 4; }
.room-d { grid-column: 3 / 5; grid-row: 2; }
.room-e { grid-column: 3 / 5; grid-row: 3; background: rgba(201,168,76,0.08); }

/* ==========================================================================
   Floors + Grids
   ========================================================================== */

.floor {
  position: relative;
  padding: 0;
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
}

/* Floor 1 layout */
.floor-1 .block-column-left  { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.floor-1 .block-display-1    { grid-column: 5 / span 8; grid-row: 1; min-height: 44vh; }
.floor-1 .block-display-2    { grid-column: 6 / span 7; grid-row: 2; min-height: 44vh; margin-left: -1rem; }
.floor-1 .block-accent-1     { grid-column: 4 / span 3; grid-row: 1; align-self: end; margin-left: -2rem; margin-bottom: -2rem; z-index: 3; max-width: 220px; justify-self: start; }

/* Floor 2 layout */
.floor-grid-alt {
  grid-template-areas:
    "a a a a a a b b c c c c"
    "d d d d d d d d c c c c"
    "e e e e e e e e c c c c";
  grid-auto-rows: minmax(24vh, auto);
}

.floor-2 .block-display-3    { grid-area: a; min-height: 44vh; }
.floor-2 .block-accent-2     { grid-area: b; align-self: center; max-width: 180px; justify-self: center; }
.floor-2 .block-column-right { grid-area: c; }
.floor-2 .block-display-4    { grid-area: d; min-height: 40vh; margin-top: -1rem; }
.floor-2 .photo-frame-1      { grid-area: e; }

/* Floor 3 layout */
.floor-grid-rich {
  grid-template-areas:
    "a a a a a a a a c c c c"
    "a a a a a a a a c c c c"
    "b b b d d d d d e e e e"
    "b b b d d d d d f f g g";
  grid-auto-rows: minmax(22vh, auto);
}

.floor-3 .block-display-5    { grid-area: a; min-height: 60vh; }
.floor-3 .block-column-left  { grid-area: b; height: auto; min-height: 52vh; }
.floor-3 .block-accent-3     { grid-area: c; max-width: 220px; justify-self: end; align-self: start; margin-top: -1.5rem; margin-right: -1rem; z-index: 3; }
.floor-3 .block-display-6    { grid-area: d; min-height: 40vh; }
.floor-3 .photo-frame-2      { grid-area: e; grid-row: span 2; min-height: 48vh; }
.floor-3 .block-accent-4     { grid-area: g; max-width: 160px; justify-self: start; align-self: center; }

.floor-3 .block-display-5::after,
.floor-3 .block-display-6::after {
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(232,213,163,0.35) 14px 18px,
      transparent 18px 32px);
  opacity: 0.05;
}

/* ==========================================================================
   Photo frames (vintage construction overlays)
   ========================================================================== */

.photo-frame {
  position: relative;
  background: var(--grad-forest);
  border: 1px solid var(--c-pale-gold);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 1rem;
  min-height: 220px;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.photo-shape {
  position: absolute;
  background: var(--c-emerald);
  opacity: 0.55;
  box-shadow: inset 0 0 12px rgba(201, 168, 76, 0.15);
}

.photo-shape-tower {
  left: 38%;
  bottom: 14%;
  width: 16%;
  height: 70%;
  background: linear-gradient(180deg, #3a6d4d 0%, #1a3c2a 100%);
  clip-path: polygon(0 100%, 0 12%, 50% 0, 100% 12%, 100% 100%);
}

.photo-shape-block {
  left: 60%;
  bottom: 14%;
  width: 28%;
  height: 45%;
  background: linear-gradient(180deg, #2d5a3f 0%, #142a1e 100%);
}

.photo-shape-room {
  left: 8%;
  bottom: 14%;
  width: 40%;
  height: 55%;
  background: linear-gradient(180deg, #3a6d4d 0%, #1a3c2a 100%);
}

.photo-shape-window {
  left: 55%;
  bottom: 30%;
  width: 30%;
  height: 35%;
  background: linear-gradient(180deg, rgba(212,164,76,0.35), rgba(232,213,163,0.12));
  box-shadow: inset 0 0 18px rgba(232,213,163,0.2);
}

.photo-shape-light {
  left: 70%;
  bottom: 65%;
  width: 10%;
  height: 10%;
  background: radial-gradient(circle, rgba(232,213,163,0.6), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(232,213,163,0.4);
  opacity: 0.8;
}

.photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--c-pale-gold);
  text-transform: uppercase;
  z-index: 2;
}

/* ==========================================================================
   Korean construction stamps
   ========================================================================== */

.stamp {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-family: var(--f-sub);
  font-weight: 600;
  letter-spacing: 0.25em;
  padding: 0.45rem 0.9rem;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 0.95rem;
  transform-origin: center;
  filter: url(#rough-edge);
  z-index: 4;
  background: rgba(13,17,23,0.4);
}

.stamp-orange {
  color: var(--c-hardhat-orange);
}

.stamp-big {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  padding: 0.6rem 1.4rem;
  border-width: 3px;
  position: relative;
  right: auto;
  bottom: auto;
  margin: 2rem auto 0;
  display: inline-block;
}

@keyframes stamp-settle {
  0%   { transform: scale(1.1) rotate(var(--rot, 0deg)); opacity: 0; }
  60%  { transform: scale(0.98) rotate(calc(var(--rot, 0deg) + 1deg)); opacity: 1; }
  100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 1; }
}

.stamp.settled {
  animation: stamp-settle 0.4s ease-out;
}

/* ==========================================================================
   Final floor
   ========================================================================== */

.floor-final {
  padding: 0;
}

.block-final {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, #1a3c2a 0%, #0d1117 75%);
  padding: 4rem 1.5rem 6rem;
}

.final-heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: 0.12em;
  color: var(--c-chrome-gold);
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.final-sub {
  font-family: var(--f-sub);
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-concrete);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Elevation schematic — mini building diagram */
.elevation-schematic {
  margin: 3rem auto 0;
  width: min(260px, 80vw);
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-image: var(--grad-chrome) 1;
  background: rgba(10, 22, 40, 0.5);
}

.elevation-schematic .mini-floor {
  height: 18px;
  border: 1px solid var(--c-chrome-gold);
  background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(232,213,163,0.3), rgba(201,168,76,0.15));
  box-shadow: inset 0 0 4px rgba(232, 213, 163, 0.4);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 500ms var(--ease-crane), transform 500ms var(--ease-crane);
}

.elevation-schematic .mini-floor.placed {
  opacity: 1;
  transform: translateY(0);
}

.elevation-schematic .mini-floor.hero-row {
  height: 26px;
  background: linear-gradient(90deg, rgba(212,164,76,0.25), rgba(232,213,163,0.5), rgba(212,164,76,0.25));
}

.elevation-schematic .mini-floor.final-row {
  height: 30px;
  background: linear-gradient(90deg, rgba(201,168,76,0.5), rgba(232,213,163,0.7), rgba(201,168,76,0.5));
}

/* ==========================================================================
   Crane divider
   ========================================================================== */

.crane-divider {
  width: 100%;
  background: var(--c-midnight);
  padding: 0;
}

.crane-divider svg {
  display: block;
}

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

.site-foot {
  padding: 2rem 1.5rem 3rem;
  background: var(--c-midnight);
  color: var(--c-concrete);
  text-align: center;
  font-family: var(--f-sub);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.foot-brand {
  color: var(--c-pale-gold);
  font-family: var(--f-display);
  letter-spacing: 0.3em;
}

.foot-ko {
  font-weight: 600;
  color: var(--c-floodlight);
}

.foot-sep {
  color: rgba(201, 168, 76, 0.4);
}

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

@media (max-width: 980px) {
  .blueprint-body {
    grid-template-columns: 1fr;
  }
  .floor-grid {
    gap: 16px;
  }
  .floor-grid,
  .floor-grid-alt,
  .floor-grid-rich {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas: none;
  }
  .floor-1 .block-column-left,
  .floor-1 .block-display-1,
  .floor-1 .block-display-2,
  .floor-2 .block-display-3,
  .floor-2 .block-column-right,
  .floor-2 .block-display-4,
  .floor-2 .photo-frame-1,
  .floor-3 .block-display-5,
  .floor-3 .block-column-left,
  .floor-3 .block-display-6,
  .floor-3 .photo-frame-2 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 36vh;
    margin: 0;
  }
  .floor-3 .block-display-5 { min-height: 50vh; }
  .block-column {
    height: auto;
    min-height: 50vh;
  }
  .column-inner {
    writing-mode: horizontal-tb;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
  }
  .block-accent {
    grid-column: 1 / -1 !important;
    max-width: 200px;
    justify-self: center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  .crane-nav { top: 14px; right: 14px; }
  .crane-hook { width: 40px; height: 40px; padding: 6px; }
  .elevation-panel { width: 200px; font-size: 0.75rem; }
  .hero-sub { font-size: 1.35rem; letter-spacing: 0.22em; }
  .stamp { right: 0.8rem; bottom: 0.8rem; font-size: 0.8rem; padding: 0.3rem 0.7rem; }
  .foundation-heading { font-size: clamp(2.4rem, 10vw, 4rem); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .block[data-animate="crane"] {
    opacity: 1;
    transform: none;
  }
  .block.descending::before { display: none; }
  .rhinestone-overlay::before { animation: none; transform: none; }
  .ground-line { width: min(700px, 80vw); }
  .hero-domain .ltr { opacity: 1; transform: none; }
  .hero-sub, .hero-caption { opacity: 1; transform: none; }
}
