/* =================================================================
   Jonas Borgartz — Ethical Hacking
   Design system · dark, restrained, confident · neon-lime accent
   Hand-written CSS (no framework) for speed + a non-templated look
   ================================================================= */

/* ---- Tokens ------------------------------------------------------ */
:root {
  --bg:        #080B11;
  --bg-2:      #0B0F17;
  --surface:   #0F1622;
  --surface-2: #131C2B;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #E8EEF5;
  --text-2:    #AEB9C9;
  --muted:     #7E8A9C;

  --accent:        #A3E635;   /* lime */
  --accent-2:      #84CC16;
  --accent-soft:   rgba(163, 230, 53, 0.12);
  --accent-line:   rgba(163, 230, 53, 0.30);
  --accent-glow:   rgba(163, 230, 53, 0.45);

  --danger:    #F87171;
  --warn:      #FBBF24;

  --radius:   16px;
  --radius-s: 11px;
  --radius-l: 24px;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 40px);

  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 120px -40px rgba(0, 0, 0, 0.85);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* ---- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Ambient background ----------------------------------------- */
.bg-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(163, 230, 53, 0.10), transparent 60%),
    radial-gradient(800px 700px at 8% 8%, rgba(56, 99, 161, 0.12), transparent 55%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ---- Layout helpers --------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; padding-block: clamp(72px, 10vw, 130px); }
.section-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  padding: 7px 13px; border: 1px solid var(--accent-line); border-radius: 100px;
  background: var(--accent-soft); margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
h2.title { font-size: clamp(31px, 4.6vw, 50px); }
.lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; }
.accent { color: var(--accent); }
.mono { font-family: var(--ff-mono); }

/* ---- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent); color: #0A0E07;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Nav --------------------------------------------------------- */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--pad) 0; }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 11px 12px 11px 18px; border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { background: rgba(8, 11, 17, 0.86); border-color: var(--line-2); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--ff-display); font-weight: 600; }
.brand .glyph {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-family: var(--ff-mono); font-size: 14px; font-weight: 700;
}
.brand b { font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 12.5px; font-family: var(--ff-mono); display: block; letter-spacing: 0.04em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 100px; font-size: 14.5px; color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); margin-inline: auto; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }

/* ---- Hero -------------------------------------------------------- */
.hero { padding-top: clamp(140px, 18vw, 200px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.hero-grid > * { min-width: 0; }   /* long rotating word wraps instead of widening the column / shrinking the terminal */
.hero-h1 { font-size: clamp(28px, 4.5vw, 54px); line-height: 1.12; }
.hero-kicker {
  display: block; font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(17px, 2.3vw, 25px); color: var(--text-2);
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.rot-line { display: block; min-height: 1.34em; }   /* single line, fixed height -> no jump */
.rot {
  display: inline-block; white-space: nowrap; padding-bottom: 0.12em;  /* one line; room for p/g descenders */
  will-change: opacity, transform;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  background: linear-gradient(100deg, var(--accent) 8%, #D9F99D 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* rotator stays single-line (nowrap) at all widths -> consistent height */
.hero .lead { max-width: 540px; font-size: clamp(16.5px, 1.8vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta .item { display: flex; flex-direction: column; }
.hero-meta .num { font-family: var(--ff-display); font-size: 28px; font-weight: 600; color: var(--text); }
.hero-meta .lbl { font-size: 12.5px; color: var(--muted); font-family: var(--ff-mono); letter-spacing: 0.04em; }

/* terminal card */
.terminal {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19,28,43,0.9), rgba(11,15,23,0.92));
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.terminal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(163,230,53,0.06), transparent 40%);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c3647; }
.term-bar .dot:nth-child(1) { background: #ff5f57; } .term-bar .dot:nth-child(2) { background: #febc2e; } .term-bar .dot:nth-child(3) { background: #28c840; }
.term-bar .tt { margin-left: 10px; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
.term-body { padding: 20px 20px 24px; font-family: var(--ff-mono); font-size: 13.5px; line-height: 1.85; height: 352px; overflow: hidden; }
@media (max-width: 940px) { .term-body { height: auto; min-height: 320px; } }
.term-body .line { white-space: pre-wrap; }
.term-body .prompt { color: var(--accent); }
.term-body .path { color: #7dd3fc; }
.term-body .ok { color: var(--accent); }
.term-body .crit { color: var(--danger); }
.term-body .dim { color: var(--muted); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -2px; animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Marquee trust bar ------------------------------------------ */
.trust { padding-block: 40px; border-block: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.trust .label { text-align: center; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.cred {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  font-family: var(--ff-mono); font-size: 13.5px; color: var(--text-2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cred:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.cred b { color: var(--accent); font-weight: 700; }

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

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 28px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-line), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: 20px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card .tag { margin-top: 18px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); }

/* ---- Stats band -------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 32px 26px; }
.stat .n { font-family: var(--ff-display); font-size: clamp(34px, 4.5vw, 50px); font-weight: 600; color: var(--text); line-height: 1; }
.stat .n .accent { color: var(--accent); }
.stat .d { color: var(--muted); margin-top: 10px; font-size: 14.5px; }

/* ---- Process ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.step .k { font-family: var(--ff-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---- About ------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.portrait { position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,11,17,0.55)); }
.portrait .badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border-radius: 100px; background: rgba(8,11,17,0.7); border: 1px solid var(--accent-line);
  backdrop-filter: blur(8px); font-family: var(--ff-mono); font-size: 12.5px; color: var(--accent);
}
.about-grid .lead { max-width: none; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip { font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-2); padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); }

/* ---- Testimonials ----------------------------------------------- */
.quote { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; position: relative; }
.quote .mark { font-family: var(--ff-display); font-size: 60px; line-height: 0.6; color: var(--accent-line); height: 28px; }
.quote p { color: var(--text); font-size: 16.5px; margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--ff-display); font-weight: 600; }
.quote .who b { display: block; font-size: 15px; }
.quote .who span { font-size: 13px; color: var(--muted); }

/* ---- Pricing ----------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; }
.price.feat { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(163,230,53,0.06), var(--surface)); box-shadow: var(--shadow); }
.price .pk { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price.feat .pk { color: var(--accent); }
.price .amt { font-family: var(--ff-display); font-size: 40px; font-weight: 600; margin: 14px 0 4px; }
.price .amt small { font-size: 15px; color: var(--muted); font-family: var(--ff-body); font-weight: 400; }
.price .pdesc { color: var(--text-2); font-size: 14.5px; min-height: 44px; }
.price ul.feats { margin: 22px 0 26px; display: grid; gap: 11px; }
.price ul.feats li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.price ul.feats li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.price .btn { margin-top: auto; }

/* ---- Blog teaser ------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.post:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.post .cat { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.post h3 { font-size: 19px; margin: 12px 0 10px; }
.post p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.post .date { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--ff-mono); }

/* ---- CTA --------------------------------------------------------- */
.cta-box { position: relative; border: 1px solid var(--accent-line); border-radius: var(--radius-l); padding: clamp(38px, 6vw, 70px); text-align: center; overflow: hidden; background: linear-gradient(180deg, rgba(163,230,53,0.07), var(--surface)); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -30%, var(--accent-soft), transparent 70%); pointer-events: none; }
.cta-box h2 { font-size: clamp(28px, 4.4vw, 46px); position: relative; }
.cta-box .lead { margin-inline: auto; max-width: 560px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }

/* ---- Footer ------------------------------------------------------ */
footer { border-top: 1px solid var(--line); padding-block: 56px 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--text-2); font-size: 14.5px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-family: var(--ff-mono); }

/* ---- Reveal animations ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .terminal { order: -1; }
  .cols-3, .steps, .price-grid, .posts { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  body.menu-open { overflow: hidden; }
  .mobile-menu { position: fixed; inset: 76px 14px auto; z-index: 49; display: grid; gap: 4px;
    padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
    background: rgba(8,11,17,0.96); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(0.98); pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .mobile-menu.show { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { padding: 13px 14px; border-radius: 11px; font-size: 16px; color: var(--text-2); }
  .mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
  .mobile-menu .btn { margin-top: 8px; }
  .cols-2, .cols-3, .steps, .price-grid, .posts, .stats, .foot-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px 24px; }
}
.mobile-menu { display: none; }
@media (max-width: 720px) { .mobile-menu { display: grid; } }

/* =================================================================
   BLOG  (index + article)
   ================================================================= */
.subpage { padding-top: clamp(116px, 15vw, 156px); }

/* breadcrumb */
.crumb { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--text-2); } .crumb a:hover { color: var(--accent); }

/* --- Blog index grid --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.blog-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .cat { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.blog-card h3 { font-size: 19px; margin: 11px 0 9px; line-height: 1.25; }
.blog-card p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.blog-card .date { margin-top: 18px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); }

/* --- Featured (first) post --- */
.blog-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); margin-bottom: 26px; transition: border-color 0.35s var(--ease); }
.blog-feature:hover { border-color: var(--accent-line); }
.blog-feature .thumb { overflow: hidden; min-height: 280px; }
.blog-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-feature:hover .thumb img { transform: scale(1.04); }
.blog-feature .body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.blog-feature .cat { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.blog-feature h2 { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 12px; }
.blog-feature p { color: var(--text-2); font-size: 16px; }
.blog-feature .date { margin-top: 20px; font-family: var(--ff-mono); font-size: 13px; color: var(--muted); }

/* --- Article --- */
.article-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 40px); text-align: center; }
.article-head .cat { display: inline-block; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding: 6px 13px; border: 1px solid var(--accent-line); border-radius: 100px; background: var(--accent-soft); }
.article-head h1 { font-size: clamp(30px, 5vw, 52px); margin: 20px 0 18px; line-height: 1.08; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; font-family: var(--ff-mono); font-size: 13.5px; color: var(--muted); }
.article-meta .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--ff-display); font-size: 12px; font-weight: 600; }
.article-meta .who { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.article-cover { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* prose */
.prose { max-width: 720px; margin: 0 auto; font-size: 17.5px; line-height: 1.78; color: var(--text-2); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--ff-display); color: var(--text); font-size: clamp(23px, 3vw, 30px); margin-top: 2em; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--ff-display); color: var(--text); font-size: 21px; margin-top: 1.6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: border-color 0.2s, color 0.2s; word-break: break-word; }
.prose a:hover { color: #D9F99D; border-color: var(--accent); }
.prose code { font-family: var(--ff-mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: #D9F99D; }
.prose .cmd { font-family: var(--ff-mono); font-size: 0.9em; color: #7dd3fc; font-style: normal; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol::marker, .prose ol > li::marker { color: var(--accent); }
.prose figure { margin: 2em auto; }
.prose figure img { width: 100%; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--bg-2); }
.prose figure.narrow { max-width: 520px; }
.prose figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; font-family: var(--ff-mono); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; color: var(--text); font-size: 19px; }

/* article footer / author + share */
.article-foot { max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box .pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 1px solid var(--accent-line); flex: none; }
.author-box h4 { font-family: var(--ff-display); font-size: 17px; }
.author-box p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }

@media (max-width: 940px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature .thumb { min-height: 220px; aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
  .author-box { flex-direction: column; text-align: center; }
}

/* --- prose: code blocks + tables (long technical posts) --- */
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; overflow-x: auto; font-family: var(--ff-mono); font-size: 13.5px; line-height: 1.7; color: var(--text); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.03em; }
.prose td { color: var(--text-2); }

/* --- "So arbeite ich" video section --- */
.video-wrap { max-width: 960px; margin: 0 auto; }
.video-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--accent-line); opacity: .4; }

/* --- mobile overflow & hero sizing fixes --- */
@media (max-width: 940px) {
  .hero-grid > * { min-width: 0; }          /* let grid children shrink, stop terminal forcing page width */
}
@media (max-width: 720px) {
  .term-body { font-size: 12px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .term-body .line { white-space: pre; }    /* keep ASCII aligned; scroll inside the box, not the page */
  .eyebrow { white-space: normal; }
}
@media (max-width: 560px) {
  .nav-cta .btn-primary { display: none; }  /* logo + hamburger only; CTA lives in the menu */
  .hero-h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .rot-line { min-height: 1.34em; }
}

/* =================================================================
   CONTACT FORM
   ================================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info .lead { max-width: 420px; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 13px; color: var(--text-2); font-size: 15.5px; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form { border: 1px solid var(--line); border-radius: var(--radius-l); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 14px;
  width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237E8A9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); cursor: pointer; }
.field-check a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn-label { display: inline-block; }

.form-status { border-radius: var(--radius-s); padding: 13px 16px; font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.form-status.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.form-status.err { color: #FCA5A5; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.1); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
