/* ILM Dox holding page — palette from the logo: navy, cobalt, chrome silver.
   Light page; the hero and the contact block are navy. Display: Sora. Body: IBM Plex Sans. */
:root {
  --navy: #06143a; --navy-2: #0B2A6B; --cobalt: #1E5BE6; --electric: #1E5BE6; --glow: #8fb4ff;
  --ink: #0d1b3d; --ink-2: #3a4a6b; --muted: #5b6b8c; --silver: #b9c4d8; --steel: #6b7a99;
  --bg: #f3f5f8; --paper: #ffffff; --line: #dbe3f0; --tint: #D6E2FF;
  --dark-bg: #050b1f; --dark-fg: #e6ebf5; --dark-line: rgba(185,196,216,.14);
  --display: "Sora", system-ui, sans-serif; --body: "IBM Plex Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

/* ---------- Header: frosted navy glass overlapping the hero (negative bottom margin pulls the hero up under it; --nav-h is set from the real height by app.js), frosted white once scrolled past the hero ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); margin-bottom: calc(-1 * var(--nav-h, 75px)); background: rgba(5,11,31,.55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.08); transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), padding .4s var(--ease); }
.nav.scrolled { background: rgba(255,255,255,.58); border-bottom-color: rgba(219,227,240,.8); box-shadow: 0 10px 30px rgba(13,27,61,.08); padding-block: 10px; }
/* Single-colour lockup: white over the hero glass, navy once the header turns white (the two images swap). */
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; transition: height .4s var(--ease); }
.brand .on-light { display: none; }
.nav.scrolled .brand img { height: 36px; }
.nav.scrolled .brand .on-dark { display: none; }
.nav.scrolled .brand .on-light { display: block; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { font-family: var(--display); font-size: 14px; color: var(--silver); text-decoration: none; transition: color .3s var(--ease); }
.links a:hover { color: #C4CDDE; }
.links .pill { color: #fff; padding: 9px 14px; border-radius: 999px; background: var(--cobalt); border: 1px solid var(--cobalt); transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.nav.scrolled .links a { color: var(--ink-2); }
.nav.scrolled .links a:hover { color: var(--cobalt); }
.nav.scrolled .links .pill, .nav.scrolled .links .pill:hover { color: #fff; }
.links .pill:hover { background: #2A66F0; border-color: #2A66F0; color: #fff; }
@media (max-width: 720px) { .links a:not(.pill) { display: none; } .brand img { height: 34px; } .nav.scrolled .brand img { height: 32px; } }

/* ---------- Hero (navy) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #050b1f 0%, #06143a 55%, #071a4f 100%); color: var(--dark-fg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: calc(var(--nav-h, 75px) + clamp(24px, 5vw, 64px)) var(--gutter) clamp(48px, 7vw, 96px); max-width: 1280px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1.0; color: #fff; }
.hero h1 .w { display: inline-block; color: #C4CDDE; }
.hero h1 .w:last-of-type { color: var(--cobalt); }
.hero .lead { color: var(--silver); margin-top: 20px; max-width: 48ch; font-size: 17px; }
.hero .lead.sub { margin-top: 12px; color: var(--steel); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { position: relative; display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; padding: 14px 22px; border-radius: 12px; background: var(--cobalt); color: #fff; box-shadow: 0 10px 30px rgba(30,91,230,.35), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(30,91,230,.45), inset 0 -2px 0 rgba(0,0,0,.12); background: #2A66F0; }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: transparent; box-shadow: none; color: #C4CDDE; border: 1px solid rgba(196,205,222,.35); }
.btn.ghost:hover { border-color: #C4CDDE; box-shadow: none; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 36px 0 0; }
.stats div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; font-size: 13px; color: var(--steel); min-width: 0; }
.stat-ico { width: 22px; height: 22px; display: grid; place-items: center; grid-row: span 2; margin-top: 2px; }
.stat-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--glow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stats dt { font-family: var(--display); font-size: 17px; font-weight: 600; color: #C4CDDE; letter-spacing: -.01em; line-height: 1.2; }
.stats dd { margin: 3px 0 0; color: var(--silver); line-height: 1.4; }

/* hero load sequence: each piece rises in, in order */
.js .hero .w, .js .hero .lead, .js .hero .stats, .js .hero .map { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero .w:nth-child(2) { animation-delay: .08s; } .js .hero .w:nth-child(3), .js .hero .w:nth-child(4) { animation-delay: .16s; }
.js .hero .lead { animation-delay: .3s; } .js .hero .lead.sub { animation-delay: .4s; }
.js .hero .stats { animation-delay: .5s; }
.js .hero .map { animation-delay: .25s; animation-duration: 1.3s; transform: translateY(0) scale(.96); }
@keyframes rise { to { opacity: 1; transform: none; } }

.map { position: relative; height: 640px; max-width: 100%; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feed { position: absolute; inset: 0; pointer-events: none; }
.toast { position: absolute; width: 220px; max-width: 58%; background: #C4CDDE; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: toast-in .7s var(--ease) both, bob 7s ease-in-out .7s infinite; }
.toast.out { animation: toast-out .8s ease-in forwards; }
.toast b { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 12.5px; }
.toast small { display: block; color: #4a5a7a; margin-top: 2px; }
.toast i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--electric); }
.toast i.ok { background: #1f9d55; } .toast i.amber { background: #e0a106; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Light sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) var(--gutter); max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; color: var(--ink); position: relative; padding-bottom: 16px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 56px; border-radius: 3px; background: linear-gradient(90deg, var(--cobalt), var(--electric)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
.section-head.in h2::after { transform: scaleX(1); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }

/* Services: a composed grid — the signing service featured, every card with a small animated vignette */
.services { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.svc { position: relative; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 24px; box-shadow: 0 1px 2px rgba(13,27,61,.04); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(13,27,61,.12); border-color: #c5d3f0; }
.svc b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); margin-top: 6px; }
.svc p { color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* vignettes: the drawing area at the top of each card */
.vig { border-radius: 12px; background: linear-gradient(180deg, #eef3fb, #f6f8fc); border: 1px solid #e6ecf6; overflow: hidden; }
.vig svg { display: block; width: 100%; height: 100%; }
.vig .ln { stroke: #c9d5ea; stroke-width: 4; stroke-linecap: round; }
/* every card's drawing area is the same shape; each SVG scales to fit inside it */
.svc .vig { aspect-ratio: 2 / 1; }

/* signing: the signature draws itself, then the stamp lands */
.vig-sign .doc { fill: #fff; stroke: #d6deec; stroke-width: 2; }
.vig-sign .sigline { stroke: #c9d5ea; stroke-width: 2; }
.vig-sign .sig { fill: none; stroke: #16308a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: sign 7s cubic-bezier(.4,0,.2,1) infinite; }
.vig-sign .sig2 { stroke-width: 2; animation-name: sign2; }
.vig-sign .stamp circle { fill: #e7f7ee; stroke: #1f9d55; stroke-width: 2; } .vig-sign .stamp path { fill: none; stroke: #1f9d55; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vig-sign .stamp { transform-origin: 246px 48px; transform: scale(0); animation: stamp 7s var(--ease) infinite; }
@keyframes sign { 0%, 8% { stroke-dashoffset: 100; } 42%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes sign2 { 0%, 40% { stroke-dashoffset: 100; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes stamp { 0%, 54% { transform: scale(0); } 62%, 85% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
/* identity: a scan line sweeps the card */
.vig-id .card { fill: #fff; stroke: #d6deec; stroke-width: 2; } .vig-id .face { fill: #dbe5f8; } .vig-id .shoulders { fill: #dbe5f8; }
.vig-id .scan { fill: var(--electric); opacity: .8; animation: scan 3.5s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(81px); } 100% { transform: translateY(0); } }
/* consent: the box ticks */
.vig-consent .box { fill: #fff; stroke: #c9d5ea; stroke-width: 2; animation: boxfill 4s var(--ease) infinite; }
.vig-consent .tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick 4s var(--ease) infinite; }
@keyframes boxfill { 0%, 30% { fill: #fff; stroke: #c9d5ea; } 40%, 85% { fill: var(--cobalt); stroke: var(--cobalt); } 100% { fill: #fff; stroke: #c9d5ea; } }
@keyframes tick { 0%, 38% { stroke-dashoffset: 40; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
/* photos: the viewfinder photographs the place, then the document; each capture lands in the evidence strip */
.vig-photo .scene .frame { fill: #fff; stroke: #c9d5ea; stroke-width: 2; } .vig-photo .scene .hills { fill: #dbe5f8; } .vig-photo .scene .sun { fill: #c9d5ea; } .vig-photo .scene .pin path { fill: var(--cobalt); } .vig-photo .scene .pin circle { fill: #fff; }
.vig-photo .paper rect { fill: #fff; stroke: #d6deec; stroke-width: 2; } .vig-photo .paper line { stroke: #c9d5ea; stroke-width: 3; stroke-linecap: round; } .vig-photo .paper .sq { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; }
.vig-photo .finder path { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vig-photo .finder { animation: pan 9s var(--ease) infinite; }
.vig-photo .flash { fill: #fff; opacity: 0; } .vig-photo .f1 { animation: shutter1 9s ease-out infinite; } .vig-photo .f2 { animation: shutter2 9s ease-out infinite; }
.vig-photo .th rect { fill: #dbe5f8; stroke: #c9d5ea; stroke-width: 1.5; } .vig-photo .th path { fill: var(--cobalt); opacity: .55; } .vig-photo .th line { stroke: #8fa6d6; stroke-width: 1.5; stroke-linecap: round; }
.vig-photo .t1 { transform-origin: 251px 44px; animation: land1 9s var(--ease) infinite; } .vig-photo .t2 { transform-origin: 251px 70px; animation: land2 9s var(--ease) infinite; }
.vig-photo .ok circle { fill: #e7f7ee; stroke: #1f9d55; stroke-width: 2; } .vig-photo .ok path { fill: none; stroke: #1f9d55; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vig-photo .ok { transform-origin: 268px 36px; animation: okpop 9s var(--ease) infinite; }
/* the viewfinder is drawn around the place; it slides right by 114 units to frame the document, which is narrower, so it also tightens */
@keyframes pan { 0% { transform: translate(0, 0) scale(1.12); transform-origin: 82px 61px; opacity: .4; } 10%, 40% { transform: none; opacity: 1; } 52%, 86% { transform: translate(114px, 0) scale(.9); transform-origin: 82px 61px; opacity: 1; } 100% { transform: translate(114px, 0) scale(.9); opacity: 0; } }
@keyframes shutter1 { 0%, 24% { opacity: 0; } 28% { opacity: .9; } 36%, 100% { opacity: 0; } }
@keyframes shutter2 { 0%, 62% { opacity: 0; } 66% { opacity: .9; } 74%, 100% { opacity: 0; } }
@keyframes land1 { 0%, 28% { opacity: 0; transform: translate(-150px, 10px) scale(2.4); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes land2 { 0%, 66% { opacity: 0; transform: translate(-70px, -10px) scale(2); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes okpop { 0%, 82% { transform: scale(0); } 90%, 100% { transform: scale(1); } }

/* pin: drops and ripples */
.vig-pin .pin path { fill: var(--cobalt); } .vig-pin .pin circle { fill: #fff; }
.vig-pin .pin { animation: drop 3.6s var(--ease) infinite; }
.vig-pin .ripple { fill: none; stroke: var(--electric); stroke-width: 2; opacity: 0; animation: ripple 3.6s ease-out infinite; }
@keyframes drop { 0% { transform: translateY(-40px); opacity: 0; } 20%, 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes ripple { 0%, 18% { opacity: 0; transform: scale(.4); transform-origin: 160px 96px; } 24% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(2.4); } }
/* slots: the middle slot gets chosen */
.vig-slots .chip { fill: #fff; stroke: #c9d5ea; stroke-width: 2; }
.vig-slots text { font: 600 12px var(--display); fill: var(--ink-2); }
.vig-slots .c2 { animation: choose 4.5s var(--ease) infinite; } .vig-slots .t2 { animation: chooseText 4.5s var(--ease) infinite; }
@keyframes choose { 0%, 30% { fill: #fff; stroke: #c9d5ea; } 40%, 85% { fill: var(--cobalt); stroke: var(--cobalt); } 100% { fill: #fff; stroke: #c9d5ea; } }
@keyframes chooseText { 0%, 30% { fill: var(--ink-2); } 40%, 85% { fill: #fff; } 100% { fill: var(--ink-2); } }

/* How a visit runs */
.track { list-style: none; margin: 48px 0 0; padding: 28px 28px 24px; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px rgba(13,27,61,.08); }
.track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 47px; height: 2px; background: var(--line); }
.track .run { position: absolute; left: 10%; top: 46px; height: 4px; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--cobalt), var(--electric)); box-shadow: 0 0 14px rgba(30,91,230,.6); }
.track.in .run { animation: run 8s var(--ease) infinite; }
@keyframes run { 0% { width: 0; } 70% { width: 80%; } 88% { width: 80%; opacity: 1; } 100% { width: 80%; opacity: 0; } }
.track li { position: relative; text-align: center; padding-top: 44px; min-width: 0; }
.track li i { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); box-shadow: 0 0 0 4px var(--paper); transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.track.in li i { animation: light 8s var(--ease) infinite; }
.track.in li:nth-child(2) i { animation-delay: 0s; } .track.in li:nth-child(3) i { animation-delay: 1.4s; } .track.in li:nth-child(4) i { animation-delay: 2.8s; } .track.in li:nth-child(5) i { animation-delay: 4.2s; } .track.in li:nth-child(6) i { animation-delay: 5.6s; }
@keyframes light { 0%, 6% { border-color: var(--line); box-shadow: 0 0 0 4px var(--paper); } 10%, 88% { border-color: var(--electric); box-shadow: 0 0 0 4px var(--paper), 0 0 18px rgba(30,91,230,.55); } 100% { border-color: var(--line); box-shadow: 0 0 0 4px var(--paper); } }
.track b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.track span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 820px) { .track { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } .track::before, .track .run { display: none; } .track li { padding-top: 36px; } }

/* Contact (navy) */
.contact-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #06143a 0%, #0B2A6B 60%, #1E5BE6 100%); border-radius: 20px; padding: clamp(32px, 6vw, 64px); text-align: center; box-shadow: 0 30px 80px rgba(30,91,230,.3); color: #fff; }
.contact-card::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(closest-side, rgba(30,91,230,.35), transparent); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px); } }
.contact-card h2 { position: relative; font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; color: #fff; }
.contact-card p { position: relative; color: #c9d5f0; margin-top: 12px; }
.mail { position: relative; display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.6vw, 26px); color: #fff; text-decoration: none; padding-bottom: 4px; background: linear-gradient(90deg, #fff, #fff) no-repeat left bottom / 40% 2px; transition: background-size .5s var(--ease); }
.mail:hover { background-size: 100% 2px; }

/* Footer */
.foot { padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; background: var(--paper); }
.foot img { height: 32px; width: auto; }
.foot a { color: inherit; }

/* Reveal on scroll: sections rise and sharpen once; grid children stagger */
.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .services.reveal .svc, .js .track.reveal li { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in li, .js .reveal.in .svc { opacity: 1; transform: none; }
.js .reveal.in > :nth-child(1) { transition-delay: .05s; } .js .reveal.in > :nth-child(2) { transition-delay: .13s; } .js .reveal.in > :nth-child(3) { transition-delay: .21s; } .js .reveal.in > :nth-child(4) { transition-delay: .29s; } .js .reveal.in > :nth-child(5) { transition-delay: .37s; } .js .reveal.in > :nth-child(6) { transition-delay: .45s; } .js .reveal.in > :nth-child(7) { transition-delay: .53s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .map { height: 460px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal li, .js .reveal .svc, .js .hero .w, .js .hero .lead, .js .hero .stats, .js .hero .map { opacity: 1; transform: none; filter: none; }
  .section-head h2::after { transform: none; }
  html { scroll-behavior: auto; }
}
