/* LEVILLIO TECHNOLOGIES — company website.
   Night-blue building at dusk: amber is a lit (occupied) room, cyan is a free
   bed or data on the move. Nothing else on the page is coloured. */

:root {
  --night: #0a1024;
  --night-2: #0e1631;
  --deck: #131d3d;
  --line: rgba(150, 170, 255, 0.14);
  --line-strong: rgba(150, 170, 255, 0.28);
  --ink: #eaeeff;
  --ink-2: #b3bce0;
  --ink-3: #8590bb;
  --lamp: #ffb547;
  --signal: #5fe1d9;
  --radius-s: 6px;
  --radius-l: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  --font: "Segoe UI Variable Display", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "SF Pro Text", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The blueprint: a faint grid that fades out below the fold. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(95, 225, 217, 0.1), transparent 70%),
    radial-gradient(900px 600px at 0% 10%, rgba(255, 181, 71, 0.06), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--night);
  -webkit-mask-image: linear-gradient(#000 0, #000 55%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: linear-gradient(#000 0, #000 55%, rgba(0, 0, 0, 0.35) 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8ff0ea;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--night);
  border-radius: var(--radius-s);
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 16, 36, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name b {
  font: 800 1.0625rem/1 var(--font);
  letter-spacing: 0.14em;
}

.brand-name small {
  margin-top: 3px;
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(150, 170, 255, 0.08);
}

.nav .nav-cta {
  margin-left: 6px;
  color: var(--night);
  background: var(--signal);
  font-weight: 600;
}

.nav .nav-cta:hover {
  color: var(--night);
  background: #8ff0ea;
}

@media (max-width: 760px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* --- Home: hero ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 8vw, 96px) clamp(32px, 6vw, 72px);
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font: 750 clamp(2.5rem, 5.6vw, 4.5rem) / 1.02 var(--font);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lede {
  margin: 24px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button-primary {
  background: var(--signal);
  color: var(--night);
}

.button-primary:hover {
  background: #8ff0ea;
  color: var(--night);
}

.button-quiet {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

/* The building. */
.tower {
  position: relative;
  margin: 0;
}

.tower svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.tower figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.key-lit::before {
  background: var(--lamp);
  box-shadow: 0 0 10px rgba(255, 181, 71, 0.7);
}

.key-free::before {
  border: 1.5px solid var(--signal);
}

.slab {
  fill: rgba(19, 29, 61, 0.82);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.slab-edge {
  fill: rgba(8, 13, 30, 0.95);
  stroke: var(--line);
}

.room {
  fill: rgba(150, 170, 255, 0.05);
  stroke: rgba(150, 170, 255, 0.3);
  stroke-width: 0.8;
  transition: fill 0.6s ease, stroke 0.6s ease;
}

.room.is-lit {
  fill: rgba(255, 181, 71, 0.62);
  stroke: rgba(255, 210, 140, 0.95);
}

.bed {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.2;
  transition: opacity 0.6s ease;
}

.room.is-lit + .beds .bed {
  opacity: 0;
}

.beam {
  fill: url(#beam);
  opacity: 0.9;
}

.pulse {
  fill: var(--signal);
}

.callout-line {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.callout rect {
  fill: rgba(14, 22, 49, 0.92);
  stroke: var(--line-strong);
}

.callout text {
  fill: var(--ink);
  font: 600 12px var(--font-text);
}

.callout .callout-sub {
  fill: var(--ink-3);
  font-weight: 400;
}

.floor {
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .tower {
    max-width: 560px;
    margin-inline: auto;
  }
}

/* --- Home: sections ------------------------------------------------------ */

.section {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.legal h1,
.page-title {
  margin: 0;
  font: 720 clamp(1.875rem, 3.6vw, 2.75rem) / 1.08 var(--font);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* What it does: a plan of rooms, not a stack of identical cards. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.features li {
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 22, 49, 0.55);
}

.features li:nth-child(3n) {
  border-right: 0;
}

.features li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.features svg {
  width: 28px;
  height: 28px;
  color: var(--signal);
}

.features h3 {
  margin: 18px 0 8px;
  font: 650 1.125rem/1.3 var(--font);
  letter-spacing: -0.01em;
}

.features p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .features li:nth-child(2n) {
    border-right: 0;
  }

  .features li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .features li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }

  .features li,
  .features li:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .features li:last-child {
    border-bottom: 0;
  }
}

.planned {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  margin-top: 24px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
}

.planned svg {
  width: 28px;
  height: 28px;
  color: var(--lamp);
}

.planned h3 {
  margin: 0 0 6px;
  font: 650 1.125rem/1.3 var(--font);
}

.planned p {
  margin: 0;
  max-width: 70ch;
  color: var(--ink-2);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.5);
  color: var(--lamp);
  font: 600 0.75rem/1.6 var(--font-text);
  vertical-align: 2px;
}

/* Separation: one wall between every business. */
.walls {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.walls-art svg {
  width: 100%;
  height: auto;
}

.walls ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.walls li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.walls li:first-child {
  padding-top: 0;
}

.walls li:last-child {
  border-bottom: 0;
}

.walls li svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--signal);
}

.walls li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 860px) {
  .walls {
    grid-template-columns: 1fr;
  }

  .walls-art {
    max-width: 420px;
  }
}

/* Contact strip: the address is the headline. */
.write {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.write p {
  margin: 0 auto 16px;
  max-width: 48ch;
  color: var(--ink-2);
}

.write a.mail {
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font: 720 clamp(1.375rem, 4.6vw, 3.25rem) / 1.15 var(--font);
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--signal), var(--signal)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.35s ease;
}

.write a.mail:hover,
.write a.mail:focus-visible {
  color: var(--ink);
  background-size: 100% 2px;
}

/* --- Inner pages ---------------------------------------------------------- */

.legal {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}

.legal-head {
  max-width: var(--measure);
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-head p {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.legal-body {
  max-width: var(--measure);
}

.legal-body h2 {
  margin: 44px 0 12px;
  font: 680 1.375rem/1.25 var(--font);
  letter-spacing: -0.015em;
}

.legal-body h3 {
  margin: 28px 0 8px;
  font: 650 1.0625rem/1.35 var(--font);
}

.legal-body p,
.legal-body li {
  color: var(--ink-2);
}

.legal-body strong {
  color: var(--ink);
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.3em;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body li::marker {
  color: var(--ink-3);
}

.legal-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(150, 170, 255, 0.05);
}

.legal-body td {
  color: var(--ink-2);
}

.table-scroll {
  overflow-x: auto;
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(95, 225, 217, 0.06);
  color: var(--ink-2);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--signal);
  font: 650 0.9375rem/1 var(--font);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.contact-grid div {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(14, 22, 49, 0.55);
}

.contact-grid div:last-child {
  border-right: 0;
}

.contact-grid dt {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.contact-grid dd {
  margin: 6px 0 0;
  color: var(--ink);
  font: 650 1.125rem/1.4 var(--font);
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid div:last-child {
    border-bottom: 0;
  }
}

.lost {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 64px;
  text-align: center;
}

.lost .code {
  font: 800 clamp(5rem, 18vw, 10rem) / 1 var(--font);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
}

.lost p {
  margin: 12px auto 28px;
  max-width: 42ch;
  color: var(--ink-2);
}

.lost .actions {
  justify-content: center;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer .who b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: 0.12em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.section-head.section-head-stack {
  display: block;
  margin-bottom: 24px;
}
