:root {
  color-scheme: dark;
  --black: #010303;
  --white: #f4f7f5;
  --muted: #b8c0bd;
  --green: #36ff19;
  --line: rgba(91, 152, 130, 0.24);
  --panel-radius: 16px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: radial-gradient(circle at 72% 40%, rgba(4, 42, 37, 0.12), transparent 32%), var(--black);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #001200;
  background: var(--green);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.primary-nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  width: 50%;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 54px);
  padding: 16px clamp(24px, 4vw, 76px) 14px;
  border-bottom: 1px solid rgba(59, 96, 83, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.56));
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0.35em;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 150ms ease, transform 150ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.primary-nav a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}

.nav-manifesto {
  flex: 0 0 auto;
  margin-left: clamp(2px, 1vw, 16px);
  padding-left: clamp(18px, 2vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--green);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.75;
}

.site-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.art-panel,
.software-panel {
  position: relative;
  min-width: 0;
  min-height: 100svh;
}

.art-panel {
  overflow: hidden;
  background-color: #010202;
}

.art-panel::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80%;
  background-image: url("assets/hero-portrait-pyramid-enhanced.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 100%;
  content: "";
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 0.55) 8%,
    #000 18%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 0.55) 8%,
    #000 18%,
    #000 100%
  );
}

.art-panel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #010202 0%, rgba(1, 2, 2, 0.98) 8%, rgba(1, 2, 2, 0.1) 42%, rgba(1, 2, 2, 0.05) 76%, rgba(1, 2, 2, 0.7) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0.22) 100%);
}

.art-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(40px, 5vh, 64px) clamp(32px, 4.2vw, 82px) clamp(34px, 4vh, 56px);
}

.mlj-logo {
  display: block;
  width: min(70%, 500px);
  height: auto;
  margin-top: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(48, 255, 25, 0.08));
  transform: translate(clamp(-14px, -0.7vw, -6px), clamp(-12px, -1vh, -6px));
}

.profile {
  max-width: 470px;
  margin-top: clamp(26px, 4.8vh, 58px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.94);
}

.profile h1 {
  margin: 0 0 12px;
  font-size: clamp(1.16rem, 1.5vw, 1.62rem);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.profile p {
  margin: 0.48em 0;
  color: #fff;
  font-size: clamp(0.86rem, 0.96vw, 1.04rem);
  line-height: 1.35;
}

.status {
  margin-top: clamp(22px, 3.3vh, 36px);
  color: #fff;
  font-size: clamp(0.72rem, 0.79vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.38em;
}

.status::before {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 20px;
  background: #fff;
  content: "";
}

.art-statement {
  margin: auto 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 0.72vw, 0.82rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.65;
}

.art-statement::after {
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.92);
  content: "";
}

.software-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(92px, 9.5vh, 116px) clamp(28px, 3.8vw, 72px) clamp(28px, 4vh, 54px);
  border-left: 1px solid rgba(57, 255, 40, 0.18);
  background:
    radial-gradient(circle at 76% 32%, rgba(3, 46, 48, 0.16), transparent 34%),
    linear-gradient(140deg, #020505 0%, #000 64%);
  box-shadow: inset 1px 0 rgba(11, 255, 45, 0.025);
}

.software-heading {
  display: flex;
  min-height: 96px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.software-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 2.45vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.software-heading h2 span {
  display: block;
  color: #fff;
}

.software-heading > p {
  margin: 12px 0 0;
  padding-right: 4%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.72;
}

.software-heading > p::after {
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 18px;
  background: var(--green);
  content: "";
}

.software-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.75fr) minmax(230px, 0.92fr);
  grid-template-rows: minmax(220px, 1.32fr) minmax(170px, 0.92fr);
  gap: 18px;
  min-height: 0;
  margin-top: clamp(14px, 2vh, 26px);
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background-color: rgba(2, 8, 8, 0.72);
  box-shadow: inset 0 0 50px rgba(0, 255, 170, 0.015), 0 18px 60px rgba(0, 0, 0, 0.34);
}

.product-card h3,
.product-card p {
  position: relative;
  z-index: 2;
}

.product-card h3 {
  margin: 0;
  color: #fff;
  font-weight: 400;
}

.product-card p { margin: 0; }

.egidio-card {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  padding: clamp(24px, 3.2vw, 54px);
  background:
    radial-gradient(circle at 54% 52%, rgba(4, 59, 48, 0.2), transparent 36%),
    linear-gradient(120deg, rgba(3, 17, 15, 0.94), rgba(0, 2, 3, 0.68));
}

