/* Nexiora Holdings — isometric holding plant on indigo paper */
:root {
  --navy:        #031574;
  --navy-mid:    #22327C;
  --navy-deep:   #02104F;
  --face:        #4A5AA0;
  --paper:       #EEF3FC;
  --sheet:       #F8FAFE;
  --ink:         #0C1448;
  --muted:       #3A4678;
  --line:        #C7D0E9;
  --soft:        #D4D4F8;
  --text-inv:    #F4F7FF;
  --muted-inv:   #C9D2EE;
  --line-inv:    rgba(244, 247, 255, 0.22);
  --radius:      2px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    74px;
  --iso:         28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(30deg, rgba(3, 21, 116, .055) 0 1px, transparent 1px var(--iso)),
    repeating-linear-gradient(-30deg, rgba(3, 21, 116, .055) 0 1px, transparent 1px var(--iso));
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.kicker, .industry, .brand-sub, .nav, .btn, .run-card, .check-no,
.check-code, .plate-id, .plate-dia, .faq-q, .tag text, figcaption,
.footer-nav, .field label, .quote-attr, .contact-email {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--text-inv);
  padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-mid);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  font-weight: 500; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--radius);
  transition: background .25s var(--ease), box-shadow .25s var(--ease),
    border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--navy); color: var(--text-inv);
  box-shadow: 0 10px 24px -10px rgba(3, 21, 116, .55);
}
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--navy);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(238, 243, 252, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 250, 254, .96);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  min-width: 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px; font-weight: 600; color: var(--navy);
}
.brand-sub {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy-mid); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 12px; color: var(--muted); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--navy); border: 1px solid var(--line);
  padding: 8px 14px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero: isometric paper sheet ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 22px) 0 0;
}
.iso-sheet {
  position: relative;
  margin: 0 16px;
  padding: 28px 0 12px;
  background: var(--sheet);
  box-shadow:
    0 0 0 1px var(--line),
    8px 10px 0 rgba(3, 21, 116, .06);
  overflow: hidden;
}
.iso-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(3, 21, 116, .08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-30deg, rgba(3, 21, 116, .08) 0 1px, transparent 1px 24px);
  opacity: .85;
}
.iso-trim {
  pointer-events: none;
  position: absolute; inset: 10px; z-index: 1;
  border: 1px solid rgba(3, 21, 116, .22);
}
.iso-trim::before,
.iso-trim::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--navy);
}
.iso-trim::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.iso-trim::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.hero-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 20px 28px;
  align-items: center;
  padding: 8px 8px 4px;
}
.hero-layout > * { min-width: 0; }
.hero-copy { padding-right: 8px; }

.industry {
  display: block;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-mid); font-weight: 500; margin: 0 0 14px;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 600;
  max-width: 14ch;
  color: var(--navy);
  overflow-wrap: normal;
  hyphens: none;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--muted);
  margin-top: 18px;
  max-width: 46ch;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px;
}

.run-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 28px;
  padding: 14px 0 4px;
  border-top: 1px dashed var(--line);
}
.run-card dt {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-mid); margin: 0 0 4px;
}
.run-card dd {
  margin: 0;
  font-size: 12px; font-weight: 500; color: var(--navy);
}

