:root {
  --foundation-ink: #0B1D26;
  --wet-concrete: #C7CDD1;
  --formwork-plywood: #B98756;
  --survey-blue: #2E6F95;
  --safety-amber: #FFB000;
  --oxide-rebar: #B63E2F;
  --lime-dust-white: #E9ECE7;
  --scroll: 0;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

/* Typography compliance tokens from DESIGN.md: IBM Plex Sans KR* KR** for body copy */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--foundation-ink);
}

body {
  margin: 0;
  color: var(--foundation-ink);
  font-family: "IBM Plex Sans KR", "KR**", sans-serif;
  background: var(--wet-concrete);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .22;
  background:
    radial-gradient(circle at 18% 22%, rgba(233,236,231,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(11,29,38,.28) 0 1px, transparent 2px),
    linear-gradient(110deg, transparent 0 46%, rgba(233,236,231,.16) 48%, transparent 52%);
  background-size: 17px 17px, 29px 29px, 100% 100%;
  mix-blend-mode: multiply;
}

.site-shell { position: relative; isolation: isolate; }

.site-plan {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: grid;
  gap: 5px;
  width: 142px;
  padding: 8px;
  border: 1px solid rgba(11,29,38,.45);
  background: rgba(233,236,231,.72);
  box-shadow: 8px 8px 0 rgba(11,29,38,.16);
}

.plan-mark {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px 7px 5px;
  color: var(--foundation-ink);
  text-decoration: none;
  border-left: 6px solid var(--survey-blue);
  font-family: "Teko", sans-serif;
  letter-spacing: .06em;
  line-height: .85;
  background: rgba(199,205,209,.54);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.plan-mark span { font-size: 15px; }
.plan-mark b { font-size: 18px; font-weight: 600; }
.plan-mark.is-active { transform: translateX(-10px); background: var(--safety-amber); border-color: var(--oxide-rebar); }

.datum-laser {
  position: fixed;
  left: -12vw;
  top: var(--pointer-y);
  z-index: 35;
  width: 124vw;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--oxide-rebar), var(--safety-amber), transparent);
  box-shadow: 0 0 18px var(--oxide-rebar);
  transform: rotate(calc(-4deg + var(--scroll) * 7deg));
  opacity: .72;
  animation: laser-sweep 6s ease-in-out infinite alternate;
}

.cursor-stake {
  position: fixed;
  left: var(--pointer-x);
  top: var(--pointer-y);
  z-index: 34;
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--safety-amber);
  border-top: 2px solid var(--safety-amber);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: .68;
}

.zone {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 9vh 7vw;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-template-rows: 18vh 29vh 31vh 22vh;
  border-bottom: 3px solid var(--foundation-ink);
}

.zone::before {
  content: attr(data-zone) " / GUNSUL.STUDIO";
  position: absolute;
  left: 2vw;
  top: 2vh;
  font-family: "Teko", sans-serif;
  font-size: clamp(22px, 3vw, 52px);
  color: rgba(11,29,38,.18);
  letter-spacing: .08em;
}

.zone::after {
  content: "";
  position: absolute;
  inset: 18vh 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--foundation-ink), transparent);
  box-shadow: 0 29vh 0 rgba(11,29,38,.44), 0 60vh 0 rgba(11,29,38,.34);
  opacity: .42;
}

.survey-line {
  background:
    linear-gradient(90deg, rgba(11,29,38,.16) 1px, transparent 1px) 0 0 / calc(100% / 14) 100%,
    linear-gradient(180deg, rgba(233,236,231,.55), transparent 42%),
    var(--wet-concrete);
}

.deck { position: absolute; left: 0; right: 0; height: 4px; background: rgba(11,29,38,.65); }
.deck-a { top: 18vh; } .deck-b { top: 47vh; } .deck-c { top: 78vh; }

.scaffold-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, 1fr); pointer-events: none; }
.scaffold-grid span { position: relative; border-left: 10px solid rgba(11,29,38,.64); transform-origin: top; }
.scaffold-grid span:nth-child(3n) { border-color: rgba(46,111,149,.72); }
.scaffold-grid span:nth-child(5n) { opacity: 0; }
.scaffold-grid span::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 16px;
  top: 45vh;
  left: -26px;
  border: 4px solid var(--foundation-ink);
  border-radius: 18px;
  background: var(--wet-concrete);
  transform: rotate(calc(var(--scroll) * 60deg));
}