.egidio-icon {
  position: relative;
  z-index: 3;
  width: clamp(116px, 9.5vw, 174px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 20px rgba(9, 229, 182, 0.14));
}

.egidio-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.egidio-copy h3 {
  font-size: clamp(1.72rem, 2.8vw, 3.2rem);
  letter-spacing: 0.34em;
  line-height: 1;
}

.egidio-copy h3::after {
  display: block;
  width: clamp(52px, 6vw, 96px);
  height: 1px;
  margin-top: clamp(20px, 2.3vh, 30px);
  background: var(--green);
  content: "";
}

.egidio-copy p {
  margin-top: 20px;
  color: var(--green);
  font-size: clamp(0.66rem, 0.74vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.55em;
}

.egidio-atmosphere {
  position: absolute;
  pointer-events: none;
}

.egidio-atmosphere {
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.egidio-atmosphere img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  opacity: 0.94;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}

.solomeo-card {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  padding: clamp(20px, 2.5vw, 42px);
  background:
    radial-gradient(ellipse at 73% 56%, rgba(0, 209, 235, 0.22), transparent 17%),
    linear-gradient(154deg, transparent 52%, rgba(4, 173, 204, 0.2) 55%, rgba(11, 255, 151, 0.18) 57%, transparent 63%),
    #020707;
}

.solomeo-logo {
  position: relative;
  z-index: 2;
  width: clamp(78px, 7.6vw, 126px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 14px;
  background: none;
  object-fit: cover;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  transform: none;
}

.solomeo-card h3 {
  font-size: clamp(1.12rem, 1.58vw, 1.72rem);
  letter-spacing: 0.33em;
}

.solomeo-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.solomeo-card p::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 14px;
  background: var(--green);
  content: "";
}

.hardware-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 1.25vw, 22px);
  background: radial-gradient(circle at 22% 34%, rgba(8, 125, 113, 0.16), transparent 28%), #020707;
}

.hardware-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hardware-icon {
  width: clamp(46px, 3.3vw, 56px);
  height: auto;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid rgba(28, 225, 194, 0.36);
  border-radius: 10px;
  fill: none;
  stroke: #24e5a8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hardware-card h3 {
  font-size: clamp(0.78rem, 0.92vw, 1rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.hardware-card h3::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 10px;
  background: var(--green);
  content: "";
}

.hardware-card > p {
  margin-top: 22px;
  color: #fff;
  font-size: clamp(0.8rem, 0.98vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1.65;
}

.software-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: clamp(24px, 3.3vh, 40px) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.58rem, 0.72vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  text-align: center;
}

.software-statement span {
  width: clamp(36px, 5vw, 78px);
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.contact-section {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  scroll-margin-top: 62px;
  padding: clamp(72px, 7vw, 118px) clamp(32px, 6vw, 104px);
  border-top: 1px solid rgba(57, 255, 40, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 187, 167, 0.09), transparent 34%),
    linear-gradient(135deg, #010404 0%, #000 68%);
}

.contact-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 84px;
  background: linear-gradient(180deg, rgba(54, 255, 25, 0.72), transparent);
  box-shadow: 0 0 18px rgba(28, 255, 181, 0.26);
  content: "";
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  margin: 0 auto;
}

.contact-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 54px);
}

.contact-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 2.8vw, 3.15rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
}

.contact-heading span {
  width: clamp(46px, 7vw, 110px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), #18e4d8);
  box-shadow: 0 0 14px rgba(35, 255, 176, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-width: 0;
  padding: clamp(26px, 2.5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 221, 202, 0.06), transparent 36%),
    rgba(2, 8, 8, 0.78);
  box-shadow: inset 0 0 42px rgba(0, 255, 170, 0.012), 0 18px 50px rgba(0, 0, 0, 0.3);
}

.contact-card h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(0.72rem, 0.78vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.55;
}

.contact-card a {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  padding-bottom: 8px;
  color: #fff;
  font-size: clamp(1rem, 1.28vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--green), #18e4d8);
  content: "";
  opacity: 0.62;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: opacity 160ms ease, transform 160ms ease;
}

.contact-card a:hover::after,
.contact-card a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.contact-card a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}

.site-footer {
  grid-column: 1 / -1;
  padding: 18px 32px 24px;
  border-top: 1px solid rgba(57, 255, 40, 0.12);
  background: #000;
  text-align: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

.site-footer a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}