.hero-plant { margin: 0; overflow: hidden; max-width: 100%; min-width: 0; }
.plant-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}
.floor { fill: rgba(3, 21, 116, .05); }
.floor-line { fill: none; stroke: var(--line); stroke-width: 1; }
.f-top { fill: url(#faceTop); stroke: var(--navy); stroke-width: 1.1; }
.f-r { fill: url(#faceR); stroke: var(--navy); stroke-width: 1.1; }
.f-l { fill: url(#faceL); stroke: var(--navy-deep); stroke-width: 1.1; }
.flange ellipse {
  fill: var(--sheet);
  stroke: var(--navy);
  stroke-width: 1.4;
}
.valve-rim { fill: var(--sheet); stroke: var(--navy); stroke-width: 1.6; }
.valve-hub { fill: var(--navy); }
.valve-spin { transform-origin: 0px 0px; animation: spin 8s linear infinite; }
.valve-spin path {
  stroke: var(--navy); stroke-width: 1.6; fill: none;
}
.flow {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: pipe-flow 2.2s linear infinite;
}
.flow-b { stroke-width: 1.7; animation-duration: 1.8s; }
.flow-c, .flow-d { stroke: var(--face); animation-duration: 2.6s; }
.tag rect {
  fill: var(--sheet);
  stroke: var(--navy);
  stroke-width: 1;
}
.tag text {
  fill: var(--navy-mid);
  font-size: 8px;
  letter-spacing: .16em;
}
.tag .tag-name {
  fill: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}
.hero-plant figcaption {
  margin: 6px 8px 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-mid);
  overflow-wrap: anywhere;
}

@keyframes pipe-flow {
  to { stroke-dashoffset: -48; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

main { overflow-x: hidden; max-width: 100%; }

/* ===== Sections ===== */
.section { padding: 72px 0; overflow-x: hidden; }
.section-head { max-width: 42rem; min-width: 0; }
.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  margin-bottom: 14px;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.method { padding-top: 56px; }
.method-layout { display: grid; gap: 36px; }

.checklist {
  display: grid;
  gap: 10px;
  position: relative;
}
.checklist::before {
  content: "";
  position: absolute;
  left: 17px; top: 12px; bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--navy) 0 8px,
    transparent 8px 16px
  );
  opacity: .28;
  pointer-events: none;
}
.check-row {
  display: grid;
  grid-template-columns: 36px 52px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.check-box { width: 36px; display: block; }
.check-box svg { width: 36px; height: 32px; display: block; }
.check-box polygon:nth-child(1) { fill: #E8EEFB; stroke: var(--navy); stroke-width: 1; }
.check-box polygon:nth-child(2) { fill: var(--navy); stroke: var(--navy-deep); stroke-width: 1; }
.check-box polygon:nth-child(3) { fill: var(--navy-mid); stroke: var(--navy); stroke-width: 1; }
.check-box .tick {
  fill: none; stroke: #fff; stroke-width: 2.2;
  stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 28; stroke-dashoffset: 28;
  animation: tick-draw 1.1s var(--ease) forwards;
}
.check-row:nth-child(1) .tick { animation-delay: .2s; }
.check-row:nth-child(2) .tick { animation-delay: .35s; }
.check-row:nth-child(3) .tick { animation-delay: .5s; }
.check-row:nth-child(4) .tick { animation-delay: .65s; }
.check-row:nth-child(5) .tick { animation-delay: .8s; }
.check-row:nth-child(6) .tick { animation-delay: .95s; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

.check-no {
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--navy); padding-top: 6px;
}
.check-copy { min-width: 0; overflow-wrap: break-word; }
.check-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.check-copy p { color: var(--muted); max-width: 62ch; }
.check-code {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-mid); padding-top: 8px; white-space: nowrap;
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.run-plate {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.run-plate header {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.plate-id, .plate-dia {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-mid); font-weight: 500;
}
.run-plate h3 { font-size: 1.55rem; margin-bottom: 8px; }
.run-plate p { color: var(--muted); }

/* Quote: dark indigo band, near-white type */
.quote {
  background: var(--navy);
  color: var(--text-inv);
  padding: 64px 0;
}
.quote .kicker { color: var(--muted-inv); }
.quote blockquote {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-inv);
  max-width: 22ch;
}
.quote-attr {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr);
  gap: 28px 40px;
  align-items: start;
}
.about-copy { display: grid; gap: 16px; color: var(--muted); font-size: 1.08rem; }

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr);
  gap: 28px 40px;
  align-items: start;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  padding: 16px 0;
  font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
  color: var(--navy);
}
.faq-ico {
  width: 10px; height: 10px; flex: 0 0 auto;
  border-right: 1.6px solid var(--navy);
  border-bottom: 1.6px solid var(--navy);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item.open .faq-ico { transform: rotate(225deg); }
.faq-a {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
}
.faq-item.open .faq-a { display: block; }

/* Contact: dark band, near-white text */
.contact {
  background: var(--navy-deep);
  color: var(--text-inv);
  padding: 72px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 36px 48px;
  align-items: start;
}
.contact .kicker { color: var(--muted-inv); }
.contact h2 {
  color: var(--text-inv);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.contact-copy p { color: var(--muted-inv); max-width: 46ch; }
.contact-email {
  display: inline-block;
  margin: 22px 0 14px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text-inv);
  border-bottom: 1px solid var(--line-inv);
  padding-bottom: 2px;
}
.contact-addr {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-inv);
  line-height: 1.55;
}

.contact-form {
  display: grid; gap: 14px;
  border: 1px solid var(--line-inv);
  padding: 22px;
  background: rgba(244, 247, 255, .04);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-inv);
}
.field input,
.field textarea {
  font-family: "Newsreader", Georgia, serif;
  font-size: 16px;
  color: var(--text-inv);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-inv);
  padding: 8px 0;
  width: 100%;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(201, 210, 238, .55); }
.field textarea { resize: vertical; min-height: 88px; }
.contact .btn-primary {
  background: var(--text-inv); color: var(--navy);
  justify-self: start;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 22px;
}
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: 1rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ===== Reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flow, .valve-spin, .check-box .tick { animation: none; }
  .flow { stroke-dashoffset: 0; stroke-dasharray: 4 8; }
  .check-box .tick { stroke-dashoffset: 0; }
}

/* Hover AFTER reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--navy-mid);
    box-shadow: 0 14px 34px -8px rgba(3, 21, 116, .7);
  }
  .contact .btn-primary:hover {
    background: #fff;
    color: var(--navy-deep);
    transform: translateY(-2px);
  }
  .btn-ghost:hover {
    border-color: var(--navy-mid);
    color: var(--navy-mid);
    transform: translateY(-2px);
  }
  .nav a:hover { color: var(--navy); }
  .nav .nav-cta:hover { border-color: var(--navy); color: var(--navy); }
  .check-row.reveal.in:hover,
  .check-row:hover {
    transform: translateY(-4px);
    border-color: var(--navy);
    box-shadow: 8px 12px 0 rgba(3, 21, 116, .08);
  }
  .run-plate.reveal.in:hover,
  .run-plate:hover {
    transform: translateY(-6px);
    border-color: var(--navy);
    box-shadow: 10px 14px 0 rgba(3, 21, 116, .08);
  }
  .faq-item:hover { border-bottom-color: var(--navy); }
  .faq-q:hover { color: var(--navy-mid); }
  .contact-email:hover { border-bottom-color: #fff; }
  .footer-nav a:hover { color: var(--navy); }
  .contact-form.reveal.in:hover,
  .contact-form:hover { border-color: var(--muted-inv); }
}

@media (hover: none) {
  .nav a { color: var(--ink); }
  .btn-primary { background: var(--navy); color: var(--text-inv); }
  .contact .btn-primary { background: var(--text-inv); color: var(--navy); }
  .btn-ghost { color: var(--navy); border-color: var(--navy); }
  .contact-copy p, .contact-addr { color: var(--text-inv); }
  .faq-q { color: var(--navy); }
  .check-copy p, .run-plate p { color: var(--ink); }
}

/* ===== Breakpoints ===== */
@media (max-width: 980px) {
  .hero-layout,
  .about-grid,
  .faq-wrap,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .run-grid { grid-template-columns: 1fr; }
  .run-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { max-width: 16ch; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; color: var(--ink); }
  .nav .nav-cta { align-self: start; margin-top: 8px; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .iso-sheet { margin: 0 10px; padding: 22px 0 16px; }
  .hero-layout { padding: 10px 6px 10px; }
  .hero-copy { padding-right: 0; min-width: 0; }
  .industry { letter-spacing: .08em; }
  .hero-sub, .lead, .check-copy p, .run-plate p, .about-copy p, .faq-a p, .contact-copy p {
    max-width: 32ch;
  }
  .hero-plant figcaption { letter-spacing: .08em; font-size: 10px; }
  .section { padding: 52px 0; }
  .contact, .quote { padding: 52px 0; }
  .check-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px 14px;
  }
  .check-no { grid-column: 2; padding-top: 0; }
  .check-copy { grid-column: 2; }
  .check-code { grid-column: 2; padding-top: 0; }
  .checklist::before { left: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact .btn-primary { width: 100%; justify-self: stretch; }
  .tag { display: none; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2rem; overflow-wrap: break-word; }
  .run-card { grid-template-columns: 1fr 1fr; gap: 12px; }
  .iso-sheet {
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }
  .iso-trim { inset: 8px; }
  .contact-form { padding: 16px; }
  .hero-sub { font-size: 1.02rem; }
}
