/* =========================================================
   UrielSec — style
   Palette taken from the official logos:
   deep navy / gun-metal / steel blue
   ========================================================= */

:root {
  --bg: #05080f;
  --bg-2: #0a1120;
  --surface: rgba(12, 19, 34, 0.72);
  --surface-2: rgba(18, 28, 48, 0.82);
  --line: rgba(127, 163, 217, 0.16);
  --line-strong: rgba(127, 163, 217, 0.38);

  --steel: #7fa3d9;
  --steel-bright: #b3caef;
  --steel-deep: #3f6aa8;
  --metal: #2a3346;

  --text: #dbe3f0;
  --muted: #8794ab;
  --dim: #5b677d;

  --red: #e0606b;
  --green: #5fd49a;
  --amber: #e6b553;

  --display: "Bahnschrift", "DIN Alternate", "Eurostile", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 4px;
  --max: 1140px;
  --cut: 14px; /* angled corner size, echoing the logo shapes */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--steel-bright); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--steel-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.75) hue-rotate(-8deg);
}
.bg__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(80, 120, 190, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, rgba(5, 8, 15, 0.78) 60%, rgba(5, 8, 15, 0.92) 100%);
}
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127, 163, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 163, 217, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.bg__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; perspective: 400px; }
.nav__shield {
  width: 34px; height: auto;
  filter: drop-shadow(0 0 8px rgba(127, 163, 217, 0.45));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s;
}
.nav__word { height: 17px; width: auto; transition: filter .3s; }
.nav__brand:hover .nav__shield { transform: rotateY(360deg); filter: drop-shadow(0 0 12px rgba(127, 163, 217, 0.85)); }
.nav__brand:hover .nav__word { filter: brightness(1.25) drop-shadow(0 0 6px rgba(127, 163, 217, 0.5)); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); position: relative;
}
.nav__links > a::before { content: "/"; color: var(--steel-deep); margin-right: 4px; }
.nav__links > a:hover { color: var(--steel-bright); }

.lang {
  display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.lang button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; padding: 6px 10px; letter-spacing: 0.08em;
}
.lang button[aria-pressed="true"] { background: var(--steel-deep); color: #fff; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--steel-bright); }

.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); width: 42px; height: 38px; cursor: pointer; padding: 9px;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; background: var(--steel-bright); transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - 65px), 1000px);
  min-height: min(calc(100svh - 65px), 1000px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 16px 90px;
}
.hero__glow {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  width: min(720px, 110vw); height: 480px;
  background: radial-gradient(ellipse at center, rgba(110, 150, 215, 0.28), transparent 65%);
  pointer-events: none;
}
.hero__float {
  position: relative;
  perspective: 900px;
  margin: 10px 0 30px;
  animation: float 6s ease-in-out infinite;
}
.hero__emblem {
  width: clamp(250px, 31vw, 390px); height: auto;
  filter: brightness(1.45) contrast(1.05) drop-shadow(0 0 24px rgba(127, 163, 217, 0.5));
  will-change: transform;
}
.hero__float::after { /* soft shadow that breathes with the float */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -28px; height: 14px;
  background: radial-gradient(ellipse at center, rgba(127, 163, 217, 0.3), transparent 70%);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.78); opacity: 0.5; } }

.term {
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  margin: 0 0 6px; position: relative;
}
.term__prompt { color: var(--green); }
.term__cmd { color: var(--steel-bright); }
.term__cursor { color: var(--steel-bright); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.2s steps(1) infinite; }

.hero__title {
  margin: 10px auto 22px; line-height: 0; position: relative;
  width: min(680px, 88vw);
  will-change: transform;
}
.hero__title img {
  width: 100%; height: auto;
  filter: brightness(1.12) drop-shadow(0 6px 22px rgba(80, 120, 190, 0.35));
}
/* Light sweep: a brightened copy of the wordmark, revealed only inside a
   moving diagonal band (gradient mask, so it works even when opened as a local file) */
