:root {
  /* Intersection Observer for stagger reveals* reveals:** Each `.wall-section` triggers its entry animation when 20% visible */
  --concrete: #c9b99a;
  --concrete-shadow: #b8a88e;
  --sepia: #3d2b1f;
  --cream: #f2e6d0;
  --rust: #a0522d;
  --cyan: #00c9b7;
  --amber: #d4a017;
  --charcoal: #1e1610;
  --white: #ede3d3;
  --body: #5c4a3a;
  --throw: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sepia);
  font-family: "Libre Baskerville", Georgia, serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 230, 208, 0.5), transparent 32rem),
    radial-gradient(circle at 76% 38%, rgba(160, 82, 45, 0.18), transparent 30rem),
    repeating-conic-gradient(from 11deg, #c9b99a 0deg, #b8a88e 0.5deg, #c9b99a 1deg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(30, 22, 16, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(30, 22, 16, 0.06) 1px, transparent 1px);
  background-size: 17px 17px, 23px 23px;
  filter: url(#none);
}

.fog-layer {
  position: fixed;
  inset: -15vh -25vw;
  pointer-events: none;
  z-index: 40;
  background:
    radial-gradient(ellipse at 22% 22%, rgba(242, 230, 208, var(--fog-alpha, 0.15)), transparent 42%),
    radial-gradient(ellipse at 76% 60%, rgba(237, 227, 211, calc(var(--fog-alpha, 0.15) + 0.06)), transparent 45%),
    linear-gradient(110deg, transparent 10%, rgba(242, 230, 208, 0.16), transparent 65%);
  mix-blend-mode: screen;
  animation: fog-drift 30s ease-in-out infinite alternate;
}

.hud-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  mix-blend-mode: screen;
}

.corner-bracket {
  position: absolute;
  width: 82px;
  height: 82px;
  opacity: 0.32;
}

.corner-bracket::before,
.corner-bracket::after { content: ""; position: absolute; background: var(--cyan); box-shadow: 0 0 12px rgba(0, 201, 183, 0.55); }
.corner-bracket::before { width: 82px; height: 1px; }
.corner-bracket::after { width: 1px; height: 82px; }
.tl { top: 22px; left: 22px; }
.tr { top: 22px; right: 22px; transform: rotate(90deg); }
.bl { bottom: 22px; left: 22px; transform: rotate(-90deg); }
.br { bottom: 22px; right: 22px; transform: rotate(180deg); }

.scan-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.42;
  box-shadow: 0 0 16px var(--cyan), 0 0 42px rgba(0, 201, 183, 0.35);
  animation: scan-line 12s linear infinite;
}

.reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32vw, 310px);
  height: min(32vw, 310px);
  margin: calc(min(32vw, 310px) / -2) 0 0 calc(min(32vw, 310px) / -2);
  border: 1px solid rgba(0, 201, 183, 0.42);
  border-radius: 50%;
  opacity: 0.42;
  animation: reticle-spin 20s linear infinite;
}

.reticle::before,
.reticle::after,
.reticle span::before,
.reticle span::after { content: ""; position: absolute; background: var(--cyan); opacity: 0.8; }
.reticle::before { left: 50%; top: -18px; width: 1px; height: calc(100% + 36px); }
.reticle::after { top: 50%; left: -18px; height: 1px; width: calc(100% + 36px); }
.reticle span::before { left: 18%; top: 18%; width: 22px; height: 1px; transform: rotate(35deg); }
.reticle span::after { right: 18%; bottom: 18%; width: 22px; height: 1px; transform: rotate(35deg); }

.coord-readout,
.timestamp {
  position: fixed;
  font-family: "Permanent Marker", cursive;
  letter-spacing: 0.08em;
  font-size: clamp(0.78rem, 1.45vw, 1.1rem);
  text-transform: uppercase;
  text-shadow: 0 0 10px currentColor;
}
.lat { top: 26px; left: 130px; color: var(--cyan); opacity: 0.46; }
.long { top: 54px; left: 130px; color: var(--cyan); opacity: 0.4; }
.timestamp { right: 28px; bottom: 28px; color: var(--amber); opacity: 0.62; animation: flicker 2.7s steps(2, end) infinite; }

.hero-wall {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.concrete-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(61, 43, 31, 0.12), transparent 22%, rgba(242, 230, 208, 0.2) 48%, transparent 72%),
    repeating-conic-gradient(#c9b99a 0deg, #b8a88e 0.5deg, #c9b99a 1deg);
}

