:root {
  --paper: #e9e5dc;
  --ink: #1d211c;
  --muted: #66675f;
  --accent: #a04d32;
  --line: rgba(29, 33, 28, 0.22);
  --page-x: clamp(1.5rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(29, 33, 28, 0.035) 50%, transparent 50.1%),
    var(--paper);
  font-family: "Manrope", sans-serif;
  font-weight: 300;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--page-x);
}

.site-header {
  min-height: 6.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: inherit;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.discipline,
.eyebrow,
.site-footer,
.drawing-note {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.15em;
}

.discipline {
  margin: 0;
}

.discipline span {
  margin-inline: 0.7rem;
  color: var(--accent);
}

.hero {
  display: grid;
  min-height: calc(100svh - 11.5rem);
  grid-template-columns: minmax(21rem, 0.85fr) minmax(32rem, 1.15fr);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 5.5rem) var(--page-x);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  animation: reveal 1s 0.15s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7.6vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

h1 span {
  color: var(--accent);
  font-style: italic;
}

.intro {
  max-width: 31rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.8;
}

.drawing-wrap {
  --depth-x: 0px;
  --depth-y: 0px;
  position: relative;
  min-height: min(67vw, 42rem);
  margin-left: -7rem;
  overflow: hidden;
  perspective: 900px;
}

.drawing {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(55vw, 49rem);
  overflow: visible;
  transform: translate(calc(-45% + var(--depth-x)), calc(-50% + var(--depth-y)));
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.drawing path,
.drawing circle,
.drawing text {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.drawing text {
  fill: var(--muted);
  stroke: none;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.drawing .guide-lines {
  opacity: 0.25;
}

.drawing .building-back {
  opacity: 0.32;
  transform: translate(calc(var(--depth-x) * -0.45), calc(var(--depth-y) * -0.45));
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.drawing .dimensions {
  opacity: 0.52;
}

.drawing .building-main path,
.drawing .openings path,
.drawing .details path,
.drawing .landscape,
.drawing .sun,
.drawing .dimensions path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: build-line 10s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.drawing .building-back path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: build-frame 10s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.drawing .guide-lines path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: build-site 10s infinite ease-in-out;
}

.drawing .openings path {
  animation-name: build-openings;
}

.drawing .details path,
.drawing .landscape {
  animation-name: build-details;
}

.drawing .dimensions path {
  animation-name: build-dimensions;
}

.drawing .dimensions text {
  opacity: 0;
  animation: show-annotations 10s infinite;
}

.drawing .sun {
  stroke: var(--accent);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    build-details 10s infinite cubic-bezier(0.65, 0, 0.35, 1),
    orbit 18s infinite linear;
}

.drawing .structure-points circle {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node 3.6s infinite ease-in-out;
}

.drawing .structure-points circle:nth-child(1) {
  animation-delay: 2.4s;
}

.drawing .structure-points circle:nth-child(2) {
  animation-delay: 2.65s;
}

.drawing .structure-points circle:nth-child(3) {
  animation-delay: 2.9s;
}

.drawing .structure-points circle:nth-child(4) {
  animation-delay: 3.15s;
}

.drawing .structure-points circle:nth-child(5) {
  animation-delay: 3.4s;
}

.drawing .structure-points circle:nth-child(6) {
  animation-delay: 3.65s;
}

.draft-axis {
  position: absolute;
  z-index: 1;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.axis-x {
  top: 58%;
  left: 2%;
  width: 96%;
  height: 1px;
  animation: draft-x 10s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.axis-y {
  top: 3%;
  left: 52%;
  width: 1px;
  height: 90%;
  animation: draft-y 10s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.axis-x::before,
.axis-y::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.axis-x::before {
  top: -4px;
  right: 0;
}

.axis-y::before {
  bottom: 0;
  left: -4px;
}

.build-status {
  position: absolute;
  top: 8%;
  left: 8%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.build-status__icon {
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  animation: status-blink 1s infinite steps(1);
}

.build-status__text {
  position: relative;
  display: block;
  width: 10rem;
  height: 1em;
}

.build-status__text i {
  position: absolute;
  inset: 0;
  font-style: normal;
  opacity: 0;
  white-space: nowrap;
  animation: status-phase 10s infinite;
}

.build-status__text i:nth-child(2) {
  animation-delay: 2s;
}

.build-status__text i:nth-child(3) {
  animation-delay: 4s;
}

.build-status__text i:nth-child(4) {
  animation-delay: 6s;
}

.section-scan {
  position: absolute;
  top: 7%;
  right: 5%;
  bottom: 10%;
  z-index: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  opacity: 0;
  pointer-events: none;
  animation: section-scan 10s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.section-scan::after {
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.section-scan span {
  position: absolute;
  top: 1rem;
  left: 0.7rem;
  width: max-content;
  writing-mode: vertical-rl;
}

.scale-marker {
  position: absolute;
  right: 6%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fade-in 0.8s 3.1s forwards;
}

.scale-marker i {
  width: 4rem;
  height: 0.35rem;
  border-inline: 1px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 50%) 0 0 / 1rem 100%;
  border-block: 1px solid var(--ink);
}

.drawing-note {
  position: absolute;
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  animation: reveal 0.8s 2.1s both ease-out;
}

.drawing-note span:first-child {
  color: var(--accent);
}

.note-a {
  top: 21%;
  right: 5%;
}

.note-b {
  right: 2%;
  bottom: 20%;
}

.site-footer {
  min-height: 4.75rem;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(160, 77, 50, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes build-site {
  0%,
  4% {
    stroke-dashoffset: 800;
    opacity: 0;
  }

  18%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 800;
    opacity: 0;
  }
}

@keyframes build-frame {
  0%,
  14% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }

  38%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
}

@keyframes build-line {
  0%,
  25% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }

  52%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }
}

@keyframes build-openings {
  0%,
  43% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }

  62%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }
}

@keyframes build-details {
  0%,
  53% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }

  70%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }
}

@keyframes build-dimensions {
  0%,
  62% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }

  76%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  96%,
  100% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }
}

@keyframes show-annotations {
  0%,
  70%,
  100% {
    opacity: 0;
  }

  76%,
  90% {
    opacity: 1;
  }
}

@keyframes draft-x {
  0%,
  4% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateY(-9rem);
  }

  8% {
    opacity: 0.65;
  }

  25% {
    clip-path: inset(0 0 0 0);
    opacity: 0.65;
    transform: translateY(8rem);
  }

  30%,
  100% {
    opacity: 0;
    transform: translateY(8rem);
  }
}

