/* OREVIM shared stylesheet */

:root{
  --bg:#0A0B0D;
  --bg-2:#101216;
  --line:#1B1E23;
  --line-2:#2A2E35;
  --text:#FAFAFA;
  --text-2:#C9CDD3;
  --muted:#878D96;
  --muted-2:#7A8089; /* 4.95:1 on --bg; kickers and notes are small text, so AA needs 4.5 */
  --accent:#7AA2F7;
  --attack:#FF6B6B;  /* 7.09:1 on --bg */
  --defend:#7AA2F7;  /* 7.82:1 on --bg; deliberately close to --attack so neither word dominates */
  --sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono:ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw:1180px;
  --gutter:28px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--muted);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
p{margin:0}
h1,h2,h3{margin:0;color:var(--text);font-weight:600;letter-spacing:-.028em;line-height:1.08}

:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}

/* keep anchor targets clear of the sticky header */
[id]{scroll-margin-top:100px}

/* ---------- ambient ---------- */
.ambient{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(122,162,247,.10), transparent 68%),
    radial-gradient(ellipse 50% 30% at 88% 4%, rgba(122,162,247,.05), transparent 70%);
}

/* ---------- type helpers ---------- */
.kicker{
  font-size:11px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted-2);
  margin:0 0 20px;
}
.lede{font-size:19px;line-height:1.7;color:var(--text-2);max-width:62ch}
.body{font-size:16.5px;line-height:1.72}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(10,11,13,.76);
  backdrop-filter:saturate(160%) blur(16px);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);
  height:72px;display:flex;align-items:center;gap:40px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:28px;height:28px;mix-blend-mode:screen}
