/* Rednode landing (Nueva-inspired)
   - Keep it sharp: black + red, lots of negative space, hairline borders.
   - No external deps; swap in your preferred fonts if you have licenses.
*/

/* === FONT FACES === */

/* Built Titling family */
@font-face {
  font-family: 'Built Titling';
  src: url('../fonts/built titling el.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Built Titling';
  src: url('../fonts/built titling lt.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Built Titling';
  src: url('../fonts/built titling rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Built Titling';
  src: url('../fonts/built titling sb.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Built Titling';
  src: url('../fonts/built titling bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Display fonts */
@font-face {
  font-family: 'Unsteady Oversteer';
  src: url('../fonts/Unsteady Oversteer.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Sudbury Basin';
  src: url('../fonts/Sudbury Basin.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Sudbury Basin 3D';
  src: url('../fonts/Sudbury Basin 3d.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Senior Service';
  src: url('../fonts/Senior Service.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Borg 9';
  src: url('../fonts/Borg 9.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'FfRain';
  src: url('../fonts/FfRain-q27ol.ttf') format('truetype');
  font-display: swap;
}

/* Inter family */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Aeonik family */
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AeonikFono';
  src: url('../fonts/AeonikFonoRegular.woff2') format('woff2');
  font-display: swap;
}

/* Other body/mono fonts */
@font-face {
  font-family: 'OpenSauceOne';
  src: url('../fonts/OpenSauceOne-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'NectoMono';
  src: url('../fonts/NectoMono-Regular.otf') format('opentype');
  font-display: swap;
}

:root{
  --display-font: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Anton', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  --bg:#040406;
  --ink:#FC1234;
  --ink-70:hsla(351, 98%, 53%, 0.7);
  --ink-50:hsla(351, 98%, 53%, 0.5);
  --ink-25:hsla(351, 98%, 53%, 0.25);

  /* Amber accent (Rednode terminal style) */
  --amber:#ffbf00;
  --amber-light:#ffd633;
  --amber-dark:#cc9900;
  --amber-glow: 0 0 8px rgba(255, 191, 0, 0.4);

  --line: 1px solid var(--ink-50);
  --radius: 14px;
  --max: 1180px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.1;
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Background system (Nueva-like): big red glow + vignette + grain.
   Implemented as fixed layers so sections stay crisp while the backdrop feels deep.
*/
.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.bg__glow{
  position: absolute;
  top: -20%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(252,18,52,0.6) 0%, rgba(252,18,52,0.3) 30%, rgba(252,18,52,0.1) 50%, transparent 70%);
  filter: blur(100px);
  opacity: 1;
  transform: translateZ(0);
}


.bg__ellipse{
  position: absolute;
  top: 20%;
  right: 0;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(180,20,40,0.4) 0%, rgba(120,15,30,0.2) 40%, transparent 70%);
  filter: blur(80px);
  opacity: 1;
}

.bg__pattern{
  display:none;
}


.bg__vignette{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 150% 150% at 50% 50%, transparent 0%, transparent 50%, rgba(4,4,6,0.4) 80%, rgba(4,4,6,0.8) 100%);
}
.bg__grain{
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'720'%20height%3D'720'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.9'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'/%3E%3C/filter%3E%3Crect%20width%3D'720'%20height%3D'720'%20filter%3D'url(%23n)'%20opacity%3D'.22'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 720px 720px;
  mix-blend-mode: soft-light;
  opacity: .05;
  filter: contrast(90%) brightness(110%);
}


::selection{background-color: rgba(252,18,52,0.27); color: var(--ink);}
a{color:inherit; text-decoration:none; transition: all .25s ease-in-out}
a:hover{text-decoration: underline; color: var(--amber-light)}
code{
  font-family: var(--mono);
  font-size: .95em;
  color: var(--amber);
  text-shadow: var(--amber-glow);
}
.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left: 16px; top: 16px; width:auto; height:auto; padding: 10px 12px;
  background: var(--bg);
  border: var(--line);
  border-radius: 999px;
  outline: none;
}

.frame{
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.rule{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252,18,52,0.5), transparent);
}

.chrome{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(4,4,6,0.80);
}

.topbar{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  border-left: var(--line);
  border-right: var(--line);
  padding-inline: 18px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand__mark{
  width: 18px; height: 18px;
  display:grid; place-items:center;
  border: var(--line);
  border-radius: 999px;
  font-size: 11px;
}
.brand__text{font-size: 12px}

.nav{
  display:flex;
  gap: 14px;
  align-items:center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 11px;
}
.nav a{opacity: .9}
.nav a:hover{opacity: 1}
.nav__cta{
  padding: 6px 10px;
  border: 1px solid var(--ink-50);
  border-radius: 0;
  position: relative;
  background: rgba(252,18,52,0.04);
}
.nav__cta:hover{
  text-decoration: none;
  border-color: var(--amber);
  box-shadow: 0 0 8px rgba(255,191,0,0.2);
}

.hero{
  position: relative;
  padding: 54px 0 24px;
}
.hero + .section{
  padding-top: 24px;
}

.hero__rail{
  position:absolute;
  left: -10px;
  top: 88px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: rgba(252,18,52,0.88);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .85;
}
.hero__rail .rail__dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(252,18,52,0.75);
  box-shadow: 0 0 0 6px rgba(252,18,52,0.10);
}
@media (max-width: 920px){
  .hero__rail{display:none;}
}

.hero__right{
  position: relative;
  z-index: 2;
}
.hero__art{
  position:absolute;
  inset: -12% -22% -18% -22%;
  pointer-events:none;
  opacity: 0.28;
  filter: blur(60px) saturate(115%);
}

.hero__art svg{
  width: 100%;
  height: 100%;
  display:block;
}

.hero__grid{
  display:grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 920px){
  .hero__grid{grid-template-columns: 1fr; }
}
@media (min-width: 1200px){
  .hero__grid{grid-template-columns: minmax(0, 1fr) minmax(340px, 0.6fr); }
}
.hero__left{
  max-width: 820px;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.kicker{display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 18px}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(252,18,52,0.04);
}
.pill--ghost{
  background: transparent;
  padding: 6px 10px;
  font-weight: 750;
}

.h0{
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: clamp(72px, 8.5vw, 130px);
  line-height: 1.2;
  text-shadow: 0 10px 20px rgba(0,0,0,0.5);
  position: relative;
  padding-left: 32px;
  overflow: hidden;
  --tracer-target: calc(32px + 3.66em); /* O center position for tracer */
}
/* Wide viewports - balance hero text with tenets panel */
@media (min-width: 1400px){
  .hero__grid{
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.5fr);
    gap: 32px;
  }
  .h0{
    font-size: clamp(100px, 8vw, 140px);
    letter-spacing: -0.02em;
    --tracer-target: calc(32px + 3.53em); /* Adjusted for tighter letter-spacing */
  }
  .h0__grid{
    height: auto;
    min-height: clamp(240px, 22vw, 360px);
  }
}
/* Ultra-wide viewports - let hero text scale up more */
@media (min-width: 1800px){
  :root{
    --max: 1600px;
  }
  .hero__grid{
    grid-template-columns: 1fr minmax(380px, 420px);
    gap: 56px;
  }
  .hero__left{
    max-width: none;
  }
  .h0{
    font-size: clamp(130px, 7.5vw, 180px);
    letter-spacing: -0.02em;
  }
  .h0__grid{
    height: auto;
    min-height: clamp(300px, 20vw, 420px);
  }
}
/* Extreme wide viewports */
@media (min-width: 2200px){
  :root{
    --max: 1900px;
  }
  .h0{
    font-size: clamp(160px, 7.5vw, 210px);
  }
  .h0__grid{
    height: auto;
    min-height: clamp(360px, 18vw, 480px);
  }
}
/* L-bracket frame - vertical line */
.h0::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--amber);
  opacity: 0.5;
}
/* L-bracket frame - horizontal line extending to O */
.h0::after{
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: calc(var(--tracer-target) - 16px);
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}
/* Amber tracer particle */
.h0__tracer{
  position: absolute;
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), rgba(255,220,100,1));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--amber), 0 0 16px var(--amber), 0 0 24px rgba(255,191,0,0.6);
  opacity: 0;
  z-index: 20;
  animation: tracer-path 5s ease-in-out infinite;
}
/* Vertical tracer for upward movement */
.h0__tracer::before{
  content: "";
  position: absolute;
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--amber), rgba(255,220,100,1));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--amber), 0 0 16px var(--amber);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}
/* Downward tracer */
.h0__tracer::after{
  content: "";
  position: absolute;
  width: 3px;
  height: 30px;
  background: linear-gradient(0deg, rgba(255,220,100,1), var(--amber), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--amber), 0 0 24px var(--amber), 0 0 36px rgba(255,191,0,0.8);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}
