/* ============================================================
   Yiannis — portfolio
   Dark terminal aesthetic · violet accent · zero dependencies
   ============================================================ */

:root{
  /* palette */
  --bg:        #07070b;
  --bg-soft:   #0c0c14;
  --panel:     rgba(255,255,255,.026);
  --line:      rgba(255,255,255,.085);
  --line-soft: rgba(255,255,255,.05);

  --txt:       #e7e5ee;
  --txt-dim:   #9c99ac;
  --txt-faint: #6a6779;

  --acc:       #a855f7;
  --acc-bright:#c98bff;
  --acc-deep:  #7c3aed;
  --acc-glow:  rgba(168,85,247,.28);

  /* type */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* layout */
  --wrap: 1140px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.68,.32,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.7;
  letter-spacing:.005em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ font-family:var(--mono); font-weight:600; line-height:1.15; letter-spacing:-.02em; margin:0; }
p{ margin:0 0 1.1em; }
a{ color:inherit; text-decoration:none; }
strong{ color:#fff; font-weight:600; }
::selection{ background:var(--acc-deep); color:#fff; }

.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;
}

.skip-link{
  position:fixed; top:8px; left:8px; z-index:200;
  transform:translateY(-160%);
  background:var(--acc); color:#0a0a0f; font-family:var(--mono); font-size:13px;
  padding:8px 14px; border-radius:6px; transition:transform .2s var(--ease);
}
.skip-link:focus{ transform:translateY(0); }

:focus-visible{ outline:2px solid var(--acc-bright); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:26px; }

/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */

#grid-canvas{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none; opacity:.75;
}

.ambient{ position:fixed; inset:0; z-index:0; pointer-events:none; }

.ambient__grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

/* violet bloom that follows the pointer */
.ambient__glow{
  position:absolute; inset:0;
  background:
    radial-gradient(560px circle at var(--mx,50%) var(--my,26%), rgba(168,85,247,.13), transparent 62%),
    radial-gradient(900px circle at 78% 4%, rgba(124,58,237,.11), transparent 60%),
    radial-gradient(700px circle at 8% 88%, rgba(168,85,247,.075), transparent 62%);
  transition:background-position .3s linear;
}

.ambient__scan{
  position:absolute; inset:0; opacity:.5;
  background:repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.018) 0px,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 3px
  );
}

.ambient__vignette{
  position:absolute; inset:0;
  background:radial-gradient(ellipse 120% 100% at 50% 45%, transparent 42%, rgba(4,4,7,.82) 100%);
}

/* ============================================================
   NAV
   ============================================================ */

.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--nav-h);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  background:rgba(7,7,11,.55);
  border-bottom:1px solid transparent;
  transition:background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-stuck{
  background:rgba(7,7,11,.86);
  border-bottom-color:var(--line-soft);
}

.nav__inner{
  height:var(--nav-h);
  max-width:var(--wrap); margin-inline:auto; padding-inline:26px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}

