/* p9r.xyz -- brutalist concrete + aurora lights + bokeh + modular blocks */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --concrete-light: #D0D0D0;
  --concrete-mid: #B0B0B0;
  --concrete-border: #808080;
  --concrete-dark: #606060;
  --steel-charcoal: #2A2A30;
  --aurora-blue: #6080D0;
  --aurora-violet: #9060C0;
  --bokeh-warm: #E8C090;
}

html, body {
  background: var(--concrete-light);
  color: var(--steel-charcoal);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* concrete noise texture (fixed background) */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.16  0 0 0 0 0.18  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 1;
  mix-blend-mode: multiply;
}

/* aurora SVG layers (background drift) */
.aurora-svg {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 60vh;
  pointer-events: none;
  z-index: 2;
}
.aurora-svg-top {
  top: 0;
  height: 100vh;
  opacity: 0.55;
}
.aurora-svg-mid {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;
  opacity: 0.7;
}
.aurora-curve {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
}
.aurora-curve-1 { stroke: var(--aurora-blue); animation: drift 22s ease-in-out infinite; }
.aurora-curve-2 { stroke: var(--aurora-violet); animation: drift 26s ease-in-out infinite reverse; }
.aurora-curve-3 { stroke: var(--aurora-blue); animation: drift 30s ease-in-out infinite; opacity: 0.8; }
.aurora-curve-4 { stroke: var(--aurora-violet); animation: drift 24s ease-in-out infinite; }
.aurora-curve-5 { stroke: var(--aurora-blue); animation: drift 28s ease-in-out infinite reverse; }

@keyframes drift {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

/* bokeh -- radial gradient circles */
.bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  z-index: 1;
  transition: opacity 600ms ease, transform 600ms ease;
  opacity: 0;
  transform: scale(0);
}
.bokeh.in {
  opacity: 1;
  transform: scale(1);
}
.bokeh-1 {
  width: 80px; height: 80px;
  top: 8%; left: 4%;
  background: radial-gradient(circle, rgba(232,192,144,0.25) 0%, rgba(232,192,144,0) 70%);
}
.bokeh-2 {
  width: 60px; height: 60px;
  top: 18%; right: 6%;
  background: radial-gradient(circle, rgba(96,128,208,0.22) 0%, rgba(96,128,208,0) 70%);
}
.bokeh-3 {
  width: 70px; height: 70px;
  bottom: 12%; left: 10%;
  background: radial-gradient(circle, rgba(144,96,192,0.18) 0%, rgba(144,96,192,0) 70%);
}
.bokeh-4 {
  width: 50px; height: 50px;
  bottom: 22%; right: 14%;
  background: radial-gradient(circle, rgba(232,192,144,0.20) 0%, rgba(232,192,144,0) 70%);
}
.bokeh-5 {
  width: 65px; height: 65px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(96,128,208,0.15) 0%, rgba(96,128,208,0) 70%);
}
.bokeh-5.in {
  transform: translate(-50%, -50%) scale(1);
}
.bokeh-foot {
  filter: blur(10px);
}
.bokeh-6 {
  width: 70px; height: 70px;
  top: 20%; left: 8%;
  background: radial-gradient(circle, rgba(96,128,208,0.18) 0%, rgba(96,128,208,0) 70%);
}
.bokeh-7 {
  width: 55px; height: 55px;
  bottom: 25%; right: 12%;
  background: radial-gradient(circle, rgba(232,192,144,0.15) 0%, rgba(232,192,144,0) 70%);
}

/* monolith -- 100vh hero */
.monolith {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 5;
  border-bottom: 2px solid var(--concrete-border);
  overflow: hidden;
}
.monolith-inner {
  position: relative;
  z-index: 6;
  padding: clamp(24px, 6vw, 96px);
  max-width: 1100px;
}
.structural-marker {
  display: inline-block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--concrete-border);
  border-left: 2px solid var(--aurora-blue);
  padding-left: 10px;
  margin-bottom: 24px;
}
.domain-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 8vw, 120px);
  color: var(--steel-charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 800ms ease;
  margin-bottom: 32px;
}
.domain-title.in {
  opacity: 1;
}
.monolith-subtitle {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--steel-charcoal);
  max-width: 640px;
  margin-bottom: 40px;
  font-style: italic;
}
.label-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.label {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--concrete-dark);
  border: 2px solid var(--concrete-border);
  padding: 6px 12px;
  background: rgba(208,208,208,0.4);
}