@keyframes tracer-path{
  0%{
    /* Start at bottom of vertical bracket - offset by half tracer width (10px) to center on line */
    left: 6px;
    top: 100%;
    opacity: 0;
    transform: rotate(270deg);
  }
  5%{
    opacity: 1;
  }
  /* Travel up the vertical bracket */
  30%{
    left: 6px;
    top: -1px;
    opacity: 1;
    transform: rotate(270deg);
  }
  /* Turn at corner */
  35%{
    left: 6px;
    top: -1px;
    transform: rotate(0deg);
    opacity: 1;
  }
  /* Travel horizontally to above the O */
  65%{
    left: calc(var(--tracer-target) - 10px);
    top: -1px;
    transform: rotate(0deg);
    opacity: 1;
  }
  /* Turn down */
  70%{
    left: calc(var(--tracer-target) - 10px);
    top: -1px;
    transform: rotate(90deg);
    opacity: 1;
  }
  /* Strike down to the O - this triggers the glitch */
  78%{
    left: calc(var(--tracer-target) - 10px);
    top: 30px;
    transform: rotate(90deg);
    opacity: 1;
  }
  /* Flash and fade */
  80%{
    opacity: 0;
    left: calc(var(--tracer-target) - 10px);
    top: 30px;
    transform: rotate(90deg) scale(1.5);
  }
  100%{
    opacity: 0;
    left: 6px;
    top: 100%;
    transform: rotate(270deg);
  }
}
.h0__prefix{
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--amber);
  text-shadow:
    0 0 8px var(--amber),
    0 0 16px var(--amber);
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  animation: prefix-flicker 4s infinite;
  /* Positioned on the vertical arm of the bracket - aligned to top corner */
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  white-space: nowrap;
  z-index: 10;
}
.h0 > .h0__prefix{
  display: block;
}
.h0__prefix::before{
  display: none;
}
.h0__prefix::after{
  content: "_";
  animation: cursor-blink 1s step-end infinite;
  margin-left: 0.1em;
}
@keyframes prefix-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; text-shadow: 0 0 10px var(--amber), 0 0 20px var(--amber); }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; text-shadow: 0 0 10px var(--amber), 0 0 20px var(--amber), 0 0 40px var(--amber), 0 0 80px rgba(255, 191, 0, 0.5); }
}
@keyframes prefix-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.h0__on{
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 191, 0, 0.5);
  animation: on-glitch 5s infinite;
  background: repeating-linear-gradient(
    0deg,
    var(--amber) 0px,
    var(--amber) 2px,
    rgba(255, 191, 0, 0.7) 2px,
    rgba(255, 191, 0, 0.7) 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
}
@keyframes on-glitch {
  /* Synced with tracer-path - glitch triggers when tracer strikes at 78% */
  0%, 76%, 86%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
  }
  /* Tracer impact - big glitch */
  77% {
    filter: drop-shadow(0 0 20px rgba(255, 191, 0, 1)) brightness(1.5);
  }
  78% {
    filter: drop-shadow(-3px 0 #ff0040) drop-shadow(3px 0 #00ffff) drop-shadow(0 0 12px rgba(255, 191, 0, 0.8)) brightness(1.3);
  }
  79% {
    filter: drop-shadow(3px 0 #ff0040) drop-shadow(-3px 0 #00ffff) drop-shadow(0 0 10px rgba(255, 191, 0, 0.7));
  }
  80% {
    filter: drop-shadow(-2px 0 #ff0040) drop-shadow(2px 0 #00ffff) drop-shadow(0 0 8px rgba(255, 191, 0, 0.6));
  }
  81% {
    filter: drop-shadow(1px 0 #ff0040) drop-shadow(-1px 0 #00ffff) drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
  }
  82% {
    filter: drop-shadow(-1px 0 #ff0040) drop-shadow(1px 0 #00ffff) drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
  }
  83% {
    filter: drop-shadow(0 0 8px rgba(255, 191, 0, 0.6)) brightness(1.1);
  }
  84% {
    filter: drop-shadow(0 0 6px rgba(255, 191, 0, 0.5));
  }
}
.h0__grid{
  display: grid;
  grid-template-columns: auto auto auto;
  width: fit-content;
  /* Fixed height so font changes don't shift layout */
  height: clamp(160px, 19vw, 295px);
  overflow: visible;
}
.h0__pre{
  justify-self: end;
}
.h0__alt{
  opacity: .75;
}
.h0__alt .h0__on{
  animation-delay: -2.3s;
  animation-duration: 4s;
  margin-left: 0.04em;
}
.lede{
  margin-top: 18px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.4;
  opacity: .95;
}

.cta{display:flex; gap: 12px; margin-top: 30px; flex-wrap: wrap}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 0;
  border: 1px solid var(--ink-50);
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: 11px;
  background: transparent;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  /* Scanline effect */
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(252,18,52,0.08) 2px,
    rgba(252,18,52,0.08) 4px
  );
}
/* Animated amber border - line segment tracer with gradient trail */
.btn::before{
  content: '';
  position: absolute;
  z-index: 1;
  animation: btn-trace 4s linear infinite;
  /* Horizontal segment on top edge - gradient fades left (trail behind) */
  width: 20px;
  height: 1px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,191,0,0.7));
  box-shadow: 0 0 2px rgba(255,191,0,0.5);
}
@keyframes btn-trace {
  /* Top edge - moving right */
  0% {
    top: 0; left: 0;
    width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,191,0,0.7));
  }
  18% {
    top: 0; left: calc(100% - 20px);
    width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,191,0,0.7));
  }
  /* Corner: shrink to point at top-right */
  21% {
    top: 0; left: calc(100% - 1px);
    width: 1px; height: 1px;
    background: rgba(255,191,0,0.7);
  }
  /* Corner: expand downward */
  25% {
    top: 0; left: calc(100% - 1px);
    width: 1px; height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255,191,0,0.7));
  }
  /* Right edge - moving down */
  43% {
    top: calc(100% - 20px); left: calc(100% - 1px);
    width: 1px; height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255,191,0,0.7));
  }
  /* Corner: shrink to point at bottom-right */
  46% {
    top: calc(100% - 1px); left: calc(100% - 1px);
    width: 1px; height: 1px;
    background: rgba(255,191,0,0.7);
  }
  /* Corner: expand leftward */
  50% {
    top: calc(100% - 1px); left: calc(100% - 20px);
    width: 20px; height: 1px;
    background: linear-gradient(270deg, transparent, rgba(255,191,0,0.7));
  }
  /* Bottom edge - moving left */
  68% {
    top: calc(100% - 1px); left: 0;
    width: 20px; height: 1px;
    background: linear-gradient(270deg, transparent, rgba(255,191,0,0.7));
  }
  /* Corner: shrink to point at bottom-left */
  71% {
    top: calc(100% - 1px); left: 0;
    width: 1px; height: 1px;
    background: rgba(255,191,0,0.7);
  }
  /* Corner: expand upward */
  75% {
    top: calc(100% - 20px); left: 0;
    width: 1px; height: 20px;
    background: linear-gradient(0deg, transparent, rgba(255,191,0,0.7));
  }
  /* Left edge - moving up */
  93% {
    top: 0; left: 0;
    width: 1px; height: 20px;
    background: linear-gradient(0deg, transparent, rgba(255,191,0,0.7));
  }
  /* Corner: shrink to point at top-left */
  96% {
    top: 0; left: 0;
    width: 1px; height: 1px;
    background: rgba(255,191,0,0.7);
  }
  /* Corner: expand rightward (loops to 0%) */
  100% {
    top: 0; left: 0;
    width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,191,0,0.7));
  }
}
.btn:focus{outline: none; box-shadow: 0 0 0 2px rgba(255,191,0,0.25);}
.btn:hover{ text-decoration:none; border-color: var(--amber); }
.btn:hover::before{
  animation-duration: 1.5s;
}
.btn--primary{
  background-color: rgba(252,18,52,0.06);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(252,18,52,0.1) 2px,
    rgba(252,18,52,0.1) 4px
  );
}
.btn--ghost{
  background-color: rgba(4,4,6,0.4);
}

