/* ============================================================
   JCDigital.dev — Portfolio of Jhon Carl "JC" B. Ignoro
   Dark, tech-first, ultra-premium.
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #070c17;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(130, 170, 230, 0.14);
  --line-strong: rgba(130, 170, 230, 0.28);
  --text: #e8eef8;
  --muted: #8b98ad;
  --blue: #1e8fff;
  --blue-light: #6cc4ff;
  --blue-glow: rgba(30, 143, 255, 0.35);
  --grad: linear-gradient(92deg, var(--blue), var(--blue-light));
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --radius: 18px;
  --nav-h: 76px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-light); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* ---------- Background decor ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb {
  position: fixed; z-index: -1; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  border-radius: 50%; filter: blur(110px); opacity: 0.16;
}
.bg-orb--1 { top: -14vw; right: -10vw; background: var(--blue); }
.bg-orb--2 { bottom: -18vw; left: -12vw; background: #0a4a9e; opacity: 0.12; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 9, 17, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.nav__links a {
  color: var(--text); font-size: 0.94rem; font-weight: 500;
  position: relative; padding: 6px 2px;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.28s ease;
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active:not(.nav__cta)::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 20px !important; font-weight: 600;
  background: var(--surface); transition: border-color .25s, box-shadow .25s, background .25s;
}
.nav__cta:hover { border-color: var(--blue); box-shadow: 0 0 22px var(--blue-glow); background: rgba(30,143,255,0.08); }
.nav__burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 30px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s, background 0.22s;
  cursor: pointer;
}
.btn--primary { background: var(--grad); color: #04121f; box-shadow: 0 8px 30px var(--blue-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--blue-glow); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue); box-shadow: 0 0 24px var(--blue-glow); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(3rem, 7vh, 5rem);
  min-height: 92vh;
}
.hero__title { margin-bottom: 0.55em; }
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); max-width: 56ch; }
.hero__sub strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.2rem);
  margin: 2.6rem 0 0; padding: 0;
}
.hero__stats div { min-width: 110px; }
.hero__stats dt {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.88rem; }

.hero__visual { display: flex; justify-content: center; }
.hero__portrait {
  position: relative; margin: 0; max-width: min(430px, 100%);
  border-radius: var(--radius);
}
.hero__portrait::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(160deg, var(--blue), transparent 38%, transparent 65%, rgba(108,196,255,0.6));
}
.hero__portrait::after {
  content: ""; position: absolute; inset: 8% -6% -4% 8%; z-index: -2;
  background: radial-gradient(closest-side, var(--blue-glow), transparent);
  filter: blur(30px);
}
.hero__portrait img { border-radius: var(--radius); width: 100%; }
.chip {
  position: absolute; margin: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(7, 12, 23, 0.88); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.chip--tl { top: 5.5%; left: -7%; }
.chip--br { bottom: 6%; right: -6%; color: var(--blue-light); font-weight: 500; font-size: 0.76rem; }
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #33e086;
  box-shadow: 0 0 10px #33e086; animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); padding: 1.15rem 0;
  overflow: hidden; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--muted); padding-inline: 2.6rem; white-space: nowrap;
  position: relative;
}
.marquee__list li::after {
  content: "◆"; position: absolute; right: -7px; top: 50%; translate: 0 -50%;
  font-size: 0.5rem; color: var(--blue);
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 10vh, 7rem); }
.section__head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vh, 3.6rem); }
.section__head--gap { margin-top: clamp(4rem, 9vh, 6.5rem); }
.section__sub { color: var(--muted); }
.section--band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: start; }
.about__photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.about__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(5, 8, 15, 0.55));
}
.about__body p { color: var(--muted); }
.about__body p strong { color: var(--text); }
.about__facts { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.4rem; }
.about__facts li {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px;
}
.stack { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.stack span {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-light);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: rgba(30, 143, 255, 0.06);
  transition: border-color .25s, box-shadow .25s;
}
.stack span:hover { border-color: var(--blue); box-shadow: 0 0 16px var(--blue-glow); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 178px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--blue), var(--line) 60%, transparent);
}
.timeline__item {
  display: grid; grid-template-columns: 150px 1fr; gap: 56px;
  position: relative; padding-bottom: 2.2rem;
}
.timeline__item::before {
  content: ""; position: absolute; left: 172px; top: 10px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--blue);
  box-shadow: 0 0 14px var(--blue-glow);
}
.timeline__meta { color: var(--blue-light); font-size: 0.82rem; padding-top: 8px; text-align: right; }
.timeline__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.timeline__card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.timeline__org { color: var(--blue-light); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.7rem; }
.timeline__card p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.15rem; color: var(--blue-light);
  background: rgba(30, 143, 255, 0.09); border: 1px solid var(--line-strong);
  border-radius: 14px; margin-bottom: 1.1rem;
}
.service p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Featured projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project { display: flex; flex-direction: column; }
.project__frame {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.project:hover .project__frame { border-color: var(--blue); box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 34px var(--blue-glow); transform: translateY(-4px); }
.project__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.project__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.project__bar i:nth-child(1) { background: #ff5f57; } .project__bar i:nth-child(2) { background: #febc2e; } .project__bar i:nth-child(3) { background: #28c840; }
.project__bar span {
  margin-left: 8px; font-size: 0.68rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.project__shot { aspect-ratio: 15 / 11; overflow: hidden; position: relative; }
.project__shot img {
  width: 100%; height: auto; min-height: 100%; object-fit: cover;
  transform: translateY(0);
  transition: transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project:hover .project__shot img,
.project.is-touched .project__shot img { transform: translateY(calc(-100% + var(--shot-h, 320px))); }
.project__info { padding: 1.15rem 0.35rem 0; }
.project__info h3 a { color: var(--text); transition: color .25s; }
.project__info h3 a:hover { color: var(--blue-light); }
.project__info p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags span {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

/* ---------- Protected vault ---------- */
.vault { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.vault__card {
  margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 10;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.vault__card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.vault__card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.72); transition: filter .4s; }
