:root {
  color-scheme: dark;
  --ink: #0b0d0e;
  --ink-soft: #121718;
  --paper: #edf0ee;
  --paper-soft: #dfe5e1;
  --white: #f6f7f4;
  --muted: #a5abae;
  --muted-dark: #53615f;
  --accent: #ff7057;
  --line: #33383b;
  --line-light: #bcc7c0;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 12px 14px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 80px; display: flex; align-items: center; gap: 40px; padding: 0 5%; background: rgba(11,13,14,.78); border-bottom: 1px solid rgba(255,255,255,.04); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.site-nav { display: flex; justify-content: flex-end; margin-left: auto; gap: 34px; font-size: 14px; }
.site-nav a, .portal-link { transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current=page], .portal-link:hover { color: var(--accent); }
.portal-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 30px; }
.portal-link svg, .button-link svg, .footer-link svg { width: 18px; height: 18px; stroke-width: 1.5; }
.nav-toggle { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--white); }
.nav-toggle svg { width: 18px; height: 18px; }
.public-hero { position: relative; min-height: 650px; height: min(82svh, 820px); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; background: var(--ink); }
.public-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(4,7,8,.57); }
.public-hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.06); transform: scale(1.015); animation: hero-settle 1.2s ease-out both; }
.public-hero.hero-product img { object-position: center 58%; }
.hero-inner { width: 90%; max-width: 1240px; margin: 0 auto; padding: 140px 0 80px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 23px; height: 2px; background: var(--accent); }
.public-hero h1 { max-width: 920px; margin: 0; font-size: clamp(54px, 7.7vw, 112px); font-weight: 400; line-height: .98; }
.hero-copy { max-width: 630px; margin: 28px 0 0; color: #d6dcda; font-size: clamp(18px, 2vw, 25px); font-weight: 350; line-height: 1.45; }
.hero-index { position: absolute; right: 0; bottom: 82px; display: grid; gap: 7px; text-align: right; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.hero-index strong { color: var(--white); font-weight: 500; }
.light-band { background: var(--paper); color: #202727; }
.dark-band { background: var(--ink-soft); color: var(--white); }
.section-inner { width: 90%; max-width: 1240px; margin: 0 auto; padding: 92px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(36px, 5vw, 61px); font-weight: 430; line-height: 1.08; }
.section-heading p { max-width: 46ch; margin: 0; color: var(--muted-dark); font-size: 17px; line-height: 1.75; }
.dark-band .section-heading p { color: var(--muted); }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.metric { min-height: 180px; padding: 28px 36px 30px 0; border-right: 1px solid var(--line-light); }
.metric + .metric { padding-left: 36px; }
.metric:last-child { border-right: 0; }
.metric span { color: #687f76; font-size: 11px; }
.metric h3 { margin: 33px 0 12px; font-size: 22px; font-weight: 520; }
.metric p { max-width: 35ch; margin: 0; color: var(--muted-dark); font-size: 14px; line-height: 1.7; }
.statement { max-width: 1000px; margin: 0; font-size: clamp(32px, 5vw, 68px); font-weight: 350; line-height: 1.18; }
.statement em { color: var(--accent); font-style: normal; }
.service-list { border-top: 1px solid var(--line-light); }
.service-row { display: grid; grid-template-columns: 70px minmax(210px,.75fr) 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line-light); align-items: start; transition: padding .25s, background .25s; }
.service-row:hover { padding-left: 14px; background: rgba(255,255,255,.28); }
.service-row > span { color: #698076; font-size: 12px; }
.service-row h2 { margin: 0; font-size: 26px; font-weight: 500; }
.service-row p { max-width: 57ch; margin: 0; color: var(--muted-dark); font-size: 15px; line-height: 1.75; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 60px 5%; border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 750px; margin: 0; font-size: clamp(32px, 4vw, 54px); font-weight: 400; line-height: 1.12; }
.button-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 190px; padding: 15px 18px; border-radius: 3px; background: var(--white); color: var(--ink); font-size: 13px; transition: transform .2s, background .2s; }
.button-link:hover { background: #fff; transform: translateY(-2px); }
.button-link svg { color: #d94f38; }
.contact-main { background: var(--paper); color: #202727; }
.contact-layout { width: 90%; max-width: 1240px; margin: 0 auto; padding: 92px 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; }
.contact-layout h2 { margin: 0 0 30px; font-size: clamp(36px, 5vw, 62px); font-weight: 430; line-height: 1.1; }
.contact-email { display: inline-flex; align-items: center; gap: 25px; padding-bottom: 11px; border-bottom: 1px solid #758a80; font-size: clamp(21px, 3vw, 31px); }
.contact-email svg { width: 25px; height: 25px; color: #db563f; }
.contact-details { border-top: 1px solid var(--line-light); }
.contact-detail { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.contact-detail span { color: #6b8077; font-size: 11px; text-transform: uppercase; }
.contact-detail p { margin: 0; color: var(--muted-dark); line-height: 1.6; }
.site-footer { width: 90%; max-width: 1240px; margin: 0 auto; min-height: 95px; display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--white); font-size: 15px; font-weight: 650; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--white); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.redirect { min-height: 100svh; display: grid; place-items: center; padding: 30px; text-align: center; }
.redirect h1 { margin: 0 0 18px; font-size: clamp(34px, 6vw, 66px); font-weight: 400; }
.redirect p { color: var(--muted); margin: 0 0 28px; }
.login-page { min-height: 100svh; background: var(--ink); }
.login-main { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 5% 54px; }
.login-main::after { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(4,7,8,.66); }
.login-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(.68) contrast(1.08); animation: hero-settle 1.2s ease-out both; }
.login-layout { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,430px); gap: clamp(55px,8vw,130px); align-items: center; }
.login-intro { align-self: end; padding-bottom: 38px; }
.login-intro h1 { max-width: 720px; margin: 0; font-size: clamp(52px,7vw,96px); font-weight: 400; line-height: 1; }
.login-intro .hero-copy { max-width: 540px; font-size: 19px; }
.login-panel { padding: 34px; border: 1px solid #41484a; border-radius: 6px; background: rgba(16,21,22,.9); box-shadow: 0 24px 70px rgba(0,0,0,.34); backdrop-filter: blur(18px); }
.login-panel-header { margin-bottom: 28px; }
.login-panel-header span { color: var(--accent); font-size: 10px; text-transform: uppercase; }
.login-panel h2 { margin: 8px 0 0; font-size: 30px; font-weight: 470; }
.login-error { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--accent); background: rgba(255,112,87,.1); color: #ffd7cf; font-size: 13px; line-height: 1.5; }
.login-success { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid #7db9a4; background: rgba(125,185,164,.1); color: #d9eee6; font-size: 13px; line-height: 1.5; }
.login-form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; color: #d7ddda; font-size: 12px; }
.field-control { position: relative; }
.field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #4a5254; border-radius: 4px; background: #111617; color: var(--white); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s; }
.field input::placeholder { color: #707a7c; }
.field input:focus { border-color: var(--accent); background: #151b1c; }
.field-control input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #9ea8aa; }
.password-toggle:hover { color: var(--white); }
.password-toggle svg { width: 17px; height: 17px; }
.login-submit { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 4px; padding: 13px 16px; border: 0; border-radius: 3px; background: var(--white); color: var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.login-submit:hover { background: #fff; transform: translateY(-2px); }
.login-submit svg { width: 18px; height: 18px; color: #d94f38; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin: 5px 0 0; font-size: 12px; color: #b1bab7; }
.login-links a { padding-bottom: 3px; border-bottom: 1px solid #66716e; }
.login-register { margin: -4px 0 0; padding: 0 0 18px; border-bottom: 1px solid #343b3d; color: #aeb7b4; font-size: 13px; }
.login-register a { color: var(--white); border-bottom: 1px solid #6f7b77; }
.auth-generated-link { margin: -4px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.auth-generated-link a { color: var(--white); border-bottom: 1px solid #6f7b77; }
.auth-status { color: #d7ddda; font-size: 15px; line-height: 1.65; }
.auth-status + .login-submit { margin-top: 24px; }
.auth-main .login-panel { max-height: calc(100svh - 135px); overflow-y: auto; }
.login-footer { position: absolute; left: 5%; right: 5%; bottom: 24px; display: flex; justify-content: space-between; gap: 20px; color: #818a8c; font-size: 10px; }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@media(max-width:800px) {
  .site-header { height: 68px; gap: 14px; }
  .brand { font-size: 15px; }
  .brand img { width: 29px; height: 29px; }
  .nav-toggle { display: grid; margin-left: auto; }
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; display: grid; gap: 0; padding: 10px 5% 20px; background: rgba(11,13,14,.97); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid #252a2c; }
  .portal-link { border: 0; padding-left: 0; font-size: 12px; }
  .public-hero { min-height: 600px; height: 78svh; }
  .public-hero::after { background: rgba(4,7,8,.67); }
  .public-hero img { object-position: 60% center; }
  .hero-inner { padding: 130px 0 62px; }
  .public-hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-copy { max-width: 34ch; font-size: 18px; }
  .hero-index { right: auto; left: 0; bottom: 20px; text-align: left; }
  .section-inner, .contact-layout { padding: 62px 0; }
  .section-heading, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading p { font-size: 15px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric, .metric + .metric { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .metric:last-child { border-bottom: 0; }
  .metric h3 { margin-top: 17px; }
  .service-row { grid-template-columns: 42px 1fr; gap: 16px; }
  .service-row p { grid-column: 2; }
  .service-row:hover { padding-left: 0; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 48px 5%; }
  .contact-layout { gap: 50px; }
  .site-footer { flex-wrap: wrap; padding: 24px 0; gap: 14px; }
  .site-footer > span:nth-child(2) { flex-basis: 100%; order: 3; }
  .login-main { align-items: start; padding-top: 105px; padding-bottom: 80px; overflow-x: clip; overflow-y: visible; }
  .login-main::after { background: rgba(4,7,8,.74); }
  .login-backdrop { object-position: 62% center; }
  .login-layout { grid-template-columns: 1fr; gap: 38px; }
  .login-intro { align-self: auto; padding: 0; }
  .login-intro h1 { max-width: 9ch; font-size: clamp(46px,14vw,65px); }
  .login-intro .hero-copy { margin-top: 20px; font-size: 16px; }
  .login-panel { padding: 25px 20px; }
  .auth-main .login-panel { max-height: none; overflow: visible; }
  .login-footer { position: static; width: 100%; max-width: 1240px; margin: 45px auto 0; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
