/* Intelisec home: scroll-driven project story. Tokens from DESIGN.md. */
:root {
  --primary: #0A7EA8; --primary-hover: #086789; --secondary: #16805A; --secondary-hover: #11694A;
  --ink: #0B1F2A; --body: #475569; --link: #086789; --surface: #FFFFFF; --border: #DCE3E1;
  --brand-blue: #2EC7F4; --dark-text: #E6EEF2; --dark-muted: #A9BAC4;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --brand-green: #70C594; --white: #FFFFFF; --on-dark-strong: #F4F8FA; --dark-line: #1C4458; --ink-2: #12384A; --field-border: #7A8B89;
  --error: #B42318; --error-bg: #FEF3F2; --success: #166534; --success-bg: #ECFDF3;
  --ink-rgb: 11 31 42; --dark-text-rgb: 230 238 242;
}
@media (min-width: 900px) { :root { --header-h: 104px; } }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--ink); color: var(--body); font: 400 17px/1.65 var(--text); }
h1, h2 { font-family: var(--head); font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
p { margin: 0 0 12px; text-wrap: pretty; }
a { color: var(--link); }
img { max-width: 100%; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 8px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 20; background: transparent; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -64px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(var(--ink-rgb) / .85) 0%, rgb(var(--ink-rgb) / .6) 55%, rgb(var(--ink-rgb) / 0) 100%); }
.menu ul a, .call, .menu-toggle { text-shadow: 0 1px 8px rgb(var(--ink-rgb) / .55); }
.bar { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .bar { padding: 0 24px; } }
@media (min-width: 1100px) { .bar { padding: 0 32px; } }
.site-header .bar { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; width: 190px; height: auto; filter: drop-shadow(0 2px 10px rgb(var(--ink-rgb) / .45)); }
@media (min-width: 900px) { .brand img { width: 270px; } }
.menu { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu ul a { color: var(--dark-text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.menu ul a:hover { color: var(--brand-blue); }
.call { display: inline-flex; align-items: center; gap: 8px; color: var(--dark-text); font-weight: 600; white-space: nowrap; min-height: 44px; }
.menu-toggle { min-height: 44px; padding: 0 16px; border: 1px solid rgb(var(--dark-text-rgb) / .4); border-radius: 10px; background: rgb(var(--ink-rgb) / .75); color: var(--dark-text); font: 600 16px var(--text); cursor: pointer; }
.menu.open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; background: rgb(var(--ink-rgb) / .96); border-bottom: 1px solid rgb(var(--dark-text-rgb) / .12); }
.menu.open ul { display: flex; flex-direction: column; }
.menu.open ul a { display: block; padding: 10px 0; }
@media (min-width: 1320px) {
  .menu-toggle { display: none; }
  .menu, .menu.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0; border: 0; background: none; }
  .menu ul, .menu.open ul { display: flex; flex-direction: row; gap: 20px; }
  .menu.open ul a { padding: 0; }
  .call span { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 10px; font: 600 16px/1.2 var(--text); text-decoration: none; transition: background-color 150ms ease-out; white-space: nowrap; }
.btn:focus-visible, .menu a:focus-visible, .stage-dots button:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--white); } .btn-primary:hover { background: var(--primary-hover); }
.site-header .btn-primary { background: var(--brand-blue); color: var(--ink); min-height: 40px; padding: 10px 18px; }
.btn-call { background: var(--secondary); color: var(--white); } .btn-call:hover { background: var(--secondary-hover); }
.btn-on-dark { background: var(--brand-blue); color: var(--ink); }
.btn-on-dark:focus-visible, .btn-call:focus-visible { outline-color: var(--brand-blue); }

/* Sequence */
.sequence { position: relative; height: 700vh; }
.stage-view { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.frames, .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster { display: block; object-position: 62% 50%; }
.is-ready .poster { display: none; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(var(--ink-rgb) / .88) 0%, rgb(var(--ink-rgb) / .62) 34%, rgb(var(--ink-rgb) / .18) 58%, rgb(var(--ink-rgb) / 0) 72%); }
@media (max-width: 767px) { .shade { background: linear-gradient(0deg, rgb(var(--ink-rgb) / .94) 0%, rgb(var(--ink-rgb) / .7) 42%, rgb(var(--ink-rgb) / 0) 75%); } }

