/* TICS-WEB — the marketing site's own layer, built on assets/foundry.css.
 * Foundry supplies tokens + primitives (cards, pills, buttons); this file is
 * everything specific to a public site: header/nav, hero, motion background,
 * screenshot treatment, footer, and the text/scroll effects.
 */

:root{
  --shell:min(1360px,calc(100% - 44px));
  --serif:"Manrope",ui-sans-serif,system-ui,sans-serif;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
}

html{scroll-behavior:smooth}
body{overflow-x:hidden}
img{display:block;max-width:100%}
a{text-decoration:none}

.shell{width:var(--shell);margin:0 auto}
.eyebrow{color:var(--brass);font-size:.72rem;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;margin:0 0 10px}

/* Gradient-shimmer: for the one or two words per page that should catch the
   eye first. Used sparingly — Foundry rule 1, one focus per screen. */
.shimmer{background:linear-gradient(100deg,var(--brass-deep) 0%,var(--brass-bright) 30%,
  var(--ink) 50%,var(--brass-bright) 70%,var(--brass-deep) 100%);
  background-size:250% auto;background-clip:text;-webkit-background-clip:text;color:transparent;
  animation:shimmer 7s linear infinite}
@keyframes shimmer{to{background-position:-250% center}}

/* ---- header --------------------------------------------------------------*/
.site-header{position:fixed;inset:0 0 auto 0;z-index:80;display:flex;align-items:center;gap:22px;
  padding:14px clamp(18px,4vw,50px);background:color-mix(in srgb,var(--bg) 72%,transparent);
  border-bottom:1px solid var(--glass-line);backdrop-filter:blur(18px)}
.site-header .brand{display:flex;align-items:center;gap:11px;color:var(--ink)}
.site-header .brand img{width:42px;height:42px;border-radius:50%;box-shadow:var(--glow-brass)}
.site-header .brand strong{display:block;font:700 19px var(--serif);letter-spacing:.02em}
.site-header .brand small{display:block;color:var(--muted);font-size:9.5px;letter-spacing:.16em;
  text-transform:uppercase}
.site-nav{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600}
.site-nav a{padding:8px 12px;border-radius:9px;color:var(--muted);transition:.15s}
.site-nav a:hover{color:var(--ink);background:var(--surface)}
.site-nav a.current{color:var(--brass)}
.nav-toggle{display:none;margin-left:auto;background:transparent;border:1px solid var(--line);
  color:var(--ink);border-radius:9px;padding:8px 10px}

@media (max-width:1080px){
  .site-nav{position:fixed;inset:64px 0 auto 0;flex-direction:column;align-items:stretch;
    padding:10px 16px 16px;background:var(--sidebar);border-bottom:1px solid var(--line);
    max-height:0;overflow:hidden;transition:max-height .25s ease}
  .site-nav.open{max-height:80vh;overflow-y:auto}
  .site-nav a{padding:12px 10px;border-bottom:1px solid var(--brass-soft)}
  .nav-toggle{display:inline-flex}
  .site-header .cta{display:none}
}

/* ---- hero, with the generated motion-graphics background -----------------*/
.hero{position:relative;min-height:92svh;display:flex;align-items:flex-end;isolation:isolate;
  padding:150px clamp(20px,5vw,60px) 80px;overflow:hidden}
.hero canvas.motion-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;opacity:.55}
/* A large, faint TICS mark behind the hero content on every page -- brand
   texture, not a claim about anything. Sits above the motion background and
   below the fade-to-edge overlay, so it never competes with the text. */
.hero .ghost-logo{position:absolute;z-index:-1;top:50%;right:2%;transform:translateY(-50%);
  width:min(58vw,720px);aspect-ratio:1;background:url(tics-logo-approved-round-512.png) no-repeat center/contain;
  opacity:.24;pointer-events:none;
  animation:ghost-drift 42s ease-in-out infinite}
@keyframes ghost-drift{
  0%,100%{transform:translateY(-50%) scale(1) rotate(0deg)}
  50%{transform:translateY(-53%) scale(1.05) rotate(2deg)}
}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(1100px 640px at 82% -10%,color-mix(in srgb,var(--brass) 12%,transparent),transparent 60%),
    linear-gradient(180deg,var(--bg) 0%,transparent 30%,transparent 60%,var(--bg) 100%)}
