/* ═══════════════════════════════════════════════════════════════════
   NODARAMA — design.css
   Design / Philosophy / Architecture page
   Theme: DUALITY — HARMONY — AUTHENTICITY — FUSION — PRECISION
   Palette: neutrals + contrast, light & dark split, amber accents
   Both fonts: Cormorant (Atelier) + Courier New (Nodarama Verbatim)
      Sizing rule: use only ratio %'s for sizing rules, no pixel based limits

   ═══════════════════════════════════════════════════════════════════ */

/* ── I. PAGE BASE ── */
.Page-Design-Ax {
  background: #f5f2ed;
  color: #1a1714;
}

/* Accent colours on this page */
.Page-Design-Ax .Hi  { color: var(--accent, #d48631); }
.Page-Design-Ax .Alt { color: #1a3a5c; }

/* ── II. HERO — DUALITY SPLIT ── */
.Design-Hero-Ax {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
}

.Design-Hero-Split-Bx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 90vh;
  position: relative;
}

/* Left — light/cream */
.Design-Hero-Left-Cx {
  background: #f5f2ed;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.5rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
}

/* Subtle warm texture overlay */
.Design-Hero-Left-Cx::before {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/system8.png") center / cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

/* Right — dark */
.Design-Hero-Right-Cx {
  background: #0d0f14;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.5rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
}

/* Subtle dark texture */
.Design-Hero-Right-Cx::before {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/system7.png") center / cover no-repeat;
  opacity: 0.08;
  animation: Breathe-Kf 22s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Diagonal split — sharp angle overlay */
.Design-Hero-Diag-Bx {
  position: absolute;
  top: 0; bottom: 0;
  /* sits centered, bleeds across both halves */
  left: calc(50% - 120px);
  width: 240px;
  z-index: 3;
  pointer-events: none;
}
.Design-Hero-Diag-Bx::before {
  content: "";
  position: absolute; inset: 0;
  background: #0d0f14;
  clip-path: polygon(120px 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
}

/* Patent illustration — centered, bridging both halves */
.Design-Hero-Center-Cx {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(260px, 28vw, 420px);
  pointer-events: none;
}
.Design-Patent-Img-Dx {
  width: 100%; height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.55)) sepia(0.18);
  animation: FloatUp-Kf 11s ease-in-out infinite alternate;
}

/* Left copy */
.Design-Hero-Left-Copy-Dx { position: relative; z-index: 2; max-width: 460px; }

.Design-Tagline-Dx {
  font-size: clamp(0.92rem, 1.3vw, 1.12rem);
  font-weight: 700;
  color: #1a1714;
  line-height: 1.5;
  margin: 0 0 2rem;
  letter-spacing: 0.01em;
}
.Design-Tagline-Dx strong { font-weight: 900; }
.Design-Tagline-Dx .Hi  { color: var(--accent, #d48631); font-style: italic; }
.Design-Tagline-Dx .Alt { font-style: normal; font-weight: 900; }

.Design-Title-Left-Dx {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #1a1714;
  line-height: 0.95;
  margin: 0 0 2.2rem;
}

.Design-Body-Left-Dx {
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  line-height: 1.42;
  color: #2a2420;
  margin: 0 0 1.6rem;
  font-weight: 300;
}
.Design-Body-Left-Dx:last-child { margin-bottom: 0; }

/* Right copy */
.Design-Hero-Right-Copy-Dx { position: relative; z-index: 2; max-width: 420px; text-align: right; }

.Design-Body-Right-Dx {
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  line-height: 1.42;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.6rem;
  font-weight: 300;
}
.Design-Body-Right-Dx:last-child { margin-bottom: 1.4rem; }

.Design-Kernel-Label-Dx {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.6vw, 2.8rem);
  letter-spacing: 0.24em;
  font-weight: 400;
  color: #fff;
  text-align: right;
  margin: 0;
  animation: KernelGlow-Alt-Kf 7s ease-in-out infinite alternate;
}
@keyframes KernelGlow-Alt-Kf {
  from { text-shadow: 0 0 6px rgba(97,169,228,0.1); opacity: 0.84; }
  to   { text-shadow: 0 0 32px rgba(97,169,228,0.36); opacity: 1; }
}

/* ── III. TRIANGLE LAYERS ── */
.Design-TriLayer-Ax {
  position: relative;
  width: 100%;
  height: clamp(60px, 8vw, 120px);
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}
.Design-TriLayer-Rev-Ax { transform: scaleX(-1); }

.Design-Tri-Img-Dx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.Design-Tri-A-Dx { opacity: 0.65; z-index: 1; }
.Design-Tri-B-Dx { opacity: 0.38; z-index: 2; mix-blend-mode: multiply; }
.Design-Tri-C-Dx { opacity: 0.22; z-index: 3; mix-blend-mode: screen; }

/* ── IV. LIGHT SIDE OVERRIDE for split sections on this page ── */
.Design-Light-Side-Ax {
  background: #f5f2ed;
  border-color: rgba(0,0,0,0.07);
}
.Design-Light-Side-Ax .Label-Cx { color: var(--accent, #d48631); }
.Design-Light-Side-Ax h2 { color: #1a1714; }
.Design-Light-Side-Ax p { color: #3a3028; }
.Design-Light-Side-Ax li { color: #3a3028; }
.Design-Light-Side-Ax li::before { color: var(--accent, #d48631); }

/* ── V. DUAL — Nodarama Verbatim / ATELIER COMPARE ── */
.Design-Dual-Ax {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  background: #f5f2ed;
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 5vw, 5rem);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: start;
}

.Design-Dual-Left-Bx {
  padding-right: 3rem;
}
.Design-Dual-Right-Bx {
  padding-left: 3rem;
  background: #0d0f14;
  padding: clamp(2rem, 4vw, 4rem);
  color: rgba(240,234,220,0.88);
}

/* Center divider */
.Design-Dual-Center-Bx {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  position: relative;
}
.Design-Dual-Line-Cx {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--accent, #d48631) 20%, var(--accent, #d48631) 80%, transparent);
}
.Design-Dual-And-Cx {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent, #d48631);
  line-height: 1;
  padding: 0.6rem 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Tag labels */
.Design-Dual-Tag-Dx {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border: 1px solid;
  margin-bottom: 0.7rem;
}
.Design-Dual-Tag-Nodarama Verbatim-Dx {
  color: var(--accent-g, #5db87a);
  border-color: rgba(93,184,122,0.45);
  background: rgba(93,184,122,0.06);
}
.Design-Dual-Tag-Atelier-Dx {
  color: var(--accent-b, #61a9e4);
  border-color: rgba(97,169,228,0.45);
  background: rgba(97,169,228,0.06);
}

.Design-Dual-Label-Dx {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin: 0 0 0.7rem;
}
.Design-Dual-Right-Bx .Design-Dual-Label-Dx { color: rgba(255,255,255,0.38); }

.Design-Dual-Head-Dx {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 1.2rem;
  color: #1a1714;
}
.Design-Dual-Right-Bx .Design-Dual-Head-Dx { color: #fff; }

.Design-Dual-Body-Dx {
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.74;
  margin: 0 0 1rem;
  color: #3a3028;
}
.Design-Dual-Right-Bx .Design-Dual-Body-Dx { color: rgba(240,234,220,0.72); }

.Design-Dual-List-Dx {
  margin: 0.8rem 0 0;
}
.Design-Dual-List-Dx li {
  font-size: clamp(0.93rem, 1.1vw, 1.03rem);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
  color: #3a3028;
}
.Design-Dual-Right-Bx .Design-Dual-List-Dx li { color: rgba(240,234,220,0.72); }
.Design-Dual-List-Dx li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent, #d48631);
  font-size: 0.7rem; top: 0.34em;
}

/* ── VI. FEATURE GRID — DESIGN PAGE ── */
.Design-FeatGrid-Ax {
  background: linear-gradient(180deg, #f5f2ed 0%, #e8e3da 100%);
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.Design-Feat-Bx {
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.5);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.3s ease;
}
.Design-Feat-Bx:hover {
  border-color: rgba(212,134,49,0.28);
  background: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}
.Design-Feat-Bx .Roman-Ax { color: rgba(0,0,0,0.1); }
.Design-Feat-Bx .Label-Cx { color: var(--accent, #d48631); }
.Design-Feat-Bx h2 { color: #1a1714; font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.Design-Feat-Bx p  { color: #3a3028; }

/* ── VII. IMAGE BREAK — warm neutral filter for design page ── */
.Design-ImgBreak-Ax img {
  filter: brightness(0.82) saturate(0.78) sepia(0.12);
}

/* ── VIII. SPLIT SECTIONS — override for dark bg ── */
/* The global Split-Copy-Bx is dark by default — keep for right-side splits */
/* Light-side split (Design-Light-Side-Ax class added in HTML) handled above */

/* ── IX. CARDS — light version ── */
.Page-Design-Ax .Card-Ax {
  background: linear-gradient(170deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  border-color: rgba(0,0,0,0.09);
}
.Page-Design-Ax .Card-Ax:hover {
  border-color: rgba(212,134,49,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.Page-Design-Ax .Card-Ax h2 { color: #1a1714; }
.Page-Design-Ax .Card-Ax p  { color: #3a3028; }
.Page-Design-Ax .Card-Ax a  { color: var(--accent, #d48631); }

/* ── X. MAIN wrapper on design page — light bg ── */
.Page-Design-Ax .Main-Ax {
  background: #f5f2ed;
  padding-top: 3rem;
}

/* ── XI. PULL BAND — design page override ── */
.Page-Design-Ax .PullBand-Ax {
  background: #1a1714;
  border-color: rgba(255,255,255,0.06);
}
.Page-Design-Ax .PullBand-Ax p { color: rgba(255,255,255,0.88); }

/* ── XII. RESPONSIVE ── */
@media (max-width: 960px) {
  .Design-Hero-Split-Bx {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .Design-Hero-Left-Cx,
  .Design-Hero-Right-Cx {
    min-height: 50vh;
    padding: 3rem 1.5rem;
  }
  .Design-Hero-Center-Cx {
    position: relative;
    left: auto; top: auto;
    transform: none;
    width: min(80vw, 360px);
    margin: 0 auto;
    order: 3;
  }
  .Design-Hero-Diag-Bx { display: none; }
  .Design-Hero-Left-Copy-Dx,
  .Design-Hero-Right-Copy-Dx { max-width: 100%; text-align: left; }
  .Design-Hero-Right-Copy-Dx { text-align: left; }
  .Design-Kernel-Label-Dx { text-align: left; }

  .Design-Dual-Ax {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .Design-Dual-Left-Bx { padding-right: 0; }
  .Design-Dual-Right-Bx { padding: 2rem 1.5rem; }
  .Design-Dual-Center-Bx { display: none; }
}

@media (max-width: 640px) {
  .Design-Title-Left-Dx { font-size: clamp(2.8rem, 11vw, 4.5rem); letter-spacing: 0.2em; }
  .Design-Kernel-Label-Dx { font-size: clamp(1.1rem, 5vw, 1.8rem); }
  .Design-FeatGrid-Ax { grid-template-columns: 1fr; }
  .Design-TriLayer-Ax { height: 40px; }
  .Design-Hero-Left-Cx,
  .Design-Hero-Right-Cx { padding: 2.5rem 1.2rem; }
}