/* Monkyvision - styles for the inner pages (About, Careers) */
  :root {
    --bg: #0d0d0e;
    --bg-2: #161617;
    --text: #f4f2ef;
    --muted: #9a9692;
    --accent: #f2642b;
    --accent-2: #ff8a4c;
    --line: rgba(255, 255, 255, 0.08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--bg); color: var(--text); font-family: "Manrope", system-ui, sans-serif; }
  body { overflow-x: hidden; }
  img { max-width: 100%; }
  ::selection { background: var(--accent); color: #fff; }

  /* ---------- NAV (same as the home page) ---------- */
  .nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px)); z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px 10px 20px; border-radius: 14px;
    background: rgba(22, 22, 23, 0.55); border: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .logo { display: flex; align-items: center; text-decoration: none; }
  .logo img { display: block; height: 26px; width: auto; }
  .logo.logo-lg img { height: 36px; }
  .nav ul { display: flex; gap: 34px; list-style: none; }
  .nav a.link { color: #cfcac5; text-decoration: none; font-size: 13px; font-weight: 500; transition: color .2s; position: relative; }
  .nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); }
  .nav a.link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
    font: 600 13px/1 "Manrope", sans-serif; padding: 13px 20px; border-radius: 999px;
    text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
  }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px rgba(242,100,43,.7); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(242,100,43,.9); }
  .btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); }
  .btn-ghost:hover { background: rgba(255,255,255,.1); }
  .nav .btn { padding: 11px 18px; border-radius: 10px; }
  .nav-spacer { width: 168px; height: 1px; }               /* keeps the links centred on pages without the CTA button */
  @media (max-width: 900px) { .nav ul, .nav-spacer { display: none; } }

  /* ---------- shared ---------- */
  .wrap { width: min(1200px, calc(100% - 6vw)); margin: 0 auto; }
  .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
  .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
  h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
  h2 em, h1 em, .bl-h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  section { position: relative; }
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .rv.in { opacity: 1; transform: none; }

  /* ---------- HERO ---------- */
  .ab-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden;
    background: radial-gradient(55% 65% at 75% 50%, rgba(242,100,43,.12), transparent 62%), radial-gradient(40% 50% at 5% 95%, rgba(242,100,43,.05), transparent 70%), var(--bg); }
  .ab-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
  .ab-hero h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .96; letter-spacing: -0.045em; font-weight: 800; }
  .ab-hero .lede { margin-top: 28px; max-width: 520px; color: #bdb5ad; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; }
  .ab-hero .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
  .chips { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
  .chips span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 13px; border-radius: 999px;
    border: 1px solid rgba(242,100,43,.32); color: #f0dccd; background: rgba(242,100,43,.06); }
  .ab-monk { position: relative; aspect-ratio: 1 / 1; }
  .ab-monk::before { content: ""; position: absolute; inset: 12% 10% 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,100,43,.24), rgba(242,100,43,.06) 45%, transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
  .ab-monk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
    animation: hover 7s ease-in-out infinite; }
  .ab-ring { position: absolute; left: 50%; bottom: 6%; width: 64%; aspect-ratio: 6 / 1; transform: translateX(-50%); border-radius: 50%;
    border: 1px solid rgba(242,100,43,.45); animation: ring 4.5s ease-out infinite; }
  .ab-ring.r2 { animation-delay: 1.5s; } .ab-ring.r3 { animation-delay: 3s; }
  @keyframes hover { 50% { transform: translateY(-2.2%); } }
  @keyframes breathe { 50% { opacity: .65; transform: scale(.96); } }
  @keyframes ring { 0% { opacity: .9; transform: translateX(-50%) scale(.55); } 100% { opacity: 0; transform: translateX(-50%) scale(1.35); } }

  /* ---------- FACTS ---------- */
  .facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0a0a; }
  .facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
  .fact { padding: 38px 26px; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact b { display: block; font-size: clamp(34px, 3.6vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px var(--accent); }
  .fact span { display: block; margin-top: 12px; color: #bdb5ad; font-size: 14px; line-height: 1.5; max-width: 220px; }

  /* ---------- STORY ---------- */
  .story { padding: 140px 0 120px; }
  .story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: start; }
  .story p { color: #c9c1b9; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; }
  .story p + p { margin-top: 20px; }
  .story .big { color: var(--text); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.55; font-weight: 600; letter-spacing: -0.01em; }

  /* ---------- BELIEFS ---------- */
  .beliefs { padding: 40px 0 130px; }
  .beliefs .head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
  .beliefs .head p { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.7; }
  .b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .b-card { position: relative; padding: 30px 28px 32px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
    background: linear-gradient(160deg, rgba(34,28,24,.55), rgba(16,14,13,.6)); transition: border-color .4s, transform .4s; }
  .b-card:hover { border-color: rgba(242,100,43,.45); transform: translateY(-4px); }
  .b-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,100,43,.16), transparent 70%); }
  .b-card i { font-style: normal; display: block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
  .b-card h3 { margin-top: 22px; font-size: clamp(20px, 1.7vw, 25px); letter-spacing: -0.02em; line-height: 1.2; }
  .b-card p { margin-top: 12px; color: #b3aba3; font-size: 14.5px; line-height: 1.7; }
  .b-card.wide { grid-column: span 2; }

  /* ---------- PILLARS ---------- */
  .pillars { padding: 120px 0; background: linear-gradient(180deg, #0b0a0a, #100d0b 60%, #0b0a0a); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pl-list { margin-top: 50px; border-top: 1px solid var(--line); }
  .pl-row { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: 30px 0;
    border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .4s, padding .4s; }
  .pl-row:hover { background: linear-gradient(90deg, rgba(242,100,43,.07), transparent 70%); padding-left: 14px; }
  .pl-row b { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }
  .pl-row h3 { font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
  .pl-row p { color: #b3aba3; font-size: 15px; line-height: 1.6; }
  .pl-row span { color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .3s; }
  .pl-row:hover span { transform: translateX(6px); }

  /* ---------- PROCESS ---------- */
  .process { padding: 130px 0; }
  .pr-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
  .pr-step { position: relative; padding: 30px 26px 0 0; }
  .pr-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
  .pr-step::after { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
  .pr-step em { font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
  .pr-step h3 { margin-top: 14px; font-size: 22px; letter-spacing: -0.02em; }
  .pr-step p { margin-top: 10px; color: #b3aba3; font-size: 14.5px; line-height: 1.7; max-width: 250px; }

  /* ---------- CTA ---------- */
  .cta { padding: 20px 0 130px; }
  .cta-panel { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 80px); border: 1px solid rgba(242,100,43,.3);
    background: radial-gradient(70% 120% at 100% 0%, rgba(242,100,43,.22), transparent 60%), linear-gradient(160deg, #1a1411, #0f0c0b);
    display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
  .cta-panel p { margin-top: 18px; color: #c9c1b9; font-size: 16px; line-height: 1.7; max-width: 460px; }

  /* ---------- FOOTER (same as the home page) ---------- */
  .site-footer { padding: 80px 0 28px; background: #0a0909; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; }
  .ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
  .ft-brand p { margin: 18px 0 26px; max-width: 360px; color: #a59d96; font-size: 14px; line-height: 1.7; }
  .ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ft-cols h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
  .ft-cols a { display: block; color: #d9d2cb; text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .3s, transform .3s; }
  .ft-cols a:hover { color: #fff; transform: translateX(4px); }
  .ft-word { margin: 64px 0 18px; font-family: "Fredoka", "Manrope", sans-serif; font-size: clamp(36px, 16vw, 210px); font-size: 17.4cqi; font-weight: 700; letter-spacing: -0.015em; line-height: .9; text-align: center;
    color: transparent; -webkit-text-stroke: 1px rgba(242,100,43,.28); user-select: none; white-space: nowrap; }
  .ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.06); color: #7b746e; font-size: 13px; }
  .ft-legal { display: flex; gap: 18px; }
  .ft-legal a { color: #7b746e; text-decoration: none; }
  .ft-legal a:hover { color: var(--text); }
  .ft-up { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 9px 16px; font: 600 12px "Manrope", sans-serif; cursor: pointer; transition: background .3s; }
  .ft-up:hover { background: var(--accent); border-color: var(--accent); }

  @media (max-width: 900px) {
    .wrap { width: calc(100% - 32px); }
    .ab-hero { padding: 110px 0 60px; }
    .ab-hero .wrap { grid-template-columns: 1fr; gap: 10px; }
    .ab-monk { order: -1; width: min(420px, 90%); margin: 0 auto; }
    .facts .wrap { grid-template-columns: 1fr 1fr; }
    .fact { padding: 26px 16px; border-left: 0; border-top: 1px solid var(--line); }
    .fact:nth-child(-n+2) { border-top: 0; }
    .fact:first-child { padding-left: 16px; }
    .story { padding: 90px 0 70px; }
    .story .wrap { grid-template-columns: 1fr; gap: 26px; }
    .beliefs .head { flex-direction: column; align-items: flex-start; }
    .b-grid { grid-template-columns: 1fr; }
    .b-card.wide { grid-column: auto; }
    .pillars, .process { padding: 80px 0; }
    .pl-row { grid-template-columns: 54px minmax(0, 1fr); gap: 8px 16px; }
    .pl-row b { font-size: 28px; grid-row: span 2; align-self: start; }
    .pl-row p { grid-column: 2; }
    .pl-row span { display: none; }
    .pr-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .ft-top { grid-template-columns: 1fr; }
    .ft-cols { grid-template-columns: 1fr 1fr; }
    .ft-bottom { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 520px) { .pr-grid { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    .ab-monk img, .ab-monk::before, .ab-ring { animation: none; }
  }

  /* =========================================================================
     CAREERS
     ========================================================================= */
  .cr-hero { position: relative; min-height: 82vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden;
    background: radial-gradient(50% 70% at 85% 30%, rgba(242,100,43,.14), transparent 62%), radial-gradient(40% 50% at 0% 100%, rgba(242,100,43,.06), transparent 70%), var(--bg); }
  .cr-hero .wrap { position: relative; z-index: 1; }
  .cr-hero h1 { font-size: clamp(46px, 7vw, 108px); line-height: .95; letter-spacing: -0.045em; font-weight: 800; max-width: 11ch; }
  .cr-hero .lede { margin-top: 26px; max-width: 560px; color: #bdb5ad; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; }
  .cr-hero .ctas { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
  .cr-orbit { position: absolute; right: -8vw; top: 50%; width: min(620px, 52vw); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
  .cr-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(242,100,43,.22); animation: spin 40s linear infinite; }
  .cr-orbit i:nth-child(2) { inset: 12%; border-color: rgba(242,100,43,.16); animation-duration: 28s; animation-direction: reverse; }
  .cr-orbit i:nth-child(3) { inset: 26%; border-color: rgba(242,100,43,.12); animation-duration: 20s; }
  .cr-orbit i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
  @keyframes spin { to { transform: rotate(360deg); } }

  .perks { padding: 110px 0 60px; }
  .pk-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pk { padding: 28px 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(34,28,24,.5), rgba(16,14,13,.6)); }
  .pk b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(242,100,43,.12); color: var(--accent); font-size: 15px; font-weight: 800; }
  .pk h3 { margin-top: 18px; font-size: 19px; letter-spacing: -0.02em; }
  .pk p { margin-top: 8px; color: #b3aba3; font-size: 14px; line-height: 1.65; }

  .roles { padding: 70px 0 110px; }
  .rl-list { margin-top: 40px; border-top: 1px solid var(--line); }
  .rl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .4s, padding .4s; }
  .rl-row:hover { background: linear-gradient(90deg, rgba(242,100,43,.07), transparent 70%); padding-left: 14px; }
  .rl-row h3 { font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.02em; }
  .rl-row p { margin-top: 6px; color: #a59d96; font-size: 14px; line-height: 1.6; }
  .rl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .rl-tags span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(242,100,43,.3); color: #f0dccd; background: rgba(242,100,43,.06); }
  .rl-row .btn { padding: 11px 18px; }


  @media (max-width: 900px) {
    .cr-hero { min-height: 0; padding: 120px 0 60px; }
    .cr-orbit { right: -40vw; width: 90vw; opacity: .5; }
    .pk-grid { grid-template-columns: 1fr 1fr; }
    .rl-row { grid-template-columns: 1fr; gap: 12px; }
  }
  @media (max-width: 520px) { .pk-grid { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) { .cr-orbit i { animation: none; } }

  /* ---- open roles: heading count + the "no open roles" animation ---- */
  .rl-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
  .rl-count { color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 8px; }
  .rl-list.rl-empty { border-top: 0; }
  .nr { position: relative; margin-top: 20px; padding: 10px 20px 70px; text-align: center; border-radius: 28px; overflow: hidden;
    background: radial-gradient(60% 55% at 50% 38%, rgba(242,100,43,.16), transparent 70%); }
  .nr-stage { position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin: 0 auto; }
  .nr-ring { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(242,100,43,.55);
    transform: translate(-50%, -50%) scale(.6); opacity: 0; animation: nrPulse 6s cubic-bezier(.2,.6,.3,1) infinite; }
  .nr-ring.r2 { animation-delay: 2s; } .nr-ring.r3 { animation-delay: 4s; }
  .nr-orbit { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(242,100,43,.18); animation: nrSpin 24s linear infinite; }
  .nr-orbit.o2 { inset: 18%; border-style: solid; border-color: rgba(242,100,43,.12); animation-duration: 16s; animation-direction: reverse; }
  .nr-orbit.o3 { inset: 0; border-color: rgba(242,100,43,.08); animation-duration: 40s; }
  .nr-orbit i { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); }
  .nr-orbit.o2 i { top: auto; bottom: -3px; width: 6px; height: 6px; background: #ffb48a; }
  .nr-orbit.o3 i { width: 5px; height: 5px; opacity: .7; }
  .nr-halo { position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(242,100,43,.45), rgba(242,100,43,.08) 50%, transparent 70%); filter: blur(8px); animation: nrBreathe 5s ease-in-out infinite; }
  .nr-stage img { position: absolute; left: 50%; top: 52%; width: 118%; height: auto; max-width: none; transform: translate(-50%, -50%); mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
    animation: nrFloat 6s ease-in-out infinite; }
  .nr-spark { position: absolute; left: calc(50% + var(--x)); bottom: 26%; width: 4px; height: 4px; border-radius: 50%; background: #ffcf9e;
    box-shadow: 0 0 10px 2px rgba(242,100,43,.9); opacity: 0; animation: nrRise 5s ease-in infinite; animation-delay: var(--d); }
  .nr-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(242,100,43,.35);
    background: rgba(242,100,43,.07); color: #f0dccd; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
  .nr-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite; }
  .nr h3 { margin-top: 18px; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; }
  .nr h3 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .nr-copy { margin: 16px auto 0; max-width: 520px; color: #bdb5ad; font-size: 15.5px; line-height: 1.7; }
  .nr .btn { margin-top: 26px; }
  @keyframes pulse { 50% { opacity: .3; } }
  @keyframes nrPulse { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); } }
  @keyframes nrSpin { to { transform: rotate(360deg); } }
  @keyframes nrBreathe { 50% { opacity: .6; transform: translate(-50%, -50%) scale(.92); } }
  @keyframes nrFloat { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
  @keyframes nrRise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-190px) scale(1.2); } }
  @media (prefers-reduced-motion: reduce) {
    .nr-ring, .nr-orbit, .nr-halo, .nr-stage img, .nr-spark, .nr-status i { animation: none; }
    .nr-ring { opacity: .4; transform: translate(-50%, -50%) scale(1.2); }
  }

  /* ---------- mobile menu (☰) ---------- */
  .nav-burger { display: none; position: relative; width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255,255,255,.05); cursor: pointer; transition: background .3s; }
  .nav-burger:hover { background: rgba(255,255,255,.1); }
  .nav-burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s cubic-bezier(.2,.7,.2,1), top .35s cubic-bezier(.2,.7,.2,1); }
  .nav-burger i:first-child { top: 16px; }
  .nav-burger i:last-child { top: 24px; }
  .nav.menu-open .nav-burger i:first-child { top: 20px; transform: rotate(45deg); }
  .nav.menu-open .nav-burger i:last-child { top: 20px; transform: rotate(-45deg); }
  @media (max-width: 900px) {
    .nav-burger { display: block; margin-left: 10px; }
    .nav > .btn { margin-left: auto; white-space: nowrap; padding: 10px 14px; font-size: 12px; }
    .nav.menu-open ul { display: flex; flex-direction: column; gap: 2px; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px;
      border-radius: 14px; background: rgba(18,16,15,.97); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); animation: menuIn .3s cubic-bezier(.2,.7,.2,1); }
    .nav.menu-open ul a.link { display: block; padding: 14px; font-size: 16px; border-radius: 10px; }
    .nav.menu-open ul a.link:hover, .nav.menu-open ul a.link[aria-current="page"] { background: rgba(242,100,43,.1); }
    .nav.menu-open ul a.link[aria-current="page"]::after { display: none; }
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

  /* =========================================================================
     BLOG (blog.html: the list, and one blog opened from it)
     ========================================================================= */
  [hidden] { display: none !important; }
  .bl-hero { position: relative; padding: 170px 0 70px; overflow: hidden;
    background: radial-gradient(50% 80% at 85% 20%, rgba(242,100,43,.14), transparent 62%), radial-gradient(40% 50% at 0% 100%, rgba(242,100,43,.05), transparent 70%), var(--bg); }
  .bl-hero .wrap { position: relative; z-index: 1; }
  .bl-hero h1, .bl-hero .bl-h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: .96; letter-spacing: -0.045em; font-weight: 800; max-width: 12ch; }
  .bl-hero .lede { margin-top: 24px; max-width: 560px; color: #bdb5ad; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; }

  .bl-feed { padding: 20px 0 120px; }
  .bl-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
  .bl-bar.bare { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .bl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
  .bl-cats button { font: 600 12px "Manrope", sans-serif; letter-spacing: .06em; padding: 9px 15px; border-radius: 999px; cursor: pointer;
    color: #cfcac5; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
  .bl-cats button:hover { color: var(--text); border-color: rgba(242,100,43,.4); }
  .bl-cats button[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
  .bl-count { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
  .bl-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(280px, 100%); padding: 0 14px; height: 40px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); transition: border-color .25s; }
  .bl-search:focus-within { border-color: rgba(242,100,43,.55); }
  .bl-search svg { width: 16px; height: 16px; flex: none; }
  .bl-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 13.5px "Manrope", sans-serif; }
  .bl-search input::placeholder { color: #7b746e; }
  .bl-search[hidden] + .bl-count, .bl-cats[hidden] ~ .bl-count { margin-left: auto; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bl-none { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); font-size: 15px; }
  .bl-loadmore { display: flex; justify-content: center; margin-top: 40px; }
  .bl-loadmore .btn span { color: var(--muted); font-weight: 500; }
  /* page numbers (made by the server for search engines; the browser swaps them for "Load more") */
  /* 404 page */
  .nf { padding: 130px 0 60px; }
  .nf-title { margin-top: 18px; font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -0.035em; line-height: 1.05; }
  .nf-title em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .nf-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
  .nf-ctas .btn { margin-top: 0; }
  .bl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
  .bl-pages[hidden] { display: none; }
  .bl-pages a, .bl-pages span { min-width: 42px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: var(--text); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; transition: border-color .2s, background .2s; }
  .bl-pages a:hover { border-color: var(--accent); }
  .bl-pages span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
  .bl-pageno { font-size: .42em; letter-spacing: 0; color: var(--muted); vertical-align: middle; white-space: nowrap; }
  /* loading placeholders */
  .bl-skel { pointer-events: none; }
  .bl-skel .bl-cover, .bl-skel .bl-info i { background: linear-gradient(90deg, rgba(255,255,255,.04) 30%, rgba(242,100,43,.10) 50%, rgba(255,255,255,.04) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
  .bl-skel .bl-info i { display: block; height: 14px; border-radius: 7px; margin-top: 12px; }
  .bl-skel .bl-info i:first-child { width: 40%; margin-top: 0; } .bl-skel .bl-info i:nth-child(2) { width: 90%; height: 20px; } .bl-skel .bl-info i:last-child { width: 70%; }
  .bl-skel.big .bl-info { justify-content: center; }
  @keyframes skel { to { background-position: -150% 0; } }
  .bp-wait { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: 14px; }
  .bp-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
  .bp-wait i:nth-child(2) { animation-delay: .15s; } .bp-wait i:nth-child(3) { animation-delay: .3s; }
  .bp-wait span { margin-left: 8px; }
  .bp-head h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

  .bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .bl-grid.bl-empty { display: block; }
  .bl-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(34,28,24,.55), rgba(16,14,13,.6)); transition: border-color .4s, transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s cubic-bezier(.2,.7,.2,1); }
  .bl-card.rv.in:hover { border-color: rgba(242,100,43,.45); transform: translateY(-4px); transition-delay: 0s; }
  .bl-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #161312; }
  .bl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .bl-card:hover .bl-cover img { transform: scale(1.05); }
  .bl-noimg { display: grid; place-items: center;
    background: radial-gradient(60% 80% at 80% 10%, rgba(242,100,43,.35), transparent 60%), repeating-radial-gradient(circle at 20% 120%, rgba(242,100,43,.14) 0 1px, transparent 1px 22px), linear-gradient(160deg, #221812, #100d0b); }
  .bl-noimg span { font-size: clamp(18px, 2vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,180,138,.7); text-transform: uppercase; padding: 0 20px; text-align: center; }
  .bl-info { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
  .bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 12px; }
  .bl-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #6d6660; margin-right: 14px; vertical-align: middle; }
  .bl-meta .bl-tag + span::before { display: none; }
  .bl-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
    border: 1px solid rgba(242,100,43,.35); color: #f0dccd; background: rgba(242,100,43,.08); }
  .bl-info h3 { margin-top: 14px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.25; letter-spacing: -0.02em; }
  .bl-ex { margin-top: 10px; color: #b3aba3; font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bl-more { margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 13px; font-weight: 600; }
  .bl-more i { font-style: normal; display: inline-block; transition: transform .3s; }
  .bl-card:hover .bl-more i { transform: translateX(5px); }
  /* the newest blog: a wide card across the top */
  .bl-card.big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .bl-card.big .bl-cover { aspect-ratio: auto; min-height: 340px; }
  .bl-card.big .bl-info { padding: clamp(26px, 3.4vw, 48px); justify-content: center; }
  .bl-card.big h3 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -0.035em; }
  .bl-card.big .bl-ex { font-size: 16px; -webkit-line-clamp: 4; }
  .bl-card.big .bl-more { margin-top: 0; padding-top: 24px; }

  /* one blog */
  .bp-head { padding: 150px 0 40px;
    background: radial-gradient(50% 90% at 80% 0%, rgba(242,100,43,.13), transparent 62%), var(--bg); }
  .bp-narrow { max-width: 760px; }
  .bp-back { display: inline-block; margin-bottom: 30px; color: #cfcac5; text-decoration: none; font-size: 13px; font-weight: 600; transition: color .25s, transform .25s; }
  .bp-back:hover { color: var(--accent); transform: translateX(-4px); }
  .bp-head h1 { margin-top: 20px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
  .bp-lede { margin-top: 20px; color: #bdb5ad; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; }
  .bp-by { margin-top: 26px; display: flex; align-items: center; gap: 12px; color: #d9d2cb; font-size: 14px; font-weight: 600; }
  .bp-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(242,100,43,.14); border: 1px solid rgba(242,100,43,.4); color: var(--accent); font-weight: 800; }
  .bp-coverwrap { max-width: 1040px; }
  .bp-cover { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #161312; }
  .bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bp-body { padding: 50px 0 10px; color: #d2cac2; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.85; overflow-wrap: break-word; }
  .bp-body > * + * { margin-top: 1.15em; }
  .bp-body h2 { margin-top: 1.9em; color: var(--text); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
  .bp-body h3 { margin-top: 1.6em; color: var(--text); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: -0.02em; }
  .bp-body h4 { margin-top: 1.4em; color: var(--text); font-size: 18px; }
  .bp-body a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255,138,76,.4); text-underline-offset: 3px; }
  .bp-body a:hover { text-decoration-color: currentColor; }
  .bp-body strong, .bp-body b { color: var(--text); }
  .bp-body ul, .bp-body ol { padding-left: 1.3em; }
  .bp-body li + li { margin-top: .45em; }
  .bp-body li::marker { color: var(--accent); }
  .bp-body blockquote { margin: 1.8em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.15em; font-weight: 600; line-height: 1.6; }
  .bp-body img, .bp-body video, .bp-body iframe { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 1.8em auto; }
  .bp-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
  .bp-body figure { margin: 1.8em 0; }
  .bp-body figure img { margin: 0 auto; }
  .bp-body figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
  .bp-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
  .bp-body code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); }
  .bp-body table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
  .bp-body th, .bp-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
  .bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 46px; padding: 24px 0 80px; border-top: 1px solid var(--line); }
  .bp-share span { margin-right: 8px; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
  .bp-share a, .bp-share button { font: 600 12.5px "Manrope", sans-serif; padding: 9px 15px; border-radius: 999px; cursor: pointer; text-decoration: none;
    color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
  .bp-share a:hover, .bp-share button:hover { background: rgba(242,100,43,.14); border-color: rgba(242,100,43,.45); }
  .bp-more { padding: 0 0 120px; }
  .bp-more .eyebrow { margin-bottom: 30px; }

  @media (max-width: 900px) {
    .bl-hero { padding: 130px 0 50px; }
    .bl-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .bl-card.big { grid-template-columns: 1fr; }
    .bl-card.big .bl-cover { min-height: 0; aspect-ratio: 16 / 10; }
    .bp-head { padding: 120px 0 30px; }
    .bp-body { padding-top: 36px; }
    .bl-feed, .bp-more { padding-bottom: 80px; }
  }
  @media (max-width: 600px) {
    .bl-grid { grid-template-columns: 1fr; }
    .bl-search { width: 100%; margin-left: 0; order: 3; }
    .bl-count { margin-left: auto; }
    .bp-cover { border-radius: 16px; }
  }

  /* ---------- small phones: the nav keeps logo, button and menu on one line ---------- */
  @media (max-width: 420px) {
    .nav { width: calc(100% - 20px); top: 10px; padding: 8px 8px 8px 14px; }
    .logo img { height: 22px; }
    .nav > .btn { padding: 9px 12px; font-size: 11.5px; }
    .nav-burger { width: 38px; height: 38px; margin-left: 8px; }
    .nav-burger i { left: 11px; right: 11px; }
    .nav-burger i:first-child { top: 14px; } .nav-burger i:last-child { top: 22px; }
    .nav.menu-open .nav-burger i:first-child, .nav.menu-open .nav-burger i:last-child { top: 18px; }
  }
  @media (max-width: 470px) {
    .nav .logo { flex: 0 1 auto; min-width: 70px; margin-right: 8px; }
    .nav .logo img { width: 100%; height: auto; max-width: 123px; }   /* (shrinks a little if the bar is tight) */
    .nav > .btn { padding: 8px 10px; font-size: 11px; }
    .nav-burger { width: 36px; height: 36px; }
    .nav-burger i { left: 10px; right: 10px; }
    .nav-burger i:first-child { top: 13px; } .nav-burger i:last-child { top: 21px; }
    .nav.menu-open .nav-burger i:first-child, .nav.menu-open .nav-burger i:last-child { top: 17px; }
  }
  @media (max-width: 352px) { .nav .logo img { max-width: 104px; } .nav > .btn { padding: 7px 9px; font-size: 10.5px; } }

  /* ---------- CONTACT (same as the home page; used on the blog page) ---------- */
  .contact { padding: 40px 0 120px; background: var(--bg); }
  .ct-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 4vw, 64px);
    border-radius: 22px; border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(60% 80% at 0% 0%, rgba(242,100,43,.14), transparent 60%), linear-gradient(160deg, #1a1715, #121110); }
  .ct-copy h2 { font-size: clamp(34px, 4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
  .ct-copy h2 em { font-style: normal; color: var(--accent); }
  .ct-lede { margin-top: 18px; color: #bdb6af; font-size: 16px; line-height: 1.65; max-width: 420px; }
  .ct-info { list-style: none; margin-top: 34px; display: grid; gap: 16px; }
  .ct-info li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: 14px; color: #e6dfd8; }
  .ct-info li > span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding-top: 2px; }
  .ct-info a { color: var(--text); text-decoration: none; transition: color .25s; }
  .ct-info a:hover { color: var(--accent-2); }
  .ct-social { display: flex; flex-wrap: wrap; gap: 14px; }
  .ct-social a { border: 0; color: #e6dfd8; transition: color .3s; }
  .ct-social a:hover { color: var(--accent); }
  .ct-form { display: grid; gap: 16px; align-content: start; }
  .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cf-field { display: grid; gap: 8px; }
  .cf-field > span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #a59d96; }
  .cf-field input, .cf-field select, .cf-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04); color: var(--text); font: 15px "Manrope", sans-serif; outline: none; transition: border-color .3s, background .3s; resize: vertical; }
  .cf-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a59d96 50%), linear-gradient(135deg, #a59d96 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
  .cf-field select option { background: #1a1715; }
  .cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--accent); background: rgba(242,100,43,.05); }
  .cf-field.err input, .cf-field.err textarea { border-color: #e5484d; }
  .cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .cf-chips button { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #ddd6cf;
    font: 13px "Manrope", sans-serif; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
  .cf-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .cf-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
  .cf-status { font-size: 13px; color: #a59d96; }
  .cf-status.ok { color: #7fd1a0; }
  .cf-status.bad { color: #ff8a8a; }
  .cf-legal { margin-top: 2px; color: #7b746e; font-size: 12px; line-height: 1.5; }
  .cf-legal a { color: #bdb5ad; text-decoration: underline; text-underline-offset: 2px; } .cf-legal a:hover { color: var(--accent-2); }
  .contact h2 { font-size: clamp(34px, 4vw, 64px); }
  .contact .eyebrow { margin-bottom: 18px; }
  .ct-copy h2 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }
  #blogPost:not([hidden]) ~ .contact { padding-top: 0; }
  @media (max-width: 900px) {
    .contact { padding: 20px 0 80px; }
    .ct-panel { grid-template-columns: 1fr; padding: 24px 20px; }
    .cf-row { grid-template-columns: 1fr; }
  }
  /* the footer word is sized to its own column (17.4% of its width = ~96% wide in Fredoka), so it always fits and sits centred */
  .site-footer > div { container-type: inline-size; }

  /* =========================================================================
     LEGAL PAGES (terms.html, privacy.html)
     ========================================================================= */
  .lg-hero { padding: 160px 0 56px; border-bottom: 1px solid var(--line);
    background: radial-gradient(50% 90% at 85% 10%, rgba(242,100,43,.12), transparent 62%), var(--bg); }
  .lg-hero h1 { font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
  .lg-date { margin-top: 18px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .lg-hero .lede { margin-top: 18px; max-width: 760px; color: #bdb5ad; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; }
  .lg-switch { margin-top: 30px; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
  .lg-switch a { padding: 10px 18px; border-radius: 999px; color: #cfcac5; text-decoration: none; font-size: 13px; font-weight: 600; transition: background .25s, color .25s; }
  .lg-switch a:hover { color: var(--text); }
  .lg-switch a[aria-current="page"] { background: var(--accent); color: #fff; }

  .lg-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 60px 0 110px; align-items: start; }
  .lg-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
  .lg-toc summary { list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); padding-bottom: 14px; }
  .lg-toc summary::-webkit-details-marker { display: none; }
  .lg-toc ol { list-style: none; border-left: 1px solid var(--line); }
  .lg-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: #9a9692; text-decoration: none; font-size: 13.5px; line-height: 1.35; transition: color .2s, border-color .2s; }
  .lg-toc a b { font-weight: 700; font-size: 11px; color: #6d6660; padding-top: 2px; font-variant-numeric: tabular-nums; }
  .lg-toc a:hover { color: var(--text); }
  .lg-toc a.on { color: var(--text); border-left-color: var(--accent); }
  .lg-toc a.on b { color: var(--accent); }

  .lg-body { max-width: 780px; color: #cfc8c1; font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.8; }
  .lg-sec { padding: 6px 0 34px; scroll-margin-top: 100px; }
  .lg-sec + .lg-sec { border-top: 1px solid var(--line); padding-top: 34px; }
  .lg-sec h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; color: var(--text); font-size: clamp(21px, 1.8vw, 27px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
  .lg-sec h2 b { flex: none; font-size: 13px; color: var(--accent); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
  .lg-sec p + p, .lg-sec ul + p, .lg-sec p + ul, .lg-sec .lg-card + p, .lg-sec p + .lg-card, .lg-sec p + .lg-table, .lg-sec .lg-table + p { margin-top: 14px; }
  .lg-sec ul { list-style: none; display: grid; gap: 10px; }
  .lg-sec li { position: relative; padding-left: 22px; }
  .lg-sec li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(242,100,43,.6); }
  .lg-sec strong { color: var(--text); font-weight: 700; }
  .lg-body a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255,138,76,.4); text-underline-offset: 3px; overflow-wrap: anywhere; }
  .lg-body a:hover { text-decoration-color: currentColor; }
  .lg-card { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(34,28,24,.55), rgba(16,14,13,.6)); }
  .lg-card dl { display: grid; gap: 10px; }
  .lg-card p + dl { margin-top: 12px; }
  .lg-card dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
  .lg-card dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-top: 4px; }
  .lg-card dd { color: #e6dfd8; }
  .lg-foot { margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

  /* the "what we collect" table: a real table on wide screens, one card per row on phones */
  .lg-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
  .lg-table table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
  .lg-table th, .lg-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .lg-table thead th { position: sticky; top: 0; background: #1a1614; color: var(--accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
  .lg-table tbody th { color: var(--text); font-weight: 700; width: 17%; }
  .lg-table tbody tr:last-child > * { border-bottom: 0; }
  .lg-table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }

  @media (max-width: 900px) {
    .lg-hero { padding: 120px 0 40px; }
    .lg-layout { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 80px; }
    .lg-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.02); }
    .lg-toc summary { padding-bottom: 0; display: flex; justify-content: space-between; }
    .lg-toc summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--text); }
    .lg-toc details[open] summary { padding-bottom: 12px; }
    .lg-toc details[open] summary::after { content: "−"; }
    .lg-card dl div { grid-template-columns: 1fr; gap: 2px; }
  }
  @media (max-width: 700px) {
    .lg-table { border: 0; overflow: visible; }
    .lg-table table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; min-width: 0; width: auto; }
    .lg-table thead { display: none; }
    .lg-table tbody tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(34,28,24,.55), rgba(16,14,13,.6)) !important; overflow: hidden; }
    .lg-table tbody th { width: auto; padding: 14px 16px 6px; border: 0; font-size: 15px; }
    .lg-table tbody td { padding: 6px 16px; border: 0; }
    .lg-table tbody td:last-child { padding-bottom: 14px; }
    .lg-table td::before { content: attr(data-l); display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
    .lg-switch { display: flex; width: 100%; } .lg-switch a { flex: 1; text-align: center; padding: 10px 8px; }
  }
