/* EQlogin website. Mobile first. Uses the tokens in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1.0625rem/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; }
.mono { font-family: var(--font-mono); font-weight: 500; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--graphite); color: #fff; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.btn-lg { min-height: 56px; padding: 0 32px; border-radius: 12px; font-size: 1.125rem; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.btn-lg:hover { transform: translateY(-2px); }
.btn-lg.btn-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 28px -12px rgb(226 85 15 / 0.7); }
.btn-lg.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 20px 34px -12px rgb(226 85 15 / 0.8); }
.btn-primary { background: var(--fill); color: var(--on-fill); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 1px 2px rgb(158 58 8 / 0.4); }
.btn-primary:hover { background: var(--fill-hover); }
.btn-primary:active { background: var(--fill-press); }
.btn-secondary { background: var(--page); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }

/* Top bar */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease-out); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; }
.brand__logo { display: block; width: auto; height: 36px; }
.site-nav { display: none; gap: 32px; margin-left: 32px; }
.site-nav a { font-weight: 500; font-size: 0.9375rem; text-decoration: none; color: var(--text-muted); padding: 10px 0; transition: color var(--dur-fast) var(--ease-out); }
.site-nav a:hover { color: var(--text); }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__contact { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: var(--radius-md); color: var(--text); cursor: pointer; }
.mobile-menu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; background: var(--page); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; }
.mobile-menu .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: clip; padding-block: 24px 56px; }
/* A warm wash from the right, with huge pale words behind everything */
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(255 255 255 / 0.5) 18%, rgb(255 245 238 / 0.6) 62%, rgb(255 231 216 / 0.8) 100%); }
.hero__watermark { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding-block: 8px 0; overflow: hidden; color: rgb(255 122 48 / 0.08); font: 600 clamp(7rem, 25vw, 26rem)/0.8 var(--font-display); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 959px) { .hero__watermark { color: rgb(255 122 48 / 0.055); } }
.hero__watermark span:last-child { align-self: flex-end; transform: translate(-4%, 8%); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero__title { font: 600 clamp(3.25rem, 13.5vw, 4.25rem)/1 var(--font-display); letter-spacing: -0.005em; }
.hero__tag { margin-bottom: 18px; color: var(--text); font: 600 clamp(1.375rem, 2vw, 1.75rem)/1.2 var(--font-ui); }
.hero__tag span { color: var(--primary); }
.line { display: block; overflow: hidden; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.mark { position: relative; z-index: 0; display: inline-block; padding-inline: 0.1em; color: var(--ink-on-hivis); }
.mark__bg { position: absolute; z-index: -1; inset: 0.1em 0 -0.1em; background: var(--hivis); border-radius: 0.09em; transform-origin: left center; }
.line > span { display: block; }
.hero__lede { max-width: 34em; margin-top: 20px; color: var(--text-muted); font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* Crane arm: enters from the screen edge, no background */
.hero__art { display: grid; gap: 16px; }
.hero__hook { position: relative; justify-self: end; width: 78%; margin-right: calc(var(--gutter) * -1); aspect-ratio: 1300 / 1999; filter: drop-shadow(-18px 32px 30px rgb(70 32 8 / 0.28)); }
.hero__hook img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hook__swing { position: absolute; inset: 0; transform-origin: 20% 58%; }
/* The inspection tag tied to the hook */
.hook__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hook__line path { fill: none; stroke: var(--ink-on-hivis); stroke-width: 5; }
.hook__tag { position: absolute; left: 39%; top: 74%; width: 32%; transform: rotate(5deg); transform-origin: 50% 12%; overflow: visible; }
.t-body { fill: var(--hivis); }
.t-rule { stroke: var(--ink-on-hivis); stroke-width: 2; opacity: 0.45; }
.hook__tag text { fill: var(--ink-on-hivis); }
.t-item { font: 600 28px var(--font-ui); }
.t-code { font: 500 23px var(--font-mono); }
.t-label { font: 500 22px var(--font-ui); }
.t-date { font: 600 38px var(--font-display); }

/* Tag-read card */
.read-card { margin-top: auto; padding: 18px 20px 16px; background: var(--page); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); font-size: 1.0625rem; }
.read-card__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.125rem; }
.read-card__head .icon { width: 20px; height: 20px; color: var(--primary); }
.read-card__rows { margin-top: 8px; }
.read-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px 46px; align-items: center; gap: 10px; min-height: 42px; }
.read-row + .read-row { border-top: 1px solid var(--border); }
.read-row dt { color: var(--text-subtle); white-space: nowrap; }
.read-row dd { font-weight: 500; white-space: nowrap; }
.read-row .mono { font-size: 1rem; }
.conf { display: block; height: 5px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.conf i { display: block; height: 100%; background: var(--success); border-radius: 3px; transform-origin: left center; transform: scaleX(var(--v)); }
.conf-99 { --v: .99; } .conf-98 { --v: .98; } .conf-96 { --v: .96; } .conf-74 { --v: .74; }
.pct { text-align: right; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.read-row--check .conf i { background: var(--warning); }
.read-row--check .pct { color: var(--warning-text); font-weight: 600; }
.read-card__foot { margin-top: 8px; padding: 6px 10px; background: var(--warning-soft); color: var(--warning-text); border-radius: var(--radius-sm); font-weight: 500; font-size: 1rem; }

@media (min-width: 520px) {
  .site-header__contact { display: inline-flex; }
}

@media (min-width: 640px) {
  .hero__hook { width: 58%; max-width: 480px; }
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .hero__title { font-size: clamp(4.5rem, 6.2vw, 7rem); line-height: 0.98; }
  .hero__lede { max-width: 30em; font-size: 1.25rem; }
}

/* Wide screens: the hook hangs from the screen edge and the card sits in the clear space beside it. */
@media (min-width: 1360px) {
  :root { --hero-h: min(calc(100svh - var(--header-h)), 820px); }
  .hero { display: flex; align-items: center; min-height: var(--hero-h); padding-block: 32px 48px; }
  .hero__grid { position: static; display: block; }
  .hero__copy { position: relative; z-index: 1; max-width: min(62vw, 1100px); }
  .hero__lede { max-width: 27em; }
  .hero__art { display: block; }
  .hero__hook { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Soft moving orange background, behind every page. Only transform is animated, so it stays smooth. */
.bg-flow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orb { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; background: radial-gradient(circle, rgb(255 122 48 / 0.3), rgb(255 122 48 / 0) 68%); will-change: transform; }
.bg-orb--a { left: -14vmax; top: -10vmax; animation: orb-a 26s ease-in-out infinite alternate; }
.bg-orb--b { right: -18vmax; top: 22vh; animation: orb-b 32s ease-in-out infinite alternate; }
.bg-orb--c { left: 26vw; bottom: -30vmax; animation: orb-c 38s ease-in-out infinite alternate; }
@keyframes orb-a { to { transform: translate(24vw, 26vh) scale(1.2); } }
@keyframes orb-b { to { transform: translate(-30vw, -18vh) scale(0.9); } }
@keyframes orb-c { to { transform: translate(-22vw, -24vh) scale(1.15); } }
.bg-wave { position: absolute; left: 0; top: 24vh; width: 200vw; height: 34vh; overflow: visible; filter: drop-shadow(0 0 10px rgb(255 122 48 / 0.55)); will-change: transform; animation: wave 34s linear infinite; }
.bg-wave path { fill: none; stroke: #ff8a3c; stroke-width: 2; stroke-opacity: 0.5; vector-effect: non-scaling-stroke; }
.bg-wave--2 { top: 58vh; height: 26vh; animation-duration: 48s; animation-direction: reverse; }
.bg-wave--2 path { stroke-opacity: 0.32; }
@keyframes wave { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bg-orb, .bg-wave { animation: none; } }