.hero__title .hero__shine {
  position: absolute; inset: 0; pointer-events: none;
  filter: brightness(3.4) saturate(0.45) drop-shadow(0 0 6px rgba(210, 230, 255, 0.9));
  opacity: 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 39%, rgba(0,0,0,.45) 45%, #000 50%, rgba(0,0,0,.45) 55%, transparent 61%);
  mask-image: linear-gradient(100deg, transparent 39%, rgba(0,0,0,.45) 45%, #000 50%, rgba(0,0,0,.45) 55%, transparent 61%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.hero__title.is-sweeping .hero__shine { animation: shine 1.8s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes shine {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  90%  { opacity: 1; }
  100% { opacity: 0; -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}

.nots {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  font-family: var(--mono); font-size: clamp(14px, 1.6vw, 17px);
}
.nots li { color: var(--muted); }
.nots__tag { color: var(--red); }
.nots s, .deny s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.hero__is {
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 40px);
  margin: 0 0 14px; color: #fff; letter-spacing: 0.02em;
}
.hero__is em { font-style: normal; color: var(--steel-bright); }

.hero__sub { max-width: 620px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--steel); border-radius: 2px; animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, #4a76b6, #2d4f84); color: #fff; border-color: transparent; }
.btn--primary:hover { background: linear-gradient(135deg, #5b88c9, #365c96); color: #fff; }
.btn--ghost { background: rgba(127, 163, 217, 0.06); color: var(--steel-bright); }
.btn--ghost:hover { background: rgba(127, 163, 217, 0.16); }
.btn--disabled { background: rgba(127, 163, 217, 0.05); color: var(--dim); cursor: not-allowed; text-transform: uppercase; font-size: 12px; }
.btn__ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 110px 16px 40px;
}
.section__head { margin-bottom: 46px; }
.section__idx { font-family: var(--mono); color: var(--steel); font-size: 14px; letter-spacing: 0.1em; }
.section h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 6px 0 10px; line-height: 1.15; letter-spacing: 0.01em; color: #fff;
}
.section__lead { color: var(--muted); max-width: 640px; margin: 0; font-size: 18px; }

/* Shared angled panel style */
.panel, .pillar, .card, .store, .idcard, .contact, .privacy {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* Manifesto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.panel { padding: 26px 28px; }
.panel__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; margin: 0 0 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.panel--deny { border-left: 2px solid rgba(224, 96, 107, 0.6); }
.panel--grant { border-left: 2px solid rgba(95, 212, 154, 0.6); }
.deny, .grant { list-style: none; padding: 0; margin: 0; }
.deny li { font-family: var(--display); font-size: 22px; color: var(--dim); padding: 4px 0; }
.grant li { padding: 6px 0; color: var(--muted); }
.grant strong { font-family: var(--display); font-size: 22px; color: #fff; font-weight: 600; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot--amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 2s ease-in-out infinite; }
.dot--blue { background: var(--steel); box-shadow: 0 0 8px var(--steel); }
@keyframes pulse { 50% { opacity: 0.35; } }

.prose { max-width: 780px; margin-bottom: 50px; }
.prose p { font-size: 19px; color: var(--text); margin: 0 0 16px; }
.prose strong { color: var(--steel-bright); font-weight: 600; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 26px 22px; transition: border-color .25s, transform .25s; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar svg, .card__icon, .store__icon, .contact svg {
  width: 34px; height: 34px; fill: none; stroke: var(--steel); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-family: var(--display); font-size: 20px; margin: 16px 0 8px; color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* Projects */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; padding: 22px; color: var(--text);
  transition: border-color .25s, transform .25s, background .25s;
  position: relative;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--steel), transparent);
  transition: width .4s;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-4px); background: var(--surface-2); color: var(--text); }
a.card:hover::after { width: 100%; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.card__id { color: var(--dim); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-transform: uppercase; }
.card h3 { font-family: var(--display); font-size: 26px; margin: 14px 0 8px; color: #fff; font-weight: 600; }
.card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.card__link { font-family: var(--mono); font-size: 12.5px; color: var(--steel-bright); word-break: break-all; }
.card__link--muted { color: var(--dim); }
.card--more { border-style: dashed; background: rgba(12, 19, 34, 0.45); }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.store { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.store > div { flex: 1; }
.store h3 { margin: 0; font-family: var(--display); font-size: 19px; color: #fff; font-weight: 600; }
.store p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Timeline */
.timeline-wrap { position: relative; max-width: 780px; }
.timeline__track {
  position: absolute; left: 7px; top: 14px; bottom: 60px; width: 2px;
  background: rgba(127, 163, 217, 0.12);
}
.timeline__fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--steel-deep), var(--steel-bright));
  box-shadow: 0 0 10px rgba(127, 163, 217, 0.6);
  transform-origin: top; transform: scaleY(var(--progress, 1));
}
.timeline__packet { /* a small "data packet" travelling down the line */
  position: absolute; left: -3px; top: 0; width: 8px; height: 24px; border-radius: 4px;
  background: linear-gradient(180deg, transparent, #fff 65%, var(--steel-bright));
  box-shadow: 0 0 14px 2px rgba(179, 202, 239, 0.75);
  opacity: 0;
  animation: packet 3.8s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes packet { 0% { top: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 38px 42px; transition: transform .35s ease; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  background: var(--bg-2); border: 2px solid var(--steel); transform: rotate(45deg);
  transition: border-color .4s, box-shadow .4s, background .4s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.js .timeline li::before { border-color: var(--dim); }
.timeline li::after { /* radar ping around the node */
  content: ""; position: absolute; left: -6px; top: 0; width: 28px; height: 28px;
  border: 1px solid var(--steel); transform: rotate(45deg) scale(.6); opacity: 0; pointer-events: none;
}
.js .timeline li.is-active::before { border-color: var(--steel); background: #142441; box-shadow: 0 0 12px rgba(127, 163, 217, .55); }
.timeline li.is-active::after { animation: ping 2.8s ease-out infinite; }
.timeline li:nth-child(2).is-active::after { animation-delay: .7s; }
.timeline li:nth-child(3).is-active::after { animation-delay: 1.4s; }
.timeline li:nth-child(4).is-active::after { animation-delay: 2.1s; }
@keyframes ping { 0% { transform: rotate(45deg) scale(.6); opacity: .9; } 100% { transform: rotate(45deg) scale(1.8); opacity: 0; } }
.timeline li:hover { transform: translateX(8px); }
.js .timeline li:hover::before, .timeline li:hover::before {
  transform: rotate(225deg) scale(1.25); border-color: var(--steel-bright); background: var(--steel-deep);
  box-shadow: 0 0 18px rgba(179, 202, 239, .9);
}
.timeline h3 { transition: color .3s, text-shadow .3s; }
.timeline li:hover h3 { color: var(--steel-bright); text-shadow: 0 0 14px rgba(127, 163, 217, .5); }
.timeline__next::before { border-style: dashed !important; }
.timeline__when { font-family: var(--mono); color: var(--steel); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.timeline h3 { font-family: var(--display); font-size: 23px; margin: 2px 0 6px; color: #fff; font-weight: 600; }
.timeline p { margin: 0; color: var(--muted); }

/* Founder */
.idcard { max-width: 900px; padding: 0; }
.idcard__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: rgba(5, 8, 15, 0.5);
}
.idcard__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--metal); }
.idcard__bar code { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-left: 8px; }
.idcard__body { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 34px; }
.idcard__emblem { width: 170px; height: auto; align-self: start; margin-top: 24px; filter: brightness(1.4) drop-shadow(0 0 16px rgba(127, 163, 217, 0.4)); }
.idcard__key { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--dim); margin: 0 0 2px; text-transform: uppercase; }
.idcard__name { font-family: var(--display); font-size: 38px; margin: 0 0 14px; color: #fff; letter-spacing: 0.06em; font-weight: 600; }
.idcard__val { margin: 0 0 14px; color: var(--steel-bright); }
.chips { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--mono); font-size: 12.5px; color: var(--steel-bright);
  border: 1px solid var(--line-strong); background: rgba(127, 163, 217, 0.07);
  padding: 5px 11px; border-radius: var(--radius);
}
.idcard__bio { color: var(--muted); margin: 0 0 24px; }

/* Contact */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; color: var(--text); transition: border-color .25s, transform .25s, background .25s; }
.contact:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); color: var(--text); }
.contact svg { margin-bottom: 12px; }
.contact__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.contact__v { font-family: var(--display); font-size: 19px; color: var(--steel-bright); word-break: break-all; }

.privacy { margin-top: 26px; padding: 22px 26px; border-left: 2px solid rgba(95, 212, 154, 0.6); }
.privacy__head { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--green); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.privacy ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.privacy li { font-family: var(--mono); font-size: 14px; color: var(--text); }
.privacy li::before { content: "✓ "; color: var(--green); }
.privacy__note { margin: 0; font-size: 13.5px; color: var(--dim); }

/* Footer */
.footer {
  margin-top: 90px; padding: 40px 16px 34px; text-align: center;
  border-top: 1px solid var(--line); background: rgba(5, 8, 15, 0.8);
  color: var(--muted); font-size: 14.5px;
}
.footer p { margin: 6px 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer__shield { width: 30px; height: auto; filter: drop-shadow(0 0 6px rgba(127, 163, 217, 0.45)); }
.footer__word { height: 15px; width: auto; }
.footer__links a { font-family: var(--mono); font-size: 13.5px; }
.footer__links span { margin: 0 10px; color: var(--dim); }
.footer__copy { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* Reveal on scroll (enabled only when JS runs) */
.js .reveal {
  opacity: 0; transform: translateY(28px) scale(.985); filter: blur(4px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal.panel--deny { transform: translateX(-34px); }
.js .reveal.panel--grant { transform: translateX(34px); }
.js .reveal.panel--deny.is-visible, .js .reveal.panel--grant.is-visible { transform: none; }
/* once revealed, hover effects respond immediately */
.js .reveal.is-visible:hover {
  transition: opacity .8s ease, transform .3s ease, filter .8s ease, border-color .25s, background .25s;
  transition-delay: 0s;
}
.js a.card.reveal.is-visible:hover { transform: translateY(-4px); }
.js .pillar.reveal.is-visible:hover, .js .contact.reveal.is-visible:hover { transform: translateY(-3px); }
.js .timeline li.reveal.is-visible:hover { transform: translateX(8px); }

/* strike-through drawn when the panel appears */
.js .deny s { text-decoration: none; background: linear-gradient(var(--red), var(--red)) no-repeat 0 56% / 0% 2px; transition: background-size .6s ease .3s; }
.js .panel--deny.is-visible .deny s { background-size: 100% 2px; }
.js .panel--deny.is-visible li:nth-child(2) s { transition-delay: .45s; }
.js .panel--deny.is-visible li:nth-child(3) s { transition-delay: .6s; }
.js .panel--deny.is-visible li:nth-child(4) s { transition-delay: .75s; }

/* section index with a terminal cursor */
.section__idx::after { content: "_"; margin-left: 2px; animation: blink 1s steps(1) infinite; }

/* spotlight following the cursor on cards */
.card::before, .pillar::before, .contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 163, 217, 0.15), transparent 60%);
}
.pillar, .contact { position: relative; }
.card:hover::before, .pillar:hover::before, .contact:hover::before { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pillars, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(5, 8, 15, 0.96); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 14px; }
  .lang { margin-top: 14px; }
  .split, .stores, .contacts { grid-template-columns: 1fr; }
  .idcard__body { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px; }
  .idcard__emblem { width: 130px; margin-top: 0; }
  .section { padding-top: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .store { flex-wrap: wrap; }
  .prose p { font-size: 17px; }
  .btn { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .deny s { background-size: 100% 2px; }
  .hero__emblem, .hero__title { transform: none !important; }
}

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s, box-shadow .3s;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 0 22px rgba(127, 163, 217, 0.45); }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke-width: 2; }
.totop__track { stroke: rgba(127, 163, 217, 0.15); }
.totop__bar {
  stroke: var(--steel); stroke-linecap: round;
  stroke-dasharray: 144.5; stroke-dashoffset: calc(144.5 * (1 - var(--p, 0)));
  filter: drop-shadow(0 0 3px rgba(127, 163, 217, 0.7));
}
.totop__arrow {
  width: 20px; height: 20px; fill: none; stroke: var(--steel-bright); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s;
}
.totop:hover .totop__arrow { transform: translateY(-3px); }
@media (max-width: 560px) { .totop { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* ---------- Cookie / privacy notice (slim centered bar) ---------- */
.notice {
  position: fixed; left: 50%; bottom: 18px; z-index: 70;
  width: min(1200px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px;
  background: rgba(10, 17, 32, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(95, 212, 154, 0.06);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  opacity: 0; transform: translate(-50%, 20px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.notice[hidden] { display: none; }
.notice.is-shown { opacity: 1; transform: translate(-50%, 0); }
.notice__head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--green);
  margin: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  padding-right: 18px; border-right: 1px solid var(--line);
}
.notice__text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); flex: 1; }
.notice__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.notice__actions a { font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice__ok { cursor: pointer; padding: 8px 20px; font-size: 12.5px; }
@media (max-width: 900px) {
  .notice__head { display: none; }
}
@media (max-width: 640px) {
  .notice { flex-wrap: wrap; gap: 10px; padding: 12px 14px; bottom: 12px; }
  .notice__text { flex-basis: 100%; font-size: 13px; }
  .notice__actions { width: 100%; justify-content: space-between; }
}

.privacy__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal page ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 70px 16px 20px; }
.legal__back { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; display: inline-flex; gap: 8px; margin-bottom: 28px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 46px); color: #fff; margin: 6px 0 6px; line-height: 1.15; }
.legal__updated { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin: 0 0 30px; }
.legal__tldr {
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid rgba(95, 212, 154, .7);
  padding: 20px 24px; margin-bottom: 36px;
}
.legal__tldr p { margin: 0; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 22px; color: #fff; margin: 38px 0 10px; }
.legal h2 span { font-family: var(--mono); font-size: 13px; color: var(--steel); margin-right: 10px; letter-spacing: .1em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: .9em; background: rgba(127,163,217,.1); padding: 1px 6px; border-radius: 3px; color: var(--steel-bright); }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; font-weight: 500; }
.legal__tablewrap { overflow-x: auto; }
html[lang="it"] [data-lang-block="en"], html[lang="en"] [data-lang-block="it"] { display: none; }
@media (max-width: 860px) {
  .nav__links--legal {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 14px;
    background: none; border: 0; padding: 0;
  }
  .nav__links--legal > a { border: 0; padding: 0; width: auto; font-size: 12px; }
  .nav__links--legal .lang { margin-top: 0; }
}
.legal td code { white-space: nowrap; }
.legal p.legal__updated { color: var(--dim); }