/* module stacks */
.module-stack {
  position: relative;
  z-index: 5;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
  background: var(--concrete-light);
  border-bottom: 2px solid var(--concrete-border);
}
.module-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.module-row:last-child { margin-bottom: 0; }

.module-block {
  background: rgba(208,208,208,0.6);
  border: 2px solid var(--concrete-border);
  padding: 24px;
  position: relative;
  opacity: 0;
  transition: opacity 200ms ease, border-color 200ms ease, background 200ms ease;
  flex-grow: 0;
}
.module-block.in { opacity: 1; }
.module-w320 { flex-basis: 320px; min-width: 280px; }
.module-w480 { flex-basis: 480px; min-width: 280px; }
.module-w640 { flex-basis: 640px; min-width: 280px; }

.module-block:hover {
  border-color: var(--aurora-blue);
  background: rgba(208,208,208,0.85);
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--concrete-border);
  padding-bottom: 8px;
}
.block-no {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--concrete-border);
}
.block-tag {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--concrete-dark);
}
.block-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--steel-charcoal);
}
.block-body {
  font-size: clamp(15px, 1vw, 17px);
  color: var(--steel-charcoal);
  line-height: 1.8;
}

/* underline-draw -- animates from 0 to 100% width on viewport entry/hover */
.underline-draw {
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--aurora-blue), var(--aurora-blue));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 400ms ease, text-shadow 300ms ease;
  padding-bottom: 2px;
}
.underline-draw.drawn {
  background-size: 100% 2px;
}
.module-block:hover .underline-draw {
  text-shadow: 0 0 6px rgba(144,96,192,0.5);
}

/* aurora interstitial */
.aurora-interstitial {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 320px;
  background: linear-gradient(180deg, var(--concrete-light) 0%, var(--concrete-mid) 100%);
  border-bottom: 2px solid var(--concrete-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px);
  overflow: hidden;
}
.interstitial-text {
  position: relative;
  z-index: 6;
  max-width: 800px;
  text-align: left;
}
.interstitial-quote {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--steel-charcoal);
  line-height: 1.5;
  margin-top: 24px;
}

/* foundation footer */
.foundation {
  position: relative;
  z-index: 5;
  background: var(--concrete-dark);
  color: var(--concrete-light);
  padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px);
  overflow: hidden;
}
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.grid-line {
  position: absolute;
  background: rgba(208,208,208,0.12);
}
.grid-line-v {
  width: 1px;
  height: 100%;
  top: 0;
}
.grid-line-v:nth-child(1) { left: 25%; }
.grid-line-v:nth-child(2) { left: 50%; }
.grid-line-v:nth-child(3) { left: 75%; }
.grid-line-h {
  width: 100%;
  height: 1px;
  left: 0;
}
.grid-line-h:nth-child(4) { top: 33%; }
.grid-line-h:nth-child(5) { top: 66%; }

.foundation-inner {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
}
.foundation-block { max-width: 720px; }
.foundation-block .structural-marker {
  color: rgba(208,208,208,0.7);
  border-left-color: var(--aurora-violet);
  margin-bottom: 16px;
}
.foundation-text {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--concrete-light);
  line-height: 1.5;
}
.foundation .underline-draw {
  background-image: linear-gradient(var(--aurora-violet), var(--aurora-violet));
}
.foundation-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.foundation-meta .label {
  color: rgba(208,208,208,0.85);
  border-color: rgba(208,208,208,0.4);
  background: rgba(96,96,96,0.5);
}

/* responsive */
@media (max-width: 720px) {
  .module-row { flex-direction: column; gap: 16px; }
  .module-w320, .module-w480, .module-w640 { flex-basis: auto; width: 100%; }
  .domain-title { font-size: clamp(40px, 12vw, 72px); }
  .foundation-inner { flex-direction: column; align-items: flex-start; }
}
