/* =========================================================
   QeNo Ltd — corporate site
   Palette derived from the wordmark navy #001D52
   ========================================================= */

:root {
  --ink:        #001D52;
  --ink-deep:   #000E2B;
  --ink-mid:    #123068;
  --paper:      #F1F4F9;
  --paper-warm: #E7EBF2;
  --white:      #FFFFFF;
  --brass:      #B0864A;
  --brass-lt:   #D8B77E;
  --steel:      #62718D;
  --line:       rgba(0, 29, 82, 0.14);
  --line-soft:  rgba(0, 29, 82, 0.07);
  --line-dark:  rgba(255, 255, 255, 0.16);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gut: 40px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  overflow-wrap: break-word;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

/* ---------- utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow--dark { color: var(--brass-lt); }

.lede { font-size: 20px; line-height: 1.6; color: var(--ink-mid); max-width: 62ch; }
.muted { color: var(--steel); }

/* ---------- bands ---------- */
.band { padding: 108px 0; border-top: 1px solid var(--line); }
.band--tight { padding: 68px 0; }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink-deep); color: var(--white); border-top: none; }
.band--ink .lede { color: rgba(255,255,255,0.74); }
.band--flush { border-top: none; }

/* =========================================================
   Header
   ========================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.93);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--brass);
  transition: width 0.28s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); }

/* the CTA inside the nav is a button, not a nav link */
.nav a.btn { color: var(--white); }
.nav a.btn::after { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--onink { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--onink:hover { background: var(--brass-lt); border-color: var(--brass-lt); color: var(--ink-deep); }
.btn--onink-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--onink-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn__arrow { transition: transform 0.22s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.navtoggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* =========================================================
   Hero — signature: the aperture (echo of the Q mark)
   ========================================================= */
.hero {
  background: var(--ink-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
  padding-top: 128px;
  padding-bottom: 118px;
}
.hero h1 {
  font-size: clamp(33px, 6.1vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  margin: 0 0 30px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-lt);
}
.hero p {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  color: rgba(255,255,255,0.76);
  max-width: 54ch;
  margin: 0 0 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.aperture { width: 100%; height: auto; overflow: visible; }
.aperture circle, .aperture line, .aperture path { vector-effect: non-scaling-stroke; }
.aperture .ring-outer,
.aperture .ring-inner {
  fill: none;
  stroke: rgba(255,255,255,0.30);
  stroke-width: 1.25;
}
.aperture .ring-mid {
  fill: none;
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}
.aperture .chord {
  stroke: var(--brass-lt);
  stroke-width: 1.6;
  fill: none;
}
.aperture .node { fill: var(--brass-lt); }
.aperture .tick { stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.aperture text {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  fill: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.aperture .ring-outer, .aperture .ring-inner {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw 1.9s cubic-bezier(.22,.68,.28,1) forwards;
}
.aperture .ring-inner { animation-delay: 0.18s; }
.aperture .ring-mid {
  transform-origin: 50% 50%;
  animation: spinSlow 46s linear infinite;
}
.aperture .chord {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 1.5s cubic-bezier(.22,.68,.28,1) 0.8s forwards;
}
.aperture .node, .aperture text, .aperture .tick { opacity: 0; animation: fadeUp 0.7s ease 1.6s forwards; }

.hero__reveal { min-width: 0; }
.hero__reveal > * { animation: fadeUp 0.85s cubic-bezier(.2,.7,.3,1) both; }
.hero__reveal > *:nth-child(1) { animation-delay: 0.05s; }
.hero__reveal > *:nth-child(2) { animation-delay: 0.16s; }
.hero__reveal > *:nth-child(3) { animation-delay: 0.26s; }
.hero__reveal > *:nth-child(4) { animation-delay: 0.36s; }

/* registry strip */
.registry {
  background: var(--ink-deep);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
}
.registry__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.registry__cell { padding: 26px 0 30px; border-left: 1px solid var(--line-dark); padding-left: 26px; }
.registry__cell:first-child { border-left: none; padding-left: 0; }
.registry__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 8px;
}
.registry__v { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; color: var(--white); }

/* page header for subpages */
.pagehead {
  background: var(--ink-deep);
  color: var(--white);
  padding: 96px 0 84px;
}
.pagehead h1 { font-size: clamp(30px, 5vw, 68px); margin: 0 0 22px; }
.pagehead p { color: rgba(255,255,255,0.74); font-size: 19px; max-width: 60ch; margin: 0; line-height: 1.6; }

/* =========================================================
   Section head
   ========================================================= */
.sechead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.sechead h2 { font-size: clamp(26px, 3.4vw, 46px); }
.sechead p { margin: 0; font-size: 18px; line-height: 1.62; color: var(--ink-mid); }
.band--ink .sechead p { color: rgba(255,255,255,0.72); }

/* =========================================================
   Pillars (Class 38 / Class 42)
   ========================================================= */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 52px 48px 56px; border-right: 1px solid var(--line); position: relative; }
.pillar:last-child { border-right: none; }
.pillar__class {
  font-family: var(--display);
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #DDE4EF;
  line-height: 1;
  margin-bottom: 6px;
}
.pillar__classlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 30px;
}
.pillar h3 { font-size: 27px; margin-bottom: 16px; }
.pillar p { font-size: 16.5px; color: var(--ink-mid); margin: 0 0 26px; }
.pillar ul { list-style: none; margin: 0; padding: 0; }
.pillar li {
  font-size: 15.5px;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  color: var(--ink);
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 9px; height: 1px;
  background: var(--brass);
}

/* =========================================================
   Capability cards
   ========================================================= */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap {
  padding: 40px 34px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.25s ease;
}
.cap:hover { background: var(--paper); }
.cap__idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 22px;
}
.cap h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: -0.02em; }
.cap p { font-size: 15.5px; color: var(--ink-mid); margin: 0; line-height: 1.62; }

/* =========================================================
   Process
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 0 40px 0 0; position: relative; }
.step + .step { padding-left: 40px; border-left: 1px solid var(--line-dark); }
.step__n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-lt);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 22px; margin-bottom: 12px; color: var(--white); }
.step p { margin: 0; font-size: 15.5px; color: rgba(255,255,255,0.7); line-height: 1.62; }

/* =========================================================
   Principles
   ========================================================= */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.principles--two { grid-template-columns: repeat(2, 1fr); }
.principle { border-top: 2px solid var(--ink); padding-top: 22px; }
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { margin: 0; font-size: 15.5px; color: var(--ink-mid); }

/* =========================================================
   Service catalogue (services page)
   ========================================================= */
.cat { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 60px; }
.cat + .cat { margin-top: 76px; padding-top: 76px; border-top: 1px solid var(--line); }
.cat__aside h2 { font-size: clamp(25px, 2.6vw, 32px); margin-bottom: 14px; }
.cat__aside p { font-size: 16px; color: var(--ink-mid); margin: 0; }
.cat__nice {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.slist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.sitem { padding: 20px 0; border-top: 1px solid var(--line); }
.sitem h3 { font-size: 17px; margin-bottom: 7px; letter-spacing: -0.015em; }
.sitem p { margin: 0; font-size: 15px; color: var(--ink-mid); line-height: 1.6; }

/* =========================================================
   Prose (legal / privacy)
   ========================================================= */
.prose { max-width: 78ch; }
.prose h2 { font-size: 26px; margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-mid); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* =========================================================
   Data record table
   ========================================================= */
.record { border-top: 1px solid var(--line); }
.record__row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.record__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 4px;
}
.record__v { font-family: var(--mono); font-size: 15.5px; color: var(--ink); letter-spacing: 0.01em; }

/* =========================================================
   Contact
   ========================================================= */
.contactgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,29,82,0.09);
}
.checkrow { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 26px; }
.checkrow input { margin-top: 5px; flex: none; }
.checkrow label { font-size: 14px; color: var(--steel); line-height: 1.55; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.formstatus {
  border-left: 3px solid var(--brass);
  background: var(--paper);
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 15.5px;
  line-height: 1.6;
}
.formstatus strong { display: block; font-weight: 600; margin-bottom: 4px; }
.formstatus span { color: var(--ink-mid); }
.formstatus--error { border-left-color: #9B2C2C; }
.formstatus[hidden] { display: none; }

.addressblock { border-top: 2px solid var(--ink); padding-top: 24px; margin-bottom: 40px; }
.addressblock h3 { font-size: 18px; margin-bottom: 12px; }
.addressblock .record__row { grid-template-columns: 150px 1fr; }
.addressblock address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--ink-mid); }

