:root{
  
  --bg:#000000;
  --color-highlight:#FCF9DD;
  
  --color-dark:#2F2400;
  --color-medium:#4F3800;
  --color-light:#D9D4A8;

  --color-accent-dark:#171200;
  --color-accent-light:#B6975F;

  --panel:#2F2400;
  --glass-blur: 8px;
  
  --line-thin:1px dotted #2F2400;
  --plate-color:#4F3800;
  --plate-thickness:4px;
  --plate-length:24px;
  
  --radius:2px;
  --max:1080px;

  --gutter:clamp(16px,2.2vw,24px);
  --section-pad-y:clamp(64px,8vw,104px);
  --main-pad-top:clamp(88px,10vw,132px);

  --gap-1:clamp(10px,1.4vw,16px);
  --gap-2:clamp(14px,2vw,24px);
  --gap-3:clamp(18px,2.6vw,32px);

  --card-pad:clamp(12px,1.4vw,18px);
  --btn-pad-y:clamp(10px,1.2vw,12px);
  --btn-pad-x:clamp(14px,1.6vw,16px);

  --logo-max:720px;
  --logo-offset:clamp(12px,2.4vw,28px);
  --logo-safe-space:clamp(112px,14vw,180px);

  --nav-edge-offset:calc(var(--gap-2) + 10px);

  --font-sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-serif:ui-serif,Georgia,"Times New Roman",Times,serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;

  --text-base:16px;
  --text-line-height:1.55;

  --step--1:clamp(0.875rem,0.85rem + 0.2vw,0.95rem);
  --step-0:clamp(1rem,0.98rem + 0.25vw,1.0625rem);
  --step-1:clamp(1.125rem,1.07rem + 0.45vw,1.25rem);
  --step-2:clamp(1.25rem,1.15rem + 0.75vw,1.5rem);
  --step-3:clamp(1.5rem,1.35rem + 1.05vw,1.75rem);
  --step-4:clamp(1.75rem,1.55rem + 1.6vw,2.25rem);
  --step-5:clamp(2.5rem,2.1rem + 3vw,4.5rem);

  --space-1:clamp(0.5rem,0.45rem + 0.25vw,0.75rem);
  --space-2:clamp(0.75rem,0.7rem + 0.35vw,1rem);
  --space-3:clamp(1rem,0.9rem + 0.6vw,1.5rem);

  --stack-gap:var(--space-2);
  --stack-gap-tight:var(--space-1);
  --stack-gap-loose:var(--space-3);

}

/* Optical tuning */
@media (min-width: 768px){ :root{ --text-line-height: 1.50; } }
@media (min-width: 1024px){ :root{ --text-line-height: 1.48; } }

/* ---------- Reset ---------- */

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
html{ scroll-padding-top: 100px; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--color-light);
  padding-top: var(--logo-safe-space);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--text-line-height);
  text-rendering: optimizeLegibility;
  cursor: crosshair;
  overflow-x: hidden;
}

/* ==========================================================================
  CUSTOM CURSOR (pointer dot + ring) + CURSOR OVERRIDES
========================================================================== */
#pointer-dot{
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  position: fixed;
  border-radius: 50%;
  border: 2.5px solid var(--color-light);
  pointer-events: none;
  z-index: 3000;
}

#pointer-ring{
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  padding: 14px;
  position: fixed;
  border-radius: 50%;
  border: 2px solid var(--color-medium);
  pointer-events: none;
  z-index: 2999;
}

html, body, a, button, .link-style-btn, .copy-wrapper{
  cursor: none !important;
}

/* Prevent tiny-screen horizontal drift from any wide media */
html,body{ overflow-x:hidden; }
img,svg,video,canvas{ max-width:100%; height:auto; }


/* Matrix Canvas sits behind everything, never blocks clicks */
#matrixCanvas{
  position: fixed;
  inset: 0;               /* replaces top/left/width/height */
  z-index: 0;             /* behind content, above body bg */
  pointer-events: none;   /* lets links/buttons work */
}