.privacy-shell {
  min-height: 100svh;
  padding: clamp(38px, 6vw, 92px) clamp(22px, 6vw, 88px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 187, 167, 0.09), transparent 30%),
    linear-gradient(145deg, #020606 0%, #000 68%);
}

.privacy-header,
.privacy-policy {
  width: min(100%, 880px);
  margin-right: auto;
  margin-left: auto;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.privacy-brand,
.privacy-back {
  text-decoration: none;
}

.privacy-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.privacy-back {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.privacy-brand:focus-visible,
.privacy-back:focus-visible,
.privacy-policy a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}

.privacy-policy {
  padding-top: clamp(46px, 6vw, 76px);
}

.privacy-policy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.privacy-updated {
  margin: 18px 0 42px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.privacy-policy section {
  padding: 28px 0;
  border-top: 1px solid rgba(91, 152, 130, 0.18);
}

.privacy-policy h2 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
}

.privacy-policy p,
.privacy-policy li {
  color: rgba(244, 247, 245, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-policy p {
  margin: 0 0 16px;
}

.privacy-policy p:last-child {
  margin-bottom: 0;
}

.privacy-policy ul {
  margin: 12px 0 18px;
  padding-left: 1.25rem;
}

.privacy-policy a {
  color: #fff;
  text-decoration-color: rgba(54, 255, 25, 0.7);
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 20px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .nav-manifesto,
  .software-heading > p { display: none; }
  .software-grid { grid-template-columns: 1.55fr 1fr; }
  .egidio-copy h3 { letter-spacing: 0.26em; }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    width: 100%;
    min-height: 62px;
    gap: clamp(16px, 6vw, 42px);
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
  }

  .primary-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
  }

  .site-shell { display: block; }
  .art-panel,
  .software-panel { min-height: 100svh; }
  .art-panel::before { height: 72%; }

  .art-panel__content {
    min-height: 100svh;
    padding-top: 92px;
  }

  .mlj-logo { width: min(66%, 430px); }
  .profile { margin-top: clamp(30px, 8vh, 72px); }

  .software-panel {
    min-height: auto;
    padding: 82px clamp(22px, 6vw, 52px) 42px;
    border-top: 1px solid rgba(57, 255, 40, 0.18);
    border-left: 0;
  }

  .software-heading { min-height: 100px; }
  .software-grid { grid-template-rows: minmax(240px, auto) minmax(176px, auto); }

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

@media (max-width: 620px) {
  .primary-nav {
    justify-content: stretch;
    gap: 0;
    padding-right: 6px;
    padding-left: 6px;
  }

  .primary-nav a {
    flex: 1 1 25%;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .art-panel::before {
    height: 62%;
    background-position: 53% bottom;
  }

  .art-panel__content {
    min-height: 760px;
    padding: 90px 24px 30px;
  }

  .mlj-logo { width: min(86%, 390px); }
  .profile { margin-top: 44px; }
  .profile h1 { font-size: 1.2rem; }

  .profile p {
    max-width: 330px;
    font-size: 0.86rem;
  }

  .status {
    max-width: 290px;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    line-height: 1.6;
  }

  .art-statement { font-size: 0.66rem; }
  .software-panel { padding: 78px 18px 36px; }
  .software-heading h2 { font-size: clamp(2.05rem, 10vw, 3rem); }

  .software-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
  }

  .egidio-card {
    min-height: 270px;
    gap: 20px;
    padding: 28px 22px;
  }

  .egidio-icon { width: clamp(96px, 29vw, 132px); }

  .egidio-copy h3 {
    font-size: clamp(1.4rem, 7vw, 2rem);
    letter-spacing: 0.2em;
  }

  .egidio-copy p {
    font-size: 0.62rem;
    letter-spacing: 0.38em;
  }

  .egidio-atmosphere img { right: -5%; }

  .solomeo-card,
  .hardware-card { min-height: 172px; }
  .solomeo-logo { width: 86px; }

  .software-statement {
    gap: 12px;
    margin-top: 28px;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
  }

  .contact-section {
    padding: 68px 18px 54px;
  }

  .contact-heading {
    gap: 16px;
    margin-bottom: 28px;
  }

  .contact-heading h2 {
    font-size: 2rem;
  }

  .contact-card {
    padding: 26px 22px;
  }

  .privacy-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-policy p,
  .privacy-policy li {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
