/* ==========================================================================
   Trust Electronics — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #0a1a2f;
  --navy-800: #0d2137;
  --navy-700: #123052;
  --navy-600: #1b4066;
  --accent:   #17b8d4;   /* cyan */
  --accent-2: #2f80ed;   /* electric blue */
  --accent-dark: #0e8ba3;

  /* Neutrals */
  --ink:      #16202b;
  --slate:    #4a5866;
  --muted:    #7a8794;
  --line:     #e2e8ef;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fb;
  --bg-soft2: #eef3f8;

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(12, 33, 55, 0.08);
  --shadow:    0 10px 30px rgba(12, 33, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 33, 55, 0.16);
  --maxw: 1180px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--slate); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #cdd9e6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.08rem; }

.lead { font-size: 1.2rem; color: var(--slate); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 8px 22px rgba(47,128,237,.35); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(47,128,237,.45); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--navy-900); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 78px; height: 52px; flex: 0 0 auto;
  background: var(--te-brand) left bottom / contain no-repeat;
}
.brand__mark svg { display: none; } /* the logo is drawn via --te-brand (light-blue, transparent) */
.brand > span:last-child { display: inline-block; }
.brand__name { display: block; font-weight: 800; font-size: 1.08rem; color: var(--navy-700); letter-spacing: -.02em; line-height: .92; font-style: italic; }
.brand__sub  { display: block; font-size: .66rem; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--muted); text-align: justify; text-align-last: justify; text-justify: inter-character; margin-top: -11px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--slate); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--navy-900); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent-dark); }
.nav-cta { margin-left: 10px; }

/* Dropdown menus (SERVICE / PRODUCT) — like the original site */
.nav-links .has-drop { position: relative; }
.nav-links .has-drop > a::after { content: "\25be"; font-size: .7em; margin-left: 5px; opacity: .7; }
.nav-links .drop {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.nav-links .has-drop:hover .drop, .nav-links .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--slate); font-weight: 600; font-size: .9rem; }
.nav-links .drop a::after { content: none; }
.nav-links .drop a:hover { background: var(--bg-soft); color: var(--navy-900); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #143a5c 0%, transparent 55%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #e7eef6;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1000px 500px at 75% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #b9c8d8; font-size: 1.2rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__page { padding: 66px 0 60px; }
.hero__page h1 { margin-bottom: 12px; }
.hero__page p { margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: #9fb2c6; margin-bottom: 18px; }
.breadcrumb a { color: #cfe0f0; }

/* Stat bar --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; color: var(--navy-900); font-weight: 800; letter-spacing: -.02em; }
.section--navy .stat b { color: #fff; }
.stat span { font-size: .92rem; color: var(--muted); }
.section--navy .stat span { color: #9fb2c6; }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ee; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47,128,237,.12), rgba(23,184,212,.14));
  display: grid; place-items: center; color: var(--accent-dark);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .97rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .92rem; }

.card--link { display: block; }
.card--link:hover h3 { color: var(--accent-dark); }

/* Split / feature -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius); min-height: 340px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.split__media svg { position: absolute; inset: 0; margin: auto; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent-dark); }

/* Product rows ----------------------------------------------------------- */
.product {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.product__badge {
  height: 150px; border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: var(--accent);
}
.product h3 { margin-bottom: 6px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-dark);
  background: rgba(23,184,212,.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  border-radius: 22px; padding: 56px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-soft2); display: grid; place-items: center; color: var(--accent-dark);
}
.info-item h4 { margin: 0 0 3px; font-size: 1rem; }
.info-item p, .info-item a { margin: 0; color: var(--slate); }

form.card label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin: 0 0 6px; }
form.card .field { margin-bottom: 18px; }
form.card input, form.card textarea, form.card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
form.card input:focus, form.card textarea:focus, form.card select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,184,212,.18);
}
form.card textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }

