/* Blueprint motif layer */
:root {
  --color-bg: #061a2e;
  --color-surface: rgba(7, 34, 62, .78);
  --color-surface-strong: rgba(9, 45, 82, .9);
  --color-line: rgba(125, 207, 255, .34);
  --color-line-soft: rgba(125, 207, 255, .16);
  --color-accent: #d9ff4a;
  --color-cyan: #00e5ff;
}

body {
  background-color: var(--color-bg);
}

.blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, rgba(0, 229, 255, .14), transparent 34%),
              radial-gradient(circle at 86% 70%, rgba(217, 255, 74, .10), transparent 30%),
              var(--color-bg);
}

.blueprint-bg::before {
  content: "";
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(var(--color-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.72) 56%, transparent 100%);
  opacity: .9;
}

.blueprint-bg::after {
  content: "";
  position: absolute;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  right: -16vw;
  top: 10%;
  border-radius: 50%;
  background: conic-gradient(from 45deg, transparent 0 7%, rgba(217, 255, 74, .7) 7% 8%, transparent 8% 16%, var(--color-cyan) 16% 17%, transparent 17% 32%);
  opacity: .34;
  filter: blur(.2px);
  animation: compassSpin 30s linear infinite;
}

#moriken-blueprint-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.site-header,
.top-strip,
.primary-navigation {
  background-color: rgba(6, 26, 46, .78);
  backdrop-filter: blur(20px) saturate(150%);
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #061a2e 0 38%, transparent 39%),
    conic-gradient(from 90deg, var(--color-accent), var(--color-cyan), rgba(255,255,255,.7), var(--color-accent));
  box-shadow: inset 0 0 0 4px rgba(125, 207, 255, .36), 0 0 34px rgba(0, 229, 255, .28);
}

.brand__tagline { color: rgba(244, 255, 243, .66); }

.primary-navigation a {
  background-image: linear-gradient(var(--color-line-soft), var(--color-line-soft));
  background-size: 100% 1px;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.site-search input,
.site-search button {
  border-color: rgba(125, 207, 255, .34);
  color: #fff;
}

.hero {
  isolation: isolate;
  background-image:
    linear-gradient(120deg, rgba(6, 26, 46, .98), rgba(7, 45, 82, .9)),
    url("https://morikensetu.stars.ne.jp/wp-content/uploads/2024/06/07-700x467.jpg") center / cover no-repeat;
}

.hero > * { position: relative; z-index: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--color-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px),
    repeating-linear-gradient(45deg, rgba(217, 255, 74, .16) 0 1px, transparent 1px 18px);
  background-size: 48px 48px, 48px 48px, auto;
  opacity: .9;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  left: -12vw;
  bottom: -18vw;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 12%, var(--color-accent) 12% 14%, transparent 14% 36%);
  opacity: .38;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.info-panel,
.hero-card {
  position: relative;
}

.hero__grid {
  position: relative;
  z-index: 1;
}

.blueprint-floorplan {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .78;
}

.hero-blueprint-panel {
  position: absolute;
  top: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1rem, 5vw, 5rem);
  z-index: 3;
  width: min(360px, 38vw);
  height: min(300px, 34vw);
  border: 2px solid rgba(125, 207, 255, .58);
  background: linear-gradient(135deg, rgba(6, 26, 46, .72), rgba(9, 45, 82, .2));
  box-shadow: inset 0 0 0 1px rgba(217, 255, 74, .22), 0 0 36px rgba(0, 229, 255, .16);
}

.hero-blueprint-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .58;
}

.panel-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  color: rgba(125, 207, 255, .9);
  font-size: .68rem;
  letter-spacing: .18em;
}

.panel-room {
  position: absolute;
  border: 2px solid rgba(125, 207, 255, .74);
  background: linear-gradient(135deg, rgba(125, 207, 255, .16), transparent 62%);
}

.panel-room::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  background: rgba(125, 207, 255, .68);
}

.panel-room::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  bottom: -8px;
  height: 14px;
  border-top: 2px solid rgba(217, 255, 74, .68);
}

.panel-room > span {
  position: absolute;
  left: 9px;
  bottom: 7px;
  z-index: 1;
  color: rgba(217, 255, 74, .96);
  font-size: clamp(.7rem, 1vw, .86rem);
  letter-spacing: .16em;
}

.panel-a { width: 42%; height: 30%; left: 10%; bottom: 18%; }
.panel-b { width: 34%; height: 25%; right: 10%; top: 18%; background-color: rgba(0, 229, 255, .07); }
.panel-c { width: 36%; height: 26%; left: 32%; bottom: 10%; border-style: dashed; }


.fp-room {
  position: absolute;
  border: 2px solid rgba(125, 207, 255, .64);
  background: linear-gradient(135deg, rgba(125, 207, 255, .10), transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(217, 255, 74, .26), 0 0 34px rgba(0, 229, 255, .10);
}

.fp-room::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(125, 207, 255, .64);
}

.fp-room::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -9px;
  height: 18px;
  border-top: 2px solid rgba(217, 255, 74, .62);
}

.fp-room > span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: rgba(217, 255, 74, .92);
  font-size: clamp(.68rem, 1vw, .82rem);
  letter-spacing: .16em;
}

.fp-a { width: 36%; height: 28%; left: 9%; bottom: 18%; }
.fp-b { width: 28%; height: 22%; right: 12%; top: 18%; background-color: rgba(0, 229, 255, .06); }
.fp-c { width: 34%; height: 24%; left: 42%; bottom: 12%; border-style: dashed; }

.blueprint-floorplan::before {
  content: "FLOOR PLAN / SCALE 1:200";
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: clamp(1rem, 4vw, 3.5rem);
  color: rgba(125, 207, 255, .68);
  font-size: .72rem;
  letter-spacing: .2em;
}

.blueprint-floorplan::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 3.5rem);
  bottom: clamp(1rem, 4vw, 3.5rem);
  width: min(28vw, 360px);
  height: 72px;
  border-top: 1px solid rgba(217, 255, 74, .58);
  background-image: repeating-linear-gradient(90deg, transparent 0 34px, rgba(217, 255, 74, .6) 34px 35px);
}

.info-panel,
.hero-card {
  background: linear-gradient(180deg, rgba(9, 45, 82, .76), rgba(6, 26, 46, .58));
  border-color: rgba(125, 207, 255, .34);
}

.section {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}

.section::after {
  content: "";
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 5vw, 5rem);
  width: min(28vw, 360px);
  height: 42px;
  border-top: 1px solid rgba(217, 255, 74, .46);
  background-image: repeating-linear-gradient(90deg, transparent 0 30px, rgba(217, 255, 74, .58) 30px 31px);
  opacity: .7;
}

.project-card,
.post-card,
.search-result,
.news-item,
.widget {
  border-color: rgba(125, 207, 255, .30);
  background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px), linear-gradient(180deg, rgba(9, 45, 82, .76), rgba(6, 26, 46, .62));
  background-size: 34px 34px, 34px 34px, auto;
}

.project-card { overflow: hidden; }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0 48%, rgba(217, 255, 74, .36) 49% 51%, transparent 52%), linear-gradient(rgba(125, 207, 255, .18) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  opacity: .46;
}

.project-card__media img { filter: saturate(.92) contrast(1.08); }

.read-more,
.btn--primary:hover { color: var(--color-accent); }

.archive-header,
.article-header {
  background-image: linear-gradient(var(--color-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px), linear-gradient(135deg, rgba(0, 229, 255, .10), transparent 46%), var(--color-bg);
}

@keyframes compassSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .hero-blueprint-panel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
