/* =========================================================
   Jan Trepeš — JT Web & Digital · dark one-page
   brand: ink #1F2025, petrol #103A52 → accent #4DA3D9
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License 1.1): Inter, JetBrains Mono, Sora - jen latin + latin-ext (čeština) */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/Sora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/Sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #0A0C0F;
  --bg-2: #0E1115;
  --surface: #13171C;
  --surface-2: #1A1F26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --ink: #ECEEF1;
  --ink-2: #A4ABB6;
  --ink-3: #6C7480;
  --petrol: #103A52;
  --accent: #4DA3D9;
  --accent-2: #7FD3F7;
  --accent-soft: rgba(77, 163, 217, .12);
  --ok: #34D399;
  --err: #F87171;

  --grad: linear-gradient(100deg, #7FD3F7 0%, #4DA3D9 45%, #2B6E96 100%);

  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: #05080B; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* gradient text */
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
/* Safari/Firefox: text rozdělený do animovaných slov (.w > span) má vlastní vrstvu, gradient rodiče se do něj nepropíše.
   Každé slovo proto dostane gradient přímo (dříve „background: inherit“ dědilo prázdné pozadí z .w = neviditelný text). */
.grad .w > span { background-image: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 100% 0; } }

/* ---------- global overlays ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(77, 163, 217, .09), transparent 62%);
  transform: translate3d(-1000px, -1000px, 0); transition: opacity .4s; opacity: 0;
}
.cursor-glow.is-on { opacity: 1; }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

main, .footer { position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--surface-2); --fg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 26px; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font: 500 15px/1 var(--f-body); letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), color .3s, border-color .3s, box-shadow .4s;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { --fg-btn: #07090C; }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn[download]:hover .btn__arrow { transform: translateY(3px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 19px 32px; font-size: 16px; }
.btn--accent { --bg-btn: var(--accent); --fg-btn: #04131D; box-shadow: 0 10px 40px -12px rgba(77, 163, 217, .7); }
.btn--accent:hover { box-shadow: 0 14px 50px -10px rgba(127, 211, 247, .8); }
.btn--accent::before { background: var(--accent-2); }
.btn--ghost { --bg-btn: transparent; border-color: var(--line-2); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(10, 12, 15, .72); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 40px; height: auto; overflow: visible; }
.mark-j { fill: var(--ink); } .mark-t { fill: var(--accent); }
.brand__name { font: 600 16px/1.1 var(--f-head); letter-spacing: -0.02em; display: flex; flex-direction: column; }
.brand__name small { font: 400 11px/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
/* note: literal easing here, var() inside animation shorthands on SVG elements is dropped by Chromium */
.brand:hover .mark-t { animation: markT .7s cubic-bezier(.2, .7, .1, 1); }
.brand:hover .mark-j { animation: markJ .7s cubic-bezier(.2, .7, .1, 1); }
@keyframes markT { 40% { transform: translate(3px, -3px); } }
@keyframes markJ { 40% { transform: translate(-2px, 2px); } }

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

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font: 600 clamp(32px, 9vw, 44px)/1.25 var(--f-head); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.mobile-menu nav a span { font: 400 12px var(--f-mono); color: var(--accent); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .15s; } .mobile-menu.is-open nav a:nth-child(2) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .25s; } .mobile-menu.is-open nav a:nth-child(4) { transition-delay: .3s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .35s; } .mobile-menu.is-open nav a:nth-child(6) { transition-delay: .4s; }
.mobile-menu__foot { font: 400 14px/1.7 var(--f-mono); color: var(--ink-2); }

/* ---------- labels ---------- */
.eyebrow, .label { font: 500 13px/1.4 var(--f-mono); letter-spacing: .02em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.label { color: var(--accent); margin-bottom: 20px; }
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15), 0 0 12px var(--ok); flex: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; overflow: hidden; }
.hero__aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.hero__aurora span { position: absolute; border-radius: 50%; }
.hero__aurora span:first-child { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(16, 58, 82, .9), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.hero__aurora span:last-child { width: 36vw; height: 36vw; right: -6vw; bottom: -10vw; background: radial-gradient(circle, rgba(77, 163, 217, .35), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 8vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, -6vw) scale(.9); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; margin: 28px 0; }
.hero__title > span { display: block; }
.hero__title > .hero__l2 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .26em; }
.js .hero__l2 [data-split] .w > span { transition-delay: .2s; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font: 400 13px var(--f-mono); color: var(--ink-3); align-items: center; }
.hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta li + li::before { content: "/"; color: var(--accent); margin-right: 8px; }
.cert-mini { font: 500 11px/1 var(--f-mono); color: var(--accent-2); border: 1px solid rgba(127, 211, 247, .35); border-radius: 6px; padding: 4px 6px; }

/* rotating word */
.rotator { display: grid !important; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rotator__item { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .5s;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.rotator__item.is-active { transform: translateY(0); opacity: 1; }
.rotator__item.is-leaving { transform: translateY(-110%); opacity: 0; }

/* hero image + glow frame */
.hero__media { position: relative; }
.hero__img { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); position: relative; }
.hero__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); background: linear-gradient(180deg, transparent 55%, rgba(10,12,15,.55)); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; }
.hero__media::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--accent) 75%, var(--accent-2) 80%, transparent 90%);
  animation: spin 6s linear infinite; filter: blur(.5px); }
.hero__media::after { content: ""; position: absolute; inset: 10% -10% -6% 10%; z-index: -2; background: radial-gradient(circle, rgba(77,163,217,.25), transparent 65%); filter: blur(40px); }
@keyframes spin { to { --angle: 360deg; } }