.brand{
  font-family:var(--mono); font-size:15px; font-weight:600;
  display:inline-flex; align-items:center; gap:1px;
  padding:6px 2px;
}
.brand__prompt{ color:var(--acc); }
.brand__name{ color:var(--txt); }
.brand:hover .brand__name{ color:#fff; }

.caret{
  display:inline-block; width:8px; height:1.05em;
  background:var(--acc); margin-left:5px; vertical-align:-2px;
  animation:blink 1.05s steps(1) infinite;
}
.caret--lg{ width:10px; height:1.1em; vertical-align:-3px; }
@keyframes blink{ 0%,50%{opacity:1} 50.01%,100%{opacity:0} }

.nav__links{
  position:relative;
  display:flex; align-items:center; gap:4px;
  font-family:var(--mono); font-size:13.5px;
}
.nav__links a{
  position:relative; z-index:1;
  display:inline-flex; align-items:baseline; gap:7px;
  padding:9px 13px; border-radius:7px;
  color:var(--txt-dim);
  transition:color .22s var(--ease);
}
.nav__num{ font-size:10.5px; color:var(--txt-faint); transition:color .22s var(--ease); }
.nav__links a:hover{ color:var(--txt); }
.nav__links a:hover .nav__num{ color:var(--acc); }
.nav__links a.is-active{ color:var(--acc-bright); }
.nav__links a.is-active .nav__num{ color:var(--acc); }

/* sliding pill behind active link */
.nav__marker{
  position:absolute; top:50%; left:0; height:34px; width:0;
  transform:translateY(-50%);
  border-radius:7px;
  background:rgba(168,85,247,.11);
  border:1px solid rgba(168,85,247,.24);
  box-shadow:0 0 18px rgba(168,85,247,.14) inset;
  opacity:0;
  transition:transform .38s var(--ease), width .38s var(--ease), opacity .3s var(--ease);
  pointer-events:none;
}
.nav__marker.is-on{ opacity:1; }

.nav__progress{
  position:absolute; bottom:-1px; left:0; height:1.5px; width:0%;
  background:linear-gradient(90deg, var(--acc-deep), var(--acc-bright));
  box-shadow:0 0 10px var(--acc-glow);
}

.nav__toggle{
  display:none;
  width:42px; height:38px; padding:0;
  background:transparent; border:1px solid var(--line); border-radius:8px;
  cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.nav__toggle span{
  display:block; width:17px; height:1.6px; background:var(--txt);
  transition:transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(5.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5.6px) rotate(-45deg); }

/* ============================================================
   SECTION SHELL
   ============================================================ */

main{ position:relative; z-index:1; }

.section{
  position:relative;
  padding:104px 0;
}
.section--hero{
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top:calc(var(--nav-h) + 26px);
  padding-bottom:56px;
}
.section--contact{ padding-bottom:0; }

.head{
  display:flex; align-items:center; gap:18px;
  margin-bottom:16px;
}
.head__title{
  font-size:clamp(20px, 3.2vw, 27px);
  color:var(--txt);
  white-space:nowrap;
}
.head__sigil{ color:var(--acc); margin-right:8px; }
.head__rule{
  flex:1; height:1px;
  background:linear-gradient(90deg, rgba(168,85,247,.42), var(--line-soft) 55%, transparent);
}
.head__idx{
  font-family:var(--mono); font-size:12px; color:var(--txt-faint);
  letter-spacing:.14em;
}
.head__sub{
  max-width:64ch; color:var(--txt-dim); font-size:16px;
  margin-bottom:44px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero{ max-width:900px; }

.hero__status{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:12.5px; color:var(--txt-dim);
  padding:7px 15px 7px 12px; margin-bottom:24px;
  border:1px solid var(--line); border-radius:999px;
  background:var(--panel);
}
.pulse{
  width:7px; height:7px; border-radius:50%; background:var(--acc);
  box-shadow:0 0 0 0 var(--acc-glow);
  animation:pulse 2.4s var(--ease) infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(168,85,247,.5); }
  70%{ box-shadow:0 0 0 9px rgba(168,85,247,0); }
  100%{ box-shadow:0 0 0 0 rgba(168,85,247,0); }
}

.hero__name{
  font-size:clamp(48px, 10vw, 94px);
  letter-spacing:-.045em;
  line-height:.98;
  margin-bottom:14px;
  background:linear-gradient(178deg, #ffffff 8%, #b9b4c8 62%, #6f6a80 100%);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}

.hero__tagline{
  font-family:var(--mono);
  font-size:clamp(14.5px, 2.5vw, 20px);
  color:var(--acc-bright);
  margin-bottom:22px;
  min-height:1.6em;
  display:flex; align-items:baseline; flex-wrap:wrap;
}
.hero__sigil{ color:var(--acc); margin-right:10px; opacity:.8; }
.typed{ white-space:pre-wrap; }

.hero__role{
  max-width:58ch; font-size:16.5px; color:var(--txt-dim);
  margin-bottom:30px;
}

/* stat block */
.stat{ margin-bottom:32px; }
.stat__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(290px, 1fr));
  gap:16px;
  max-width:880px;
}
.stat__frame{
  position:relative;
  display:flex; flex-direction:column;
  padding:20px 28px 22px;
  border:1px solid var(--line);
  border-left:2px solid var(--acc);
  border-radius:4px 14px 14px 4px;
  background:linear-gradient(100deg, rgba(168,85,247,.085), rgba(255,255,255,.014) 55%);
  overflow:hidden;
}
.stat__frame::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(420px circle at 0% 100%, rgba(168,85,247,.16), transparent 70%);
  pointer-events:none;
}
.stat__label{
  font-family:var(--mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--txt-faint); display:block; margin-bottom:6px;
}
.stat__value{
  font-family:var(--mono); font-weight:700;
  font-size:clamp(40px, 6.2vw, 58px);
  line-height:1.05;
  color:#fff;
  font-variant-numeric:tabular-nums;
  text-shadow:0 0 34px rgba(168,85,247,.45);
}
.stat__plus{ color:var(--acc); }
.stat__headline{
  position:relative; z-index:1;
  margin:10px 0 0;
  font-family:var(--mono); font-weight:600;
  font-size:clamp(17px, 2.1vw, 21px);
  line-height:1.25; letter-spacing:-.015em;
  background:linear-gradient(174deg, #ffffff 10%, #ded7ea 70%, #a89dbe 100%);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.stat__headline-accent{
  background:linear-gradient(174deg, var(--acc-bright), var(--acc));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.stat__caption{
  max-width:42ch; margin:8px 0 0;
  font-size:14px; color:var(--txt-dim); line-height:1.6;
  position:relative; z-index:1;
}

/* buttons */
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; }

.btn{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:14px; font-weight:500;
  padding:13px 24px; border-radius:10px;
  border:1px solid transparent;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease),
             background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--ease); }

