:root {
  --navy: #0b1f3a;
  --navy-deep: #071525;
  --blue: #0a66ff;
  --cyan: #00c2ff;
  --blue-on-dark: #2e86ff;
  --cyan-on-dark: #22d3ff;
  --white: #ffffff;
  --ink: #0b1f3a;
  --muted: rgba(11, 31, 58, 0.58);
  --muted-on-dark: rgba(255, 255, 255, 0.66);
  --line: rgba(11, 31, 58, 0.11);
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #f3f5f9;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--cyan);
  color: var(--navy);
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 80;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 5rem;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.25s;
}

body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  color: var(--white);
}

body.home .site-header.is-solid {
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* PNG has ~17% pad — 2.45rem box ≈ ~2rem letter height */
.brand-logo img {
  height: 2.45rem;
  width: auto;
  max-width: min(42vw, 11.5rem);
}

.logo-on-dark { display: none; }

body.home .site-header:not(.is-solid) .logo-on-light { display: none; }
body.home .site-header:not(.is-solid) .logo-on-dark { display: block; }

.menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.menu a:hover::after,
.menu a[aria-current="page"]::after { transform: scaleX(1); }

body.home .site-header:not(.is-solid) .menu a {
  color: rgba(255, 255, 255, 0.72);
}

.menu a:hover,
.menu a[aria-current="page"] { color: var(--navy); }

body.home .site-header:not(.is-solid) .menu a:hover,
body.home .site-header:not(.is-solid) .menu a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.95rem;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 560;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-cta:hover { background: #0856db; }

body.home .site-header:not(.is-solid) .nav-cta {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

body.home .site-header:not(.is-solid) .nav-cta:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: currentColor;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  color: var(--white);
  padding: 6.5rem 0 4.25rem;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 42%, rgba(10, 102, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 40% 50% at 18% 78%, rgba(0, 194, 255, 0.12), transparent 55%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #0a2748 100%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  right: -6%;
  top: 12%;
  width: min(52vw, 520px);
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
  animation: orbit-breathe 14s var(--ease) infinite alternate;
}

.hero-orbit img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 48px rgba(0, 194, 255, 0.2));
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.hero-copy {
  max-width: 38rem;
}

.hero-copy > * {
  opacity: 0;
  animation: rise 0.85s var(--ease) forwards;
}

.hero-wordmark { animation-delay: 0.02s; }
.hero-copy h1 { animation-delay: 0.12s; }
.hero-copy .hero-lead { animation-delay: 0.2s; }
.hero-copy .hero-actions { animation-delay: 0.28s; }

/* Brand is the hero signal — larger than the capability line */
.hero-wordmark {
  display: block;
  width: min(100%, 22.5rem);
  height: auto;
  margin: 0 0 1.65rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.28));
}