@keyframes draft-y {
  0%,
  13% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateX(14rem);
  }

  17% {
    opacity: 0.65;
  }

  40% {
    clip-path: inset(0 0 0 0);
    opacity: 0.65;
    transform: translateX(-15rem);
  }

  45%,
  100% {
    opacity: 0;
    transform: translateX(-15rem);
  }
}

@keyframes status-phase {
  0%,
  19% {
    opacity: 1;
  }

  20%,
  100% {
    opacity: 0;
  }
}

@keyframes status-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.2;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes orbit {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(8px, -4px);
  }

  50% {
    transform: translate(15px, 2px);
  }

  75% {
    transform: translate(7px, 6px);
  }
}

@keyframes node {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: scale(0.2);
  }

  30%,
  72% {
    opacity: 0.9;
    transform: scale(1);
  }

  48% {
    opacity: 1;
    transform: scale(1.8);
  }
}

@keyframes section-scan {
  0%,
  55% {
    right: 5%;
    opacity: 0;
  }

  60% {
    opacity: 0.7;
  }

  83% {
    opacity: 0.7;
  }

  88%,
  100% {
    right: 92%;
    opacity: 0;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(160, 77, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(160, 77, 50, 0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .drawing-wrap {
    min-height: 30rem;
    margin: -2rem -8vw 0;
  }

  .drawing {
    width: min(48rem, 110vw);
    transform: translate(calc(-50% + var(--depth-x)), calc(-48% + var(--depth-y)));
  }

  .note-a {
    right: 12%;
  }

  .note-b {
    right: 8%;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 5.5rem;
  }

  .discipline {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  .eyebrow {
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .intro {
    font-size: 0.88rem;
  }

  .drawing-wrap {
    min-height: 22rem;
    margin-top: 0;
  }

  .drawing-note {
    display: none;
  }

  .section-scan,
  .scale-marker,
  .draft-axis {
    display: none;
  }

  .site-footer {
    min-height: 4.25rem;
  }

}