.meta{
  margin-top: 20px;
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  background: rgba(4,4,6,0.45);
}
.meta__row{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(252,18,52,0.18);
}
.meta__row:last-child{border-bottom: none}
.meta__label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: .85;
}
.meta__value{opacity: .95; line-height: 1.35}

.panel{
  backdrop-filter: blur(6px);
  border: var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(4,4,6,0.55);
}
.panel__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(252,18,52,0.22);
}
.panel__title{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
}
.panel__hint{opacity:1; font-family: var(--mono); font-size: 12px; color: var(--amber-dark)}
.panel__body{padding: 10px 14px 14px}

.spec{
  display:grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(252,18,52,0.18);
}
.spec:last-child{border-bottom:none}
.spec__k{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-dark);
}
.spec__title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  color: var(--amber);
}
.spec__desc{opacity:.95; line-height: 1.35; margin-top: 6px}

.panel__foot{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top: 10px;
  margin-top: 12px;
}
.tiny{font-size: 11px; opacity: .9; line-height: 1.35; color: var(--amber-dark)}
.link{opacity:.92}
.link:hover{opacity:1}
.sigil-sep{vertical-align: middle; margin: 0 8px;}

.hero__fade{
  position:absolute;
  inset: auto 0 -1px 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(4,4,6,1));
}