.concrete-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background:
    radial-gradient(circle at 12% 20%, #3d2b1f 0 1px, transparent 2px),
    radial-gradient(circle at 70% 44%, #1e1610 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(237, 227, 211, 0.18), transparent);
  background-size: 13px 11px, 19px 17px, 100% 100%;
}

.photo-scatter,
.tag-layer,
.drip-decorations { position: absolute; inset: 0; }
.photo-scatter { z-index: 2; }
.tag-layer { z-index: 4; }
.drip-decorations { z-index: 5; pointer-events: none; }

.vintage-photo,
.mini-photo,
.final-photo {
  position: absolute;
  background:
    linear-gradient(145deg, rgba(242, 230, 208, 0.92), rgba(184, 168, 142, 0.75) 34%, rgba(160, 82, 45, 0.32) 60%, rgba(61, 43, 31, 0.2)),
    radial-gradient(circle at 30% 18%, rgba(237, 227, 211, 0.86), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(30, 22, 16, 0.38), transparent 40%);
  filter: sepia(0.7) contrast(0.85) brightness(0.95);
  clip-path: polygon(2% 5%, 97% 1%, 95% 94%, 8% 100%, 0 55%);
  box-shadow: 3px 4px 12px rgba(30, 22, 16, 0.4);
}

.vintage-photo::before,
.mini-photo::before,
.final-photo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(237, 227, 211, 0.38);
  background-image: repeating-linear-gradient(110deg, rgba(30, 22, 16, 0.06) 0 1px, transparent 1px 5px);
}

.vintage-photo span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: "Permanent Marker", cursive;
  color: rgba(61, 43, 31, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-one { width: 26vw; height: 34vh; left: 7vw; top: 12vh; transform: rotate(-4deg); }
.photo-two { width: 19vw; height: 24vh; right: 9vw; top: 11vh; transform: rotate(5deg); }
.photo-three { width: 24vw; height: 27vh; right: 18vw; bottom: 13vh; transform: rotate(-2deg); }
.photo-four { width: 18vw; height: 22vh; left: 20vw; bottom: 10vh; transform: rotate(3deg); opacity: 0.74; }

.hero-tag {
  position: absolute;
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-shadow: 0 0 8px rgba(61,43,31,0.3), 2px 2px 0 rgba(61,43,31,0.15), 12px 10px 22px rgba(30, 22, 16, 0.16);
}

.main-tag { left: 10vw; top: 28vh; font-size: clamp(5rem, 18vw, 16rem); transform: rotate(-3deg); color: var(--charcoal); }
.ghost-tag { right: 5vw; top: 31vh; width: 42vw; font-size: clamp(2rem, 5.8vw, 5.5rem); transform: rotate(7deg); color: var(--rust); opacity: 0.9; }
.side-tag { left: 53vw; top: 12vh; font-family: "Permanent Marker", cursive; font-size: clamp(1.2rem, 3vw, 3rem); transform: rotate(-7deg); }
.small-tag { left: 13vw; bottom: 18vh; font-size: clamp(2rem, 5vw, 5rem); transform: rotate(2deg); color: var(--sepia); }
.crown-tag { right: 10vw; bottom: 7vh; font-size: clamp(2.2rem, 6vw, 6rem); transform: rotate(-4deg); color: var(--white); text-shadow: 2px 2px 0 var(--sepia), 0 0 18px rgba(237, 227, 211, 0.35); }

.stencil {
  display: inline-block;
  padding: 0.28em 0.45em;
  color: var(--white);
  background: rgba(30, 22, 16, 0.82);
  box-shadow: 8px 8px 0 rgba(160, 82, 45, 0.28);
  text-shadow: none;
}

.drip {
  position: absolute;
  width: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(var(--rust), rgba(160, 82, 45, 0));
  transform-origin: top;
}
.d1 { left: 23vw; top: 55vh; height: 58px; transform: rotate(2deg); }
.d2 { left: 37vw; top: 57vh; height: 35px; background: linear-gradient(var(--charcoal), rgba(30,22,16,0)); }
.d3 { right: 28vw; top: 44vh; height: 49px; }
.d4 { right: 16vw; bottom: 22vh; height: 64px; background: linear-gradient(var(--white), rgba(237,227,211,0)); }

.wall-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 2vw;
  padding: 0 5vw 22vh;
}

