:root{
    --bg: #000000;
    --text: #f5f5f5;
    --muted: #cfcfcf;
    --link: #f5f5f5;
    --linkHover: #ffffff;
  }

  * { box-sizing: border-box; }

  li a {
    font-weight: 900!important;
    font-family: "Arvo", "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.01em;
  }

  h1 {
    font-weight: 900!important;
    font-family: "Arvo", "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.01em;
  }

  h2 {
    font-weight: 200!important;
    font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.01em;
    font-size: 30px;
  }

  h3, h4, h5, h6 {
    font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.01em;
  }

  body{
    margin: 0;
    background: var(--bg);
    background-image: url("./assetts/bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right bottom;
    color: var(--text);
    font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.25;
    overflow: hidden;
    font-weight: 200;
    transition: background-color 500ms ease, color 500ms ease;
  }

  a{
    color: var(--link);
    text-decoration: none;
    transition: color 500ms ease;
 
  }
  a:hover{
    color: var(--linkHover);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  a:focus-visible{
    outline: 2px solid #000;
    outline-offset: 3px;
  }

  p {
    font-weight: 100;
  }

  .page{
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 28px;
    gap: 28px;
    overflow: hidden;
    transition: opacity 420ms ease;
  }

  header{
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    padding-right: 360px;
  }

  .titleBlock h1{
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 38px;
  }
  .title-row{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .about-close{
    display: none;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    color: var(--text);
    cursor: pointer;
  }
  .titleBlock h2{
    margin: 10px 0 0 0;
    font-weight: 600;
    color: var(--muted);

  }

  .topMenu{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    padding-top: 6px;
    padding-right: 24px;
    text-align: right;
  }

  #site-nav{
    position: absolute;
    top: 0;
    right: 0;
    width: 340px;
    z-index: 30;
    justify-content: flex-end;
    pointer-events: auto;
  }
  #site-nav .nav{
    width: 100%;
  }
  #site-nav .nav-row{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-bottom: 4px;
  }
  #site-nav .nav-row:last-child{
    margin-bottom: 0;
  }

  .leftLinks{
    padding-top: 8px;
  }
  .about-panel{
    grid-column: 1 / -1;
    display: none;
    max-width: 900px;
    width: 100%;
  }
  .about-panel h1{
    margin: 0 0 12px 0;
 
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .about-panel p{
    margin: 0 0 12px 0;
    color: var(--muted);
    line-height: 1.6;
  }
  body.show-about .leftLinks{
    display: none;
  }
  body.show-about .about-panel{
    display: block;
  }

  .split{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: end;
    min-height: 0;
    height: 100%;
  }

  .split-col{
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
  }

  .split-left{
    justify-content: flex-start;
    position: relative;
  }

  .aside-scroll{
    position: absolute;
    left: 100px;
    bottom: 50px;
    text-align: left;
    padding-bottom: 50px;
    padding-right: 6px;
    width: 600px;
    height: calc(100vh - 200px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: end;
  }

  .aside-col{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
  }

  .bucket{
    break-inside: avoid;
  }

  .heroImage{
    width: 70%;
    height: auto;
    align-self: start;
    justify-self: end;
  }

  .leftLinks ul{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }

  .leftLinks a{
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 2px 0;
  }

  .main{
    display: flex;
    justify-content: flex-end;
    grid-column: 1 / -1;
  }

  .bottomRight{
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
  
  }
  .bottomRight a{
    color: var(--muted);
  }
  .bottomRight a:hover{
    color: var(--text);
  }


  .mobile-brand{
    display: none;
  }

  .bottomRight{
    position: fixed;
    left: auto;
    right: 25px;
    bottom: 24px;
    z-index: 40;
  }

  .socialMenu{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .socialMenu .nav{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .socialMenu img{
    width: 64px;
    height: auto;
    display: block;
  }

  hr {
      width: 100px;
      align-self: left;
  }

  body.identity-mode{
    --bg: #ffffff;
    --text: #060606;
    --muted: #2f2f2f;
    --link: #111111;
    --linkHover: #000000;
    background-color: #ffffff;
    background-image: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.identity-mode .page{
    height: auto;
    min-height: 100vh;
    overflow: visible;
    animation: identityFadeIn 520ms ease;
  }

  body.identity-mode h1,
  body.identity-mode h2,
  body.identity-mode h3,
  body.identity-mode h4,
  body.identity-mode h5,
  body.identity-mode h6{
    color: #000000;
    transition: color 500ms ease;
  }

  body.identity-mode .identity-content{
    width: min(920px, 100%);
    margin: 6px 0 30px;
    padding: 4px 0 18px;
    line-height: 1.6;
  }

  body.identity-mode #guts.identity-enter{
    animation: gutsRiseUp 520ms cubic-bezier(0.22, 0.8, 0.2, 1);
    will-change: transform, opacity;
  }
  body.identity-mode #guts.identity-exit{
    animation: gutsDropBack 380ms cubic-bezier(0.22, 0.8, 0.2, 1);
    will-change: transform, opacity;
  }

  body.identity-mode .identity-kicker{
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 700;
    color: #3c3c3c;
    margin-bottom: 10px;
  }

  body.identity-mode .identity-content h1{
    margin: 0 0 10px 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
  }

  body.identity-mode .identity-content h2{
    margin: 0 0 12px 0;
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700 !important;
    color: #181818;
  }

  body.identity-mode .identity-content p{
    max-width: 78ch;
    color: #222222;
  }

  @keyframes identityFadeIn{
    0%{
      opacity: 0.3;
      transform: translateY(10px);
    }
    100%{
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes gutsRiseUp{
    0%{
      opacity: 0;
      transform: translateY(34px);
    }
    100%{
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes gutsDropBack{
    0%{
      opacity: 1;
      transform: translateY(0);
    }
    100%{
      opacity: 0;
      transform: translateY(30px);
    }
  }


  @media (max-width: 860px){
    body{
      background: #111111;
      background-image: none;
      overflow-x: hidden;
      overflow-y: auto;
      position: relative;
      padding-left: 28.5px;
    }
    html, body{
      max-width: 100%;
    }


    .page{
      height: auto;
      min-height: 100vh;
      overflow: visible;
      position: relative;
      z-index: 2;
  
    }
    .page{
      grid-template-columns: 1fr;
      padding: 18px;
    }
    .split{
      grid-template-columns: 1fr;
    }
    header{
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      min-width: 0;
      padding-right: 0;
    }
    .titleBlock{
      order: 2;
    }
    .mobile-brand{
      order: 1;
      width: 120px;
      height: 120px;
      display: inline-flex;
      align-items: flex-start;
      justify-content: flex-start;
      margin: 6px 0 8px 0;
    }
    .mobile-brand img{
      display: block;
      width: 120px;
      height: 120px;
      object-fit: contain;
      border-radius: 50%;
      border: 9px solid #ffffff;
    }
    #site-nav{
      order: -1;
      position: static;
      top: auto;
      right: auto;
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      overflow: visible;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding-top: 6px;
      padding-right: 0;
      padding-bottom: 8px;
      font-size: 16px;
      font-weight: 600;
      justify-content: flex-end;
      text-align: right;
    }
    #site-nav a,
    #site-nav span{
      flex: 0 1 auto;
      white-space: normal;
    }
    #site-nav nav{
      display: block;
    }
    .topMenu{
      justify-content: flex-end;
      text-align: right;
    }
    .main{
      grid-template-rows: auto auto;
    }
    .bottomLeft{
      left: auto;
      right: 12px;
      bottom: 14px;
    }
    .socialMenu img{
      width: 54px;
    }
    .leftLinks a{
      font-size: 20px;
    }
    .aside-scroll{
      grid-template-columns: 1fr;
      width: 100%;
      height: auto;
      position: static;
      left: auto;
      right: auto;
    }
    .about-panel{
  
      width: 90%;
    }
    .about-panel p{
  
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .leftLinks,
    .aside-scroll{
      max-width: 100%;
    }
    .leftLinks p,
    .leftLinks a{
      overflow-wrap: anywhere;
      word-break: break-word;
    }
  }

  @media (max-width: 860px){
    body::before{
      content: "";
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      width: 28.5px;
      background: #ffffff;
      z-index: 1;
      pointer-events: none;
    }
  }



  .construction-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(900px 700px at 20% 15%, rgba(255,126,95,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(255,221,138,.18), transparent 50%),
                rgba(6, 8, 12, 0.92);
    backdrop-filter: blur(10px);
  }

  body.admin-on .construction-overlay {
    display: none;
  }

  .construction-card {
    width: min(720px, 92vw);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    display: grid;
    gap: 14px;
    text-align: center;
  }

  .construction-eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
  }

  .construction-card h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    color: #ffffff;
  }

  .construction-card p {
    margin: 0;
    color: #b9c6d8;
  }

  .construction-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    color: #fdf3d5;
    background: rgba(255,255,255,.08);
    margin: 6px auto 0;
  }

  .construction-link:hover {
    background: rgba(255,255,255,.16);
  }

  .construction-admin {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    justify-items: center;
  }

  .construction-admin label {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
  }

  .construction-admin input {
    width: min(320px, 90%);
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: inherit;
    text-align: center;
  }

  .construction-admin button {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,.12);
    color: inherit;
  }