.section{padding: 66px 0}
.section--alt{background: rgba(252,18,52,0.03); border-top: var(--line); border-bottom: var(--line)}
.section__head{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 26px;
}
.section__num{
  width: 48px; height: 48px;
  border: var(--line);
  border-radius: 999px;
  display:grid; place-items:center;
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(252,18,52,0.04);
}
.h1{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sub{
  grid-column: 2 / -1;
  margin: 8px 0 0;
  opacity: .95;
  line-height: 1.4;
  max-width: 85ch;
}

.tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .tiles{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 620px){
  .tiles{grid-template-columns: 1fr;}
}
.tile{
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  background: rgba(4,4,6,0.45);
  min-height: 150px;
}
.tile__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tile__num{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-dark);
}
.tile__tag{
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  opacity: .9;
  border: 1px solid rgba(252,18,52,0.25);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(252,18,52,0.04);
}
.h2{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tile .h2{
  color: var(--amber);
}
.tile p{margin:0; opacity:.95; line-height: 1.35}

.receipt{
  border: var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(4,4,6,0.45);
}
.receipt__row{
  display:grid;
  grid-template-columns: 1.1fr 1.6fr 0.7fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(252,18,52,0.18);
  align-items: center;
}
/* Clickable app rows */
.receipt__row--app{
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.receipt__row--app:hover{
  background: rgba(252,18,52,0.06);
}
.receipt__row--app:hover code{
  color: var(--ink);
}
.receipt__row--app::after{
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18l6-6-6-6' stroke='%23FC1234' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.receipt__row--app:hover::after{
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}
@media (max-width: 860px){
  .receipt__row{grid-template-columns: 1fr; gap: 8px;}
}
.receipt__row:last-child{border-bottom:none}
.receipt__head{
  background: rgba(252,18,52,0.05);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.note{
  margin-top: 16px;
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(252,18,52,0.04);
}
.note__label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 10px;
}
.note p{margin:0; opacity:.95; line-height: 1.45}

.cols{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
@media (max-width: 900px){
  .cols{grid-template-columns: 1fr;}
}
.bullets{
  list-style:none;
  padding: 0;
  margin: 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(4,4,6,0.45);
}
.bullets li{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(252,18,52,0.18);
  line-height: 1.35;
}
.bullets li:last-child{border-bottom:none}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(252,18,52,0.65);
  background: rgba(252,18,52,0.10);
  flex: 0 0 auto;
}
.callout{
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(252,18,52,0.04);
}
.callout__title{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 12px;
}
.callout__links{display:flex; flex-wrap:wrap; gap: 12px; margin-bottom: 10px}

.faq{display:grid; gap: 12px}
.qa{
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(4,4,6,0.45);
  overflow:hidden;
}
.qa summary{
  cursor:pointer;
  padding: 16px;
  list-style:none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
}
.qa summary::-webkit-details-marker{display:none}
.qa summary:hover{background: rgba(252,18,52,0.05)}
.qa__body{
  padding: 0 16px 16px;
  opacity: .95;
  line-height: 1.45;
}

.download{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .download{grid-template-columns: 1fr;}
}
.download__box{
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(4,4,6,0.45);
}
.download__title{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}
.download__desc{margin:0 0 14px; opacity:.95; line-height: 1.45}
.download__actions{display:flex; gap: 10px; flex-wrap: wrap}

.form{display:grid; gap: 12px}
.field{display:grid; gap: 8px}
.field__label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  opacity: .9;
}
.input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(252,18,52,0.35);
  background: rgba(4,4,6,0.55);
  padding: 12px 12px;
  color: var(--amber);
  font-family: var(--body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder{color: var(--amber-dark); opacity: .6}
.input--area{resize: vertical}
.input:focus{border-color: var(--amber); box-shadow: var(--amber-glow);}

.footer{padding: 20px 0 28px; position: relative}
.footer__inner{
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 14px;
}
.footer__left{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer__right{
  position: absolute;
  right: 24px;
  bottom: 24px;
}
.brand--small .brand__text{font-size: 11px}
.brand--small .brand__mark{width: 16px; height: 16px}

.reveal{
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity: 1; transform: none; transition: none}
}



/* --- Projects / receipt list (Nueva-ish) --- */
.section--projects .section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 18px;
}
.section--projects .kicker{
  letter-spacing:.12em;
  font-weight:800;
  font-size: 12px;
  color: var(--ink);
}
.section--projects .meta{
  font-size: 12px;
  color: var(--amber-dark);
  text-align:right;
  max-width: 420px;
}

.section--projects .panel{
  border: 1px solid var(--ink-50);
  border-radius: 18px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(4,4,6,0.45), rgba(4,4,6,0.25));
}
.panel__pad{
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel__count{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.05em;
}

/* Animated sigil icons */
.sigil{
  width: 24px;
  height: 24px;
  display: block;
}
.sigil--spec .sigil__ring{
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  transform-origin: center;
  animation: sigil-spin 12s linear infinite;
}
.sigil--spec .sigil__core{
  fill: var(--amber);
  animation: sigil-pulse 2s ease-in-out infinite;
}
.sigil--spec .sigil__tick{
  stroke: var(--ink-50);
  stroke-width: 1;
}

.sigil--core .sigil__hex{
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  transform-origin: center;
}
.sigil--core .sigil__hex:nth-child(1){ animation: sigil-pulse 3s ease-in-out infinite; }
.sigil--core .sigil__hex:nth-child(2){ animation: sigil-pulse 3s ease-in-out infinite 0.5s; opacity: 0.6; }
.sigil--core .sigil__hex:nth-child(3){ animation: sigil-pulse 3s ease-in-out infinite 1s; opacity: 0.3; }
.sigil--core .sigil__dot{
  fill: var(--amber);
  animation: sigil-glow 2s ease-in-out infinite;
}

.sigil--cap .sigil__diamond{
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  transform-origin: center;
  animation: sigil-pulse 2.5s ease-in-out infinite;
}
.sigil--cap .sigil__ray{
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  transform-origin: center;
  animation: sigil-ray 3s ease-in-out infinite;
}
.sigil--cap .sigil__ray:nth-child(2){ animation-delay: 0.15s; }
.sigil--cap .sigil__ray:nth-child(3){ animation-delay: 0.3s; }
.sigil--cap .sigil__ray:nth-child(4){ animation-delay: 0.45s; }

.sigil--apps .sigil__grid{
  fill: var(--ink);
  animation: sigil-pulse 2s ease-in-out infinite;
}
.sigil--apps .sigil__grid:nth-child(2){ animation-delay: 0.2s; }
.sigil--apps .sigil__grid:nth-child(3){ animation-delay: 0.4s; }
.sigil--apps .sigil__grid:nth-child(4){ animation-delay: 0.6s; }
.sigil--apps .sigil__cursor{
  fill: var(--amber);
  animation: sigil-blink 1s step-end infinite;
}

@keyframes sigil-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes sigil-pulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.6; transform: scale(0.95); }
}
@keyframes sigil-glow{
  0%, 100%{ filter: drop-shadow(0 0 2px var(--amber)); }
  50%{ filter: drop-shadow(0 0 6px var(--amber)); }
}
@keyframes sigil-ray{
  0%, 100%{ opacity: 0.4; transform: scaleY(1); }
  50%{ opacity: 1; transform: scaleY(1.2); }
}
@keyframes sigil-blink{
  0%, 50%{ opacity: 1; }
  51%, 100%{ opacity: 0; }
}
.panel__heading{
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow:
    0 0 8px var(--amber),
    0 0 16px var(--amber);
  animation: prefix-flicker 4s infinite;
}
.panel__heading::after{
  content: "_";
  animation: cursor-blink 1s step-end infinite;
  margin-left: 0.1em;
}
.panel__pad .label{
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--ink);
}