.captions { position: absolute; inset: var(--header-h) 0 0 0; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .captions { padding: 0 24px; } }
@media (min-width: 1100px) { .captions { padding: 0 32px; } }
.captions { --gutter: 16px; }
@media (min-width: 768px) { .captions { --gutter: 24px; } }
@media (min-width: 1100px) { .captions { --gutter: 32px; } }
.caption { position: absolute; left: var(--gutter); right: var(--gutter); max-width: 660px; color: var(--dark-text); opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); pointer-events: none; bottom: 12vh; }
@media (min-width: 768px) { .caption { top: 50%; bottom: auto; transform: translateY(calc(-50% + 12px)); } }
.caption.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 768px) { .caption.active { transform: translateY(-50%); } }
.caption h1 { color: var(--white); font-size: clamp(44px, 4.4vw + 20px, 84px); line-height: 1.02; letter-spacing: -0.015em; }
.caption h2 { color: var(--white); font-size: clamp(38px, 3vw + 20px, 66px); line-height: 1.04; letter-spacing: -0.01em; }
.caption p { color: var(--on-dark-strong); font-size: clamp(19px, .5vw + 16px, 23px); line-height: 1.5; text-shadow: 0 1px 12px rgb(var(--ink-rgb) / .6); }
.eyebrow { font: 600 16px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-blue) !important; margin-bottom: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.stage-dots { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.stage-dots button { width: 44px; height: 32px; border: 0; background: none; cursor: pointer; position: relative; }
.stage-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgb(var(--dark-text-rgb) / .45); transition: transform 150ms ease-out, background-color 150ms ease-out; }
.stage-dots button[aria-current="step"]::after { background: var(--brand-blue); transform: scale(1.4); }
@media (max-width: 767px) { .stage-dots { display: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; color: var(--dark-text); font: 600 15px var(--head); letter-spacing: .12em; text-transform: uppercase; transition: opacity 300ms ease-out; }
.scrolled .scroll-cue { opacity: 0; }

/* Progress bar under the header */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 19; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); transform-origin: 0 50%; transform: scaleX(0); }
.static .progress { display: none; }
.scroll-cue::after { content: ""; display: block; width: 10px; height: 10px; margin: 8px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--dark-muted); font-size: 15px; padding: 32px 0; border-top: 1px solid var(--dark-line); }
.site-footer a { color: var(--dark-text); }
.site-footer p { margin: 4px 0; }
.foot-list { list-style: none; padding-left: 0; margin: 4px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--dark-line); color: var(--dark-text); }
.social a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Reduced motion: no scrubbing, the six stages as a normal page */
.static .sequence, html:not(.js) .sequence { height: auto; }
.static .stage-view, html:not(.js) .stage-view { position: static; height: auto; overflow: visible; }
.static .frames, .static .poster, .static .shade, .static .stage-dots, .static .scroll-cue { display: none; }
.static .captions, html:not(.js) .captions { position: static; padding-top: var(--header-h); }
.static .caption, html:not(.js) .caption { position: static; opacity: 1; transform: none; max-width: none; padding: 32px 0 48px; pointer-events: auto; }
.static .caption img.still { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 20px; }
.static .caption[data-stage="0"] img.still { margin: 24px 0 0; }
@media (prefers-reduced-motion: reduce) { .caption, .scroll-cue, .btn { transition: none; } }
/* Scripts off: the stages read as a plain page under the first photo. */
html:not(.js) .frames, html:not(.js) .shade, html:not(.js) .stage-dots, html:not(.js) .scroll-cue, html:not(.js) .progress { display: none; }
html:not(.js) .poster { position: static; height: auto; margin-top: var(--header-h); }

/* Social icons in the header, beside the phone number. */
.head-social { display: flex; gap: 4px; align-items: center; }
.head-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--dark-text); filter: drop-shadow(0 1px 6px rgb(var(--ink-rgb) / .55)); }
.head-social a:hover { color: var(--brand-blue); text-decoration: none; }
.head-social a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.menu.open .head-social { padding-top: 8px; border-top: 1px solid rgb(var(--dark-text-rgb) / .12); }
@media (min-width: 900px) { .head-social { gap: 0; margin-left: -8px; } .head-social a { width: 38px; height: 38px; } }
/* Footer icons: larger and easier to spot. */
.social { gap: 12px; }
.social a { width: 52px; height: 52px; border-color: rgb(var(--dark-text-rgb) / .35); }
.social a svg { width: 24px; height: 24px; }

/* Logo keeps its size; the menu gives way first. */
.brand { flex-shrink: 0; }
/* Full menu needs room for the large logo: wider header, menu button below 1320px. */
.site-header .bar { max-width: 1400px; }
@media (min-width: 1320px) { .menu, .menu.open { gap: 20px; } .menu ul, .menu.open ul { gap: 18px; } }
/* WordPress admin bar (signed-in admins only): keep the header below it. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Phones: in-page links land below the fixed header; footer links are easy to tap. */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
@media (max-width: 767px) {
  .site-footer li a, .site-footer p a { display: inline-block; padding: 12px 0; }
  .site-footer .foot-base a { padding: 12px 4px; }
}