.pipe-mask { position: absolute; top: 0; bottom: 0; width: 7vw; background: rgba(11,29,38,.78); mix-blend-mode: multiply; }
.mask-one { left: 13vw; } .mask-two { left: 45vw; } .mask-three { right: 22vw; }

.survey-wordmark { grid-column: 1 / 15; grid-row: 2 / 4; align-self: center; z-index: 2; transform: translateX(calc(var(--scroll) * -80px)); }
.measure-tag, .tag, .measurement-ruler, .stake, .suspended-slab, .hook, .counterweight, .bolt-panel, .inspection-stamp {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.measure-tag { margin: 0 0 -1vw 1vw; font-size: clamp(18px, 2vw, 34px); color: var(--oxide-rebar); }
h1 {
  margin: 0;
  font-family: "Black Han Sans", sans-serif;
  font-size: clamp(82px, 20vw, 280px);
  line-height: .72;
  letter-spacing: -.075em;
  color: var(--foundation-ink);
}

.field-note {
  position: relative;
  z-index: 3;
  padding: 20px 24px 22px;
  border: 2px solid var(--foundation-ink);
  background: rgba(233,236,231,.82);
  box-shadow: 12px 12px 0 rgba(11,29,38,.18);
  max-width: 540px;
}
.field-note::before, .field-note::after { content: ""; position: absolute; width: 11px; height: 11px; background: var(--oxide-rebar); border-radius: 50%; }
.field-note::before { left: 8px; top: 8px; } .field-note::after { right: 8px; bottom: 8px; }
.tag { display: block; color: var(--survey-blue); font-size: 22px; margin-bottom: 10px; }
.field-note h2 { margin: 0 0 14px; font-family: "Black Han Sans", sans-serif; font-size: clamp(34px, 5vw, 72px); line-height: .9; font-weight: 400; }
.field-note p { margin: 0; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.55; font-weight: 500; }
.note-survey { grid-column: 8 / 13; grid-row: 3 / 5; }

.chalk-string { position: absolute; height: 2px; background: var(--lime-dust-white); box-shadow: 0 0 12px var(--safety-amber); transform-origin: left center; }
.diagonal-one { width: 70vw; left: 5vw; top: 82vh; transform: rotate(-17deg) scaleX(calc(.75 + var(--scroll) * .25)); }
.stake { position: absolute; padding: 5px 9px; color: var(--lime-dust-white); background: var(--oxide-rebar); font-size: 20px; }
.stake-a { left: 7vw; top: 68vh; } .stake-b { left: 72vw; top: 25vh; background: var(--survey-blue); }

.excavation-void { background: var(--foundation-ink); color: var(--lime-dust-white); }
.excavation-void::before { color: rgba(233,236,231,.14); }
.excavation-void::after { background: linear-gradient(90deg, transparent, var(--lime-dust-white), transparent); }
.void-cut {
  position: absolute;
  left: 8vw;
  right: 12vw;
  bottom: 0;
  height: 56vh;
  background: linear-gradient(150deg, rgba(185,135,86,.86), rgba(11,29,38,.1)), var(--formwork-plywood);
  clip-path: polygon(0 18%, 78% 0, 100% 30%, 88% 100%, 7% 100%);
  box-shadow: inset 0 38px 0 rgba(182,62,47,.5), inset 0 -18px 0 rgba(11,29,38,.35);
}
.blueprint-film { position: absolute; inset: 11vh 4vw 18vh 48vw; border: 1px solid var(--survey-blue); background: repeating-linear-gradient(0deg, rgba(46,111,149,.22), rgba(46,111,149,.22) 1px, transparent 1px, transparent 28px), repeating-linear-gradient(90deg, rgba(46,111,149,.22), rgba(46,111,149,.22) 1px, transparent 1px, transparent 28px); transform: rotate(-3deg); }
.note-excavation { grid-column: 2 / 8; grid-row: 2 / 4; background: rgba(11,29,38,.88); border-color: var(--lime-dust-white); box-shadow: 14px 14px 0 rgba(255,176,0,.22); color: var(--lime-dust-white); }
.section-arrow { position: absolute; right: 5vw; top: 54vh; width: 38vw; height: 20vh; }
.section-arrow path { fill: none; stroke: var(--safety-amber); stroke-width: 5; stroke-linecap: square; stroke-dasharray: 520; stroke-dashoffset: calc(520 - var(--scroll) * 520); }
.suspended-slab { position: absolute; padding: 8px 16px; border: 2px solid var(--lime-dust-white); color: var(--lime-dust-white); background: rgba(46,111,149,.45); font-size: 28px; transform: translateY(calc((1 - var(--zone-progress, 0)) * -70px)); }
.slab-one { left: 15vw; top: 22vh; } .slab-two { right: 19vw; top: 36vh; }
.measurement-ruler { position: absolute; left: 2vw; bottom: 6vh; right: 2vw; display: flex; justify-content: space-between; color: var(--lime-dust-white); font-size: 24px; border-top: 2px solid var(--lime-dust-white); }

.rebar-forest { background: linear-gradient(180deg, var(--wet-concrete), #E9ECE7); }
.rebar-field { position: absolute; inset: 0 5vw; display: flex; justify-content: space-between; align-items: stretch; opacity: .92; }
.rebar-field i { width: 7px; background: linear-gradient(90deg, var(--oxide-rebar), #6f211a); position: relative; transform: translateY(calc((1 - var(--zone-progress, 0)) * 18vh)); }
.rebar-field i:nth-child(even) { width: 4px; opacity: .72; }
.rebar-field i::before, .rebar-field i::after { content: ""; position: absolute; left: -8px; width: 23px; height: 9px; border: 2px solid var(--foundation-ink); border-radius: 50%; background: transparent; }
.rebar-field i::before { top: 33vh; } .rebar-field i::after { top: 64vh; }
.note-rebar { grid-column: 2 / 7; grid-row: 2 / 4; background: rgba(233,236,231,.9); }
.korean-beam { grid-column: 7 / 15; grid-row: 2 / 4; z-index: 2; align-self: center; justify-self: end; font-family: "Black Han Sans", sans-serif; font-size: clamp(110px, 22vw, 330px); color: var(--foundation-ink); text-shadow: 10px 10px 0 var(--safety-amber), -12px 15px 0 rgba(46,111,149,.38); transform: translateY(calc((1 - var(--zone-progress, 0)) * -90px)); }
.tie-wire { position: absolute; width: 28vw; height: 3px; background: var(--foundation-ink); transform: rotate(-12deg); }
.tie-one { top: 31vh; left: 45vw; } .tie-two { top: 53vh; left: 38vw; transform: rotate(9deg); } .tie-three { top: 72vh; left: 58vw; transform: rotate(-4deg); }

.pour-sequence { background: var(--lime-dust-white); }
.crane-system { position: absolute; inset: 0; pointer-events: none; transform: translateX(calc(var(--zone-progress, 0) * 7vw)); }
.boom { position: absolute; left: 6vw; top: 13vh; width: 68vw; height: 12px; background: repeating-linear-gradient(135deg, var(--foundation-ink), var(--foundation-ink) 18px, var(--safety-amber) 18px, var(--safety-amber) 34px); transform: rotate(-13deg); transform-origin: left center; }
.cable { position: absolute; left: 55vw; top: 17vh; width: 2px; height: calc(38vh + var(--zone-progress, 0) * 16vh); background: var(--foundation-ink); }
.hook { position: absolute; left: calc(55vw - 26px); top: calc(54vh + var(--zone-progress, 0) * 16vh); padding: 8px 13px; background: var(--safety-amber); color: var(--foundation-ink); font-size: 23px; clip-path: polygon(0 0, 100% 0, 86% 76%, 55% 76%, 50% 100%, 42% 76%, 11% 76%); }
.counterweight { position: absolute; left: 4vw; top: 7vh; width: 96px; height: 62px; display: grid; place-items: center; background: var(--oxide-rebar); color: var(--lime-dust-white); font-size: 48px; }
.pour-ribbon { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(14vh + var(--zone-progress, 0) * 32vh); background: linear-gradient(180deg, rgba(199,205,209,.66), var(--wet-concrete)); border-top: 10px solid var(--survey-blue); border-radius: 58% 42% 0 0 / 26% 22% 0 0; transition: height .2s linear; }
.note-pour { grid-column: 7 / 13; grid-row: 2 / 4; align-self: end; background: rgba(233,236,231,.88); }
.bolt-panel { position: absolute; width: 210px; min-height: 92px; padding: 30px 18px 12px; background: var(--formwork-plywood); border: 2px solid var(--foundation-ink); color: var(--foundation-ink); font-size: 24px; box-shadow: 10px 10px 0 rgba(11,29,38,.18); }
.panel-one { left: 8vw; top: 47vh; transform: rotate(-2deg); } .panel-two { left: 26vw; top: 62vh; transform: rotate(4deg); }
.bolt-panel span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--foundation-ink); }
.bolt-panel span:nth-child(1) { left: 10px; top: 10px; } .bolt-panel span:nth-child(2) { right: 10px; top: 10px; } .bolt-panel span:nth-child(3) { left: 10px; bottom: 10px; } .bolt-panel span:nth-child(4) { right: 10px; bottom: 10px; }

.topping-out-lantern { background: radial-gradient(circle at 58% 42%, rgba(255,176,0,.26), transparent 36%), var(--foundation-ink); color: var(--lime-dust-white); }
.topping-out-lantern::before { color: rgba(255,176,0,.16); }
.topping-out-lantern::after { background: linear-gradient(90deg, transparent, var(--safety-amber), transparent); box-shadow: 0 29vh 0 rgba(255,176,0,.22), 0 60vh 0 rgba(255,176,0,.16); }
.lantern-frame { grid-column: 2 / 10; grid-row: 1 / 5; position: relative; align-self: center; height: 74vh; filter: drop-shadow(0 0 28px rgba(255,176,0,.45)); }
.beam { position: absolute; display: block; background: var(--safety-amber); box-shadow: 0 0 18px rgba(255,176,0,.62); transform-origin: center; }
.beam-top, .beam-bottom { left: 8%; right: 8%; height: 16px; }
.beam-top { top: 12%; } .beam-bottom { bottom: 12%; }
.beam-left, .beam-right { top: 12%; bottom: 12%; width: 16px; }
.beam-left { left: 8%; } .beam-right { right: 8%; }
.beam-diag-a, .beam-diag-b { left: 10%; top: 49%; width: 80%; height: 12px; }
.beam-diag-a { transform: rotate(31deg) scaleX(var(--zone-progress, 0)); } .beam-diag-b { transform: rotate(-31deg) scaleX(var(--zone-progress, 0)); }
.built-hangul { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Black Han Sans", sans-serif; font-size: clamp(100px, 20vw, 310px); color: var(--lime-dust-white); text-shadow: 0 0 26px var(--safety-amber); opacity: calc(.35 + var(--zone-progress, 0) * .65); }
.note-lantern { grid-column: 10 / 15; grid-row: 2 / 4; background: rgba(11,29,38,.82); color: var(--lime-dust-white); border-color: var(--safety-amber); box-shadow: 12px 12px 0 rgba(255,176,0,.22); }
.inspection-stamp { position: absolute; right: 4vw; bottom: 5vh; padding: 14px 18px; border: 3px solid var(--oxide-rebar); color: var(--lime-dust-white); font-size: 23px; transform: rotate(-2deg); }
.inspection-stamp span { display: block; color: var(--safety-amber); font-size: 36px; }

@keyframes laser-sweep {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(18deg); }
}

@media (max-width: 860px) {
  .site-plan { width: auto; left: 12px; right: 12px; top: 10px; grid-template-columns: repeat(5, 1fr); }
  .plan-mark { display: block; padding: 5px; }
  .plan-mark b { display: block; }
  .zone { padding: 14vh 5vw 8vh; display: block; min-height: 112vh; }
  .survey-wordmark { margin-top: 14vh; }
  h1 { font-size: 25vw; }
  .field-note { margin: 10vh 0 0; }
  .note-survey, .note-excavation, .note-rebar, .note-pour, .note-lantern { max-width: none; }
  .korean-beam { margin-top: 7vh; font-size: 36vw; text-align: right; }
  .blueprint-film, .section-arrow { display: none; }
  .lantern-frame { height: 58vh; margin-top: 10vh; }
}