.biglist{
  list-style:none;
  margin:0;
  padding:0;
}
.bigrow{
  border-top: 1px solid var(--ink-25);
  position: relative;
}
.bigrow:first-child{ border-top: 0; }

.bigrow__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 18px 18px;
  text-decoration:none;
  color: inherit;
}
.bigrow__link:hover{ text-decoration: none; }
.bigrow__left{ min-width:0; }
.bigrow__title{
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-weight: 900;
  font-family: var(--display-font);
  font-size: clamp(38px, 5.3vw, 96px);
  margin: 0 0 10px 0;
}
.bigrow[data-tone="red"] .bigrow__title{ color: var(--ink); }
.bigrow[data-tone="ink"] .bigrow__title{ color: var(--amber); }

.bigrow__right{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.out{
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink-50);
  border-radius: 12px;
  display:grid;
  place-items:center;
  color: var(--ink);
  position: relative;
  transition: all .2s ease;
}
.out svg{ width: 22px; height: 22px; }
.out--focus::after{
  content:"";
  position:absolute;
  inset:-18px -22px;
  border: 1px solid var(--ink-50);
  border-radius: 999px;
  opacity: .9;
}
.bigrow:hover{ background: rgba(252,18,52,0.04); }
.bigrow:hover .bigrow__title{ filter: drop-shadow(0 0 26px rgba(252,18,52,0.15)); }
.bigrow:hover .out{
  background: rgba(252,18,52,0.08);
  border-color: var(--ink-70);
  color: var(--amber);
}
/* Clickable component rows */
.bigrow--component{
  cursor: pointer;
}
.bigrow--component .bigrow__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px;
  text-decoration: none;
  color: inherit;
}

/* Chips align like Nueva pills */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  border: 1px solid var(--ink-50);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.chip--ink{
  color: var(--amber);
  border-color: var(--amber-dark);
}

/* Tiles/receipt inside panels - remove outer border, add padding */
.tiles--inpanel{
  border: none;
  border-radius: 0;
  padding: 14px;
  gap: 14px;
}
.receipt--inpanel{
  border: none;
  border-radius: 0;
}
.receipt--inpanel .receipt__row:first-child{
  border-top: 1px solid rgba(252,18,52,0.18);
}

