.hv-master {
  --hm-ivory: #fff5d9;
  --hm-gold: #e3c680;
  --hm-muted: #bac8da;
  --hm-line: rgba(163,193,213,.23);
  color: #edf3f9;
  background: radial-gradient(ellipse at 82% 7%,rgba(6,182,212,.09),transparent 37rem),
    radial-gradient(ellipse at 18% 32%,rgba(139,92,246,.055),transparent 37rem);
}
.hv-master .hm-hero {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.9fr);
  gap: clamp(2rem,5vw,5rem); align-items:center;
  padding-block:clamp(3.5rem,9vw,8rem) 0;
}
.hv-master .hm-intro, .hv-master .hm-portrait { min-width:0; }
.hv-master .hm-badge, .hv-master .hm-number {
  color:var(--hm-gold); font:700 .74rem/1.6 "Space Grotesk","Cairo",sans-serif;
  letter-spacing:.14em;
}
.hv-master .hm-badge { margin:0 0 1.5rem; }
.hv-master h1 { margin:0; max-inline-size:11ch; font-size:clamp(3.75rem,7.25vw,7.4rem); line-height:1.02; letter-spacing:-.068em; text-wrap:balance; color:var(--hm-ivory); }
[dir="rtl"] .hv-master h1 { max-inline-size:12ch; letter-spacing:normal; line-height:1.3; }
[dir="rtl"] .hv-master .hm-badge, [dir="rtl"] .hv-master h2 { letter-spacing:normal; }
.hv-master .hm-title { display:inline-flex; align-items:center; gap:.6rem; padding:.35rem 1rem; border:1px solid #77724e; background:linear-gradient(95deg,rgba(197,160,89,.17),rgba(6,182,212,.07)); border-radius:2rem; color:#f4d994; margin:1.4rem 0 .6rem; font-weight:700; }
.hm-title::before { content:""; background:#71dedb; inline-size:.42rem; block-size:.42rem; border-radius:50%; box-shadow:0 0 .65rem #06b6d4; }
.hv-master .hm-subtitle { font-size:clamp(1.1rem,2vw,1.5rem); color:var(--hm-muted); max-inline-size:39ch; margin:.45rem 0 1.6rem; line-height:1.55; text-wrap:pretty; }
.hv-master .hm-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.55rem; }
.hv-master .hm-actions .button { white-space:normal; text-align:center; max-inline-size:100%; }
.hv-master .hm-inline { color:#8ee9ee; text-decoration:underline; text-decoration-color:#43767d; text-underline-offset:.32em; font-weight:650; }
.hv-master .hm-portrait {
  isolation:isolate; position:relative; display:grid; place-items:center; aspect-ratio: .94;
  width:min(100%,32rem); margin:0 auto;
  background:transparent;
}
.hv-master .hm-field {
  position:absolute; inset:0; overflow:hidden; border-radius:50%;
  background-image:radial-gradient(circle,rgba(151,214,223,.32) .8px,transparent 1px),
    radial-gradient(ellipse at 50% 48%,rgba(197,160,89,.2),transparent 65%),
    radial-gradient(ellipse at 30% 60%,rgba(6,182,212,.13),transparent 70%);
  background-size:23px 23px,100% 100%,100% 100%;
  mask-image:radial-gradient(ellipse closest-side,#000 58%,rgba(0,0,0,.96) 82%,transparent 100%);
}
.hm-field::before,.hm-field::after,.hm-orbit,.hm-axis { content:""; display:block; position:absolute; inset:7%; border-radius:50%; border:1px solid rgba(197,160,89,.6); }
.hm-field::after { inset:10%; border:1px dashed rgba(108,191,194,.5); }
.hm-orbit { inset:4.5%; border-color:transparent transparent rgba(102,220,234,.7) rgba(197,160,89,.4); transform:rotate(38deg); }
.hm-orbit::after { content:""; position:absolute; width:.6rem; height:.6rem; background:var(--hm-gold); border-radius:50%; inset:14% 14% auto auto; box-shadow:0 0 .8rem #e3c680; }
.hm-axis { inset:48% 0 auto; height:1px; border:0; background:linear-gradient(90deg,transparent,#789d9b 15%,transparent 45%,transparent 55%,#789d9b 85%,transparent); transform:rotate(-28deg); }
.hv-master .hm-hex, .hv-master .hm-hex-face { display:grid; place-items:center; clip-path:polygon(50% 0,95% 24%,95% 74%,50% 100%,5% 74%,5% 24%); }
.hv-master .hm-hex { width:65%; aspect-ratio:.92; padding:2px; background:linear-gradient(140deg,#c5a059 4%,#ffedc1 27%,#41858d 54%,#0bb5c8 75%,#c5a059); position:relative; }
.hv-master .hm-hex-face { width:100%; height:100%; background:linear-gradient(158deg,#304048,#132530 34%,#0e182b 63%,#2a2440); }
.hm-hex-face img { inline-size:100%; block-size:100%; object-fit:cover; object-position:50% 35%; }
.hm-monogram { color:var(--hm-ivory); display:grid; justify-items:center; font-family:Georgia,"Times New Roman",serif; font-weight:400; line-height:.92; text-shadow:0 3px 18px #080c17; }
.hm-monogram span:first-child { font-size:clamp(2.75rem,6.8vw,6rem); letter-spacing:-.09em; }
.hm-monogram span:last-child { font-size:clamp(1.2rem,3.5vw,2.8rem); color:var(--hm-gold); }
.hm-monogram i { width:90%; height:1px; background:linear-gradient(90deg,transparent,#e4c682 30%,#70dee1,transparent); margin:.55rem 0 .6rem; }
.hv-master .hm-portrait figcaption { position:absolute; inset:auto auto 4%; font-size:.77rem; text-align:center; padding:.3rem .9rem; color:var(--hm-gold); background:#0b1626; border:1px solid #544c38; border-radius:2rem; }
.hv-master .hm-lead { grid-column:1/-1; font-size:clamp(1.3rem,2.5vw,2.1rem); line-height:1.6; font-weight:500; color:#e7ded0; max-width:58ch; padding-inline-start:clamp(1.2rem,3vw,2.6rem); border-inline-start:2px solid #c5a059; margin:0 0 clamp(2rem,5vw,4.5rem); text-wrap:pretty; }
.hm-body { padding-block-end:clamp(3rem,7vw,6rem); }
.hv-master .hm-section { border-top:1px solid var(--hm-line); padding-block:clamp(3rem,7vw,6rem); scroll-margin-block-start:7rem; }
.hv-master h2 { margin:0 0 1.8rem; font-size:clamp(2rem,4vw,3.7rem); letter-spacing:-.045em; line-height:1.15; color:var(--hm-ivory); text-wrap:balance; }
.hv-master h3 { font-size:clamp(1.12rem,2.2vw,1.6rem); color:#f0f3f5; margin:.55rem 0 .6rem; line-height:1.45; }
[dir="rtl"] .hv-master h2 { line-height:1.45; }
.hm-section p { font-size:1.04rem; line-height:1.9; color:var(--hm-muted); margin:0; }
.hm-section p strong { color:#eff3f8; }
.hm-philosophy { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr); gap:clamp(2rem,7vw,6rem); }
.hm-milestones { padding-inline-start:1.4rem; border-inline-start:1px solid #806d4c; }
.hm-milestones ol,.hm-laws { padding:0; list-style:none; }
.hm-milestones li { padding:.8rem 0; border-block-end:1px solid var(--hm-line); color:var(--hm-muted); }
.hm-pillars { display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.hm-pillar { background:linear-gradient(125deg,rgba(22,43,62,.94),rgba(18,27,54,.84)); border:1px solid var(--hm-line); border-radius:1.2rem; overflow:hidden; transition:border-color .2s; }
.hm-pillar:hover,.hm-pillar[open] { border-color:#568586; }
.hm-pillar summary { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1rem; list-style:none; cursor:pointer; padding:clamp(1rem,2.8vw,2rem); }
.hm-pillar summary::-webkit-details-marker { display:none; }
.hm-pillar summary::after { content:"+"; color:#8ee9ee; font-size:1.6rem; }
.hm-pillar[open] summary::after { content:"−"; }
.hm-pillar h3 { margin:0; }
.hm-pillar p { padding:0 clamp(1rem,2.8vw,2rem) 1.7rem; }
.hm-laws { display:grid; gap:1.3rem; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 1.8rem; }
.hm-laws li { border-top:1px solid #5f5a43; padding-block:1.1rem; }
.hm-map nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--hm-line); border:1px solid var(--hm-line); }
.hm-map a { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:1.35rem; background:#101e30; color:#d5ebee; font-weight:700; transition:background .2s; }
.hm-map a:hover { background:#193247; }
.hm-close { padding:clamp(2rem,6vw,5rem); background:radial-gradient(ellipse at 5% 0%,rgba(197,160,89,.14),transparent 60%),#101a2b; border:1px solid #665a41; border-radius:1.3rem; }
.hm-close blockquote { color:var(--hm-ivory); font-size:clamp(1.7rem,3.7vw,3.3rem); margin:0 0 1rem; line-height:1.33; text-wrap:balance; }
.hm-sign { color:var(--hm-gold); margin:0 0 2rem; }
.hm-social:not(:empty) a { display:inline-block; margin-block-start:1.25rem; margin-inline-end:1.1rem; color:#9ce5e5; }
.hv-master :is(a,summary):focus-visible { outline:2px solid #8ee9ee; outline-offset:-2px; }
@media(prefers-reduced-motion:no-preference) {
  .hm-orbit { animation:hm-orbit 35s linear infinite; }
  @keyframes hm-orbit { to {transform:rotate(398deg)} }
  @supports(animation-timeline:view()) {
    .hm-section { animation:hm-reveal both linear; animation-timeline:view(); animation-range:entry 0% entry 18%; }
    @keyframes hm-reveal { from{opacity:.55;transform:translateY(.7rem)} to{opacity:1;transform:none} }
  }
}
@media(max-width:760px) {
  .hv-master .hm-hero { grid-template-columns:1fr; gap:1.7rem; }
  .hv-master .hm-portrait { max-inline-size:20rem; }
  .hm-philosophy,.hm-laws,.hm-pillars { grid-template-columns:1fr; }
  .hm-map nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-close { padding:1.6rem; }
}
@media(max-width:400px) {
  .hv-master h1 { font-size:clamp(2.8rem,13vw,3.6rem); }
  .hm-map nav { grid-template-columns:1fr; }
}
