/* Novora Holdings, internal draft site.
 *
 * Register: one viewport per page, small type held to the edges, a lot of nothing in between.
 * System: Novora's own. Black is the brand, Inter light at display sizes, one blue, sentence-case labels.
 * Tokens mirror novora-site/components/tokens.js (D zone, A accent) so this ports without retuning.
 */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ease: cubic-bezier(.33, 0, .2, 1);
  --pad: clamp(18px, 2vw, 30px);          /* edge tension: type sits close to the frame */
  --gut: clamp(24px, 4vw, 72px);
  --head-h: 92px;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* black ground: the brand (tokens.js D) */
  --bg: #0b0b0b;
  --ink: #ffffff;
  --text: #e8e8e8;
  --body: #bdbdbd;
  --faint: #8a8a8a;
  --quiet: #707070;
  --line: #262626;
  --card: #131313;
  --card-hi: #1a1a1a;
  --accent: #5f83ff;                      /* blue-bright: the only blue that passes AA on black */
  --mark-hi: #f2f2f2;                     /* docked: the logo */
  --mark-lo: #191919;
  --mark-home-hi: #5c5c5c;                /* home, solid: lit face and shadow. Tone "faded" */
  --mark-home-lo: #131313;
  --dot-near: #a4a4a4;                    /* home, dots: nearest and farthest dot. Dots cover far less area */
  --dot-far: #2c2c2c;                     /* than faces, so they run brighter to carry the same weight */
  --logo-filter: brightness(0) invert(1);
  --w-body: 370;                          /* light text on black gains weight optically; set it lighter */
  color-scheme: dark;
}

:root[data-ground="paper"] {
  --bg: #f5f4f1;
  --ink: #0a0a0a;
  --text: #161616;
  --body: #4a4a4f;
  --faint: #74747a;
  --quiet: #9b9b9f;
  --line: #dddbd6;
  --card: #eceae6;
  --card-hi: #e4e2dd;
  --accent: #2c5bff;
  --mark-hi: #0b0b0b;
  --mark-lo: #bdbbb6;
  --mark-home-hi: #c3c1bc;
  --mark-home-lo: #e6e4df;
  --dot-near: #6f6d68;
  --dot-far: #d3d1cc;
  --logo-filter: brightness(0);
  --w-body: 400;
  color-scheme: light;
}

