/* Quodesh IT Consult: site styles */
:root {
  --white: #ffffff;
  --mist: #f6f7fa;
  --tint: #edf0f6;
  --line: #e1e5ed;
  --ink: #14213d;
  --muted: #5b6579;
  --navy: #163a8c;
  --navy-deep: #0f2a66;
  --dot: #f39a3d;
  --wrap: 1600px;
  --gutter: clamp(20px, 5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.dot { color: var(--dot); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; }
.brand span { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--dot); }
.nav .button { padding: 10px 20px; border-bottom: 0; color: var(--white); }
.nav .button:hover { color: var(--white); }

/* Buttons */
.button {
  display: inline-block; background: var(--navy); color: var(--white);
  text-decoration: none; font-size: 1rem; font-weight: 500; padding: 14px 26px;
  border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
}
.button:hover { background: var(--navy-deep); color: var(--white); }
.button.quiet { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.button.quiet:hover { background: var(--tint); color: var(--navy-deep); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

/* Hero */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; max-width: 46ch; }
.frameworks { background: var(--mist); border-radius: 20px; padding: 28px 32px; }
.frameworks h2 { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.frameworks ul { list-style: none; margin: 0; padding: 0; }
.frameworks li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.frameworks li:first-child { border-top: 0; }

/* Dot list */
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.service { padding: 28px 0; border-top: 1px solid var(--line); }
.service h3 { display: flex; align-items: baseline; gap: 12px; }
.service h3::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); transform: translateY(-2px); }
.service p { margin: 10px 0 0 21px; color: var(--muted); }
.service .dots { margin: 14px 0 0 21px; color: var(--muted); font-size: 1rem; }
.service .dots li::before { background: var(--line); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 300; color: var(--navy); line-height: 1; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: 1.2rem; line-height: 1.6; }
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 1rem; }
.quote figcaption strong { color: var(--ink); font-weight: 500; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.person { border-top: 1px solid var(--line); padding-top: 20px; }
.person .initials { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; font-weight: 500; margin-bottom: 16px; }
.person h3 { font-size: 1.15rem; }
.person p { color: var(--muted); font-size: 1rem; margin: 4px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.details { list-style: none; margin: 32px 0 0; padding: 0; }
.details li { padding: 16px 0; border-top: 1px solid var(--line); }
.details span { display: block; color: var(--muted); font-size: 0.95rem; }
.details a { color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.details a:hover { color: var(--navy); text-decoration: underline; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.section.mist .form { border-color: transparent; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.field .optional { color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 58, 140, 0.15); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map { margin-top: 48px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Page intro */
.page-intro { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-intro .lead { margin-top: 20px; max-width: 62ch; }

/* Prose (privacy) */
.prose { max-width: 70ch; }
.prose h4 { font-size: 1.3rem; margin: 2.2em 0 0.6em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .text-muted { color: var(--muted); }

/* CTA band */
.cta { background: var(--navy-deep); color: var(--white); border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 22ch; }
.cta p { color: #c7d2ea; margin: 12px 0 0; max-width: 48ch; }
.cta .button { background: var(--white); color: var(--navy-deep); }
.cta .button:hover { background: var(--tint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.site-footer .tagline { color: var(--muted); max-width: 36ch; margin-top: 14px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .contact-grid { grid-template-columns: 1fr; }
  .steps, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .services, .quotes, .steps, .team, .footer-grid { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .nav { gap: 4px 20px; }
  .nav .button { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== Colour grading and motion ===== */
:root { --night: #0a1a40; --glass: rgba(255, 255, 255, 0.06); --glass-line: rgba(255, 255, 255, 0.12); --soft: #c3cde6; }

/* Dark sticky header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(5, 14, 40, 0.6); }
.site-header .brand, .site-header .brand span { color: var(--white); }
.site-header .nav a { color: rgba(255, 255, 255, 0.78); transition: color .2s ease, border-color .2s ease; }
.site-header .nav a:hover { color: var(--white); }
.site-header .nav a[aria-current="page"] { color: var(--white); }
.site-header .nav .button { background: var(--dot); color: var(--night); }
.site-header .nav .button:hover { background: #f7ae5f; color: var(--night); }

/* Dark graded bands: hero, page intros, CTA */
.dark { position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  background: linear-gradient(165deg, var(--night) 0%, #0f2a66 52%, #1a4199 100%); }
.dark::before { content: ""; position: absolute; inset: -35%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(32% 30% at 22% 32%, rgba(92, 140, 255, 0.38), transparent 70%),
    radial-gradient(26% 26% at 78% 72%, rgba(243, 154, 61, 0.24), transparent 70%),
    radial-gradient(30% 34% at 64% 18%, rgba(140, 175, 255, 0.2), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate; }
.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-6deg) scale(1.02); }
}
.dark .lead, .dark p { color: var(--soft); }
.dark a:not(.button) { color: var(--white); }
.dark .button { background: var(--dot); color: var(--night); }
.dark .button:hover { background: #f7ae5f; color: var(--night); }
.dark .button.quiet { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.dark .button.quiet:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px var(--white); }
.button { transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }

.hero { padding: clamp(72px, 11vw, 144px) 0 clamp(64px, 9vw, 112px); }
.page-intro { border-bottom: 0; }
.dark .frameworks { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dark .frameworks h2 { color: var(--soft); }
.dark .frameworks li { border-top-color: rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: 12px; }
.dark .frameworks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 0 4px rgba(243, 154, 61, 0.15); }

/* Load sequence (hero only) */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.frameworks li { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.75s + var(--i, 0) * .08s); }
.dot.drop { display: inline-block; animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-0.6em) scale(.4); } to { opacity: 1; transform: none; } }

/* Clients strip: continuous slide */
.clients { padding: 48px 0; border-bottom: 1px solid var(--line); }
.clients h2 { font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-bottom: 22px; letter-spacing: 0; }
.marquee { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos { list-style: none; margin: 0; padding: 0 16px 0 0; display: flex; gap: 16px; }
.logos li { flex: none; width: 210px; height: 84px; display: grid; place-items: center; border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 16px 24px; transition: border-color .3s ease, box-shadow .3s ease; }
.logos li:hover { border-color: #cdd5e6; box-shadow: 0 8px 24px -14px rgba(15, 42, 102, 0.35); }
.logos img { max-height: 44px; max-width: 100%; width: auto; }
.logos .logo-tenece { max-height: 32px; }
.logos .logo-tactful-consult { max-height: 54px; }
.logos .logo-axon { max-height: 50px; }
.logos .wordmark { color: #9aa3b5; font-size: 1rem; border: 1px dashed #cdd3df; background: transparent; }

/* Scroll reveals: blocks on inner pages */
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger > :nth-child(2) { transition-delay: .1s; }
.stagger > :nth-child(3) { transition-delay: .2s; }
.stagger > :nth-child(4) { transition-delay: .3s; }
.stagger > :nth-child(5) { transition-delay: .4s; }
.stagger > :nth-child(6) { transition-delay: .5s; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.page-intro .dot.drop { animation-delay: .55s; }
.person .initials { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.person:hover .initials { background: var(--navy); color: var(--white); transform: scale(1.06); }

/* Services: hover */
.service { position: relative; transition: transform .3s ease; }
.service::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.service:hover::after { transform: scaleX(1); }
.service h3::before { transition: transform .3s ease, box-shadow .3s ease; }
.service:hover h3::before { transform: translateY(-2px) scale(1.35); box-shadow: 0 0 0 5px rgba(243, 154, 61, 0.18); }

/* Steps: line draws on scroll */
.steps li { position: relative; border-top-color: var(--line); }
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--navy), #3d6be0); transform-origin: left; }
.js .steps li::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .steps li::before, .js .steps li h3, .js .steps li p { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .steps.in li::after { transform: scaleX(1); }
.js .steps.in li::before, .js .steps.in li h3, .js .steps.in li p { opacity: 1; transform: none; }
.steps li:nth-child(2)::after, .steps li:nth-child(2)::before, .steps li:nth-child(2) h3, .steps li:nth-child(2) p { transition-delay: .25s; }
.steps li:nth-child(3)::after, .steps li:nth-child(3)::before, .steps li:nth-child(3) h3, .steps li:nth-child(3) p { transition-delay: .5s; }
.steps li:nth-child(4)::after, .steps li:nth-child(4)::before, .steps li:nth-child(4) h3, .steps li:nth-child(4) p { transition-delay: .75s; }

/* CTA band */
.cta.dark { background: linear-gradient(120deg, var(--night) 0%, #0f2a66 60%, #1a4199 100%); }
.cta.dark h2 { color: var(--white); }

/* Footer */
.site-footer { background: var(--mist); border-top: 0; }

@media (max-width: 640px) { .logos li { width: 170px; height: 72px; padding: 14px 20px; } .track { animation-duration: 30s; } }
@media (prefers-reduced-motion: reduce) {
  .dark::before, .rise, .frameworks li, .dot.drop, .track { animation: none !important; }
  .track { width: auto; } .track .logos[aria-hidden] { display: none; } .logos { flex-wrap: wrap; }
  .js .stagger > *, .js .reveal { opacity: 1; transform: none; }
  .js .steps li::after { transform: none; }
  .js .steps li::before, .js .steps li h3, .js .steps li p { opacity: 1; transform: none; }
}
.nowrap { white-space: nowrap; }

/* Hero panel link */
.frameworks .more { display: inline-block; margin-top: 14px; font-size: 0.95rem; color: var(--dot); text-decoration: none; }
.dark .frameworks .more { color: var(--dot); }
.frameworks .more:hover { text-decoration: underline; }

/* Standards grid */
.std-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.std { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.std::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--dot), #f7c27f); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.std:hover { transform: translateY(-3px); border-color: #d3daea; box-shadow: 0 16px 32px -20px rgba(15, 42, 102, 0.45); }
.std:hover::before { transform: scaleX(1); }
.std-group { font-size: 0.8rem; color: var(--navy); background: var(--tint); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin-bottom: 10px; }
.std strong { font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.std span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.js .std-grid .std { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; transition-delay: calc(var(--i, 0) * 55ms); }
.js .std-grid.in .std { opacity: 1; transform: none; }
.js .std-grid.in .std:hover { transform: translateY(-3px); transition-delay: 0s; }

/* About: who we are */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

/* About: mission and vision */
.purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.purpose-card { border-radius: 24px; padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.purpose-card.dark { border: 0; background: linear-gradient(150deg, var(--night) 0%, #0f2a66 55%, #1a4199 100%); }
.purpose-card h2 { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.purpose-card h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.purpose-card.dark h2 { color: var(--soft); }
.purpose-card p { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0; color: var(--ink); }
.purpose-card.dark p { color: var(--white); }

/* About: values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.value { border-top: 1px solid var(--line); padding-top: 24px; }
.value .letter { display: block; font-size: clamp(3.5rem, 6vw, 5rem); font-weight: 300; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), #3d6be0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 1rem; margin: 0; }

@media (max-width: 900px) {
  .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .purpose { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .std-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .std-grid .std { opacity: 1; transform: none; } }
.page-intro .lead a, .details a, .site-footer a { overflow-wrap: anywhere; }

/* Animation timings (kept here so pages need no inline styles) */
.r1 { --d: .05s; }
.r2 { --d: .1s; }
.r3 { --d: .2s; }
.r4 { --d: .3s; }
.r5 { --d: .35s; }
.r6 { --d: .45s; }
.r7 { --d: .55s; }
.frameworks li:nth-child(1) { --i: 0; }
.frameworks li:nth-child(2) { --i: 1; }
.frameworks li:nth-child(3) { --i: 2; }
.frameworks li:nth-child(4) { --i: 3; }
.frameworks li:nth-child(5) { --i: 4; }
.frameworks li:nth-child(6) { --i: 5; }
.frameworks li:nth-child(7) { --i: 6; }
.frameworks li:nth-child(8) { --i: 7; }
.frameworks li:nth-child(9) { --i: 8; }
.frameworks li:nth-child(10) { --i: 9; }
.frameworks li:nth-child(11) { --i: 10; }
.frameworks li:nth-child(12) { --i: 11; }
.std-grid .std:nth-child(1) { --i: 0; }
.std-grid .std:nth-child(2) { --i: 1; }
.std-grid .std:nth-child(3) { --i: 2; }
.std-grid .std:nth-child(4) { --i: 3; }
.std-grid .std:nth-child(5) { --i: 4; }
.std-grid .std:nth-child(6) { --i: 5; }
.std-grid .std:nth-child(7) { --i: 6; }
.std-grid .std:nth-child(8) { --i: 7; }
.std-grid .std:nth-child(9) { --i: 8; }
.std-grid .std:nth-child(10) { --i: 9; }
.std-grid .std:nth-child(11) { --i: 10; }
.std-grid .std:nth-child(12) { --i: 11; }
.std-grid .std:nth-child(13) { --i: 12; }
.std-grid .std:nth-child(14) { --i: 13; }
.std-grid .std:nth-child(15) { --i: 14; }
.std-grid .std:nth-child(16) { --i: 15; }
.std-grid .std:nth-child(17) { --i: 16; }
.std-grid .std:nth-child(18) { --i: 17; }
.std-grid .std:nth-child(19) { --i: 18; }
.std-grid .std:nth-child(20) { --i: 19; }
.std-grid .std:nth-child(21) { --i: 20; }
.std-grid .std:nth-child(22) { --i: 21; }
.std-grid .std:nth-child(23) { --i: 22; }
.std-grid .std:nth-child(24) { --i: 23; }

/* About: security commitment panel */
.commit { margin-top: clamp(40px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 4px solid var(--dot); border-radius: 18px; padding: clamp(24px, 3vw, 36px); background: var(--mist); }
.commit h3 { margin-bottom: 8px; }
.commit p { color: var(--muted); margin: 0; max-width: 70ch; }

/* Information security policy page */
.policy-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.policy h2, .policy-meta h2 { margin-bottom: 16px; }
.policy-lead { font-size: 1.2rem; }
.policy .dots { margin: 8px 0 28px; }
.policy .dots li { margin-bottom: 14px; }
.policy > p:last-child { color: var(--muted); }
.policy-meta { background: var(--mist); border-radius: 20px; padding: clamp(24px, 3vw, 36px); position: sticky; top: 112px; }
.policy-meta dl { margin: 0 0 28px; }
.policy-meta dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.policy-meta dl div:first-child { border-top: 0; padding-top: 0; }
.policy-meta dt { font-size: 0.9rem; color: var(--muted); }
.policy-meta dd { margin: 2px 0 0; }
.policy-meta h2 { font-size: 1.2rem; }
.policy-meta p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .policy-grid { grid-template-columns: 1fr; } .policy-meta { position: static; } }

/* ===== FAQ assistant ===== */
.faq-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 500;
  background: var(--dot); color: var(--night); box-shadow: 0 14px 30px -12px rgba(10, 26, 64, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease; animation: faq-in .6s cubic-bezier(.2, .7, .2, 1) 1.4s both; }
.faq-launcher:hover { background: #f7ae5f; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(10, 26, 64, 0.6); }
.faq-launcher.is-open { background: var(--night); color: var(--white); }
@keyframes faq-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

.faq-panel { position: fixed; right: 20px; bottom: 88px; z-index: 60; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(10, 26, 64, 0.5), 0 0 0 1px rgba(10, 26, 64, 0.06);
  opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom right; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.faq-panel.is-visible { opacity: 1; transform: none; }
.faq-panel[hidden] { display: none; }

.faq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 16px 20px; color: var(--white);
  background: linear-gradient(150deg, var(--night) 0%, #0f2a66 60%, #1a4199 100%); }
.faq-title { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.faq-title::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.faq-sub { margin: 2px 0 0; font-size: 0.9rem; color: var(--soft); }
.faq-close { flex: none; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--white); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; }
.faq-close:hover { background: rgba(255, 255, 255, 0.2); }

.faq-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; line-height: 1.5; background: var(--mist); }
.faq-msg-bot, .faq-msg-user { max-width: 88%; padding: 11px 14px; border-radius: 16px; animation: faq-pop .3s ease both; }
.faq-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.faq-msg-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 6px; }
.faq-msg-bot p { margin: 0 0 8px; }
.faq-msg-bot p:last-child { margin-bottom: 0; }
.faq-msg-bot ul { margin: 0 0 8px; padding-left: 18px; }
.faq-msg-bot li { margin-bottom: 4px; }
.faq-msg-bot li::marker { color: var(--dot); }
@keyframes faq-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.faq-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 500; color: var(--navy); }
.faq-link-wa { color: #128c4b; }
.faq-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.faq-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa3b5; animation: faq-dot 1s infinite ease-in-out; }
.faq-typing span:nth-child(2) { animation-delay: .15s; }
.faq-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes faq-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.faq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.faq-chips-head { width: 100%; margin: 4px 0 2px; font-size: 0.8rem; color: var(--muted); }
.faq-chip { font: inherit; font-size: 0.88rem; text-align: left; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid #c9d3ea; transition: background-color .2s ease, border-color .2s ease; }
.faq-chip:hover { background: var(--tint); border-color: var(--navy); }

.faq-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); }
.faq-input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.faq-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 58, 140, 0.15); }
.faq-send { font: inherit; font-size: 0.95rem; font-weight: 500; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); cursor: pointer; }
.faq-send:hover { background: var(--navy-deep); }

.faq-foot { display: flex; gap: 8px; padding: 0 14px 10px; background: var(--white); }
.faq-wa, .faq-msg { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--white); transition: border-color .2s ease, background-color .2s ease; }
.faq-wa svg { color: #25d366; }
.faq-wa:hover, .faq-msg:hover { border-color: #c9d3ea; background: var(--mist); color: var(--ink); }
.faq-note { margin: 0; padding: 0 16px 12px; font-size: 0.75rem; line-height: 1.4; color: var(--muted); background: var(--white); }

@media (max-width: 640px) {
  .faq-launcher { right: 14px; bottom: 14px; padding: 12px; }
  .faq-launcher-label { display: none; }
  .faq-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(86vh, 640px); border-radius: 20px 20px 0 0; transform-origin: bottom center; }
  .faq-panel.is-visible ~ .faq-launcher { display: none; }
  .faq-wa, .faq-msg { white-space: nowrap; padding: 10px 8px; font-size: 0.86rem; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-launcher, .faq-msg-bot, .faq-msg-user, .faq-panel { animation: none !important; transition: none !important; }
}
