/* PageOpus brand theme — same visual language as the brand kit:
   pitch-black space, a planetary horizon rim in brand blue, wide tracked labels. */
:root {
  --primary: #0A84FF;
  --space: #000000;
  --space-2: #05070d;
  --ink-on-dark: #f2f5f8;
  --muted-on-dark: #9aa7bd;
  --rim: #2e95ff;
  --radius: 10px;
}

/* Header: dark on every page (the logo is the white wordmark) */
.op .site-header { background: var(--space); border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 20; }
.op .brand, .op .brand-name { color: var(--ink-on-dark); }
.op .brand-logo { height: 32px; width: auto; display: block; }
.op .header-inner { flex-wrap: nowrap; }
.op-nav { margin-left: auto; }
.op-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.op-nav > ul > li > a, .op-dd > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  color: var(--ink-on-dark); font-weight: 600; font-size: .9375rem; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.op-nav > ul > li > a:hover, .op-dd > summary:hover, .op-dd[open] > summary { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.op-nav a:focus-visible, .op-dd > summary:focus-visible { outline: 2px solid var(--rim); outline-offset: 2px; }
.op-dd { position: relative; }
.op-dd > summary { list-style: none; }
.op-dd > summary::-webkit-details-marker { display: none; }
.op-dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .15s; }
.op-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.op-dd-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: #0b0f18; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.op-dd-panel a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-on-dark); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.op-dd-panel a:hover, .op-dd-panel a:focus-visible { background: rgba(46,149,255,.14); color: #fff; text-decoration: none; }
.op-dd-panel a[aria-current="true"] { color: var(--rim); font-weight: 700; }
.op-dd-contact a { flex-direction: column; align-items: flex-start; gap: 2px; }
.op-dd-k { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.op-dd-v { color: var(--ink-on-dark); }
.op-flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.op-lang-code { text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; }
.op-burger { display: none; }
@media (max-width: 760px) {
  .op .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .op .brand-logo { height: 26px; }
  .op-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
  .op-burger[hidden] { display: none; }
  .op-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink-on-dark); transition: transform .2s, opacity .2s; }
  .op-burger:hover, .op-burger[aria-expanded="true"] { background: rgba(255,255,255,.08); }
  .op-burger:focus-visible { outline: 2px solid var(--rim); outline-offset: 2px; }
  .op-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .op-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .op-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .op-nav { margin-left: 0; width: 100%; }
  .op-js .op-nav { display: none; }
  .op-js.is-open .op-nav { display: block; max-height: calc(100vh - 68px); overflow-y: auto; }
  .op-nav > ul { flex-direction: column; align-items: stretch; gap: 0; margin: 8px 0 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
  .op-nav > ul > li > a, .op-dd > summary { display: flex; width: 100%; min-height: 48px; padding: 0 4px; font-size: 1rem; border-radius: 8px; }
  .op-dd > summary::after { margin-left: auto; }
  .op-dd-panel { position: static; min-width: 0; margin: 0 0 8px; padding: 4px 0 4px 12px; background: transparent; border: 0;
    border-left: 2px solid rgba(46,149,255,.35); border-radius: 0; box-shadow: none; }
  .op-dd-panel a { padding: 8px 12px; white-space: normal; overflow-wrap: anywhere; }
  .op-dd-v { overflow-wrap: anywhere; }
}
.page-home { background: var(--space); }
.op .site-footer { background: var(--space); color: var(--muted-on-dark); border-top: 1px solid rgba(255,255,255,.08); }
.op .site-footer a { color: var(--ink-on-dark); }

/* Hero */
.op-hero { position: relative; overflow: hidden; background: var(--space); color: var(--ink-on-dark);
  padding: clamp(72px, 12vw, 148px) 0 clamp(150px, 20vw, 260px); text-align: center; }
.op-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.op-eyebrow { margin: 0 0 22px; font-size: .78rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--rim); }
.op-hero-logo { width: min(640px, 86vw); height: auto; margin: 0 0 26px; }
.op-title { margin: 0; max-width: 18ch; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; color: var(--ink-on-dark); font-family: var(--font); }
.op-sub { margin: 22px auto 0; max-width: 62ch; font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--muted-on-dark); }
.op-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.op-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .02em; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.op-btn:hover { text-decoration: none; transform: translateY(-1px); }
.op-btn:focus-visible { outline: 2px solid var(--rim); outline-offset: 3px; }
.op-btn-primary { background: var(--primary); color: #fff; }
.op-btn-primary:hover { background: #2e95ff; color: #fff; }
.op-btn-ghost { border: 1px solid rgba(242,245,248,.28); color: var(--ink-on-dark); }
.op-btn-ghost:hover { border-color: var(--ink-on-dark); color: var(--ink-on-dark); }

/* Planetary horizon: a huge circle whose top edge glows in brand blue */
.op-horizon { position: absolute; left: 50%; bottom: 0; width: 240vw; height: 240vw; max-width: 4200px; max-height: 4200px;
  transform: translate(-50%, calc(100% - clamp(120px, 16vw, 220px))); border-radius: 50%;
  background: radial-gradient(closest-side, #0b1730 0%, #070c18 70%, #05070d 100%);
  box-shadow: 0 -2px 0 0 var(--rim), 0 -18px 60px -10px rgba(46,149,255,.55), 0 -90px 160px -40px rgba(46,149,255,.25); }
.op-horizon-low { transform: translate(-50%, calc(100% - 70px)); }

/* Features */
.op-features { background: var(--space-2); color: var(--ink-on-dark); padding: clamp(64px, 9vw, 112px) 0; }
.op-h2 { margin: 0 0 40px; text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; color: inherit; font-family: var(--font); }
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.op-card { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px 24px; background: linear-gradient(180deg, rgba(46,149,255,.06), rgba(255,255,255,0)); }
.op-card h3 { margin: 14px 0 8px; font-size: 1.12rem; color: var(--ink-on-dark); }
.op-card p { margin: 0; color: var(--muted-on-dark); font-size: .98rem; }
.op-dot { font-size: .72rem; font-weight: 700; letter-spacing: .3em; color: var(--rim); }

/* Latest posts (light cards on a dark band) */
.op-blog { background: var(--space); color: var(--ink-on-dark); padding: clamp(56px, 8vw, 96px) 0; }
.op-blog .card { background: #0b0f19; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.op-blog .card-body { padding: 0 16px 16px; }
.op-blog .card-title a, .op-blog .card-cat { color: var(--ink-on-dark); }
.op-blog .card-excerpt, .op-blog .meta { color: var(--muted-on-dark); }
.op-blog .pager-link { color: var(--ink-on-dark); border-color: rgba(255,255,255,.2); }

/* Closing band */
.op-band { position: relative; overflow: hidden; background: var(--space); color: var(--ink-on-dark); text-align: center; padding: clamp(72px, 10vw, 120px) 0 clamp(120px, 14vw, 170px); }
.op-band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.op-band .op-h2 { margin-bottom: 8px; }
.op-band .op-sub { margin: 0 0 28px; }

@media (max-width: 600px) {
  .op-actions { width: 100%; }
  .op-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .op-btn { transition: none; } }