.btn--primary{
  background:linear-gradient(180deg, var(--acc), var(--acc-deep));
  color:#fff;
  box-shadow:0 6px 26px rgba(124,58,237,.32);
}
.btn--primary:hover{ transform:translateY(-2px); box-shadow:0 10px 34px rgba(124,58,237,.48); }
.btn--primary:hover svg{ transform:translateX(4px); }

.btn--ghost{
  border-color:var(--line); color:var(--txt-dim); background:var(--panel);
}
.btn--ghost:hover{
  color:var(--txt); border-color:rgba(168,85,247,.45);
  background:rgba(168,85,247,.08); transform:translateY(-2px);
}
.btn--ghost:hover svg{ transform:translateY(3px); }
.btn:active{ transform:translateY(0); }

.scroll-hint{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:9px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.24em; text-transform:uppercase;
  color:var(--txt-faint);
}
.scroll-hint i{
  width:1px; height:34px;
  background:linear-gradient(to bottom, var(--acc), transparent);
  animation:drop 2.1s var(--ease) infinite;
}
@keyframes drop{
  0%{ transform:scaleY(.25); transform-origin:top; opacity:0; }
  35%{ opacity:1; }
  100%{ transform:scaleY(1); transform-origin:top; opacity:0; }
}

/* short laptop screens: drop the decorative hint rather than crowd the CTA */
@media (max-height:790px){
  .scroll-hint{ display:none; }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about{
  display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:52px; align-items:start;
  margin-top:26px;
}
.about__body p{ color:var(--txt-dim); font-size:16.5px; max-width:62ch; }

.panel{
  border:1px solid var(--line); border-radius:12px;
  background:rgba(12,12,20,.72);
  backdrop-filter:blur(6px);
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
.panel__bar,.terminal__bar{
  display:flex; align-items:center; gap:7px;
  padding:11px 14px;
  border-bottom:1px solid var(--line-soft);
  background:rgba(255,255,255,.028);
  font-family:var(--mono); font-size:11.5px; color:var(--txt-faint);
}
.panel__bar i,.terminal__bar i{
  width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.14);
}
.panel__bar i:first-child,.terminal__bar i:first-child{ background:rgba(168,85,247,.6); }
.panel__bar span,.terminal__bar span{ margin-left:8px; }

.panel__body{ margin:0; padding:8px 4px; }
.panel__body > div{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:10px 16px;
  font-family:var(--mono); font-size:13px;
  border-bottom:1px dashed var(--line-soft);
}
.panel__body > div:last-child{ border-bottom:0; }
.panel__body dt{ color:var(--txt-faint); }
.panel__body dd{ margin:0; color:var(--txt); text-align:right; }
.panel__body dd.accent{ color:var(--acc-bright); font-weight:600; }

/* ============================================================
   SYSTEM MODULES
   ============================================================ */

.modules{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
}

.module{
  position:relative; overflow:hidden;
  padding:26px 26px 28px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(170deg, rgba(255,255,255,.032), rgba(255,255,255,.008));
  transition:transform .38s var(--ease), border-color .38s var(--ease), box-shadow .38s var(--ease);
}
.module--wide{ grid-column:1 / -1; }

/* animated top edge */
.module::before{
  content:""; position:absolute; top:0; left:0; height:1px; width:100%;
  background:linear-gradient(90deg, transparent, var(--acc), transparent);
  transform:scaleX(0); transform-origin:left;
  transition:transform .55s var(--ease);
}
.module__glow{
  position:absolute; inset:0; opacity:0; pointer-events:none;
  background:radial-gradient(380px circle at var(--cx,50%) var(--cy,0%), rgba(168,85,247,.15), transparent 68%);
  transition:opacity .4s var(--ease);
}
.module:hover{
  transform:translateY(-5px);
  border-color:rgba(168,85,247,.4);
  box-shadow:0 18px 46px rgba(0,0,0,.5), 0 0 0 1px rgba(168,85,247,.1);
}
.module:hover::before{ transform:scaleX(1); }
.module:hover .module__glow{ opacity:1; }
.module:hover .module__icon{
  color:var(--acc-bright);
  border-color:rgba(168,85,247,.45);
  background:rgba(168,85,247,.12);
  transform:translateY(-2px);
}

.module__top{
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em;
  color:var(--txt-faint); margin-bottom:20px;
}
.module__state{ display:inline-flex; align-items:center; gap:7px; }
.module__state i{
  width:6px; height:6px; border-radius:50%;
  background:var(--acc); box-shadow:0 0 8px var(--acc);
  animation:pulse 2.8s var(--ease) infinite;
}

.module__icon{
  width:46px; height:46px; border-radius:11px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--txt-dim);
  margin-bottom:18px;
  transition:color .35s var(--ease), border-color .35s var(--ease),
             background .35s var(--ease), transform .35s var(--ease);
}
.module__icon svg{
  width:22px; height:22px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}