/* =========================================================
   CTA band
   ========================================================= */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.2vw, 42px); color: var(--white); }
.cta p { margin: 16px 0 0; color: rgba(255,255,255,0.72); max-width: 52ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink-deep); color: var(--white); padding: 76px 0 34px; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 44px; padding-bottom: 52px; }
.footer__logo { height: 28px; width: auto; margin-bottom: 22px; }
.footer__blurb { font-size: 15px; color: rgba(255,255,255,0.62); max-width: 34ch; line-height: 1.65; margin: 0; }
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.footer a:hover { color: var(--brass-lt); }
.footer address { font-style: normal; font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer__bottom a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 96px; padding-bottom: 88px; }
  .hero__art { max-width: 420px; }
  .sechead { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .cat { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .caps { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .principles--two { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --gut: 24px; }
  .nav {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav .btn { margin-top: 16px; width: 100%; justify-content: center; border-bottom: 1px solid var(--ink); }
  .navtoggle { display: inline-block; }
  .brand span { display: none; }

  .band { padding: 72px 0; }
  .band--tight { padding: 52px 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
  .pillar:last-child { border-bottom: none; }
  .caps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step, .step + .step { padding: 0; border-left: none; }
  .step + .step { padding-top: 36px; border-top: 1px solid var(--line-dark); }
  .principles, .principles--two { grid-template-columns: 1fr; gap: 32px; }
  .slist { grid-template-columns: 1fr; gap: 0; }
  .registry__inner { grid-template-columns: 1fr 1fr; }
  .registry__cell { border-left: none; padding-left: 0; border-top: 1px solid var(--line-dark); }
  .registry__cell:nth-child(1), .registry__cell:nth-child(2) { border-top: none; }
  .contactgrid { grid-template-columns: 1fr; gap: 48px; }
  .cta { grid-template-columns: 1fr; gap: 30px; }
  .record__row { grid-template-columns: 1fr; gap: 6px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .pagehead { padding: 68px 0 60px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; align-items: flex-start; gap: 10px; }
  .eyebrow::before { width: 18px; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

::selection { background: var(--brass-lt); color: var(--ink-deep); }
