/* Quanterra home page. Approved design "Mix 3+1 v4" (04-12-2026). Brand v4.0. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Urbanist, Arial, sans-serif; color: #334155; background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #0B5CAD; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: #0B1B2B; color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
.lab { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
h1, h2 { font-weight: 300; letter-spacing: -.04em; color: var(--n); text-wrap: balance; }
h2 { font-size: 52px; line-height: 1.05; margin-top: 14px; }
h3 { font-weight: 600; font-size: 19px; color: var(--n); line-height: 1.3; }
p { line-height: 1.55; }
.lead { font-weight: 300; font-size: 22px; color: var(--sl); line-height: 1.45; }
.lk { color: var(--c); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lk:hover { color: var(--cd); }
.more { margin-top: 40px; }
.ico { width: 44px; height: 44px; stroke: var(--c); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sec { padding: 120px 0; }

/* 1. Hero on white */
.hero-wrap { padding-bottom: 72px; }
.hero { display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center; padding-top: 56px; }
h1 { font-size: 92px; line-height: .98; margin-top: 22px; }
h1 span { color: var(--c); }
.hero .lead { margin: 28px 0 40px; max-width: 26ch; }
.pr { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--h); font-size: 17px; color: var(--n); max-width: 380px; }
.pr b { display: block; font-weight: 600; color: var(--c); margin-top: 4px; }
.arches { position: relative; height: 640px; }
.ar { position: absolute; display: block; overflow: hidden; border-radius: 999px 999px 0 0; }
.ar img { width: 100%; height: 100%; object-fit: cover; }
.a1 { left: 40px; top: 30px; width: 360px; height: 610px; }
.a2 { right: 0; bottom: 0; width: 210px; height: 320px; outline: 10px solid #fff; }
.ol { position: absolute; left: 10px; top: 0; width: 360px; height: 610px; border: 1px solid var(--c); border-bottom: 0; border-radius: 999px 999px 0 0; }
.base { border-top: 1px solid var(--n); padding-top: 14px; font-size: 13px; color: var(--sl); }

/* 2. Who it is for, on tint */
.s-who { background: var(--tint); }
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.who li { border-top: 1px solid rgba(11, 92, 173, .25); padding-top: 28px; }
.who h3 { margin-top: 20px; }
.who p { color: var(--b); margin-top: 8px; font-size: 16px; }

/* 3. The problem, on white: three slides */
.s-prob { background: #fff; overflow: hidden; }
.ptabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.ptab { display: block; background: none; border: 0; text-align: left; cursor: pointer; }
.ptab .bar { display: block; height: 2px; background: var(--h); position: relative; overflow: hidden; }
.ptab .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c); }
.ptab.on .bar i { animation: fill 4s linear forwards; }
.ptab.on.hold .bar i { animation-play-state: paused; }
.ptab.done .bar i { width: 100%; }
.ptab .tl { display: flex; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sl); transition: color .3s; }
.ptab .tl b { font-weight: 600; color: var(--c); }
.ptab.on .tl { color: var(--n); }
@keyframes fill { to { width: 100%; } }
.pstage { position: relative; height: 420px; margin-top: 48px; }
.ps { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 520px; gap: 80px; align-items: center; opacity: 0; visibility: hidden; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease, visibility 0s .7s; }
.ps.on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease; }
.ps .big { font-weight: 300; font-size: 120px; line-height: .9; color: var(--c); letter-spacing: -.04em; }
.ps h3 { font-weight: 300; font-size: 46px; line-height: 1.12; color: var(--n); margin-top: 18px; max-width: 16ch; }
.ps .sm { color: var(--sl); font-size: 17px; margin-top: 18px; max-width: 40ch; line-height: 1.5; }
.vis { position: relative; height: 360px; border-left: 1px solid var(--h); padding-left: 48px; }
.msg { background: var(--tint); color: var(--n); border-radius: 18px 18px 6px 18px; padding: 16px 20px; font-size: 16px; max-width: 320px; margin-left: auto; }
.meta { font-size: 12px; color: var(--sl); text-align: right; margin-top: 8px; }
.typing { display: inline-flex; gap: 6px; padding: 16px 20px; border: 1px solid var(--h); border-radius: 18px 18px 18px 6px; margin-top: 28px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--sl); opacity: .3; animation: blink 1.4s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
.clock { display: flex; align-items: baseline; gap: 10px; margin-top: 40px; color: var(--n); }
.clock b { font-weight: 300; font-size: 56px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock span { font-size: 14px; color: var(--sl); }
.pile { display: flex; flex-direction: column; gap: 10px; }
.rq { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--h); font-size: 15px; color: var(--n); opacity: 0; transform: translateX(30px); }
.rq em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--sl); }
.rq i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ps.on .rq { animation: in .5s ease forwards; }
.ps.on .rq:nth-child(2) { animation-delay: .5s; }
.ps.on .rq:nth-child(3) { animation-delay: 1s; }
.ps.on .rq:nth-child(4) { animation-delay: 1.5s; }
.ps.on .rq:nth-child(5) { animation-delay: 2s; }
.ps.on .rq:nth-child(6) { animation-delay: 2.5s; }
@keyframes in { to { opacity: 1; transform: none; } }
.cnt { margin-top: 22px; font-size: 14px; color: var(--sl); }
.cnt b { color: var(--n); font-weight: 600; }
.zone { position: absolute; left: 48px; top: 40px; width: 210px; height: 250px; border: 1px solid var(--c); border-radius: 20px; }
.zone small, .ext small { position: absolute; top: -28px; left: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
.ext { position: absolute; right: 0; top: 40px; width: 170px; height: 250px; border: 1px dashed var(--sl); border-radius: 20px; }
.ext small { color: var(--sl); }
.doc { position: absolute; left: 96px; top: 110px; width: 96px; height: 116px; background: #fff; border: 1px solid var(--h); border-radius: 10px; padding: 16px 14px; }
.doc i { display: block; height: 5px; border-radius: 3px; background: var(--h); margin-bottom: 9px; }
.doc i:first-child { background: var(--c); width: 60%; }
.ps.on .doc { animation: leak 3.4s ease-in-out .6s infinite; }
@keyframes leak { 0%, 15% { transform: none; } 55%, 85% { transform: translateX(250px); } 100% { transform: none; } }
.warn { position: absolute; left: 48px; bottom: 0; font-size: 14px; color: var(--sl); }

/* 4. How it works, on tint, with real Noah screens */
.inside { background: var(--tint); }
.ig { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.inside h2 { margin-bottom: 36px; }
.how li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 26px 0; border-top: 1px solid rgba(11, 92, 173, .2); }
.how .ico { grid-row: span 2; }
.how b { color: var(--c); }
.how p { color: var(--b); font-size: 16px; margin-top: 6px; }
.inside .more { margin-top: 32px; }
.shots { position: relative; height: 640px; }
.sh1, .sh2 { position: absolute; background: #fff; border: 1px solid var(--h); border-radius: 16px; overflow: hidden; }
.sh1 { right: 0; top: 0; width: min(620px, 100%); }
.sh2 { left: 0; top: 250px; width: 380px; }
.cap { position: absolute; right: 0; bottom: 0; font-size: 12px; color: var(--b); }

/* 5. Principles, on navy */
.prin-s { background: var(--n); }
.prin-s .lab { color: var(--cb); }
.prin-s h2 { color: #fff; }
.prin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 56px; }
.prin .ico { stroke: var(--cb); }
.prin h3 { color: #fff; font-size: 24px; font-weight: 300; margin-top: 22px; }
.prin p { color: #C9D3E0; font-size: 16px; margin-top: 10px; }
.prin-s :focus-visible { outline-color: #fff; }

/* 6. Call to action, on white, with the team photo */
.cta { background: #fff; }
.cta-grid { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.cta h2 { margin-top: 0; }
.cta .lead { margin: 20px 0 36px; }
.tp { display: block; height: 300px; border-radius: 24px; overflow: hidden; }
.tp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* Tablet */
@media (max-width: 1180px) {
  h1 { font-size: 72px; }
  h2 { font-size: 44px; }
  .hero { grid-template-columns: 1fr 420px; }
  .arches { height: 520px; }
  .a1, .ol { width: 290px; height: 495px; }
  .a1 { left: 32px; top: 25px; }
  .a2 { width: 170px; height: 260px; }
  .ps { grid-template-columns: 1fr 420px; gap: 48px; }
  .ps h3 { font-size: 38px; }
  .ps .big { font-size: 96px; }
  @keyframes leak { 0%, 15% { transform: none; } 55%, 85% { transform: translateX(200px); } 100% { transform: none; } }
  .ig { grid-template-columns: 360px 1fr; gap: 48px; }
  .sh2 { width: 300px; top: 220px; }
  .cta-grid { grid-template-columns: 340px 1fr; gap: 48px; }
  .prin { gap: 40px; }
}
@media (max-width: 900px) {
  .sec { padding: 88px 0; }
  h1 { font-size: 60px; }
  .hero { grid-template-columns: 1fr 300px; gap: 28px; padding-top: 36px; }
  .arches { height: 400px; }
  .a1, .ol { width: 220px; height: 380px; }
  .a1 { left: 24px; top: 20px; }
  .a2 { width: 130px; height: 200px; outline-width: 8px; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .pstage { height: 640px; }
  .ps { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .vis { border-left: 0; border-top: 1px solid var(--h); padding: 28px 0 0; height: 320px; max-width: 520px; }
  .zone { left: 0; }
  .warn { left: 0; }
  .ig { grid-template-columns: 1fr; gap: 48px; }
  .shots { height: auto; }
  .sh1, .sh2 { position: relative; width: 100%; left: auto; right: auto; top: auto; }
  .sh2 { width: 60%; margin: -60px 0 0 auto; }
  .cap { position: static; display: block; margin-top: 10px; }
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .tp { height: 280px; max-width: 520px; }
  .prin { gap: 28px; }
}

/* Phone */
@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .hero-wrap { padding-bottom: 48px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .lead { font-size: 18px; }
  .arches { height: 470px; }
  .a1, .ol { width: 250px; height: 440px; }
  .a1 { left: 26px; top: 28px; }
  .ol { left: 6px; }
  .a2 { width: 150px; height: 230px; outline-width: 10px; }
  .who, .prin { grid-template-columns: 1fr; gap: 32px; }
  .ptabs { gap: 12px; margin-top: 36px; }
  .ptab .tl { font-size: 12px; flex-direction: column; gap: 2px; }
  .pstage { height: 700px; margin-top: 32px; }
  .ps .big { font-size: 72px; }
  .ps h3 { font-size: 30px; }
  .vis { height: 300px; }
  .zone { width: 150px; height: 200px; }
  .ext { width: 130px; height: 200px; }
  .doc { left: 30px; top: 100px; width: 84px; height: 100px; }
  @keyframes leak { 0%, 15% { transform: none; } 55%, 85% { transform: translateX(200px); } 100% { transform: none; } }
  .clock { flex-wrap: wrap; margin-top: 28px; }
  .clock b { font-size: 40px; }
  .rq { padding: 10px 0; }
  .pile { gap: 4px; }
  .ig { gap: 40px; }
  .sh2 { width: 80%; margin: -40px 0 0 auto; }
  .tp { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ps, .ps.on { transition: none; }
  .ps.on .rq, .ps.on .doc, .typing i, .ptab.on .bar i { animation: none !important; }
  .ptab.on .bar i { width: 100%; }
  .rq { opacity: 1; transform: none; }
}

/* Example use cases under each industry */
.uc { list-style: none; margin: 20px 0 0; padding: 0; }
.uc li { padding: 9px 0; border-top: 1px solid rgba(11, 92, 173, .16); font-size: 14px; font-weight: 600; color: var(--n); }
@media (min-width: 901px) { .who > li > p { min-height: 3.2em; } }

/* Partners and resources on the home page */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.s-more h2 { font-size: clamp(30px, 3vw, 44px); max-width: 14ch; }
.s-more .lead { color: var(--sl); font-size: 19px; font-weight: 300; margin-top: 16px; }
.s-more .more { margin-top: 32px; }
.res { list-style: none; margin: 0; padding: 0; }
.res li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--h); }
.res li:last-child { border-bottom: 1px solid var(--h); }
.res b { font-weight: 600; font-size: 18px; color: var(--n); }
.res span { font-size: 15px; color: var(--sl); }
.cta-tint { background: var(--tint); }
@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr; gap: 56px; } }

/* Plain scrolling home page (stacking effect removed 04-12-2026 at Afaf's request) */
.s-more { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .js body.home .sec { border-top: 1px solid var(--h); }
  .js body.home .prin-s { border-top-color: rgba(255, 255, 255, .12); }
  .js body.home .hero-wrap { background: #fff; }
}

/* How it works: steps arrive one by one, then each step takes its turn */
.how li { position: relative; }
.how li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--c); }
.how li h3, .how li .ico { transition: color .4s, opacity .4s; }
.js .inside.run .how li:not(.act) .ico { opacity: .45; }
.js .inside.run .how li.act h3 { color: var(--c); }
.js .inside.run .how li.act::before { animation: fill 3s linear forwards; }
@media (prefers-reduced-motion: no-preference) {
  .js .inside .how li, .js .inside .sh1, .js .inside .sh2, .js .inside .cap { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
  .js .inside .how li { transform: translateY(20px); }
  .js .inside .sh1 { transform: translateX(48px); }
  .js .inside .sh2 { transform: translateY(48px); }
  .js .inside.in .how li, .js .inside.in .sh1, .js .inside.in .sh2, .js .inside.in .cap { opacity: 1; transform: none; }
  .js .inside.in .how li:nth-child(2) { transition-delay: .25s; }
  .js .inside.in .how li:nth-child(3) { transition-delay: .5s; }
  .js .inside.in .sh1 { transition-delay: .5s; }
  .js .inside.in .sh2 { transition-delay: .85s; }
  .js .inside.in .cap { transition-delay: 1.2s; }
}
.inside { overflow: hidden; }