/* home mark tone: how far the object sits back into the ground */
:root[data-tone="fainter"] { --mark-home-hi: #3a3a3a; --mark-home-lo: #101010; --dot-near: #727272; --dot-far: #202020; }
:root[data-tone="ghost"]   { --mark-home-hi: #232323; --mark-home-lo: #0e0e0e; --dot-near: #4a4a4a; --dot-far: #181818; }
:root[data-ground="paper"][data-tone="fainter"] { --mark-home-hi: #d5d3ce; --mark-home-lo: #ebe9e4; --dot-near: #9b9993; --dot-far: #dcdad5; }
:root[data-ground="paper"][data-tone="ghost"]   { --mark-home-hi: #e2e0db; --mark-home-lo: #efede8; --dot-near: #bbb9b3; --dot-far: #e5e3de; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: var(--w-body);
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 1px; }
main:focus { outline: none; }

.skip { position: fixed; left: var(--pad); top: -60px; z-index: 50; font-size: 12px; padding: 8px 12px; background: var(--ink); color: var(--bg); transition: top .2s var(--ease); }
.skip:focus { top: 10px; }

/* ---- labels: the small voice. Sentence case is the house rule. ---------------------------------- */
.lb { display: inline-block; font-size: 12px; line-height: 1.35; letter-spacing: .012em; font-weight: 400; color: var(--text); }
.lb.dim, .dim { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
:root[data-labels="upper"] .lb { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ---- header ------------------------------------------------------------------------------------ */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 24px var(--pad) 30px;
  background: linear-gradient(var(--bg) 58%, transparent);
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd-id { display: inline-flex; gap: 13px; align-items: flex-start; justify-self: start; }
.hd-slot { width: 22px; height: 22px; margin-top: 5px; flex: none; }
.hd-name, .hd-mid { display: grid; }
.hd-name { transition: transform .9s var(--ease); }
.is-home .hd-name { transform: translateX(-35px); transition-delay: .32s; }   /* the mark has left its slot: close the gap, once it is clear */
.still .hd-name { transition: none; }
.hd-mid { text-align: center; justify-items: center; }
.hd-nav { justify-self: end; display: grid; justify-items: end; }
.hd-links { display: flex; gap: clamp(16px, 2vw, 30px); }
.hd-links a { color: var(--faint); transition: color .3s var(--ease); }
.hd-links a:hover { color: var(--ink); }
.hd-links a[aria-current="page"] { color: var(--accent); }
.hd-mail { transition: color .3s var(--ease); }
.hd-mail:hover { color: var(--ink); }
.hd-menu { display: none; justify-self: end; grid-column: 3; padding: 0 0 12px 12px; }

/* ---- the live mark ----------------------------------------------------------------------------- */
.mark-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; overflow: visible; }
.mark-layer.dots { z-index: 29; }

/* ---- page frame -------------------------------------------------------------------------------- */
main { display: block; transition: opacity .22s var(--ease); }
main.leaving { opacity: 0; }

.rise { opacity: 0; transform: translateY(10px); }
.in .rise {
  opacity: 1; transform: none;
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms + 140ms);
}

.still .rise, .still .in .rise { opacity: 1; transform: none; transition: none; }
.still main { transition: none; }

/* a plate: one viewport, content held to the bottom edge */
.plate {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto auto;
  padding: var(--head-h) var(--pad) 0;
}
.plate-body {
  grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px var(--gut); align-items: end;
  padding: 40px 0 clamp(30px, 6vh, 64px);
}
.plate-main { max-width: 600px; }
.plate-side { justify-self: end; width: 100%; max-width: 640px; }

.foot {
  grid-row: 3;
  display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline;
  padding: 0 0 22px 0;
}
.foot .lb { color: var(--quiet); }
.foot a.lb { transition: color .3s var(--ease); }
.foot a.lb:hover { color: var(--ink); }

/* ---- type -------------------------------------------------------------------------------------- */
.display {
  font-size: clamp(31px, 3.55vw, 56px); font-weight: 300; letter-spacing: -.032em; line-height: 1.05;
  color: var(--ink); text-wrap: balance;
}
.display-sm {
  font-size: clamp(25px, 2.5vw, 38px); font-weight: 300; letter-spacing: -.028em; line-height: 1.12;
  color: var(--ink); text-wrap: balance;
}
.grey { color: var(--quiet); }
.nb { white-space: nowrap; }
.home .plate-main { max-width: 1040px; }
.home .sub { max-width: 58ch; }
.sub { margin-top: 22px; max-width: 47ch; color: var(--body); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.p { max-width: 54ch; color: var(--text); text-wrap: pretty; }
.p + .p { margin-top: 1.05em; }
.p.soft { color: var(--body); }
.eyebrow { display: block; margin-bottom: 18px; }

/* text links: quiet underline that firms up on hover */
.tl {
  font-size: 12.5px; letter-spacing: .012em; color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--text) 32%, transparent);
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.tl:hover { text-decoration-color: currentColor; color: var(--ink); }
.tl-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }

/* ---- hairline rows: verbs, career, contact ------------------------------------------------------ */
.rowsx { border-bottom: 1px solid var(--line); }
.rowsx > div, .rowsx > a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rowsx dt, .rowsx .k { font-size: 12.5px; color: var(--faint); letter-spacing: .012em; }
.rowsx dd, .rowsx .v { font-size: 14px; color: var(--text); line-height: 1.45; }
.rowsx.verbs dt { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.rowsx.verbs dd { color: var(--body); }
.rowsx > a .v { transition: color .3s var(--ease); }
.rowsx > a:hover .v { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---- founder ----------------------------------------------------------------------------------- */
/* a modest portrait, centred in the right half of the page and centred against the text block beside it */
.founder-photo { justify-self: center; align-self: center; width: clamp(260px, 29vw, 480px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--card); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }   /* connor_005: face is centred in the frame */
.founder .role { margin-top: 10px; }
.founder .lead { margin-top: 30px; font-size: 19px; line-height: 1.4; letter-spacing: -.012em; color: var(--quiet); max-width: 30ch; font-weight: 400; }
.founder .lead b { font-weight: 400; color: var(--ink); }
.founder .p { margin-top: 18px; color: var(--body); font-size: 14.5px; }
.founder .rowsx { margin-top: 26px; }
.founder .rowsx > div { padding: 10px 0; }

/* ---- advisory: four pillars, one open at a time -------------------------------------------------- */
.acc { border-bottom: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 14px; align-items: baseline; padding: 16px 0; }
.acc-btn .ix { font-size: 12px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.acc-btn .nm { font-size: 16.5px; letter-spacing: -.012em; color: var(--text); transition: color .3s var(--ease); }
.acc-btn:hover .nm, .acc-item.open .nm { color: var(--ink); }
.acc-btn .pm { position: relative; width: 11px; height: 11px; align-self: center; justify-self: end; }
.acc-btn .pm::before, .acc-btn .pm::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: var(--faint); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.acc-btn .pm::after { transform: rotate(90deg); }
.acc-item.open .pm::after { transform: rotate(0deg); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; padding-left: 44px; }
.acc-inner > div { padding: 0 0 22px; opacity: 0; transition: opacity .45s var(--ease); }
.acc-item.open .acc-inner > div { opacity: 1; transition-delay: .12s; }
.acc-line { font-size: 14px; color: var(--body); max-width: 58ch; }
.sqlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 28px; margin-top: 14px; }
.sqlist li { position: relative; padding-left: 15px; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.sqlist li::before { content: ""; position: absolute; left: 0; top: .52em; width: 5px; height: 5px; background: var(--quiet); }
.sqlist.one { grid-template-columns: 1fr; }
.lede { margin-top: 26px; }
.fine { margin-top: 26px; font-size: 11.5px; line-height: 1.6; color: var(--quiet); max-width: 62ch; }

/* ---- numbered list: research ---------------------------------------------------------------------- */
.nlist { border-bottom: 1px solid var(--line); }
.nlist a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.nlist .ix { font-size: 12px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.nlist .tt { font-size: 14.5px; color: var(--text); letter-spacing: -.006em; transition: color .3s var(--ease); }
.nlist .sb { display: block; margin-top: 2px; font-size: 12.5px; color: var(--quiet); line-height: 1.45; transition: color .3s var(--ease); }
.nlist .dt { font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlist .row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.nlist .row .dt { font-size: 14.5px; color: var(--text); }
.nlist .row .dt.sc { color: var(--ink); }
.nlist .row.total .tt, .nlist .row.total .dt { color: var(--ink); }
.nlist .tk { margin-left: 8px; font-size: 11.5px; letter-spacing: .04em; color: var(--quiet); }
.nlist a:hover .tt { color: var(--ink); }
.nlist a:hover .sb { color: var(--body); }

/* ---- a second block under a plate (IR Score rankings): same two columns, ruled off from the plate above */
.band { padding: clamp(56px, 11vh, 120px) var(--pad) 0; border-top: 1px solid var(--line); }
.band .plate-body { padding-top: 0; }

/* ---- partners: the wall --------------------------------------------------------------------------- */
.page { padding: calc(var(--head-h) + clamp(34px, 8vh, 84px)) var(--pad) 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page .foot { margin-top: auto; padding-top: 56px; }
.wall-head { margin-bottom: clamp(28px, 5vh, 52px); }
/* thirteen names: seven then six reads as one block, where auto-fill left a lone tile on a third row */
.wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cell { min-width: 0; }
.tile {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  background: var(--card); border-radius: 2px; overflow: hidden;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.tile .lg { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 0 12%; }
.tile .lg img { width: var(--w, 58%); max-height: 46px; object-fit: contain; filter: var(--logo-filter); opacity: .5; transition: opacity .35s var(--ease); }
.tile .lg .wd { font-size: 18px; letter-spacing: -.02em; font-weight: 500; color: var(--ink); opacity: .5; white-space: nowrap; transition: opacity .35s var(--ease); }
.tile .lg.lock { gap: 8px; padding: 0 8%; }
.tile .lg.lock img { width: auto; height: 22px; max-height: none; }
.tile .lg.lock .wd { font-size: 13.5px; letter-spacing: -.012em; }
.cell:hover .tile, .cell:focus-within .tile { box-shadow: inset 0 0 0 1px var(--quiet); background: var(--card-hi); }
.cell:hover .lg img, .cell:hover .lg .wd, .cell:focus-within .lg img, .cell:focus-within .lg .wd { opacity: 1; }
.cap { display: grid; gap: 1px; padding: 10px 1px 18px; }
.cap .nm { font-size: 13px; color: var(--text); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gut); margin-top: clamp(64px, 12vh, 130px); }
.quote blockquote { font-size: 16px; line-height: 1.55; letter-spacing: -.008em; color: var(--text); text-wrap: pretty; }
.quote figcaption { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 22px; }
.quote figcaption img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote .who { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.quote .who > span { display: block; color: var(--faint); font-size: 12px; }

/* ---- article: letter, case studies, legal --------------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; padding: calc(var(--head-h) + clamp(44px, 10vh, 110px)) var(--pad) 0; }
.article-wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.article-wrap .foot { margin-top: auto; padding: 72px var(--pad) 22px var(--pad); }
.article .meta { display: flex; gap: 22px; margin-bottom: 20px; }
.article h1 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 300; letter-spacing: -.032em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.article .standfirst { margin-top: 26px; font-size: 21px; line-height: 1.4; letter-spacing: -.014em; color: var(--ink); font-weight: 350; text-wrap: pretty; }
.article .standfirst .grey { color: var(--faint); }
.article h2 { margin: 2.7em 0 .75em; font-size: 16.5px; font-weight: 500; letter-spacing: -.008em; color: var(--ink); }
.article .fine { margin-top: 0; max-width: none; }
.article .fine + .fine { margin-top: 10px; }
.article .notes { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); }

.legal-body { margin-top: clamp(34px, 6vh, 60px); }
.legal-body section + section { margin-top: 2.6em; }
.legal-body h2 { margin: 0 0 .7em; font-size: 15px; font-weight: 500; letter-spacing: -.006em; color: var(--ink); }
.legal-body p { font-size: 14px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.legal-body p + p { margin-top: 1em; }
.legal-body p.caps { font-size: 12px; line-height: 1.75; letter-spacing: .02em; color: var(--faint); }

/* ---- mobile sheet -------------------------------------------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 15; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--head-h) var(--pad) 26px; }
.sheet[hidden] { display: none; }
.sheet-links { display: grid; gap: 6px; padding-bottom: 34px; }
.sheet-links a { font-size: 34px; font-weight: 300; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.sheet-links a[aria-current="page"] { color: var(--accent); }
.sheet-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- responsive ---------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  :root { --head-h: 84px; }
  .hd { grid-template-columns: 1fr auto; }
  .hd-mid, .hd-nav { display: none; }
  .hd-menu { display: block; grid-column: 2; }
  .plate-body { grid-template-columns: minmax(0, 1fr); }
  .plate-side { justify-self: start; }
  .founder .plate-body { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { grid-row: 1; justify-self: start; width: min(58%, 280px); margin-top: 12px; }
  }
@media (max-width: 560px) {
  .rowsx > div, .rowsx > a { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .sqlist { grid-template-columns: 1fr; }
  .acc-inner { padding-left: 0; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nlist a { grid-template-columns: 22px minmax(0, 1fr); }
  .nlist .row { grid-template-columns: 22px minmax(0, 1fr) 40px; }
  .nlist .dt { grid-column: 2; text-align: left; }
  .article .standfirst { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .rise { transform: none; }
}