.module__title{
  font-size:18.5px; margin-bottom:11px; color:#fff;
  position:relative; z-index:1;
}
.module__desc{
  margin:0; font-size:15px; color:var(--txt-dim); line-height:1.68;
  max-width:58ch;
  position:relative; z-index:1;
}

/* ============================================================
   APPROACH / TENETS
   ============================================================ */

.tenets{
  list-style:none; margin:26px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:2px;
  border:1px solid var(--line); border-radius:14px; overflow:hidden;
  background:var(--line-soft);
}
.tenet{
  position:relative;
  padding:32px 30px 30px;
  background:rgba(9,9,14,.92);
  transition:background .35s var(--ease);
}
.tenet::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:linear-gradient(180deg, var(--acc), transparent);
  transform:scaleY(0); transform-origin:top;
  transition:transform .45s var(--ease);
}
.tenet:hover{ background:rgba(168,85,247,.05); }
.tenet:hover::before{ transform:scaleY(1); }
.tenet__n{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.2em;
  color:var(--acc); display:block; margin-bottom:12px;
}
.tenet h3{ font-size:17px; color:#fff; margin-bottom:10px; }
.tenet p{ margin:0; font-size:15px; color:var(--txt-dim); max-width:46ch; }

/* ============================================================
   CONTACT TERMINAL
   ============================================================ */

.terminal{
  max-width:660px;
  border:1px solid var(--line); border-radius:13px; overflow:hidden;
  background:rgba(10,10,16,.85);
  backdrop-filter:blur(8px);
  box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(168,85,247,.06);
}
.terminal__body{ padding:20px 20px 16px; }

.cmd{
  display:block; width:100%; text-align:left;
  font-family:var(--mono);
  background:transparent; border:1px solid transparent; border-radius:9px;
  padding:13px 15px; cursor:pointer; color:inherit;
  transition:background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cmd:hover{
  background:rgba(168,85,247,.07);
  border-color:rgba(168,85,247,.26);
  transform:translateX(3px);
}
.cmd__line{ display:flex; gap:10px; font-size:14.5px; color:var(--txt); }
.cmd__prompt{ color:var(--acc); }
.cmd__text{ color:var(--txt); }
.cmd:hover .cmd__text{ color:#fff; }

.cmd__out{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  padding-left:22px; margin-top:5px;
  font-size:14px;
}
.cmd__value{ color:var(--acc-bright); }
.cmd__hint{
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--txt-faint); opacity:0;
  transition:opacity .25s var(--ease);
}
.cmd:hover .cmd__hint{ opacity:1; }

.cmd--link{ text-decoration:none; }
.cmd__note{
  display:block; padding-left:22px; margin-top:7px;
  font-family:var(--sans); font-size:13.5px; line-height:1.5;
  color:var(--txt-dim);
}

.terminal__foot{
  margin:8px 0 0; padding-left:15px;
  font-family:var(--mono); font-size:14.5px;
  display:flex; align-items:center; gap:10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer{
  margin-top:96px;
  border-top:1px solid var(--line-soft);
  background:rgba(5,5,9,.55);
}
.footer__inner{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding-block:26px;
  font-family:var(--mono); font-size:12.5px; color:var(--txt-faint);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.js [data-reveal]{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay:var(--d, 0ms);
  will-change:opacity, transform;
}
.js [data-reveal].is-in{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:900px){
  .about{ grid-template-columns:1fr; gap:34px; }
  .modules{ grid-template-columns:1fr; }
  .module--wide{ grid-column:auto; }
  .tenets{ grid-template-columns:1fr; }
}

@media (max-width:760px){
  body{ font-size:16px; }
  :root{ --nav-h:60px; }

  .nav__toggle{ display:flex; }

  .nav__links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px;
    padding:12px 18px 20px;
    background:rgba(7,7,11,.97);
    border-bottom:1px solid var(--line-soft);
    backdrop-filter:blur(16px);
    transform:translateY(-12px);
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open{
    opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);
  }
  .nav__links a{ padding:13px 12px; font-size:15px; }
  .nav__marker{ display:none; }

  .section{ padding:76px 0; }
  .wrap{ padding-inline:20px; }

  .hero__status{ font-size:11.5px; padding:6px 13px 6px 11px; margin-bottom:20px; }
  .hero__role{ font-size:16px; }
  .stat__grid{ grid-template-columns:1fr; gap:14px; }
  .stat__frame{ padding:20px 22px; }
  .hero__cta{ gap:10px; }
  .btn{ flex:1 1 auto; justify-content:center; }

  .head{ gap:12px; }
  .head__idx{ display:none; }

  .module{ padding:22px 20px 24px; }
  .tenet{ padding:26px 22px; }

  .footer__inner{ flex-direction:column; align-items:flex-start; gap:6px; }
  .scroll-hint{ display:none; }

  /* lighter ambience on small screens */
  #grid-canvas{ display:none; }
  .ambient__scan{ display:none; }
  .ambient__grid{ background-size:44px 44px; }
}

/* ============================================================
   CUSTOM CURSOR
   a terminal block at the pointer, with corner brackets trailing
   behind it. main.js adds .cursor-on to <html> only on a real
   mouse/trackpad, so the OS cursor is never hidden without a
   replacement already painted.
   ============================================================ */

html.cursor-on, html.cursor-on *{ cursor:none !important; }

.cursor-dot,.cursor-ring{
  position:fixed; top:0; left:0; z-index:300;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s var(--ease);
  will-change:transform;
}
html.cursor-on .cursor-dot,
html.cursor-on .cursor-ring{ opacity:1; }

/* pointer left the window */
html.cursor-out .cursor-dot,
html.cursor-out .cursor-ring{ opacity:0; }

/* the block itself — same shape as the caret in the nav and terminal */
.cursor-dot{
  width:7px; height:13px;
  margin:-6.5px 0 0 -3.5px;
  background:var(--acc-bright);
  box-shadow:0 0 12px rgba(168,85,247,.8);
  transition:opacity .25s var(--ease), width .22s var(--ease), height .22s var(--ease),
             margin .22s var(--ease), background .22s var(--ease);
}
html.cursor-active .cursor-dot{
  width:5px; height:5px; margin:-2.5px 0 0 -2.5px;
  background:#fff;
}
html.cursor-down .cursor-dot{
  width:4px; height:4px; margin:-2px 0 0 -2px;
}

/* trailing reticle */
.cursor-ring__box{
  position:absolute;
  top:-16px; left:-16px;
  width:32px; height:32px;
  transition:transform .3s var(--ease);
}
html.cursor-active .cursor-ring__box{ transform:scale(1.5); }
html.cursor-down   .cursor-ring__box{ transform:scale(1.18); }

.cursor-ring__box i{
  position:absolute; width:9px; height:9px;
  border:1.5px solid rgba(168,85,247,.65);
  transition:border-color .25s var(--ease), width .25s var(--ease), height .25s var(--ease);
}
.cursor-ring__box i:nth-child(1){ top:0;    left:0;  border-right:0; border-bottom:0; }
.cursor-ring__box i:nth-child(2){ top:0;    right:0; border-left:0;  border-bottom:0; }
.cursor-ring__box i:nth-child(3){ bottom:0; right:0; border-left:0;  border-top:0; }
.cursor-ring__box i:nth-child(4){ bottom:0; left:0;  border-right:0; border-top:0; }

html.cursor-active .cursor-ring__box i{
  border-color:var(--acc-bright);
  width:11px; height:11px;
}

/* touch devices never get it, whatever the script decides */
@media (hover:none),(pointer:coarse){
  .cursor-dot,.cursor-ring{ display:none !important; }
  html.cursor-on, html.cursor-on *{ cursor:auto !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .js [data-reveal]{ opacity:1 !important; transform:none !important; }
  #grid-canvas{ display:none; }
  .caret{ opacity:1 !important; }
  .cursor-dot,.cursor-ring{ display:none !important; }
  html.cursor-on, html.cursor-on *{ cursor:auto !important; }
}