/* ==========================================================================
   MOBILE / RESPONSIVE ENHANCEMENTS
   ========================================================================== */

/* Mobile navigation hamburger button */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all .2s ease;
}
.nav-toggle:hover{
  background: rgba(252,18,52,0.08);
  border-color: var(--ink);
}
.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation overlay */
.nav--mobile{
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(4,4,6,0.97);
  backdrop-filter: blur(12px);
  z-index: 49;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav--mobile.is-open{
  display: flex;
}
.nav--mobile a{
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: var(--line);
  border-radius: 14px;
  background: rgba(252,18,52,0.04);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all .2s ease;
}
.nav--mobile a:hover{
  background: rgba(252,18,52,0.10);
  text-decoration: none;
  border-color: var(--ink);
}
.nav--mobile .nav__cta{
  background: rgba(252,18,52,0.12);
  border-color: var(--ink);
  margin-top: 8px;
}

/* --- Small tablets and large phones (< 768px) --- */
@media (max-width: 768px){
  .nav-toggle{
    display: flex;
  }
  .nav{
    display: none;
  }

  .frame{
    width: calc(100% - 32px);
  }

  .topbar{
    padding: 14px 12px;
  }

  .hero{
    padding: 36px 0 20px;
  }

  .h0{
    font-size: clamp(48px, 12vw, 72px);
  }
  .h0__prefix{
    font-size: 10px;
    padding: 0.4em 0.5em;
    left: -40px;
  }

  .lede{
    font-size: 14px;
  }

  .section{
    padding: 48px 0;
  }

  .section__head{
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .section__num{
    width: 40px;
    height: 40px;
    font-size: 11px;
  }
  .h1{
    font-size: 16px;
  }

  .panel__body{
    padding: 8px 12px 12px;
  }

  .spec{
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .meta__row{
    grid-template-columns: 80px 1fr;
  }

  .bigrow__title{
    font-size: clamp(28px, 8vw, 48px);
  }
  .bigrow__link{
    padding: 14px 14px;
    gap: 16px;
  }
  .out{
    width: 36px;
    height: 36px;
  }
  .out svg{
    width: 18px;
    height: 18px;
  }

  .chips{
    gap: 6px;
  }
  .chip{
    padding: 3px 8px;
    font-size: 10px;
  }

  .footer__inner{
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer__left{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer__right{
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Mobile phones (< 480px) --- */
@media (max-width: 480px){
  body{
    font-size: 13px;
  }

  .frame{
    width: calc(100% - 24px);
  }

  .topbar{
    padding: 12px 10px;
  }
  .brand__text{
    font-size: 11px;
  }

  .hero{
    padding: 28px 0 16px;
  }

  .h0{
    font-size: clamp(36px, 14vw, 56px);
  }
  .h0__prefix{
    font-size: 9px;
    letter-spacing: 0.25em;
    left: -35px;
  }
  .h0__grid{
    display: block;
    height: clamp(100px, 30vw, 140px);
  }
  .h0__alt{
    display: block;
    margin-top: -0.08em;
  }

  .lede{
    font-size: 13px;
    margin-top: 14px;
  }
  .lede br{
    display: none;
  }

  .cta{
    flex-direction: column;
    gap: 10px;
  }
  .btn{
    width: 100%;
    padding: 14px 16px;
  }

  .meta{
    padding: 12px 12px 10px;
  }
  .meta__row{
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .meta__label{
    font-size: 10px;
  }

  .kicker{
    gap: 8px;
    margin-bottom: 14px;
  }
  .pill{
    padding: 6px 10px;
    font-size: 10px;
  }

  .section{
    padding: 36px 0;
  }
  .section__head{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section__num{
    width: 36px;
    height: 36px;
    font-size: 10px;
  }
  .sub{
    grid-column: 1;
  }

  .tile{
    padding: 14px 14px 16px;
    min-height: auto;
  }
  .tile__top{
    margin-bottom: 12px;
  }
  .tile__tag{
    font-size: 9px;
    padding: 5px 8px;
  }
  .h2{
    font-size: 13px;
  }

  .panel__head{
    padding: 12px 12px 10px;
  }
  .panel__title{
    font-size: 10px;
  }

  .spec__title{
    font-size: 10px;
  }
  .spec__desc{
    font-size: 12px;
  }

  .receipt__row{
    padding: 12px 14px;
  }
  .receipt__head{
    font-size: 10px;
  }

  .bigrow__title{
    font-size: clamp(24px, 10vw, 36px);
    margin-bottom: 8px;
  }
  .bigrow__link{
    padding: 12px 12px;
    gap: 12px;
  }
  .panel__pad{
    padding: 14px 14px 6px;
  }
  .panel__pad .label{
    font-size: 11px;
  }

  .out{
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .out svg{
    width: 16px;
    height: 16px;
  }

  .chip{
    padding: 2px 6px;
    font-size: 9px;
  }

  .footer{
    padding: 16px 0 24px;
  }
  .footer__inner{
    padding-top: 12px;
  }
  .footer__right{
    gap: 12px;
  }
}

/* --- Very small screens (< 360px) --- */
@media (max-width: 360px){
  .frame{
    width: calc(100% - 16px);
  }

  .h0{
    font-size: clamp(28px, 16vw, 44px);
  }
  .h0__prefix{
    font-size: 8px;
    letter-spacing: 0.20em;
    left: -30px;
  }

  .brand__text{
    font-size: 10px;
    letter-spacing: 0.10em;
  }

  .bigrow__title{
    font-size: clamp(20px, 12vw, 30px);
  }

  .chip{
    font-size: 8px;
    padding: 2px 5px;
  }
}

/* ==========================================================================
   FONT SWITCHER (dev tool - remove for production)
   ========================================================================== */
.font-switcher{
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: rgba(4,4,6,0.95);
  border: 1px solid var(--ink-50);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  font-size: 11px;
  max-width: 240px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.font-switcher__title{
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.font-switcher__close{
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.font-switcher__close:hover{ opacity: 1; }
.font-switcher__group{
  margin-bottom: 10px;
}
.font-switcher__label{
  display: block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
}
.font-switcher__select{
  width: 100%;
  background: rgba(252,18,52,0.08);
  border: 1px solid var(--ink-50);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  outline: none;
}
.font-switcher__select:focus{
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(252,18,52,0.15);
}
.font-switcher__select option{
  background: #0a0a0c;
  color: var(--ink);
}
.font-switcher__toggle{
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  background: rgba(4,4,6,0.9);
  border: 1px solid var(--ink-50);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.font-switcher__toggle:hover{
  border-color: var(--ink);
  background: rgba(252,18,52,0.1);
}
.font-switcher__slider-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.font-switcher__slider{
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(252,18,52,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.font-switcher__slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.font-switcher__slider::-webkit-slider-thumb:hover{
  transform: scale(1.2);
}
.font-switcher__slider::-moz-range-thumb{
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.font-switcher__slider-val{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  min-width: 36px;
  text-align: right;
}
.font-switcher__reset{
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--ink-25);
  border-radius: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.font-switcher__reset:hover{
  background: rgba(252,18,52,0.08);
  border-color: var(--ink-50);
}
.font-switcher.is-hidden{ display: none; }
.font-switcher__toggle.is-hidden{ display: none; }

/* --- Landscape mobile (short viewport) --- */
@media (max-height: 500px) and (max-width: 900px){
  .hero{
    padding: 20px 0 16px;
  }
  .h0{
    font-size: clamp(32px, 8vw, 48px);
  }
  .lede{
    margin-top: 10px;
  }
  .cta{
    margin-top: 12px;
  }
  .meta{
    margin-top: 14px;
  }
  .section{
    padding: 32px 0;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse){
  .btn{
    min-height: 44px;
  }
  .nav-toggle{
    min-width: 44px;
    min-height: 44px;
  }
  .qa summary{
    min-height: 44px;
  }
  .bigrow__link{
    min-height: 72px;
  }
}

/* === JSPANEL CUSTOM THEME (Rednode) === */
.jsPanel.jsPanel-theme-rednode{
  border-radius: 14px !important;
  border: 1px solid var(--ink-50) !important;
  background: #040406 !important;
  background-color: #040406 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(252,18,52,0.15) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-hdr{
  background: rgba(252,18,52,0.12) !important;
  background-color: rgba(252,18,52,0.12) !important;
  border-bottom: 1px solid var(--ink-25) !important;
  padding: 0 !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-headerbar{
  padding: 12px 16px !important;
  background: transparent !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-titlebar{
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--amber) !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-title{
  color: var(--amber) !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-controlbar{
  gap: 4px !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-btn{
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: rgba(252,18,52,0.15) !important;
  border: 1px solid var(--ink-25) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-btn:hover{
  background: rgba(252,18,52,0.25) !important;
  border-color: var(--ink-50) !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-btn svg{
  fill: var(--red) !important;
  width: 14px !important;
  height: 14px !important;
}
.jsPanel.jsPanel-theme-rednode .jsPanel-content{
  background: #040406 !important;
  background-color: #040406 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
/* jsPanel footer for navigation */
.jsPanel.jsPanel-theme-rednode .jsPanel-ftr{
  background: rgba(252,18,52,0.08) !important;
  background-color: rgba(252,18,52,0.08) !important;
  border-top: 1px solid var(--ink-25) !important;
  padding: 12px 16px !important;
}

/* App viewer content styles */
.app-viewer{
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  animation: app-viewer-in 0.3s ease-out;
}
@keyframes app-viewer-in{
  from{
    opacity: 0;
    transform: translateY(8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.app-viewer__header{
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--ink-25);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.app-viewer__icon{
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink-50);
  border-radius: 14px;
  background: rgba(252,18,52,0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: app-icon-pulse 3s ease-in-out infinite;
}
@keyframes app-icon-pulse{
  0%, 100%{ box-shadow: 0 0 0 rgba(252,18,52,0); }
  50%{ box-shadow: 0 0 20px rgba(252,18,52,0.2); }
}
.app-viewer__icon svg{
  width: 32px;
  height: 32px;
  color: var(--ink);
}
.app-viewer__meta{
  flex: 1;
  min-width: 0;
}
.app-viewer__name{
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.app-viewer__purpose{
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
  margin: 0 0 10px;
}
.app-viewer__mode{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--ink-50);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(252,18,52,0.05);
}
/* Tech tags for components */
.app-viewer__tech{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.app-viewer__tech-tag{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--amber-dark);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255,191,0,0.08);
}
.app-viewer__body{
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.app-viewer__section{
  margin-bottom: 24px;
}
.app-viewer__section:last-child{
  margin-bottom: 0;
}
.app-viewer__section-title{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin: 0 0 12px;
}
.app-viewer__media{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.app-viewer__media-item{
  aspect-ratio: 16/10;
  border: 1px solid var(--ink-25);
  border-radius: 10px;
  background: rgba(252,18,52,0.03);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.app-viewer__media-item img,
.app-viewer__media-item video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-viewer__media-placeholder{
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-viewer__features{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-viewer__feature{
  padding: 6px 12px;
  border: 1px solid var(--ink-25);
  border-radius: 8px;
  font-size: 12px;
  background: rgba(252,18,52,0.03);
}
/* App viewer navigation footer */
.app-viewer__nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--ink-25);
  background: rgba(252,18,52,0.03);
}
.app-viewer__nav-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink-50);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
/* Amber border tracer on nav buttons */
.app-viewer__nav-btn::before{
  content: '';
  position: absolute;
  z-index: 1;
  animation: btn-trace 4s linear infinite;
  width: 16px;
  height: 1px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,191,0,0.6));
  box-shadow: 0 0 2px rgba(255,191,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.app-viewer__nav-btn:hover::before{
  opacity: 1;
  animation-duration: 2s;
}
.app-viewer__nav-btn:hover{
  background: rgba(252,18,52,0.1);
  border-color: var(--amber);
  color: var(--amber);
}
.app-viewer__nav-btn:disabled{
  opacity: 0.3;
  cursor: not-allowed;
}
.app-viewer__nav-btn:disabled::before{
  display: none;
}
.app-viewer__nav-btn svg{
  width: 16px;
  height: 16px;
}
.app-viewer__nav-indicator{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
}
/* Scanline overlay for that terminal vibe */
.app-viewer::before{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(252,18,52,0.015) 2px,
    rgba(252,18,52,0.015) 4px
  );
  z-index: 100;
}

/* === EPIC DOWNLOAD SECTION === */
.download-section{
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.download-arena{
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OS Ring - positioned around center */
.os-ring{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.os-node{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-50);
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: default;
}
.os-node:hover{
  color: var(--ink);
}
.os-node:hover .os-icon{
  transform: scale(1.1);
}
.os-icon{
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}
.os-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.os-connector{
  position: absolute;
  background: linear-gradient(to bottom, var(--ink-25), transparent);
  width: 1px;
  height: 60px;
  transform-origin: top center;
}

/* Position each OS node around the circle */
.os-node--linux{ top: 5%; left: 50%; transform: translateX(-50%); }
.os-node--linux .os-connector{ top: 100%; height: 120px; }

.os-node--macos{ top: 25%; right: 22%; }
.os-node--macos .os-connector{
  top: 50%; left: -120px; width: 120px; height: 1px;
  background: linear-gradient(to left, var(--ink-25), transparent);
}

.os-node--windows{ top: 25%; left: 22%; }
.os-node--windows .os-connector{
  top: 50%; right: -120px; left: auto; width: 120px; height: 1px;
  background: linear-gradient(to right, var(--ink-25), transparent);
}

.os-node--freebsd{ bottom: 25%; right: 22%; }
.os-node--freebsd .os-connector{
  top: 50%; left: -120px; width: 120px; height: 1px;
  background: linear-gradient(to left, var(--ink-25), transparent);
}

.os-node--openbsd{ bottom: 25%; left: 22%; }
.os-node--openbsd .os-connector{
  top: 50%; right: -120px; left: auto; width: 120px; height: 1px;
  background: linear-gradient(to right, var(--ink-25), transparent);
}

.os-node--netbsd{ bottom: 5%; left: 50%; transform: translateX(-50%); }
.os-node--netbsd .os-connector{ bottom: 100%; top: auto; height: 120px;
  background: linear-gradient(to top, var(--ink-25), transparent);
}

/* Central Grail */
.grail{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
}
.grail__glow{
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252,18,52,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: grail-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.grail__ring{
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--ink-25);
  border-radius: 50%;
  animation: grail-ring-pulse 4s ease-in-out infinite;
}
.grail__ring::before{
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px dashed var(--ink-25);
  border-radius: 50%;
  opacity: 0.5;
  animation: grail-spin 30s linear infinite;
}
.grail__core{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: rgba(4,4,6,0.9);
  border: 1px solid var(--ink-50);
  animation: grail-float 4s ease-in-out infinite;
  text-decoration: none;
  overflow: hidden;
}
.grail__core--btn{
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.grail__core--btn:hover{
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255,191,0,0.2);
  text-decoration: none;
}
/* Amber border tracer for grail */
.grail__core--btn::before{
  content: '';
  position: absolute;
  z-index: 1;
  animation: btn-trace 4s linear infinite;
  width: 30px;
  height: 1px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,191,0,0.7));
  box-shadow: 0 0 2px rgba(255,191,0,0.5);
}
.grail__cta{
  margin-top: 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.grail__icon{
  width: 80px;
  height: 80px;
  animation: grail-glitch 5s steps(1) infinite;
}
.grail__label{
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.grail__size{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  opacity: 0.8;
}

/* Grail animations */
@keyframes grail-pulse{
  0%, 100%{ transform: scale(1); opacity: 0.6; }
  50%{ transform: scale(1.1); opacity: 1; }
}
@keyframes grail-ring-pulse{
  0%, 100%{ transform: scale(1); opacity: 0.3; }
  50%{ transform: scale(1.05); opacity: 0.6; }
}
@keyframes grail-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes grail-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
@keyframes grail-glitch{
  0%, 95%, 100%{ transform: translate(0); filter: none; }
  96%{ transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  97%{ transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
  98%{ transform: translate(-1px, -1px); filter: none; }
  99%{ transform: translate(1px, 1px); filter: hue-rotate(45deg); }
}

.download-tagline{
  text-align: center;
  margin-top: 40px;
  color: var(--amber-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Mobile adjustments for download section */
@media (max-width: 768px){
  .download-arena{ min-height: 400px; }
  .os-node{ display: none; }
  .grail__glow{ width: 200px; height: 200px; }
  .grail__ring{ width: 150px; height: 150px; }
  .grail__icon{ width: 60px; height: 60px; }
}