/* Ensure your site content is above the canvas */
.content{
  position: relative;
  z-index: 1;
}

/* Global Link/Interactive Cursor */
a,
button,
.button,
.nav-toggle,
.drawer-close,
.modal-close,
[role="button"]{
  cursor: zoom-in;
}

.h1, h1{ font-size: var(--step-5); line-height: 1.05; margin: 0; }
.h2, h2{ font-size: var(--step-4); line-height: 1.10; margin: 0; }
.h3, h3{ font-size: var(--step-3); line-height: 1.20; margin: 0; }
.h4, h4{ font-size: var(--step-2); line-height: 1.25; margin: 0; }
.h5, h5{ font-size: var(--step-1); line-height: 1.30; margin: 0; }
.h6, h6{ font-size: var(--step-0); line-height: 1.40; margin: 0; }

p{ font-size: var(--step-0); margin: 0; }

.text-large{ font-size: var(--step-1); font-weight:900; line-height: 0.95; margin:0;}
.text-small{ font-size: var(--step--1); }

@font-face{
font-family:'stencil';
src:url('fonts/butler_bold_stencil-webfont.woff2') format('woff2'),
    url('fonts/butler_bold_stencil-webfont.woff') format('woff');
font-weight:normal;
font-style:normal;
}

@font-face{
font-family:'fragment';
src: url('fonts/aifragment-webfont.woff2') format('woff2'), 
     url('fonts/aifragment-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}

/* Utilities */
.stencil { font-family:'stencil'; }
.fragment { font-family:'fragment'; }

.italic {font-style:italic; }
.underline{ text-decoration: underline solid 2px; }
.strike { text-decoration: line-through; }
.serif{ font-family: var(--font-serif); }

/* Opacity Utilities */
.opacity,
.hover-opacity:hover{ opacity: 0.25 !important; }

.light{color: var(--color-light);}
.medium{color: var(--color-medium);}
.dark{color: var(--color-dark);}

.accent-1{color: var(--color-accent-light);}
.accent-2{color: var(--color-accent-dark);}

/* Alignment Utilities */
.text-center{ text-align: center !important; }
.text-left{ text-align: left !important; }
.text-right{ text-align: right !important; }
.text-justify{ text-align: justify !important; word-spacing: 0.08em; }

.major{
font-family: 'fragment', system-ui, sans-serif;
color: var(--color-light);
font-size: clamp(27.54px, 5.832vw, 55.08px);
letter-spacing: 0.02em;
margin: 0;
padding: 0;
display: block;
line-height: 1;
position: relative;
z-index: 1;
}

.minor{
font-family: 'stencil', system-ui, sans-serif;
color: var(--color-medium); opacity: 0.75;
font-size: clamp(34px, 7.2vw, 68px);
letter-spacing: 0.02em;
margin-top: -0.5em;
padding: 0;
display: block;
line-height: 1;
position: relative;
z-index: 2;
}

.img-text {
  margin: 0;
  font-family:
    "Noto Sans",
    "IBM Plex Sans",
    "Segoe UI Symbol",
    system-ui,
    sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--color-light);
  letter-spacing: 0.08em;
  opacity: 1;
  white-space: nowrap;
}

.profile {
  margin: 0;
  font-family:
    "Noto Sans",
    "IBM Plex Sans",
    "Segoe UI Symbol",
    system-ui,
    sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--color-accent-light);
  letter-spacing: 0.08em;
  opacity: 1;
  white-space: nowrap;
}
.profile.text-large{
  font-size: var(--color-light);
  letter-spacing: 0.06em;
}
.profile.text-small{
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--color-medium);
}
 
/* Screen reader helper */
.sr-only{
position:absolute;
width:1px;
height:1px;
padding:0;
margin:-1px;
overflow:hidden;
clip:rect(0,0,0,0);
white-space:nowrap;
border:0;
}

/* Keyboard focus visibility */
:focus-visible{
outline:2px solid currentColor;
outline-offset:3px;
}

/* Hard hide */
.hidden{
display:none !important;
}
