/* ==========================================================================
   Global Information Security — gisec.ai
   ========================================================================== */

:root {
  --ink: #0b0c0e;
  --ink-2: #121418;
  --ink-3: #1a1d22;
  --paper: #ecebe6;
  --paper-2: #e2e0d9;
  --text: #e9e7e2;
  --muted: #8b8d92;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff5a1f;
  --accent-ink: #0b0c0e;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --pad: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--text); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--small { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 12, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__row { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 30px; height: 30px; color: var(--text); }
.logo__dot { fill: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.18em; }
.logo__sub { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line-strong); }
.lang button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  height: 32px; padding: 0 10px; color: var(--muted); transition: color .2s, background-color .2s;
}
.lang button + button { border-left: 1px solid var(--line-strong); }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.burger i:nth-of-type(1) { top: 15px; }
.burger i:nth-of-type(2) { top: 23px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,12,14,0.6), rgba(11,12,14,0) 30%, rgba(11,12,14,0) 55%, rgba(11,12,14,0.92)),
    linear-gradient(to right, rgba(11,12,14,0.75), rgba(11,12,14,0) 60%);
}
.hero__inner {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px;
}

.eyebrow { color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.hero__title {
  font-weight: 500;
  font-size: clamp(48px, 10.2vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  display: flex; flex-direction: column;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .line--accent { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

.hero__bottom {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 560px) auto; gap: 32px 48px;
  align-items: end; justify-content: space-between;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #c9c7c2; font-weight: 300; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero entrance */
.hero .eyebrow, .hero__title .line, .hero__bottom > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-ready .hero .eyebrow, .is-ready .hero__title .line, .is-ready .hero__bottom > * { opacity: 1; transform: none; }
.is-ready .hero__title .line:nth-child(1) { transition-delay: .1s; }
.is-ready .hero__title .line:nth-child(2) { transition-delay: .2s; }
.is-ready .hero__title .line:nth-child(3) { transition-delay: .3s; }
.is-ready .hero__bottom > :nth-child(1) { transition-delay: .5s; }
.is-ready .hero__bottom > :nth-child(2) { transition-delay: .6s; }

/* ticker */
.ticker { position: relative; border-top: 1px solid var(--line); overflow: hidden; color: var(--muted); background: var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { padding: 16px 28px; display: flex; align-items: center; gap: 28px; }
.ticker span::after { content: "/"; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section--tight { padding-top: 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .muted { color: #6b6a66; }
.section--paper .label { color: #6b6a66; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(48px, 7vw, 88px); }
.grid > .label { grid-column: 1 / span 3; }
.grid__main { grid-column: 4 / -1; display: flex; flex-direction: column; gap: 28px; }

.label { display: flex; gap: 16px; color: var(--muted); padding-top: 14px; }
.label span:first-child { color: var(--accent); }

.h2 {
  font-weight: 500; font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch;
}
.h2--xl { font-size: clamp(36px, 6vw, 88px); max-width: 20ch; }
.text-lg { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 62ch; font-weight: 300; }
.section--paper .text-lg { color: #2b2c2f; }

.subhead { margin-bottom: 24px; color: #6b6a66; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(11,12,14,0.18); }
.principles li { padding: 28px 28px 8px 0; position: relative; }
.principles li + li { padding-left: 28px; border-left: 1px solid rgba(11,12,14,0.12); }
.principles .num { font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 40px; }
.principles h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.25; }
.principles p { color: #4a4b4e; font-size: 15px; }
.principles li::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.principles li + li::before { left: 0; }
.principles li.is-in::before { transform: scaleX(1); }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 1px solid var(--line); }
.svc__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.svc__tab {
  display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px;
  text-align: left; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 17px; line-height: 1.3; position: relative;
  transition: color .25s, padding .35s var(--ease);
}
.svc__tab .n { font-family: var(--mono); font-size: 12px; }
.svc__tab .arr { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); color: var(--accent); }
.svc__tab::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.svc__tab:hover { color: var(--text); }
.svc__tab[aria-selected="true"] { color: var(--text); padding-left: 16px; }
.svc__tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc__tab[aria-selected="true"] .n { color: var(--accent); }
.svc__tab[aria-selected="true"] .arr { opacity: 1; transform: none; }

.svc__panel { padding: 40px 0 40px clamp(24px, 4vw, 64px); min-height: 520px; outline: none; }
.svc__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.svc__big { font-family: var(--mono); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.svc__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.svc__lead { font-size: 19px; font-weight: 300; color: #c9c7c2; max-width: 52ch; margin-bottom: 40px; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.svc__cols h4 { margin: 0 0 16px; color: var(--muted); font-weight: 400; }
.svc__cols li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.5; }
.svc__cols li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 1px; background: var(--accent); }
.svc__cols .res li::before { width: 6px; height: 6px; top: 18px; background: none; border: 1px solid var(--accent); }

.svc__panel .anim { opacity: 0; transform: translateY(14px); animation: panelIn .6s var(--ease) forwards; }
@keyframes panelIn { to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps::after {
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--accent);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}
.steps li { padding-right: 32px; position: relative; }
.steps .dot { width: 15px; height: 15px; border: 1px solid var(--line-strong); background: var(--ink); display: block; margin-bottom: 32px; position: relative; z-index: 1; transition: border-color .4s, background-color .4s; }
.steps li.is-lit .dot { border-color: var(--accent); background: var(--accent); }
.steps .num { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Matrix ---------- */
.matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid rgba(11,12,14,0.18); }
.matrix table { width: 100%; border-collapse: collapse; min-width: 820px; }
.matrix th, .matrix td { padding: 18px 12px; text-align: center; border-bottom: 1px solid rgba(11,12,14,0.1); }
.matrix thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: #6b6a66; vertical-align: bottom; }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; padding-left: 0; }
.matrix th[scope="row"] { font-weight: 500; font-size: 16px; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.matrix thead th:first-child { position: sticky; left: 0; background: var(--paper); }
.matrix tbody tr { transition: background-color .2s; }
.matrix tbody tr:hover { background: var(--paper-2); }
.matrix tbody tr:hover th[scope="row"] { background: var(--paper-2); }
.cell { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }
.cell--yes { background: var(--ink); transform: scale(0); transition: transform .5s var(--ease), background-color .2s; }
.cell--no { width: 14px; height: 1px; background: rgba(11,12,14,0.25); }
.matrix.is-in .cell--yes { transform: scale(1); }
.matrix tbody tr:hover .cell--yes { background: var(--accent); }

/* ---------- Compare ---------- */
.compare { border-top: 1px solid var(--line); }
.compare__head { display: grid; grid-template-columns: 1fr 64px 1fr; padding: 16px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare__head span:last-child { color: var(--accent); }
.compare__row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); gap: 0; }
.compare__b { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); position: relative; display: inline; }
.compare__b span {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 58%; background-size: 0% 1px;
  transition: background-size 1s var(--ease) .2s;
}
.compare__row.is-in .compare__b span { background-size: 100% 1px; }
.compare__arrow { color: var(--accent); justify-self: center; width: 24px; height: 24px; }
.compare__a { font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- Contacts ---------- */
.contacts { background:
  linear-gradient(var(--ink), var(--ink)) padding-box; border-top: 1px solid var(--line); }
.contact-card {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px;
  border-top: 1px solid var(--line-strong); padding-top: 40px;
}
.contact-card__person { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 10px; }
.contact-card__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; max-width: 20ch; }
.contact-card__list { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.contact-card__list dt { color: var(--muted); margin-bottom: 8px; }
.link-big {
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.02em;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 1px; transition: background-size .45s var(--ease);
  padding-bottom: 4px; white-space: nowrap;
}
.link-big:hover { background-size: 100% 1px; }
.contact-card__actions { grid-column: 5 / -1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .mono { text-transform: none; letter-spacing: 0.02em; }
.footer__top:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header__cta { display: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3) { border-top: 1px solid rgba(11,12,14,0.12); margin-top: 24px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a::after { display: none; }
  .header.menu-open { background: var(--ink); border-bottom-color: var(--line); }

  .grid > .label { grid-column: 1 / -1; padding-top: 0; }
  .grid__main { grid-column: 1 / -1; }

  .hero__bottom { grid-template-columns: 1fr; }

  .svc { grid-template-columns: 1fr; }
  .svc__tabs {
    flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line);
    scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
  }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tab { grid-template-columns: auto auto; border-bottom: 0; padding: 16px 20px 16px 0; white-space: nowrap; font-size: 15px; flex-shrink: 0; }
  .svc__tab .arr { display: none; }
  .svc__tab::before { top: auto; left: 0; right: 20px; width: auto; height: 2px; bottom: -1px; transform: scaleX(0); transform-origin: left; }
  .svc__tab[aria-selected="true"] { padding-left: 0; }
  .svc__tab[aria-selected="true"]::before { transform: scaleX(1); }
  .svc__panel { padding: 32px 0 0; min-height: 0; }
  .svc__cols { grid-template-columns: 1fr; gap: 32px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .steps::before, .steps::after { display: none; }

  .contact-card__person, .contact-card__list, .contact-card__actions { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .logo__sub { display: none; }
  .header__row { gap: 12px; }
  .header__tools { gap: 8px; margin-left: auto; }
  .lang button { padding: 0 7px; height: 30px; }
  .hero__title .line--accent { -webkit-text-stroke-width: 1px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 24px 0 8px; border-left: 0; }
  .principles li + li { border-top: 1px solid rgba(11,12,14,0.12); margin-top: 0; }
  .principles .num { margin-bottom: 16px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .compare__arrow { justify-self: start; transform: rotate(90deg); width: 18px; height: 18px; }
  .contact-card__list { grid-template-columns: 1fr; }
  .contact-card__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal, .hero .eyebrow, .hero__title .line, .hero__bottom > * { opacity: 1; transform: none; }
}