.vault__card:hover img { filter: saturate(.9) brightness(.85); }
.vault__card figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.15rem; text-align: center;
  background: linear-gradient(180deg, rgba(5,8,15,.25), rgba(5,8,15,.72));
  padding: 1rem;
}
.vault__lock { font-size: 1.25rem; margin-bottom: 0.35rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.vault__card strong { font-family: var(--font-display); font-size: 0.95rem; }
.vault__card em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background:
    radial-gradient(120% 160% at 85% 10%, rgba(30, 143, 255, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.8rem, 4.5vw, 3.6rem);
  overflow: hidden;
}
.cta__body h2 { max-width: 18ch; }
.cta__body > p { color: var(--muted); max-width: 48ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0; }
.contact-links { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.contact-links li { display: flex; align-items: center; gap: 0.7rem; }
.contact-links .mono { color: var(--blue); }
.contact-links a { color: var(--text); font-weight: 500; transition: color .25s; }
.contact-links a:hover { color: var(--blue-light); }

/* ---------- Contact form ---------- */
.contact-form {
  background: rgba(5, 9, 17, 0.55);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 15px; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none; -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b98ad' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  cursor: pointer;
}
.form-field select option { background: #0b1120; color: var(--text); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(139, 152, 173, 0.6); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 143, 255, 0.18);
  background: rgba(30, 143, 255, 0.05);
}
.form-submit { width: 100%; margin-top: 0.2rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success {
  margin: 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(51, 224, 134, 0.1); border: 1px solid rgba(51, 224, 134, 0.4);
  color: #7ff0b4; font-size: 0.92rem; font-weight: 500;
}
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
.socials a {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.06em; transition: color .25s;
}
.socials a:hover { color: var(--blue-light); }
.socials a::before { content: "↗ "; color: var(--blue); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.2rem 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
}
.footer__inner p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.footer__logo img { width: 108px; }
.footer__tag { color: var(--blue); font-size: 0.78rem; letter-spacing: 0.14em; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(7, 12, 23, 0.85);
  color: var(--blue-light); font-size: 1.1rem; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { border-color: var(--blue); box-shadow: 0 0 20px var(--blue-glow); }

/* ---------- Reveal animations (scoped to .js so content is never hidden without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .project__shot img { transition: none; }
  .chip .dot { animation: none; }
}

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

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .vault { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: 1fr; max-width: 660px; margin-inline: auto; }
  .project__shot { aspect-ratio: 16 / 10; }
  .hero { grid-template-columns: 1fr 0.9fr; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr; text-align: center; min-height: 0;
    padding-top: calc(var(--nav-h) + 2.6rem);
  }
  .hero__visual { order: -1; }
  .hero__portrait { max-width: min(330px, 78vw); }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .chip--tl { left: -4%; } .chip--br { right: -4%; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; margin-inline: auto; width: 100%; }

  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .timeline__item::before { left: 0; }
  .timeline__meta { text-align: left; padding-top: 0; }

  .cta { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
    cursor: pointer;
  }
  .nav__burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 9, 17, 0.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; border-bottom: none !important; }
}

@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .vault { grid-template-columns: repeat(2, 1fr); }
  .vault__card strong { font-size: 0.82rem; }
  .vault__card em { font-size: 0.6rem; }
  .about__facts { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.3rem; }
  .hero__stats div { min-width: 88px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .vault { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* Short landscape phones: keep hero usable */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; grid-template-columns: 1fr 0.8fr; text-align: left; }
  .hero__visual { order: 0; }
  .hero__portrait { max-width: 240px; }
}

/* ---------- WP additions ---------- */
.form-error {
  margin: 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 95, 87, 0.1); border: 1px solid rgba(255, 95, 87, 0.4);
  color: #ff9d97; font-size: 0.92rem; font-weight: 500;
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