.brand span{
  font-size:16px;font-weight:600;color:var(--text);
  letter-spacing:.26em;text-transform:uppercase;
}
.nav-links{display:flex;align-items:center;gap:32px;margin-left:auto}
.nav-links a{
  font-size:14px;color:var(--muted);
  transition:color .18s ease;
}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--text)}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-size:14.5px;font-weight:550;
  padding:11px 20px;border-radius:7px;
  border:1px solid var(--line-2);color:var(--text);
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.btn:hover{border-color:#3C424B;background:#14171C}
.btn:active{transform:translateY(1px)}
.btn-solid{background:var(--text);border-color:var(--text);color:#0A0B0D;font-weight:620}
.btn-solid:hover{background:#fff;border-color:#fff;color:#0A0B0D}
.btn .arrow{transition:transform .2s ease}
.btn:hover .arrow{transform:translateX(3px)}

.textlink{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14.5px;color:var(--text);
}
.textlink .arrow{color:var(--accent);transition:transform .2s ease}
.textlink:hover .arrow{transform:translateX(4px)}

/* ---------- hero ---------- */
.hero{position:relative;z-index:1;padding:132px 0 108px}
.hero h1{
  font-size:clamp(2.9rem,7.4vw,5.1rem);
  letter-spacing:-.042em;
  line-height:1.0;
  max-width:14ch;
}
.w-attack{color:var(--attack)}
.w-defend{color:var(--defend)}
.hero .lede{margin-top:30px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:40px}


/* ---------- sections ---------- */
/* No z-index here on purpose. A positioned element with an explicit z-index
   creates a stacking context, which would trap the expanded research viewer
   below the sticky header. position:relative alone still paints above the
   fixed .ambient layer, because that sits at z-index 0 earlier in the DOM. */
.section{position:relative;padding:108px 0;border-top:1px solid var(--line)}
/* Classes, not style attributes: the CSP sets style-src 'self', which blocks
   inline style attributes outright. */
.section-flush{border-top:none;padding-top:0}
.section-first{border-top:none;padding-top:96px}
.section-link{margin-top:40px}
.section-head{max-width:66ch}
.section-head h2{font-size:clamp(1.9rem,3.6vw,2.7rem)}
.section-head .lede{margin-top:22px}

/* ---------- statement block ---------- */
.statement{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:64px;align-items:start;
}
.statement h2{font-size:clamp(1.9rem,3.6vw,2.7rem)}
.statement .body{color:var(--muted)}
.statement .body + .body{margin-top:20px}

/* ---------- practice areas ---------- */
.practice{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:64px;row-gap:0;margin-top:58px;
}
.practice article{
  padding:34px 0 36px;
  border-top:1px solid var(--line);
  transition:border-color .2s ease;
}
.practice article:hover{border-top-color:var(--line-2)}
.practice h3{
  font-size:1.3rem;letter-spacing:-.018em;line-height:1.25;
  margin-bottom:14px;
}
.practice p{font-size:15.5px;line-height:1.7;max-width:46ch}

/* ---------- how we work ---------- */
.steps{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;margin-top:54px;background:var(--line);
  border:1px solid var(--line);border-radius:10px;overflow:hidden;
}
.steps div{background:var(--bg);padding:30px 26px}
.steps h3{
  font-size:15px;font-weight:600;letter-spacing:-.008em;
  color:var(--text);margin-bottom:10px;
}
.steps p{font-size:14.5px;line-height:1.62;color:var(--muted)}

.rules{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:56px;margin-top:64px;padding-top:44px;border-top:1px solid var(--line);
}
.rules h3{font-size:1.05rem;margin-bottom:12px}
.rules p{font-size:15.5px;line-height:1.7}

/* ---------- closing cta ---------- */
.cta{
  position:relative;z-index:1;
  padding:116px 0 120px;border-top:1px solid var(--line);
  background:radial-gradient(ellipse 60% 100% at 50% 100%, rgba(122,162,247,.07), transparent 72%);
}
.cta-inner{max-width:720px}
.cta h2{font-size:clamp(2.1rem,4.4vw,3.1rem);letter-spacing:-.035em}
.cta .lede{margin-top:22px}
.cta-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:38px}
.cta-mail{font-size:16px;color:var(--muted);transition:color .18s ease}
.cta-mail:hover{color:var(--text)}

/* ---------- disciplines page ---------- */
.page-head{position:relative;z-index:1;padding:110px 0 76px}
.page-head h1{font-size:clamp(2.4rem,5.4vw,3.7rem);letter-spacing:-.038em;max-width:18ch}
.page-head .lede{margin-top:26px}

.disc-group{
  display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);
  gap:56px;padding:46px 0;border-top:1px solid var(--line);
}
.disc-group h2{font-size:1.25rem;letter-spacing:-.015em}
.disc-group .note{margin-top:12px;font-size:14.5px;line-height:1.6;color:var(--muted-2);max-width:30ch}
.disc-list{
  margin:0;padding:0;list-style:none;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:40px;row-gap:2px;
}
.disc-list li{
  font-size:15.5px;color:var(--text-2);
  padding:9px 0;border-bottom:1px solid var(--line);
}

/* ---------- research library ---------- */
.doc{padding:72px 0;border-top:1px solid var(--line)}
.doc:first-of-type{border-top:none;padding-top:0}
.doc-head{max-width:70ch;margin-bottom:34px}
/* Document titles carry the page: there is no separate page heading above them. */
.doc-title{
  font-size:clamp(2.2rem,5vw,3.4rem);
  letter-spacing:-.038em;line-height:1.06;
  color:var(--text);font-weight:600;margin:0;
}
.doc-byline{
  margin-top:16px;font-size:15.5px;color:var(--text-2);
}
.doc-meta{
  margin-top:6px;font-size:13px;letter-spacing:.02em;color:var(--muted-2);
}
.doc-summary{margin-top:20px;font-size:16px;line-height:1.72}
.doc-credit{
  margin-top:20px;padding-left:14px;
  border-left:2px solid var(--line-2);
  font-size:15px;line-height:1.7;color:var(--text-2);
}
.doc-links{margin-top:14px}
.doc-links a{color:var(--text-2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2);transition:color .18s ease,text-decoration-color .18s ease}
.doc-links a:hover{color:var(--text);text-decoration-color:var(--text)}

.doc-viewer{
  position:relative;
  height:min(78vh,760px);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#15181D;
}
.doc-viewer iframe{display:block;width:100%;height:100%;border:0}

.doc-expand,.doc-close{
  position:absolute;top:12px;right:12px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:550;
  padding:8px 14px;border-radius:7px;
  border:1px solid var(--line-2);
  background:rgba(10,11,13,.86);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:var(--text);
  transition:background .18s ease,border-color .18s ease;
}
.doc-expand:hover,.doc-close:hover{background:#171B21;border-color:#3C424B}
.doc-close{display:none}

/* Expanded, without leaving the page. The same iframe is restyled rather than
   duplicated, so the document is never re-fetched. */
.doc-viewer:target{
  position:fixed;inset:14px;height:auto;z-index:200;
  border-color:var(--line-2);
  box-shadow:0 40px 110px rgba(0,0,0,.75);
}
.doc-viewer:target .doc-expand{display:none}
.doc-viewer:target .doc-close{display:inline-flex}

.doc-fallback{
  padding:22px;font-size:14.5px;line-height:1.7;color:var(--muted);
}

/* Long-form article rendered in the same frame a PDF would occupy, so both
   kinds of document look and expand identically. */
.doc-reader{
  height:100%;overflow-y:auto;overscroll-behavior:contain;
  padding:40px clamp(20px,5%,56px) 56px;
}
.doc-reader > *{max-width:72ch}
.doc-reader h3{
  font-size:1.18rem;line-height:1.3;letter-spacing:-.015em;
  margin:40px 0 14px;
}
.doc-reader h3:first-child{margin-top:0}
.doc-reader p{font-size:15.5px;line-height:1.75;margin:0 0 16px}
.doc-reader strong{color:var(--text-2);font-weight:600}
.doc-reader ol,.doc-reader ul{margin:0 0 18px;padding-left:22px}
.doc-reader li{font-size:15.5px;line-height:1.7;margin-bottom:10px}
.doc-reader code{
  font-family:var(--mono);font-size:13px;
  background:#1A1F26;border:1px solid var(--line);
  border-radius:4px;padding:1px 5px;color:var(--text-2);
}
.doc-reader pre{
  max-width:none;background:#0D1117;border:1px solid var(--line);
  border-radius:8px;padding:16px 18px;overflow-x:auto;margin:0 0 20px;
}
.doc-reader pre code{background:none;border:0;padding:0;font-size:12.5px;line-height:1.6}
.doc-reader table{
  border-collapse:collapse;width:100%;max-width:none;margin:0 0 20px;font-size:14px;
}
.doc-reader th,.doc-reader td{
  text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);
  vertical-align:top;
}
.doc-reader th{
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted-2);font-weight:600;
}
.doc-reader td{color:var(--text-2)}
.doc-reader td code{font-size:12.5px}
.doc-reader .note{
  font-size:14px;line-height:1.7;color:var(--muted-2);
  border-left:2px solid var(--line-2);padding-left:16px;margin:0 0 20px;
}