.js .hero__img { clip-path: inset(100% 0 0 0 round 26px); transition: clip-path 1.3s var(--ease-io) .15s; }
.js .hero__img img { transform: scale(1.18); transition: transform 1.8s var(--ease) .15s; }
.is-loaded .hero__img { clip-path: inset(0 0 0 0 round 26px); }
.is-loaded .hero__img img { transform: scale(1); }

.hero__badge { position: absolute; right: -20px; top: 28px; display: flex; align-items: center; gap: 12px;
  background: rgba(19, 23, 28, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 18px 12px 14px; font: 500 14px/1.3 var(--f-body);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.hero__badge small { display: block; font: 400 11px var(--f-mono); color: var(--ink-3); }
.js .hero__badge { opacity: 0; transform: translateY(16px); transition: opacity .7s 1.1s, transform .9s var(--ease) 1.1s; }
.is-loaded .hero__badge { opacity: 1; transform: none; animation: float 6s ease-in-out 2s infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* terminal */
.terminal { position: absolute; left: -64px; bottom: -36px; width: min(380px, 92%);
  background: rgba(11, 14, 18, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(77,163,217,.08); }
.js .terminal { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .8s 1.4s, transform 1s var(--ease) 1.4s; }
.is-loaded .terminal { opacity: 1; transform: none; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3038; }
.terminal__bar i:nth-child(1) { background: #FF5F57; } .terminal__bar i:nth-child(2) { background: #FEBC2E; } .terminal__bar i:nth-child(3) { background: #28C840; }
.terminal__bar span { margin-left: 8px; font: 400 11px var(--f-mono); color: var(--ink-3); }
.terminal__body { margin: 0; padding: 14px 16px 16px; min-height: 226px; font: 400 12px/1.7 var(--f-mono); color: var(--ink-2); white-space: pre-wrap; }
.terminal__body .p { color: var(--accent); } .terminal__body .ok { color: var(--ok); } .terminal__body .hl { color: var(--ink); }
.terminal__body .dim { color: var(--ink-3); } .terminal__body .spin { color: #F5A524; } .terminal__body .k { color: var(--ink); }
.terminal__body .cur { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; border: 1.5px solid var(--ink-3); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   TOPOLOGY: internet → next-gen firewall → VLAN cables → services
   ========================================================= */
.topo { position: relative; }
.topo__cables { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }

.cable { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cable--jacket { stroke: #04060A; stroke-width: 7; }
.cable--core { stroke: var(--c); stroke-width: 2.5; opacity: .65; transition: opacity .35s, stroke-width .35s; }
.cable--core.is-hot { opacity: 1; stroke-width: 3.2; filter: drop-shadow(0 0 6px var(--c)); }
.pkt-glow { opacity: .35; }

.ngfw { position: relative; z-index: 1; margin-bottom: clamp(104px, 10vw, 140px); }
.ngfw__top { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 100px; }
.ngfw__top .ngfw__console { display: none; }   /* desktop: numbers live on the front-panel LCD */

/* front-panel LCD */
.ngfw__lcd { display: grid; gap: 6px; padding: 8px 12px 9px; flex: none; border-radius: 5px; background: #06090C;
  box-shadow: inset 0 0 0 1px #252C34, inset 0 0 22px rgba(77,163,217,.07), 0 1px 0 rgba(255,255,255,.05);
  font: 500 10px/1 var(--f-mono); color: var(--accent-2); text-shadow: 0 0 6px rgba(127,211,247,.4); }
.lcd__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.lcd__row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.lcd__row > b { font-size: 12px; min-width: 8.5ch; text-align: right; }
.lcd__row .spark { width: 76px; height: 18px; }
.lcd__row--sm { color: rgba(127,211,247,.55); }
.lcd__row--sm span { display: inline-flex; align-items: center; gap: 5px; }
.lcd__row--sm b { color: var(--accent-2); }
.lcd__ok, .lcd__deny { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 5px var(--ok); }
.lcd__deny { background: var(--err); box-shadow: 0 0 5px var(--err); }
.ngfw.is-deny .lcd__deny + b { color: #FCA5A5; text-shadow: 0 0 8px rgba(248,113,113,.7); }

/* live console (dashboard strip) */
.ngfw__console { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: rgba(14, 17, 21, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 400 11px/1 var(--f-mono); color: var(--ink-2); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.nc { display: flex; align-items: center; gap: 9px; padding: 11px 15px; white-space: nowrap; }
.nc + .nc { border-left: 1px solid var(--line); }
.nc small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nc b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.nc--state { color: var(--ok); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.nc__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: beat 2.4s ease-in-out infinite; }
.nc--ok small::before, .nc--deny small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
  background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.nc--deny small::before { background: var(--err); box-shadow: 0 0 6px var(--err); }
.nc--deny b { transition: color .3s, text-shadow .3s; }
.ngfw.is-deny .nc--deny b { color: #FCA5A5; text-shadow: 0 0 10px rgba(248,113,113,.6); }
.nc--tput b { min-width: 8.5ch; text-align: right; }
.spark { width: 84px; height: 22px; overflow: visible; }
.spark__line { fill: none; stroke: var(--accent-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark__area { fill: rgba(77, 163, 217, .14); }

/* faceplate (1U appliance) */
.ngfw__face {
  position: relative; display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px);
  padding: 16px clamp(18px, 2.2vw, 28px) 20px; border-radius: 7px;
  background: linear-gradient(180deg, #1C2229 0%, #13171C 52%, #0E1115 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.95);
  transition: box-shadow .3s;
}
.ngfw__face::before, .ngfw__face::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 14px; background: #161A20;
  border: 1px solid var(--line-2);
  background-image: radial-gradient(circle at 50% 26%, #07090B 2.2px, transparent 2.8px), radial-gradient(circle at 50% 74%, #07090B 2.2px, transparent 2.8px); }
.ngfw__face::before { left: -15px; border-radius: 4px 0 0 4px; border-right: 0; }
.ngfw__face::after { right: -15px; border-radius: 0 4px 4px 0; border-left: 0; }
.ngfw.is-deny .ngfw__face { box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.7), 0 0 0 1px rgba(248,113,113,.4), 0 0 44px -8px rgba(248,113,113,.45), 0 40px 80px -40px rgba(0,0,0,.95); }

.ngfw__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.ngfw__logo { width: 30px; height: auto; flex: none; }
.ngfw__logo .mark-j { fill: #C9CED6; }
.ngfw__model { display: grid; gap: 5px; font: 600 13px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink); white-space: nowrap; }
.ngfw__model small { font: 500 8px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }

.ngfw__leds { display: grid; grid-template-columns: auto auto; gap: 9px 16px; padding-left: clamp(16px, 2.2vw, 30px); border-left: 1px solid var(--line); flex: none;
  font: 500 8px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-3); }
.ngfw__leds span { display: flex; align-items: center; gap: 7px; }
.led { width: 6px; height: 6px; border-radius: 50%; flex: none; background: #262C34; transition: background .12s, box-shadow .12s; }
.led--ok { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.led--beat { animation: beat 2.4s ease-in-out infinite; }
.led--ha { background: #4A3D1C; }
.led--alarm.on { background: var(--err); box-shadow: 0 0 8px var(--err), 0 0 18px rgba(248,113,113,.6); }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.ngfw__ports { position: relative; display: flex; align-items: stretch; gap: 12px; flex: none; }
.pg { position: relative; padding: 19px 8px 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; }
.pg__label { position: absolute; top: 6px; left: 8px; font: 500 7.5px/1 var(--f-mono); letter-spacing: .18em; color: var(--ink-3); }
.pg--wan .pg__label { left: auto; right: 8px; }   /* keep the label clear of the incoming WAN cable */
.pg__row { display: flex; gap: 6px; }

/* RJ45 */
.rj { position: relative; display: block; width: 26px; height: 22px; border-radius: 3px; background: #05070A; flex: none;
  box-shadow: inset 0 0 0 1px #2A313A, inset 0 4px 6px rgba(0,0,0,.95); }
.rj::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 5px; border-radius: 1px; background: #11151A; }
.rj i { position: absolute; top: 3px; width: 5px; height: 3px; border-radius: 1px; background: #1A1F25; z-index: 1; }
.rj i:nth-child(1) { left: 3px; } .rj i:nth-child(2) { right: 3px; }
.rj em, .sfp em { position: absolute; left: -6px; right: -6px; top: calc(100% + 4px); font: 500 7.5px/1 var(--f-mono); font-style: normal; text-align: center; color: var(--ink-3); }
.rj.is-up i:nth-child(1), .rj.is-plugged i:nth-child(1) { background: var(--ok); box-shadow: 0 0 4px var(--ok); }
.rj.is-act i:nth-child(2) { background: #F5A524; box-shadow: 0 0 4px #F5A524; animation: act var(--dur, 1.2s) steps(2) var(--dly, 0s) infinite; }
.rj.tx i:nth-child(2) { background: #FFE2A8; box-shadow: 0 0 8px #F5A524; animation: none; }
@keyframes act { 50% { opacity: .1; } }
/* plugged cable boot */
.rj::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; bottom: -3px; border-radius: 2px 2px 3px 3px; opacity: 0; transform: translateY(4px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #7FD3F7) 70%, #fff) 0 2px, var(--pc, #7FD3F7) 2px 55%, color-mix(in srgb, var(--pc, #7FD3F7) 55%, #000));
  transition: opacity .3s, transform .45s var(--ease), box-shadow .2s; }
.rj.is-plugged::after { opacity: .95; transform: none; box-shadow: 0 0 10px color-mix(in srgb, var(--pc, #7FD3F7) 40%, transparent); }
.rj.is-plugged.tx::after { box-shadow: 0 0 16px var(--pc, #7FD3F7); }

/* SFP+ cage */
.sfp { position: relative; display: block; width: 34px; height: 15px; margin-top: 4px; border-radius: 2px; background: #05070A; flex: none;
  box-shadow: inset 0 0 0 1px #3A424C, inset 0 3px 4px rgba(0,0,0,.9); }
.sfp i { position: absolute; top: -6px; left: 50%; width: 5px; height: 3px; margin-left: -2.5px; border-radius: 1px; background: #1A1F25; }
.sfp.is-mod::before { content: ""; position: absolute; inset: 3px 3px; border-radius: 1px; background: linear-gradient(180deg, #C3C9D1, #6F7781); }
.sfp.is-up i { background: var(--ok); box-shadow: 0 0 4px var(--ok); }
.sfp.is-act i { animation: act var(--dur, 1.2s) steps(2) var(--dly, 0s) infinite; }

.ngfw__vent { align-self: stretch; flex: 1 1 60px; min-width: 0; max-width: 170px; margin: -4px 0 -6px auto;
  background: radial-gradient(circle, #04060A 1.5px, transparent 1.9px) 0 0 / 7px 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }

/* inspection sweep + status light bar */
.ngfw__scan { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ngfw__scan::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(127, 211, 247, .075), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .ngfw.is-in .ngfw__scan::before { animation: sweep 7s var(--ease-io) 1.5s infinite; }
}
.force-motion .ngfw.is-in .ngfw__scan::before { animation: sweep 7s var(--ease-io) 1.5s infinite; }
@keyframes sweep { 0% { transform: translateX(-130%) skewX(-18deg); } 45%, 100% { transform: translateX(560%) skewX(-18deg); } }
.ngfw__bar { position: absolute; left: 40px; right: 40px; bottom: 5px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .22; transition: opacity .3s, box-shadow .3s; }
.ngfw__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, transparent, var(--err), transparent); box-shadow: 0 0 14px rgba(248,113,113,.7); }
.ngfw.is-allow .ngfw__bar { opacity: .75; box-shadow: 0 0 10px rgba(77,163,217,.5); }
.ngfw.is-deny .ngfw__bar { opacity: 1; }
.ngfw.is-deny .ngfw__bar::after { opacity: 1; }

/* internet node above WAN */
.node-inet { position: absolute; left: -4px; bottom: calc(100% + 50px); display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 400 10px/1.4 var(--f-mono); color: var(--ink-3); }
.node-inet b { display: block; font: 500 12px/1.3 var(--f-mono); color: var(--ink); }
.node-inet svg { width: 52px; height: 52px; padding: 9px; border-radius: 50%; fill: none; stroke: var(--accent); stroke-width: 1.6; flex: none;
  background: radial-gradient(circle, rgba(77,163,217,.16), transparent 70%); border: 1px solid rgba(77,163,217,.35);
  animation: inetPulse 3s ease-in-out infinite; }
@keyframes inetPulse { 50% { box-shadow: 0 0 0 10px rgba(77,163,217,.06), 0 0 30px rgba(77,163,217,.25); } }

/* ---------- services ---------- */
.services { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glow-card { position: relative; isolation: isolate; border-radius: var(--radius); }
.glow-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--angle), var(--line-2) 0deg, var(--line-2) 200deg, var(--vlan, var(--accent)) 265deg, var(--accent-2) 290deg, var(--line-2) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .5; transition: opacity .5s; animation: spin 7s linear infinite; animation-play-state: paused; }
.glow-card:hover::before { opacity: 1; animation-play-state: running; }
.glow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--vlan, var(--accent)) 14%, transparent), transparent 60%); }
.glow-card:hover::after { opacity: 1; }

.service { background: linear-gradient(180deg, var(--surface), rgba(19, 23, 28, .6)); padding: 30px clamp(20px, 2vw, 28px) 28px; display: flex; flex-direction: column; transition: box-shadow .4s; }
.service.rx { box-shadow: 0 0 0 1px color-mix(in srgb, var(--vlan) 70%, transparent), 0 0 40px -6px color-mix(in srgb, var(--vlan) 45%, transparent); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.vlan-tag { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--f-mono); color: var(--vlan);
  border: 1px solid color-mix(in srgb, var(--vlan) 45%, transparent); background: color-mix(in srgb, var(--vlan) 10%, transparent); padding: 6px 10px; border-radius: 999px; }
.vlan-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vlan); box-shadow: 0 0 8px var(--vlan); }
.service__icon { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease), stroke .3s; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); stroke: var(--vlan); }
.service h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); }
.service > p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.service__list { margin-top: 22px; border-top: 1px solid var(--line); }
.service__list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; transition: padding-left .4s var(--ease); }
.service__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.service__list li:hover { padding-left: 6px; }
.service__list strong { font-weight: 600; font-size: 15px; }
.service__list span { font-size: 14px; color: var(--ink-2); }
.jack { position: absolute; z-index: 4; top: -10px; left: 30px; width: 26px; height: 19px; border-radius: 4px; background: #06080A;
  border: 1px solid color-mix(in srgb, var(--vlan) 70%, #2B323B); box-shadow: inset 0 3px 4px rgba(0,0,0,.85), 0 0 0 4px var(--bg-2); }
.jack i { position: absolute; top: 2px; left: 2px; width: 4px; height: 3px; border-radius: 1px; background: var(--vlan); opacity: .5; transition: opacity .2s, box-shadow .2s; }
.service.rx .jack i { opacity: 1; box-shadow: 0 0 8px var(--vlan); }
.jack::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; bottom: -3px; border-radius: 2px 2px 3px 3px; opacity: 0; transform: translateY(-4px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--vlan) 70%, #fff) 0 2px, var(--vlan) 2px 55%, color-mix(in srgb, var(--vlan) 55%, #000));
  transition: opacity .3s, transform .45s var(--ease); }
.jack.is-plugged::after { opacity: .95; transform: none; }
.jack.is-plugged i { opacity: 1; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 880px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.04em; }
.section__intro { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 40em; }


/* draw-in strokes */
@media (prefers-reduced-motion: no-preference) {
  .js .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .is-in .draw > * { animation: dash 1.6s cubic-bezier(.2, .7, .1, 1) .3s forwards; }
}
.force-motion .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.force-motion .is-in .draw > * { animation: dash 1.6s cubic-bezier(.2, .7, .1, 1) .3s forwards; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.steps::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--accent); }
.step { padding: 0 28px 8px 0; position: relative; z-index: 1; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 500 13px var(--f-mono); color: var(--ink-3);
  background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 36px; transition: color .5s, border-color .5s, box-shadow .5s, background .5s; }
.step.is-lit .step__num { color: #04131D; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(77,163,217,.12), 0 0 24px rgba(77,163,217,.5); }
.step h3 { font-size: 1.6rem; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__lead { position: sticky; top: calc(var(--header-h) + 40px); }
.statement { font: 500 clamp(1.7rem, 3.2vw, 2.7rem)/1.2 var(--f-head); letter-spacing: -0.03em; }
.statement .hw { transition: opacity .25s linear, color .25s; opacity: .14; }
.statement .hw.on { opacity: 1; }
.about__body { display: grid; gap: 16px; color: var(--ink-2); max-width: 38em; padding-top: 44px; }
.stat dt { white-space: nowrap; }
.about__body p:first-child { color: var(--ink); font-size: 1.12em; }

/* experience cards (section 04) */
.xp { padding: clamp(22px, 2.8vw, 34px); background: linear-gradient(180deg, var(--surface), rgba(19,23,28,.55)); }
.xp__head h3 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
.xp__role { margin-top: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--accent); }
.xp__lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink); max-width: 40em; }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.stack__k { font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.chips .chip--hl { color: var(--accent-2); border-color: rgba(77,163,217,.45); background: var(--accent-soft); }

/* security strip under services */
.secure { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 18px 24px;
  border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(90deg, rgba(52,211,153,.07), rgba(19,23,28,.4) 45%); }
.secure__icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(52,211,153,.35)); }
.secure p { font-size: 15px; color: var(--ink-2); }
.secure strong { color: var(--ink); font-weight: 600; }

/* language switch */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; }
.lang a { padding: 7px 10px; border-radius: 999px; color: var(--ink-3); transition: color .25s, background .25s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: var(--surface-2); }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 18px; }
.sectors li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,12,15,.55); font-size: 14px; color: var(--ink); }
.sectors svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 56px 0 0; border-top: 1px solid var(--line); padding-top: 32px; }
.stat dt { font: 600 clamp(2.6rem, 5vw, 3.8rem)/1 var(--f-head); letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dd { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.interests { margin-top: 48px; }
.interests__title { font: 500 13px var(--f-mono); color: var(--ink-3); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chips li:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.chips--sm li { font-size: 13px; padding: 6px 12px; }
.chips li:has(> .chip--cert) { padding: 0; border: 0; }
.chip--cert { display: inline-flex; align-items: center; gap: 7px; font: 500 14px/1.2 var(--f-body); padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(77,163,217,.45); transition: background .3s, color .3s, border-color .3s, box-shadow .4s; }
.chip--cert::before { content: "✓"; font-size: 12px; }
.chip--cert::after { content: "↗"; font-size: 12px; opacity: .6; transition: transform .4s var(--ease), opacity .3s; }
.chip--cert:hover { background: var(--accent); color: #04131D; border-color: var(--accent); box-shadow: 0 8px 24px -8px rgba(77,163,217,.6); }
.chip--cert:hover::after { opacity: 1; transform: translate(2px, -2px); }

/* ---------- timeline ---------- */
.timeline { position: relative; border-top: 1px solid var(--line); }
.timeline__rail { position: absolute; left: 264px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__rail span { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 8px var(--accent); }
.tl { display: grid; grid-template-columns: 240px 1fr; gap: 24px 48px; padding: 40px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl::before { content: ""; position: absolute; left: 260px; top: 46px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--ink-3); transition: background .4s, border-color .4s, box-shadow .4s; }
.tl.is-in::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(77,163,217,.12); transition-delay: .3s; }
.tl__body { padding-left: 24px; }
.tl__date { font: 500 14px/1.6 var(--f-mono); color: var(--accent); }
.tl h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl__org { margin-top: 4px; color: var(--ink-2); font-weight: 500; }
.tl__body > ul { margin-top: 18px; display: grid; gap: 8px; }
.tl__body > ul > li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.tl__body > ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1.5px; background: var(--accent); }
.tl__extra { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.tl__lead { margin-top: 14px; color: var(--ink); max-width: 40em; }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cert { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; padding: 12px 18px 12px 12px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--surface), rgba(19,23,28,.5));
  color: inherit; font: inherit; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease), box-shadow .45s; }
.cert::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at 20% 50%, rgba(77,163,217,.14), transparent 70%); }
button.cert:hover { border-color: rgba(77,163,217,.55); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(77,163,217,.55); }
button.cert:hover::before { opacity: 1; }
.cert__thumb { position: relative; aspect-ratio: 1600 / 1131; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 20px -10px rgba(0,0,0,.8); }
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
button.cert:hover .cert__thumb img { transform: scale(1.08); }
.cert__thumb::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: rgba(10,12,15,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 26px no-repeat; }
button.cert:hover .cert__thumb::after { opacity: 1; }
.cert__thumb--ph { display: grid; place-items: center; background: linear-gradient(135deg, #16324A, #0E1A24); }
.cert__thumb--ph svg { width: 38px; height: 38px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cert__meta b { display: block; font: 600 1.08rem/1.25 var(--f-head); letter-spacing: -0.02em; color: var(--ink); }
.cert__meta small { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.cert__meta em { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 500 11px var(--f-mono); color: var(--accent-2); }
.cert__meta em::after { content: "→"; transition: transform .4s var(--ease); }
button.cert:hover .cert__meta em::after { transform: translateX(4px); }
.cert--nodoc { cursor: default; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 7, 10, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { animation: lbIn .55s var(--ease); }
.lightbox[open]::backdrop { animation: lbFade .4s ease; }
@keyframes lbIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes lbFade { from { opacity: 0; } }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__inner { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0,0,0,.95); }
.lightbox__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.lightbox__titles { min-width: 0; }
.lightbox__kicker { font: 500 11px/1.4 var(--f-mono); color: var(--accent); }
.lightbox__head h3 { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.3; margin-top: 3px; }
.lightbox__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.lightbox__nav, .lightbox__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: 400 16px/1 var(--f-body); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.lightbox__close { font-size: 24px; margin-left: 4px; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--ink); color: #07090C; border-color: var(--ink); }
.lightbox__pdf { padding: 11px 16px; }
.lightbox__fig { margin: 0; background: #fff; display: grid; place-items: center; }
.lightbox__fig img { width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; transition: opacity .25s; }
.lightbox__fig img.is-swapping { opacity: 0; }
.tl__langs { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.tl__langs strong { font: 600 1.4rem var(--f-head); letter-spacing: -0.02em; margin-right: 10px; color: var(--ink); }
.tl__langs p { color: var(--ink-2); }
.tag { font: 500 11px/1 var(--f-mono); letter-spacing: .03em; color: var(--accent-2); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }

/* ---------- projects ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; perspective: 1200px; }
.case { display: block; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.case__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); transition: border-color .4s, box-shadow .6s; }
.case:hover .case__frame { border-color: rgba(77,163,217,.5); box-shadow: 0 40px 80px -30px rgba(77,163,217,.35); }
.case__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.case__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3038; }
.case__bar span { margin-left: 10px; font: 400 11px var(--f-mono); color: var(--ink-3); background: var(--bg); padding: 4px 10px; border-radius: 6px; }
.case__shot { aspect-ratio: 16 / 10; overflow: hidden; }
.case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.case:hover .case__shot img { transform: scale(1.05); }
.case__shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 50%); }
.case:hover .case__shine { opacity: 1; }
.case__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 4px 0; }
.case__info h3 { font-size: 1.5rem; }
.case__info p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.case__arrow { font-size: 24px; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
.case:hover .case__arrow { transform: rotate(45deg); background: var(--accent); color: #04131D; border-color: var(--accent); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-inline: 4px; }
.case__tags li { font: 400 12px var(--f-mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }

/* app case — planner mock */
.case--app, .case--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-areas: "frame info" "frame tags"; gap: 0 48px; align-content: center; }
.case--app { margin-top: 12px; }
.case--wide { margin-bottom: 12px; }
.case--app .case__frame, .case--wide .case__frame { grid-area: frame; }
.case--app .case__info, .case--wide .case__info { grid-area: info; align-self: end; padding-top: 0; }
.case--app .case__info h3, .case--wide .case__info h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.case--app .case__info p, .case--wide .case__info p { font-size: 16px; margin-top: 10px; max-width: 28em; }
.case--app .case__tags, .case--wide .case__tags { grid-area: tags; align-self: start; margin-top: 18px; }
.case--lead { margin-top: 0; margin-bottom: 12px; }
.case__kicker { font: 400 12px var(--f-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 10px !important; }
.case__points { margin-top: 16px; display: grid; gap: 9px; max-width: 30em; }
.case__points li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.case__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(77,163,217,.6); }
.case__points strong { color: var(--ink); font-weight: 600; }

.planner { padding: 18px; background: #0C0F13; font: 400 11px var(--f-mono); color: var(--ink-3); }
.planner__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.planner__week { color: var(--ink); font: 600 15px var(--f-head); letter-spacing: -0.01em; }
.planner__users { display: flex; padding-left: 6px; }
.planner__users i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-left: -7px; font: 500 9px var(--f-mono); font-style: normal;
  color: var(--ink); background: var(--surface-2); border: 2px solid #0C0F13; }
.planner__users i:nth-child(1) { background: #1F4F6E; } .planner__users i:nth-child(2) { background: #3D2E66; } .planner__users i:nth-child(3) { background: #1D5243; }
.planner__head, .planner__body { display: grid; grid-template-columns: 64px 1fr; }
.planner__head { grid-template-columns: 64px repeat(5, 1fr); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.planner__head span { text-align: center; }
.planner__rows { display: grid; grid-template-rows: repeat(4, 46px); }
.planner__rows span { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.planner__cal { position: relative; height: 184px;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 20% 100%, 100% 46px; background-position: 0 -1px; }
.job { position: absolute; left: calc(var(--c) * 20% + 3px); top: calc(var(--r) * 46px + 6px); width: calc(var(--s) * 20% - 6px); height: 33px;
  border-radius: 7px; background: color-mix(in srgb, var(--col) 20%, #0C0F13); border: 1px solid color-mix(in srgb, var(--col) 55%, transparent); border-left: 3px solid var(--col);
  color: var(--ink); font: 500 10.5px/31px var(--f-body); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .case--app .job:not(.job--drag) { opacity: 0; transform: translateY(8px) scale(.92); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .case--app.is-in .job { opacity: 1; transform: none; }
.case--app.is-in .job:nth-child(1) { transition-delay: .3s; } .case--app.is-in .job:nth-child(2) { transition-delay: .4s; }
.case--app.is-in .job:nth-child(3) { transition-delay: .5s; } .case--app.is-in .job:nth-child(4) { transition-delay: .6s; }
.case--app.is-in .job:nth-child(5) { transition-delay: .7s; } .case--app.is-in .job:nth-child(6) { transition-delay: .8s; }
.job--drag { --s: 1; left: calc(20% + 3px); top: calc(3 * 46px + 6px); z-index: 2; box-shadow: 0 12px 26px -8px rgba(0,0,0,.8); }
.planner__cursor { position: absolute; z-index: 3; width: 16px; height: 16px; left: calc(20% + 40px); top: calc(3 * 46px + 24px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1l11 7-5 1 3 5-2 1-3-5-4 3z' fill='%23fff' stroke='%230A0C0F' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-reduced-motion: no-preference) {
  .case--app.is-in .job--drag { animation: dragJob 8s var(--ease-io) 1.6s infinite; }
  .case--app.is-in .planner__cursor { animation: dragCursor 8s var(--ease-io) 1.6s infinite; }
}
.force-motion .case--app.is-in .job--drag { animation: dragJob 8s var(--ease-io) 1.6s infinite; }
.force-motion .case--app.is-in .planner__cursor { animation: dragCursor 8s var(--ease-io) 1.6s infinite; }
@keyframes dragJob {
  0%, 12% { left: calc(20% + 3px); top: calc(3 * 46px + 6px); transform: none; }
  18% { transform: scale(1.06) rotate(-2deg); }
  44% { left: calc(80% + 3px); top: calc(1 * 46px + 6px); transform: scale(1.06) rotate(-2deg); }
  50%, 78% { left: calc(80% + 3px); top: calc(1 * 46px + 6px); transform: none; }
  84% { transform: scale(1.06) rotate(2deg); }
  100% { left: calc(20% + 3px); top: calc(3 * 46px + 6px); transform: none; }
}
@keyframes dragCursor {
  0% { left: calc(60% + 20px); top: calc(46px + 30px); }
  12% { left: calc(20% + 40px); top: calc(3 * 46px + 24px); }
  44%, 78% { left: calc(80% + 40px); top: calc(1 * 46px + 24px); }
  100% { left: calc(20% + 40px); top: calc(3 * 46px + 24px); }
}

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0 auto 0 0; width: 50%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; opacity: .16; filter: grayscale(.5); }
.contact__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__title { font-size: clamp(3rem, 7vw, 6rem) !important; letter-spacing: -0.05em !important; line-height: .98 !important; }
.contact__lead { margin-top: 24px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 30em; }
.contact__links { margin-top: 48px; border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__k { font: 400 12px var(--f-mono); color: var(--ink-3); }
.contact__v { font: 500 clamp(1.1rem, 2vw, 1.45rem)/1.25 var(--f-head); letter-spacing: -0.02em; overflow-wrap: anywhere; justify-self: start;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease), color .3s; }
a.contact__v:hover { background-size: 100% 1.5px; color: var(--accent-2); }
.contact__v--plain { color: var(--ink-2); }
.copy { font: 500 11px var(--f-mono); color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.copy:hover { color: #04131D; background: var(--accent); border-color: var(--accent); }
a.copy { display: inline-block; text-decoration: none; white-space: nowrap; }
.mobile-menu__foot a { color: var(--accent); }

/* panel + tabs */
.panel { background: linear-gradient(180deg, var(--surface), rgba(19,23,28,.7)); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.tabs__btn { position: relative; z-index: 1; border: 0; background: transparent; color: var(--ink-2); font: 500 14px/1.2 var(--f-body); padding: 12px 10px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.tabs__btn.is-active { color: #04131D; }
.tabs__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); transition: transform .5s var(--ease); box-shadow: 0 6px 24px -6px rgba(77,163,217,.7); }
.tabs[data-active="meet"] .tabs__ink { transform: translateX(100%); }
.pane { animation: paneIn .6s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }

/* form */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.form__grid .field { margin-bottom: 0; }
.field span { font: 500 12px var(--f-mono); color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical; }
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(77,163,217,.15); background: #0C0F13; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.field ::placeholder { color: var(--ink-3); }
.topics { border: 0; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font: 500 12px var(--f-mono); color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: all .3s var(--ease); }
.topics label:hover span { border-color: var(--accent); color: var(--ink); }
.topics input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--ink-3); max-width: 22em; }
.form__note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.form__note a:hover { color: var(--accent); }
.form__status { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form__status.is-error { color: var(--err); }
.form__status a { text-decoration: underline; }
.form__submit.is-loading .btn__arrow { animation: spinArrow .8s linear infinite; }
@keyframes spinArrow { to { transform: rotate(360deg); } }
.form__done { text-align: center; padding: 40px 10px; animation: paneIn .6s var(--ease); }
.form__done svg { width: 64px; height: 64px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 20px; }
.form__done svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash 1s cubic-bezier(.2, .7, .1, 1) forwards; }
.form__done path { animation-delay: .4s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form__done h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form__done p { color: var(--ink-2); }

/* meeting */
.meet__head { display: flex; gap: 18px; align-items: flex-start; }
.meet__icon { width: 52px; height: 52px; flex: none; padding: 12px; border-radius: 14px; background: var(--accent-soft); fill: none; stroke: var(--accent-2); stroke-width: 2.2; stroke-linejoin: round; }
.meet h3 { font-size: 1.35rem; margin-bottom: 6px; }
.meet__head p { color: var(--ink-2); font-size: 15px; }
.meet__list { margin: 24px 0; display: grid; gap: 10px; }
.meet__list li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.meet__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 600; }
.meet__embed:empty { display: none; }
.meet__embed iframe { width: 100%; height: 620px; border: 0; border-radius: 14px; background: #fff; }
.meet__consent { border: 1px dashed var(--line-2); border-radius: 14px; padding: 22px; display: grid; gap: 14px; justify-items: start; }
.meet__consent p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.meet__consent a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.meet__btn { width: 100%; }

/* ---------- footer ---------- */
.footer { background: var(--bg); color: var(--ink-3); border-top: 1px solid var(--line); font: 400 13px var(--f-mono); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; flex-wrap: wrap; }
.footer__top:hover { color: var(--accent); }
.footer p { line-height: 1.7; }
.footer small { font-size: 11px; color: #4D545E; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer__links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; padding-block: 8px; transition: color .25s; }
.footer__links a:hover, .footer__links a[aria-current] { color: var(--accent); }

/* ---------- legal page ---------- */
.legal-page .header .brand { margin-right: auto; }
.legal-page .header__inner { gap: 14px; }
.legal { padding: calc(var(--header-h, 76px) + 56px) 0 80px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.legal__lead { font-size: 1.15rem; color: var(--ink); max-width: 38em; }
.legal__updated { font: 400 12px var(--f-mono); color: var(--ink-3); margin-top: 10px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.legal__toc a { font: 500 13px var(--f-body); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; transition: color .25s, border-color .25s; }
.legal__toc a:hover { color: var(--accent); border-color: var(--accent); }
.legal section { padding-top: 44px; scroll-margin-top: calc(var(--header-h, 76px) + 16px); }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 16px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 10px; padding-left: 20px; margin: 12px 0; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal .legal__toc a:hover { color: var(--accent); }
.legal__card { display: grid; gap: 0; margin: 0 0 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow: hidden; }
.legal__card div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.legal__card div:last-child { border-bottom: 0; }
.legal__card dt { font: 500 12px/1.7 var(--f-mono); color: var(--ink-3); }
.legal__card dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.legal__back { margin-top: 48px; }
@media (max-width: 560px) {
  .legal__card div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .legal-page .header .btn { padding: 10px 14px; font-size: 13px; }
  .legal-page .brand__name { display: none; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #07090C; font: 500 14px var(--f-body); padding: 12px 20px; border-radius: 999px; transition: opacity .3s, transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TEXT ANIMATIONS
   ========================================================= */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .case[data-reveal].is-in { transition: opacity .9s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s), 0s; }
[data-scramble] .sc { color: var(--ink-3); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .ngfw { margin-bottom: 96px; }
  .ngfw__top { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 104px; }
  .ngfw__top .ngfw__console { display: flex; }
  .nc { flex: 1 1 auto; justify-content: center; }
  .ngfw__vent, .pg--sfp, .ngfw__lcd { display: none; }
  .ngfw__ports { margin-left: auto; }
  .rj { width: 22px; height: 19px; }
  .rj::before { left: 7px; right: 7px; height: 4px; }
  .rj::after { top: 6px; }
  .pg__row { gap: 5px; }
  .services { grid-template-columns: 1fr; margin-left: 44px; gap: 20px; }
  .secure { margin-left: 44px; }
  .jack { top: 30px; left: -14px; }
  .jack::after { transform: translateX(-4px); }
  .case--app, .case--wide { grid-template-columns: 1fr; grid-template-areas: "frame" "info" "tags"; }
  .case--app .case__info, .case--wide .case__info { padding-top: 22px; }
  .about { grid-template-columns: 1fr; }
  .about__lead { position: static; }
  .about__body { padding-top: 40px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .terminal { left: -24px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; width: 100%; justify-self: center; margin-bottom: 120px; }
  .hero__badge { right: 12px; top: 16px; }
  .terminal { left: 50%; transform: translateX(-50%); bottom: -110px; width: min(360px, 100%); }
  .js .terminal { transform: translate(-50%, 24px); }
  .is-loaded .terminal { transform: translateX(-50%); }
  .scroll-cue { display: none; }
  .services, .cases { grid-template-columns: 1fr; }
  .timeline__rail, .tl::before { display: none; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .tl__body { padding-left: 0; }
  .contact__bg { width: 100%; }
}

@media (max-width: 720px) {
  .stack { grid-template-columns: 1fr; }
  .pg--dmz, .ngfw__model, .nc--sess { display: none; }
  .ngfw__leds { font-size: 0; letter-spacing: 0; gap: 7px 7px; }
  .ngfw__leds span { gap: 0; }
  .certs { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step__num { margin-bottom: 18px; }
  .stats { gap: 8px; }
  .form__grid { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr auto; }
  .contact__k { grid-column: 1 / -1; }
  .tabs__btn { font-size: 13px; padding: 11px 6px; }
  .hide-sm { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .form__submit { width: 100%; }
  .ngfw__face { gap: 10px; padding: 14px 12px 16px; }
  .ngfw__logo { width: 24px; }
  .ngfw__leds { padding-left: 10px; gap: 7px 6px; }
  .ngfw__ports { gap: 7px; }
  .pg { padding: 16px 5px 14px; }
  .pg__label { left: 5px; top: 5px; font-size: 6.5px; letter-spacing: .12em; }
  .pg--wan .pg__label { left: auto; right: 5px; }
  .pg__row { gap: 3px; }
  .rj { width: 15px; height: 13px; border-radius: 2px; }
  .rj i { top: 2px; width: 3px; height: 2px; }
  .rj i:nth-child(1) { left: 2px; } .rj i:nth-child(2) { right: 2px; }
  .rj::before { left: 4px; right: 4px; bottom: 1px; height: 3px; }
  .rj::after { left: 2px; right: 2px; top: 4px; bottom: -2px; }
  .rj em { font-size: 6.5px; top: calc(100% + 3px); }
  .ngfw__top .ngfw__console { display: grid; grid-template-columns: 1fr 1fr; }
  .ngfw__console .nc { border: 0; padding: 10px 12px; }
  .nc--state { display: none !important; }
  .nc--tput { grid-column: 1 / -1; }
  .nc--ok, .nc--deny { border-top: 1px solid var(--line) !important; }
  .nc--deny { border-left: 1px solid var(--line) !important; }
  .ngfw__top { padding-bottom: 96px; }
  .node-inet { bottom: calc(100% + 44px); gap: 10px; }
  .node-inet svg { width: 44px; height: 44px; padding: 8px; }
  .services, .secure { margin-left: 36px; }
  .secure { align-items: flex-start; padding: 16px 18px; gap: 14px; }
  .stack { grid-template-columns: 1fr; }
  .header__inner { gap: 16px; }
  .certs { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 104px 1fr; gap: 14px; }
  .sectors { grid-template-columns: 1fr; }
  .lightbox__head { flex-wrap: wrap; padding: 12px 12px 12px 16px; }
  .lightbox__titles { flex: 1 1 100%; }
  .lightbox__actions { width: 100%; justify-content: flex-end; }
  /* dotykové cíle min. ~40 px (přepínač jazyka, Nahoru) */
  .lang a { padding: 12px 12px; }
  .footer__top { display: inline-block; padding: 12px 4px; }
  .planner { padding: 12px; }
  .planner__head, .planner__body { grid-template-columns: 50px 1fr; }
  .planner__head { grid-template-columns: 50px repeat(5, 1fr); }
  .job { font-size: 9px; padding: 0 5px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
/* .force-motion = preview override (?motion=1, remembered for the session) */
@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) { scroll-behavior: auto; }
  :root:not(.force-motion) *, :root:not(.force-motion) *::before, :root:not(.force-motion) *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  :root:not(.force-motion) .statement .hw { opacity: 1; }
  :root:not(.force-motion) .grain, :root:not(.force-motion) .cursor-glow { display: none; }
}