/* Careers ---------------------------------------------------------------- */
.job {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px;
  background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.job h3 { margin: 0 0 4px; }
.job__meta { color: var(--muted); font-size: .9rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9fb2c6; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9fb2c6; font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { color: #8a9bad; margin-top: 14px; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: #7d8da0;
}
.footer-bottom a { color: #9fb2c6; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07);
  display: grid; place-items: center; color: #cdd9e6;
}
.social a:hover { background: var(--accent); color: #fff; }

/* Floating actions ------------------------------------------------------- */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floating a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow); transition: transform .15s ease;
}
.floating a:hover { transform: scale(1.08); color: #fff; }
.floating .wa { background: #25d366; }
.floating .call { background: var(--accent-2); }

/* ==========================================================================
   Intro / Welcome 3D animation
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(1200px 700px at 50% 30%, #12365a 0%, transparent 60%),
              linear-gradient(160deg, #06111d, #0a1a2f 62%, #06111d);
  overflow: hidden; perspective: 1300px; transition: opacity .9s ease, visibility .9s ease;
}
.intro::before {
  content: ""; position: absolute; inset: -25%;
  background-image:
    linear-gradient(rgba(23,184,212,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,184,212,.08) 1px, transparent 1px);
  background-size: 52px 52px; transform: rotateX(60deg) translateZ(-150px);
  animation: gridFlow 8s linear infinite;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(60% 60% at 50% 42%, #000 0%, transparent 76%);
}
@keyframes gridFlow { from { background-position: 0 0; } to { background-position: 0 52px; } }

.intro.hide { opacity: 0; visibility: hidden; }
body.intro-active { overflow: hidden; }

.intro__scene { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transform-style: preserve-3d; }
.intro__logo { position: relative; width: 360px; height: 240px; max-width: 82vw; transform-style: preserve-3d; filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)); opacity: 0; }
.intro__img { width: 100%; height: 100%; background-image: var(--te-logo); background-repeat: no-repeat; background-size: contain; background-position: center; }
.intro.play .intro__logo { animation: dropTop 1s cubic-bezier(.2,.85,.25,1.08) both, floatY 6s ease-in-out 1.2s infinite; }
@keyframes dropTop { 0% { opacity: 0; transform: translateY(-340px) rotateX(38deg) scale(.82); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); } }
@keyframes floatY { 0%,100% { transform: translateY(0) rotateY(-6deg); } 50% { transform: translateY(-11px) rotateY(6deg); } }

.intro__caption { text-align: center; }
.intro__welcome { display: block; font-weight: 800; font-size: clamp(1rem,3vw,1.7rem); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; margin: 0 0 12px; color: #7fdbff; opacity: 0; }
.intro__title { display: block; margin: 0; font-weight: 900; color: #fff; font-size: clamp(1.7rem,5vw,2.8rem); letter-spacing: .02em; line-height: 1; text-shadow: 0 2px 0 #0d7f93, 0 4px 12px rgba(0,0,0,.5); opacity: 0; }
.intro.play .intro__welcome { animation: capIn .7s cubic-bezier(.2,.8,.2,1) 1.2s both; }
.intro.play .intro__title { animation: capIn .7s cubic-bezier(.2,.8,.2,1) 1.6s both; }
@keyframes capIn { 0% { opacity: 0; transform: translateY(26px); } 100% { opacity: 1; transform: translateY(0); } }

.intro__skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; background: rgba(255,255,255,.08); color: #cfe0f0;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 9px 20px; font: inherit; font-size: .85rem; cursor: pointer;
  opacity: 0; animation: fadeUp .6s ease 2s forwards; transition: background .2s;
}
.intro__skip:hover { background: rgba(255,255,255,.16); }
@keyframes fadeUp { to { opacity: 1; } }

/* Hero animated orbs ----------------------------------------------------- */
.hero__orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; }
.orb--1 { width: 320px; height: 320px; top: -60px; right: 8%; background: radial-gradient(circle, #17b8d4, transparent 70%); animation: drift1 14s ease-in-out infinite; }
.orb--2 { width: 260px; height: 260px; bottom: -80px; left: 4%; background: radial-gradient(circle, #2f80ed, transparent 70%); animation: drift2 18s ease-in-out infinite; }
.orb--3 { width: 180px; height: 180px; top: 40%; left: 45%; background: radial-gradient(circle, #17b8d4, transparent 70%); opacity: .3; animation: drift1 20s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

/* Tech marquee ----------------------------------------------------------- */
.marquee {
  background: var(--navy-900); color: #cdd9e6; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scrollX 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; white-space: nowrap; color: #9fb2c6; }
.marquee__item svg { color: var(--accent); }
.marquee__item b { color: #fff; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Card 3D hover tilt ----------------------------------------------------- */
.card { transform-style: preserve-3d; }

/* Utilities -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
/* Scroll-reveal animation system (delays are applied per-item in main.js) */
/* text stays visible (never blank before scrolling) — it starts blurred and sharpens on scroll */
.reveal { opacity: 1; transform: translateY(14px); filter: blur(7px); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.svc li.li-stagger, .svc-page li.li-stagger { filter: blur(5px); transform: translateX(-12px); transition: filter .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.svc li.li-stagger.in, .svc-page li.li-stagger.in { filter: blur(0); transform: none; }
@media (prefers-reduced-motion: reduce) { .svc li.li-stagger, .svc-page li.li-stagger { filter: none; transform: none; } }
.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro__title { text-shadow: 0 4px 0 #0d7f93, 0 8px 14px rgba(0,0,0,.5); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 2px 0 6px 16px; min-width: 0; }
  .nav-links .has-drop > a::after { display: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 64px 0 72px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__badge { height: 120px; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Accessibility toolbar · skip link · cookie banner
   ========================================================================== */
html { font-size: 100%; } /* text-resize control scales rem-based sizing */

.skip-link {
  position: fixed; top: -70px; left: 12px; z-index: 10001;
  background: var(--navy-900); color: #fff; padding: 11px 20px;
  border-radius: 0 0 10px 10px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; outline: 3px solid var(--accent); }

/* Accessibility body-state effects */
html.a11y-readable, html.a11y-readable * { font-family: Arial, "Segoe UI", Tahoma, sans-serif !important; letter-spacing: .01em; }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; outline: 2px solid var(--accent-2); outline-offset: 2px; }

html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .site-header, html.a11y-contrast .section, html.a11y-contrast .section--soft,
html.a11y-contrast .section--navy, html.a11y-contrast .hero, html.a11y-contrast .card,
html.a11y-contrast .site-footer, html.a11y-contrast .marquee, html.a11y-contrast .product,
html.a11y-contrast .job, html.a11y-contrast form.card, html.a11y-contrast .info-item__icon,
html.a11y-contrast .split__media, html.a11y-contrast .product__badge {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4,
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span, html.a11y-contrast label {
  color: #fff !important; text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast .card__link { color: #ff0 !important; }
html.a11y-contrast .btn { background: #000 !important; border-color: #ff0 !important; color: #ff0 !important; }
html.a11y-contrast .hero::after, html.a11y-contrast .hero__orbs { display: none !important; }

/* Toolbar toggle + panel */
.a11y-btn {
  position: fixed; left: 16px; bottom: 20px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: #fff;
  border: 2px solid #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
}
.a11y-btn:hover { background: var(--navy-700); }
.a11y-panel {
  position: fixed; left: 16px; bottom: 82px; z-index: 9998; width: 258px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px; display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h4 { margin: 0 0 12px; font-size: .95rem; }
.a11y-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button {
  padding: 10px 8px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 9px;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--navy-900); cursor: pointer; text-align: center;
}
.a11y-panel button:hover { border-color: var(--accent); color: var(--accent-dark); }
.a11y-panel button.on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.a11y-panel .full { grid-column: 1 / 3; }
.a11y-reset { grid-column: 1 / 3; background: #fff !important; color: #b23434 !important; border-color: #f3d2d2 !important; }
.a11y-panel .statement { display: block; margin-top: 10px; font-size: .8rem; text-align: center; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9997; max-width: 620px; margin: 0 auto;
  background: var(--navy-900); color: #dbe6f0; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie p { margin: 0; font-size: .9rem; color: #c3d2e0; flex: 1; min-width: 220px; }
.cookie a { color: var(--accent); }
.cookie .actions { display: flex; gap: 8px; }
.cookie .btn { padding: 9px 18px; font-size: .88rem; }
.cookie .decline { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

/* ==========================================================================
   ISO certificate reveal modal
   ========================================================================== */
.iso-modal {
  position: fixed; inset: 0; z-index: 10000; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 18, 32, .66); backdrop-filter: blur(6px); padding: 24px;
}
.iso-modal.open { display: flex; }
body.iso-open { overflow: hidden; }

.iso-modal__inner { display: flex; align-items: center; justify-content: center; gap: 3vw; width: 100%; height: 100%; }
.iso-cert { margin: 0; opacity: 0; }
.iso-cert img { max-height: 84vh; max-width: 44vw; width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5); display: block; }

.iso-modal.open .iso-cert--en { animation: isoDrop 1.2s cubic-bezier(.2,.8,.2,1) forwards; } /* English, left, from top */
.iso-modal.open .iso-cert--he { animation: isoRise 1.2s cubic-bezier(.2,.8,.2,1) forwards; } /* Hebrew, right, from bottom */
@keyframes isoDrop { 0% { opacity: 0; transform: translateY(-115%); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes isoRise { 0% { opacity: 0; transform: translateY(115%); } 100% { opacity: 1; transform: translateY(0); } }

.iso-modal__close {
  position: fixed; top: 22px; right: 26px; z-index: 10001;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.55); color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: 0; display: grid; place-items: center;
}
.iso-modal__close:hover { background: rgba(255,255,255,.24); }
/* X fades in slowly 1.5s AFTER the 1.2s reveal ends */
.iso-modal.open .iso-modal__close { animation: isoX 1s ease forwards; animation-delay: 2.7s; }
@keyframes isoX { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .iso-modal.open .iso-cert--en, .iso-modal.open .iso-cert--he { animation: none; opacity: 1; }
  .iso-modal.open .iso-modal__close { animation: none; opacity: 1; }
}
@media (max-width: 760px) {
  .iso-modal__inner { flex-direction: column; gap: 16px; overflow: auto; }
  .iso-cert img { max-width: 88vw; max-height: 44vh; }
  .iso-modal__close { width: 52px; height: 52px; font-size: 1.9rem; top: 14px; right: 16px; }
}

/* ==========================================================================
   Micro-interactions (subtle)
   ========================================================================== */
/* Buttons: gentle press + arrow nudge */
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Nav links: underline that slides in from the left */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:not(.btn).active { color: var(--navy-900); background: var(--bg-soft); }

/* Cards: icon lifts slightly, "learn more" arrow nudges */
.card__icon { transition: transform .25s ease, background .25s ease; }
.card:hover .card__icon { animation: iconFloat 1.5s ease-in-out infinite; }
.product:hover .product__badge svg { animation: iconFloat 1.7s ease-in-out infinite; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Real product / service images (from the original site) */
.svc-images { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; max-width: 900px; margin: 8px auto 0; }
.svc-images img { max-width: 100%; width: auto; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
.card__link svg { transition: transform .2s ease; }
.card__link:hover svg { transform: translateX(4px); }

/* Contact info icons react to hover on their row */
.info-item__icon { transition: transform .25s ease, color .25s ease; }
.info-item:hover .info-item__icon { transform: scale(1.06); color: var(--accent); }

/* ==========================================================================
   3D hero scroll journey + subtle body polish
   ========================================================================== */
html { scroll-behavior: smooth; }
.sstage { position: relative; height: 660vh; } /* 560vh journey + 100vh hold while the site slides over it */
.sstage--seen { height: 100vh; } /* returning visitor this session: calm one-screen hero, no long journey */
/* the rest of the site slides up OVER the pinned hero animation (reverses on scroll-up) */
.site-body { position: relative; z-index: 3; margin-top: -100vh; background: var(--bg, #ffffff); box-shadow: 0 -30px 60px rgba(6,16,28,.18); }
.sstage--seen + .site-body { margin-top: 0; box-shadow: none; } /* compact hero: normal flow, no overlap */
.sstage__vp { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: radial-gradient(1200px 700px at 50% 40%, #0a2036, transparent 60%), linear-gradient(180deg, #030910, #04121e 55%, #030910); }
.sstage__vp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero3d__grad { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 92% at 50% 46%, transparent 58%, rgba(3,8,14,.66) 100%), radial-gradient(60% 42% at 50% 8%, rgba(60,120,150,.18), transparent 70%); }
.sscene { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.hero3d__eb { margin: 0 0 16px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; font-size: .72rem; color: #7f9cb4; }
.hero3d__ti { margin: 0; color: #f4f8fc; font-weight: 700; line-height: 1.06; font-size: clamp(1.8rem,5vw,3.2rem); letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero3d__ti--xl { font-size: clamp(2.2rem,7.4vw,4.6rem); letter-spacing: .05em; font-weight: 800; }
.hero3d__su { margin: 16px auto 0; max-width: 540px; color: #9fb4c8; font-size: clamp(.9rem,2vw,1.05rem); line-height: 1.6; }
.hero3d__rule { display: inline-block; margin-top: 22px; width: 54px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #2ea6c4, transparent); }
.sstage__hint { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; text-align: center; color: #7f9cb4; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; animation: hintbob 1.9s ease-in-out infinite; }
@keyframes hintbob { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(6px); opacity: 1; } }

/* card / button lift on hover */
.card, .product, .info-item { transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; transform-style: preserve-3d; }
.card:hover, .product:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(6,20,34,.26); }
.card:hover { border-color: rgba(23,184,212,.45); }
.info-item:hover { transform: translateY(-4px); }
.info-item:hover { transform: translateY(-4px); }
.btn { transition: transform .2s ease, box-shadow .25s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }

/* key-facts strip (all values are real) */
.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.fact { text-align: center; opacity: 0; }
.fact b { display: block; font-size: clamp(1.25rem,3vw,1.9rem); font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.fact span { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted, #64748b); }
.facts.in .fact { animation: factRise .7s cubic-bezier(.2,.8,.2,1) both; }
.facts.in .fact:nth-child(1){animation-delay:.12s}.facts.in .fact:nth-child(2){animation-delay:.24s}.facts.in .fact:nth-child(3){animation-delay:.36s}.facts.in .fact:nth-child(4){animation-delay:.48s}
@keyframes factRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2,1fr); gap: 26px; } }

@media (prefers-reduced-motion: reduce) {
  .sscene { opacity: 1; }
  .card, .product, .info-item, .btn { transition: none; }
  .fact { opacity: 1; }
  .facts.in .fact { animation: none; }
}