/* ---------- footer ---------- */
.site-footer{
  position:relative;z-index:1;
  border-top:1px solid var(--line);padding:44px 0 56px;
}
.foot{display:flex;flex-wrap:wrap;gap:22px;align-items:center;justify-content:space-between}
.foot-brand{display:flex;align-items:center;gap:11px}
.foot-brand img{width:20px;height:20px;mix-blend-mode:screen;opacity:.9}
.foot-brand span{font-size:12.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--muted)}
.foot-legal{font-size:13px;color:var(--muted-2);line-height:1.7}
.foot-links{display:flex;gap:26px;font-size:13.5px}
.foot-links a{color:var(--muted);transition:color .18s ease}
.foot-links a:hover{color:var(--text)}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .statement{grid-template-columns:1fr;gap:28px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .disc-group{grid-template-columns:1fr;gap:26px}
}
@media (max-width:760px){
  :root{--gutter:20px}
  body{font-size:16px}
  /* two rows: brand, then the links across their own line */
  .nav{height:auto;flex-direction:column;align-items:stretch;gap:0;padding-top:16px}
  .nav-links{
    margin-left:0;gap:0;justify-content:space-between;
    margin-top:14px;padding:12px 0;border-top:1px solid var(--line);
  }
  .nav-links a{font-size:13.5px;white-space:nowrap}
  [id]{scroll-margin-top:136px}
  .hero{padding:82px 0 72px}
  .hero h1{max-width:none}
  .section,.cta{padding:72px 0}
  .page-head{padding:72px 0 52px}
  .practice{grid-template-columns:1fr;column-gap:0;margin-top:40px}
  .rules{grid-template-columns:1fr;gap:34px}
  .disc-list{grid-template-columns:1fr}
  .doc{padding:36px 0}
  .doc-viewer{height:min(70vh,560px)}
  .doc-viewer:target{inset:8px}
  .foot{flex-direction:column;align-items:flex-start;gap:18px}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr}
  .nav-links{gap:16px}
  .brand span{letter-spacing:.2em;font-size:15px}
}
