:root {
    --bg: #02040a;
    --bg-2: #050912;
    --surface: rgba(12, 18, 34, .55);
    --surface-solid: #080d1a;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef1f7;
    --muted: #8d95a8;
    --dim: #5f6880;
    --white: #ffffff;
    --blue: #3d6bff;
    --blue-soft: rgba(61, 107, 255, .18);
    --gold-hi: #ffd995;
    --gold: #f2b35a;
    --gold-lo: #c98530;
    --sans: "Geist", system-ui, -apple-system, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --pad: clamp(20px, 5vw, 72px);
    --max: 1320px;
    --radius: 16px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
  .gold-text {
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-lo) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  /* fine film grain over everything for a richer, less flat dark */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -.01em;
    padding: 16px 28px; border-radius: 10px; border: 0; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn-primary { background: var(--white); color: #05070d; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 12px 40px -12px rgba(120, 150, 255, .45); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 18px 50px -12px rgba(120, 150, 255, .7); }
  .btn .arr { transition: transform .2s ease; }
  .btn:hover .arr { transform: translateX(4px); }
  .link-under { font-weight: 500; font-size: 16px; color: var(--text); padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .2s, color .2s; }
  .link-under:hover { border-color: var(--gold); color: var(--white); }
  .btn-ghost {
    border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.03);
    font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 10px;
    transition: background .2s ease, color .2s ease, border-color .2s;
  }
  .btn-ghost:hover { background: var(--white); color: #05070d; border-color: var(--white); }

  /* ---------- Header ---------- */
  .site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; border-bottom: 1px solid var(--line); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
  .wordmark { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
  .nav { display: flex; align-items: center; gap: 38px; }
  .nav a:not(.btn-ghost) { font-size: 15px; color: #c9cfdc; transition: color .2s; }
  .nav a:not(.btn-ghost):hover { color: var(--white); }

  /* ---------- Hero ---------- */
  .hero {
    position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
    background: var(--bg); display: flex; flex-direction: column;
  }
  #beams { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(14px); opacity: .95; }
  .hero-shade { /* deepens the edges and floor so the beams read as light in a dark room */
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(130% 90% at 70% 10%, rgba(2, 4, 10, 0) 40%, rgba(2, 4, 10, .5) 85%),
      linear-gradient(180deg, rgba(2, 4, 10, .5) 0%, rgba(2, 4, 10, 0) 16%, rgba(2, 4, 10, 0) 78%, var(--bg) 100%);
  }
  .hero-art { position: absolute; top: 0; bottom: 0; left: 0; width: 48%; z-index: 2; pointer-events: none; }
  .hero-art .halo { /* soft teal light behind the portrait, fades out fully inside its own box */
    position: absolute; left: 50%; top: 52%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(40, 190, 200, .20), rgba(61, 107, 255, .08) 55%, rgba(61, 107, 255, 0));
  }
  .figure {
    position: absolute; top: calc(84px + 3vh); left: 46%; height: 118%; aspect-ratio: 885 / 2000;
    transform: translate3d(calc(-50% + var(--px, 0) * 8px), calc(var(--py, 0) * 5px), 0);
    transition: transform .25s ease-out;
  }
  .figure img {
    position: relative; z-index: 1; width: 100%; height: 100%;
    filter:
      brightness(.95) contrast(1.06)
      drop-shadow(34px 30px 44px rgba(0, 0, 0, .7));
  }
  .figure .light { /* teal key from the left, blue rim from the right, clipped to the person */
    position: absolute; inset: 0; z-index: 2; mix-blend-mode: soft-light;
    background: linear-gradient(100deg, rgba(60, 200, 210, .5) 0%, rgba(60, 200, 210, .08) 32%, rgba(60, 200, 210, 0) 48%, rgba(70, 110, 255, 0) 62%, rgba(70, 110, 255, .55) 100%);
    -webkit-mask: url(/images/joshua-cutout.webp) center / 100% 100% no-repeat; mask: url(/images/joshua-cutout.webp) center / 100% 100% no-repeat;
  }
  .hero-art .fade { display: none; }
  .hero-fade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(2, 4, 10, 0) 72%, rgba(2, 4, 10, .85) 90%, var(--bg) 100%); }

  .hero-body { position: relative; z-index: 5; flex: 1; display: flex; align-items: center; padding-top: 84px; }
  .hero-body .wrap { width: 100%; display: grid; grid-template-columns: 40% 60%; }
  .hero-copy { grid-column: 2; padding: clamp(10px, 3vh, 48px) 0; }
  .hero h1 {
    font-weight: 700; font-size: clamp(34px, min(5.8vw, 10.4vh), 104px); line-height: .96;
    letter-spacing: -.055em; margin: 0 0 clamp(14px, 3vh, 32px); color: var(--white);
  }
  .hero h1 .gold-text { padding-right: .06em; white-space: nowrap; }
  .hero .lede { font-size: clamp(15px, min(1.5vw, 2.4vh), 22px); line-height: 1.5; color: #b8bfce; max-width: 600px; margin: 0 0 clamp(16px, 4vh, 44px); font-weight: 400; }
  .hero-ctas { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
  .hero-ctas .btn { padding: clamp(12px, 1.8vh, 16px) 28px; font-size: clamp(15px, 1.9vh, 17px); }

  .proof-bar { position: relative; z-index: 5; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 9, 18, 0), rgba(5, 9, 18, .6)); }
  .proof-bar .wrap { display: grid; grid-template-columns: 40% 60%; }
  .proof-inner { grid-column: 2; display: flex; align-items: center; gap: 20px; padding: clamp(10px, 2.4vh, 26px) 0; }
  .proof-inner .icon { color: #5fd4dc; width: clamp(24px, 3.2vh, 30px); height: clamp(24px, 3.2vh, 30px); flex: none; }
  .proof-inner .sep { width: 1px; height: clamp(24px, 3.6vh, 36px); background: var(--line-2); flex: none; }
  .proof-inner .num { font-size: clamp(22px, 3vh, 28px); font-weight: 700; letter-spacing: -.03em; color: var(--white); }
  .proof-inner .lbl { font-size: clamp(14px, 1.9vh, 17px); color: #c3c9d6; margin-left: 10px; }

  /* ---------- Sections ---------- */
  section { position: relative; }
  .sec { padding: clamp(84px, 11vw, 150px) 0; }
  .sec.alt { background: var(--bg-2); }
  .sec.glow-top::before { /* a soft blue bloom at the top of the section */
    content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 100%); height: 420px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, var(--blue-soft), rgba(61, 107, 255, 0));
  }
  .sec-head { position: relative; max-width: 860px; margin-bottom: clamp(44px, 6vw, 76px); }
  .sec h2 { font-weight: 700; font-size: clamp(36px, 4.6vw, 66px); line-height: 1; letter-spacing: -.05em; margin: 0 0 22px; color: var(--white); }
  .sec .intro { font-size: 19px; color: #aab2c2; max-width: 640px; margin: 0; }
  .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }

  /* Glass card + glowing border (adapted from the 21st.dev Glowing Effect) */
  .gcard {
    position: relative; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); backdrop-filter: blur(6px);
  }
  .gcard .ge {
    --start: 0; --active: 0; --spread: 55;
    position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from calc((var(--start) - var(--spread)) * 1deg) at 50% 50%,
      rgba(0,0,0,0) 0deg, var(--gold) calc(var(--spread) * .7deg), #7d9bff calc(var(--spread) * 1.3deg), rgba(0,0,0,0) calc(var(--spread) * 2deg));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: var(--active); transition: opacity .35s ease;
  }
  .gcard .ge.soft { filter: blur(14px); opacity: calc(var(--active) * .8); padding: 4px; }

  /* Companies */
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { padding: 34px 32px 30px; display: flex; flex-direction: column; min-height: 380px; transition: transform .3s ease, background .3s; }
  .card:hover { transform: translateY(-4px); background: rgba(16, 24, 44, .65); }
  .card .mono { margin-bottom: 56px; }
  .card h3 { font-size: 28px; font-weight: 650; letter-spacing: -.035em; margin: 0 0 10px; color: var(--white); }
  .card p { color: #a3abbc; margin: 0 0 26px; font-size: 16px; }
  .card .offer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: #d5dae4; }
  .card .offer .mono { display: block; margin: 0 0 6px; }
  .card .go { margin-top: 20px; font-weight: 500; color: var(--white); display: inline-flex; gap: .5em; font-size: 15px; }
  .card .go span { transition: transform .2s; color: var(--gold); }
  .card:hover .go span { transform: translateX(4px); }

  /* Receipts */
  .receipts-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
  .big-stat { display: flex; align-items: baseline; gap: 18px; margin: 36px 0 8px; }
  .big-stat .n { font-size: clamp(80px, 10vw, 150px); font-weight: 700; letter-spacing: -.07em; line-height: .9; }
  .big-stat .u { font-size: 17px; color: #aab2c2; max-width: 220px; line-height: 1.4; }
  .big-stat .u b { color: var(--white); font-weight: 600; }
  .rows { margin-top: 36px; border-top: 1px solid var(--line); }
  .row { display: grid; grid-template-columns: 190px 1fr 150px; gap: 20px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .row .kw { color: #e2e6ee; white-space: nowrap; }
  .row .bar { height: 5px; background: rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden; }
  .row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #5a7cff, var(--gold)); border-radius: 6px; width: 0; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
  .row .val { color: var(--muted); font-size: 14px; text-align: right; }
  .row .val b { color: var(--white); font-weight: 600; }
  .method { margin-top: 24px; font-size: 14px; color: var(--dim); line-height: 1.6; max-width: 620px; }
  .grid-card { aspect-ratio: 1; padding: 9%; display: grid; grid-template-columns: repeat(7, 1fr); place-items: center; }
  .grid-card::before { content: ""; position: absolute; inset: calc(9% + (82% / 14)); pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 6) calc(100% / 6); }
  .grid-card::after { content: ""; position: absolute; inset: 20%; pointer-events: none; background: radial-gradient(closest-side, rgba(242, 179, 90, .14), rgba(242, 179, 90, 0)); }
  .pt { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 179, 90, .1), 0 0 16px rgba(255, 210, 140, .45); transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); position: relative; z-index: 1; }
  .pt.center { background: var(--white); box-shadow: 0 0 0 7px rgba(255, 255, 255, .12), 0 0 22px rgba(255, 255, 255, .6); }
  .grid-cap { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-size: 14px; color: var(--muted); }
  .in .pt { transform: scale(1); }

  /* Story */
  .story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; }
  .story-photo { position: relative; }
  .story-photo::before { content: ""; position: absolute; inset: 8% -8% -8% 8%; background: radial-gradient(closest-side, rgba(61, 107, 255, .3), rgba(61, 107, 255, 0)); filter: blur(20px); }
  .story-photo img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line-2); }
  .story p { font-size: 18px; color: #aab2c2; margin: 0 0 18px; max-width: 620px; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
  .facts .gcard { padding: 20px 20px 18px; }
  .facts .f-n { font-size: 34px; font-weight: 700; letter-spacing: -.05em; color: var(--white); line-height: 1; }
  .facts .f-n em { font-style: normal; color: var(--gold); }
  .facts .mono { margin-top: 10px; display: block; line-height: 1.4; }

  /* Principles */
  .p-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .p-item { padding: 30px 30px 32px; }
  .p-item .mono { margin-bottom: 40px; display: block; }
  .p-item h3 { font-size: 24px; font-weight: 650; letter-spacing: -.035em; margin: 0 0 10px; color: var(--white); }
  .p-item p { color: #a3abbc; margin: 0; font-size: 16px; }

  /* Press */
  .press { text-align: center; overflow: hidden; }
  .press blockquote { position: relative; margin: 0 auto; max-width: 1000px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.045em; color: var(--white); font-weight: 600; }
  .press blockquote .q { color: var(--gold); }
  .press cite { display: block; margin-top: 30px; font-style: normal; font-size: 15px; color: var(--muted); }
  .press cite a { color: var(--white); border-bottom: 1px solid var(--line-2); }

  /* Contact */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; position: relative; }
  form.gcard { padding: 32px; display: grid; gap: 18px; }
  label { display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
  input, select, textarea {
    font: inherit; font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--white);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px;
    transition: border-color .2s, background .2s, box-shadow .2s;
  }
  select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
  select option { color: #05070d; }
  textarea { min-height: 130px; resize: vertical; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(125, 155, 255, .6); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 4px rgba(61, 107, 255, .15); }
  .form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 0; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Footer */
  footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: 14px; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  footer .wordmark { font-size: 15px; }
  .socials { display: flex; gap: 26px; color: var(--muted); }
  .socials a:hover { color: var(--white); }

  /* Reveal */
  /* Hidden only once site.js is known to be running (html.js), so content never stays invisible */
  .reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease; }
  html.js .reveal:not(.in) { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  .d1 { transition-delay: .08s; } .d2 { transition-delay: .18s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .42s; }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    .pt { transform: scale(1); transition: none; }
    .row .bar i { transition: none; }
    html { scroll-behavior: auto; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1080px) {
    .nav { gap: 24px; }
    .cards, .p-list { grid-template-columns: 1fr; }
    .card { min-height: 0; }
    .card .mono { margin-bottom: 28px; }
    .p-item .mono { margin-bottom: 20px; }
    .receipts-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
    .grid-card { max-width: 520px; margin-bottom: 56px; }
    .story-photo { max-width: 520px; }
  }
  @media (max-width: 860px) {
    .nav a:not(.btn-ghost) { display: none; }
    .wordmark { font-size: 14px; letter-spacing: .16em; }
    .site-header .wrap { height: 72px; }
    .hero { min-height: 540px; }
    .hero-art { width: 100%; overflow: hidden; }
    .figure { top: 64px; left: 50%; height: 90%; }
    .hero-fade { display: none; }
    .hero-art .fade { display: block; position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, rgba(2, 4, 10, 0) 34%, rgba(2, 4, 10, .88) 58%, rgba(2, 4, 10, .8) 100%); }
    .hero-body { padding-top: 0; align-items: flex-end; }
    .hero h1 { font-size: clamp(28px, min(9.6vw, 5.8vh), 46px); }
    .hero .lede { font-size: 15px; margin-bottom: 18px; }
    .hero-ctas { gap: 18px; flex-wrap: nowrap; }
    .hero-ctas .btn { padding: 13px 18px; font-size: 15px; white-space: nowrap; }
    .link-under { font-size: 15px; white-space: nowrap; }
    .hero-body .wrap, .proof-bar .wrap { grid-template-columns: 1fr; }
    .hero-copy, .proof-inner { grid-column: 1; }
    .hero-copy { padding: 0 0 16px; }
    .proof-inner { padding: 12px 0; }
    .proof-inner .icon, .proof-inner .sep { display: none; }
    .proof-inner .num { font-size: 20px; }
    .proof-inner .lbl { font-size: 14px; margin-left: 6px; }
    .row { grid-template-columns: 1fr auto; }
    .row .bar { grid-column: 1 / -1; grid-row: 2; }
    .two { grid-template-columns: 1fr; }
    .facts .f-n { font-size: 26px; }
    form.gcard { padding: 22px; }
  }
  @media (max-width: 860px) and (max-height: 700px) {
    .hero .lede { display: none; }
  }
  @media (max-width: 480px) {
    .btn-ghost { padding: 9px 14px; font-size: 14px; }
  }