@media (max-width:900px){.hero .ghost-logo{width:82vw;right:-18%;opacity:.2}}
@media (prefers-reduced-motion: reduce){.hero .ghost-logo{animation:none}}
@media (prefers-reduced-transparency: reduce){.hero .ghost-logo{display:none}}
.hero-inner{width:100%;max-width:1220px}
.hero h1{margin:14px 0 22px;font:800 clamp(44px,7vw,96px)/1.08 var(--serif);letter-spacing:-.03em}
.hero .lead{max-width:680px;color:var(--muted);font-size:clamp(16px,1.4vw,20px);line-height:1.6;margin:0 0 28px}
.hero .buttons{display:flex;gap:12px;flex-wrap:wrap}
.hero .buttons .btn{padding:12px 22px;font-size:.88rem;border-radius:999px}

/* text-reveal: words/lines staggered in via GSAP (see site.js); the CSS side
   just keeps them invisible until JS runs, and visible if it doesn't. */
/* No CSS-driven opacity:0 here on purpose: GSAP's .from() in site.js reads
   an element's CURRENT style as the implicit end value, so pre-hiding it in
   CSS made "from 0" animate to "to 0" -- a tween that runs but is invisible
   the whole time. GSAP sets and clears the hidden state itself, synchronously,
   before first paint (the script tag is at the end of body). */
.reveal-word{display:inline-block}

/* ---- section scaffolding --------------------------------------------------*/
.section{padding:100px 0}
.section-head{display:grid;grid-template-columns:.5fr 2fr;gap:36px;align-items:start;margin-bottom:46px}
.section-head h2{margin:0;font:750 clamp(32px,4.2vw,56px)/1.1 var(--serif);letter-spacing:-.02em}
.section-head p{margin:10px 0 0;color:var(--muted);max-width:60ch}
@media (max-width:860px){.section-head{grid-template-columns:1fr}}

/* ---- screenshot cards, with Ken Burns on the real product captures -------*/
.shot{position:relative;border:1px solid var(--glass-line);border-radius:22px;overflow:hidden;
  background:linear-gradient(160deg,#0d1d30,#091624);padding:22px}
.shot .frame{border-radius:14px;overflow:hidden;border:1px solid var(--glass-line);margin-top:16px;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.7)}
.shot .frame img{transition:transform 9s cubic-bezier(.2,.7,.3,1);transform:scale(1.02)}
.shot:hover .frame img,.shot.in-view .frame img{transform:scale(1.09)}
.shot h3{margin:14px 0 6px;font:700 1.4rem/1.2 var(--serif)}
.shot p{margin:0;color:var(--muted);line-height:1.6}
.shot.big{grid-column:span 7}.shot.small{grid-column:span 5}
.showcase{display:grid;grid-template-columns:repeat(12,1fr);gap:20px}
@media (max-width:1000px){.showcase{display:block}.shot{margin-bottom:18px}}

/* ---- journey / capability cards -------------------------------------------*/
.journey{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.journey a{display:block;min-height:210px;padding:22px;border-radius:20px;
  border:1px solid var(--glass-line);background:var(--glass);transition:.25s}
.journey a:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--brass) 45%,var(--line))}
.journey b{color:var(--brass);font-size:.72rem;letter-spacing:.14em}
.journey h3{margin:36px 0 8px;font:700 1.25rem var(--serif)}
.journey p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
@media (max-width:900px){.journey{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.journey{grid-template-columns:1fr}}

/* ---- live stats ------------------------------------------------------------*/
.live-stats .head{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--good);position:relative}
.live-dot::after{content:"";position:absolute;inset:-6px;border-radius:50%;
  border:1px solid var(--good);animation:pulse 2s infinite}
@keyframes pulse{0%{opacity:.7;transform:scale(.7)}70%{opacity:0}100%{opacity:0}}

/* ---- final CTA -------------------------------------------------------------*/
.final{text-align:center;padding:130px 0}
.final h2{margin:0 auto 24px;max-width:960px;font:800 clamp(38px,6vw,80px)/1.1 var(--serif)}

/* ---- footer ----------------------------------------------------------------*/
.site-footer{width:var(--shell);margin:0 auto;padding:34px 0 54px;border-top:1px solid var(--line);
  color:var(--muted);font-size:.82rem}
.site-footer .links{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px}
.site-footer .links a{color:var(--muted)}
.site-footer .links a:hover{color:var(--brass)}