.wall-section {
  position: relative;
  min-height: 36vh;
  padding: clamp(1.35rem, 3vw, 3.5rem);
  background: rgba(242, 230, 208, 0.38);
  border: 1px solid rgba(61, 43, 31, 0.18);
  box-shadow: 3px 4px 12px rgba(30,22,16,0.24), inset 0 0 0 1px rgba(237, 227, 211, 0.22);
  backdrop-filter: blur(1px);
  opacity: 0;
  transform: translateY(40px) rotate(var(--start-rotation));
  transition: opacity 900ms var(--throw), transform 1000ms var(--throw);
}

.wall-section.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--rotation));
  transition-delay: var(--delay, 0ms);
}

.wall-section::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 34px;
  border-right: 2px solid rgba(160, 82, 45, 0.45);
  transform: rotate(42deg);
  box-shadow: 9px 0 0 rgba(160, 82, 45, 0.25), 18px 0 0 rgba(160, 82, 45, 0.14);
}

.block-one { grid-column: 2 / 8; margin-top: -8vh; --rotation: -0.5deg; --start-rotation: -3deg; }
.block-two { grid-column: 5 / 11; margin-top: 4vh; --rotation: 1.2deg; --start-rotation: 4deg; }
.block-three { grid-column: 1 / 7; margin-top: -3vh; --rotation: -1deg; --start-rotation: -4deg; }
.block-four { grid-column: 3 / 10; margin-top: 6vh; --rotation: 0.4deg; --start-rotation: 3deg; min-height: 48vh; }

.section-kicker {
  margin: 0 0 0.9rem;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 201, 183, 0.56);
  text-shadow: 0 0 10px rgba(0, 201, 183, 0.35);
}

h2 {
  position: relative;
  margin: 0 0 1rem;
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-shadow: 0 0 8px rgba(61,43,31,0.3), 2px 2px 0 rgba(61,43,31,0.15);
}

h2::after {
  content: "";
  position: absolute;
  left: 1.2em;
  bottom: -42px;
  width: 3px;
  height: 54px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(var(--rust), transparent);
}

.wall-section p:not(.section-kicker) {
  max-width: 46rem;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--body);
}

.mini-photo,
.final-photo { position: relative; float: right; width: min(29vw, 250px); height: 170px; margin: -1rem 0 1rem 1.2rem; transform: rotate(4deg); }
.final-photo { float: none; width: min(42vw, 380px); height: 210px; margin: 0 0 2rem auto; transform: rotate(-2deg); opacity: 0.65; }
.last-line { font-style: italic; }

.wall-nav {
  position: fixed;
  left: 24px;
  bottom: 26px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.wall-nav a {
  position: relative;
  width: max-content;
  padding-left: 26px;
  color: var(--charcoal);
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(237, 227, 211, 0.45);
  transform: rotate(-2deg);
  transition: color 180ms ease, transform 180ms ease;
}

.wall-nav a:nth-child(even) { transform: rotate(2deg); }
.wall-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 10px;
  background: var(--rust);
  clip-path: polygon(0 35%, 70% 35%, 70% 0, 100% 50%, 70% 100%, 70% 65%, 0 65%);
}
.wall-nav a:hover { color: var(--rust); transform: rotate(0deg) translateX(4px); }

@keyframes fog-drift { from { transform: translateX(-4vw) translateY(-1vh); } to { transform: translateX(6vw) translateY(2vh); } }
@keyframes scan-line { from { top: 0; } to { top: 100vh; } }
@keyframes reticle-spin { to { transform: rotate(360deg); } }
@keyframes flicker { 0%, 100% { opacity: 0.62; } 48% { opacity: 0.38; } 52% { opacity: 0.72; } }

@media (max-width: 760px) {
  .photo-one, .photo-two, .photo-three, .photo-four { width: 44vw; height: 22vh; }
  .main-tag { left: 5vw; top: 30vh; }
  .ghost-tag { right: 4vw; top: 53vh; width: 70vw; }
  .side-tag { left: 43vw; top: 14vh; }
  .small-tag { left: 8vw; bottom: 17vh; width: 80vw; }
  .wall-grid { display: block; padding: 0 4vw 22vh; }
  .wall-section { margin: 5vh 0 !important; }
  .block-one { margin-top: -8vh !important; }
  .lat, .long { left: 24px; top: 112px; }
  .long { top: 138px; }
}