.hero h1 {
  margin: 0 0 1.05rem;
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.hero h1 .dot {
  color: var(--cyan-on-dark);
  font-weight: 400;
}

.hero-lead {
  margin: 0 0 1.85rem;
  max-width: 34ch;
  color: var(--muted-on-dark);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@keyframes orbit-breathe {
  from { transform: scale(1) translateY(0); opacity: 0.18; }
  to { transform: scale(1.04) translateY(-1.5%); opacity: 0.28; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.6rem 1.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: #0856db; }

.btn-ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* —— Ledger —— */
.ledger { padding: 5.75rem 0 0.5rem; }

.ledger-row {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1.6rem;
  align-items: baseline;
  padding: 2.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: padding 0.35s var(--ease);
}

.ledger-row:last-child { border-bottom: 1px solid var(--line); }

.ledger-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad, linear-gradient(180deg, var(--blue), var(--cyan)));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.ledger-row:hover {
  padding-left: 0.85rem;
}

.ledger-row:hover::before { opacity: 1; }

.ledger-row em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.ledger-row h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.12;
  transition: color 0.25s;
}

.ledger-row p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
  font-size: 0.98rem;
}

.ledger-row:hover h2 { color: var(--blue); }

/* —— Bridge —— */
.bridge {
  margin-top: 4.5rem;
  padding: 3.25rem 0;
  background: var(--navy);
  color: var(--white);
}

.bridge-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.bridge h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.bridge p {
  margin: 0;
  color: var(--muted-on-dark);
  max-width: 36ch;
  font-size: 0.98rem;
}

/* —— Directory / brand lanes —— */
.directory { padding: 5.25rem 0 1.5rem; }

.directory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.directory h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.directory-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.dir {
  display: grid;
  grid-template-columns: minmax(14rem, 1.15fr) minmax(0, 1.4fr) auto;
  gap: 1.35rem 2rem;
  align-items: center;
  padding: 2.35rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.35s var(--ease);
}

.dir:last-of-type { border-bottom: 1px solid var(--line); }

.dir:hover { padding-left: 0.55rem; }

.dir-mark {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
}

/* Optical balance: ELEVIA has more PNG pad; ZIESHINE is wide */
.dir-mark img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.dir-mark.zieshine img { height: 2.85rem; }
.dir-mark.elevia img { height: 3.35rem; }
.dir-mark.manlor img { height: 2.95rem; }

.dir:hover .dir-mark img {
  opacity: 0.9;
  transform: translateX(4px);
}

.dir-meta {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.dir i {
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
  transition: color 0.2s, transform 0.25s var(--ease);
}

.dir:hover i {
  color: var(--blue);
  transform: translateX(4px);
}

/* —— Brand showcase page —— */
.brand-lanes { padding: 0.5rem 0 3.5rem; }

.brand-lane {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem 4rem;
  align-items: center;
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.brand-lane:first-of-type { border-top: 1px solid var(--line); }

.brand-lane-logo {
  display: flex;
  align-items: center;
  min-height: 6.5rem;
}

.brand-lane-logo img {
  width: auto;
  max-width: min(100%, 28rem);
  height: auto;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.brand-lane.zieshine .brand-lane-logo img { max-height: 4.6rem; }
.brand-lane.elevia .brand-lane-logo img { max-height: 5.4rem; }
.brand-lane.manlor .brand-lane-logo img { max-height: 4.8rem; }

.brand-lane:hover .brand-lane-logo img {
  transform: translateX(8px);
  opacity: 0.92;
}

.brand-lane-copy .lane-tag {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-lane-copy p:not(.lane-tag) {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40ch;
  font-size: 1.05rem;
  line-height: 1.55;
}

.brand-lane-copy .go {
  font-weight: 560;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color 0.2s;
}

.brand-lane:hover .go { color: var(--blue); }

/* —— Sign-off —— */
.sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.75rem 0 4rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}

.sign img {
  height: 6.25rem;
  width: auto;
  opacity: 0.95;
}

.sign p {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* —— Inner pages —— */
.page-hero {
  padding: 4rem 0 2.35rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 42% 90% at 100% 0%, rgba(10, 102, 255, 0.06), transparent 55%),
    var(--white);
}

.page-hero .mark {
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1.45rem;
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  max-width: 14ch;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.04;
}

.page-hero p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section { padding: 4.25rem 0; }

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.lede, .note { color: var(--muted); }

.lede { margin: 0 0 1.5rem; max-width: 48ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.stack { display: grid; }

.cap {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.cap:last-child { border-bottom: 1px solid var(--line); }

.cap em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-size: 0.84rem;
}

.cap h2 { margin: 0 0 0.45rem; }

.cap p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.panel {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.panel:last-child { border-bottom: 1px solid var(--line); }

.panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 560;
}

.panel p { margin: 0; color: var(--muted); }

.panel a { color: var(--blue); font-weight: 560; text-decoration: none; }

.panel a:hover { text-decoration: underline; }

.form {
  display: grid;
  gap: 0.95rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 560;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

.form textarea { min-height: 8rem; resize: vertical; }

.form button { justify-self: start; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.45rem 0;
  background: var(--paper);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
}

.footer-links a:hover { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.d2 { transition-delay: 0.08s; }
.reveal.d3 { transition-delay: 0.16s; }

@media (max-width: 860px) {
  .menu, .nav-cta { display: none; }

  .burger { display: inline-block; }

  body.nav-open .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 5rem;
    padding: 0.5rem 1.5rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .menu a { color: var(--navy); }

  body.home.nav-open .site-header {
    background: var(--white);
    color: var(--navy);
  }

  body.home.nav-open .logo-on-dark { display: none; }
  body.home.nav-open .logo-on-light { display: block; }

  .brand-logo img {
    height: 2.15rem;
    max-width: min(52vw, 10.5rem);
  }

  .hero {
    align-items: flex-end;
    padding: 5.75rem 0 3.25rem;
  }

  .hero-orbit {
    right: -28%;
    top: 8%;
    width: 88vw;
    opacity: 0.16;
    animation: none;
  }

  .hero-wordmark {
    width: min(100%, 17.5rem);
    margin-bottom: 1.35rem;
  }

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

  .ledger-row,
  .dir,
  .split,
  .cap,
  .brand-lane { grid-template-columns: 1fr; gap: 0.85rem; }

  .ledger-row:hover,
  .dir:hover { padding-left: 0; }

  .dir {
    align-items: start;
    padding: 2rem 0;
  }

  .dir-mark { min-height: 3rem; }
  .dir-mark.zieshine img { height: 2.45rem; }
  .dir-mark.elevia img { height: 2.85rem; }
  .dir-mark.manlor img { height: 2.55rem; }
  .dir i { justify-self: start; }

  .brand-lane { padding: 2.75rem 0; gap: 1.25rem; }
  .brand-lane-logo { min-height: 4rem; }
  .brand-lane.zieshine .brand-lane-logo img { max-height: 3.4rem; }
  .brand-lane.elevia .brand-lane-logo img { max-height: 4rem; }
  .brand-lane.manlor .brand-lane-logo img { max-height: 3.55rem; }

  .bridge-inner { align-items: flex-start; }

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

  .sign img { height: 5rem; }
  .sign p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-copy > *,
  .hero-orbit {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
