/* masaaki.tech — one stylesheet for every page. White, red, black. */

:root {
  --red: #d0142c;
  --red-dark: #ad0f24;
  --red-2: #f05264;
  --red-tint: #fff7f8;
  --black: #121212;
  --ink: #171717;
  --muted: #62666d;
  --line: #e5e5e5;
  --grid: #f1f1f1;
  --soft: #fafafa;
  --radius: 12px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font: 17px/1.65 var(--font);
  color: var(--ink);
  background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}
body.plain { background-image: none; } /* blog pages: plain white, no grid */
/* Text can't be selected or copied (see site.js), except in form fields and code blocks */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, pre, code { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── Buttons & labels ─────────────────────────────────── */
.btn { display: inline-block; font: 700 15px/1.2 var(--font); padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); }
.btn.out { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn.out:hover { background: var(--ink); color: #fff; }
.label { display: inline-block; font: 600 13px/1.4 var(--mono); color: var(--red); background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px; }

/* ── Header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo { font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.logo i { width: 12px; height: 12px; background: var(--red); }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 15px; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav .btn { padding: 9px 16px; }
.site-nav { margin-left: auto; }
/* Language switch (EN / FR / TR), next to the menu */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 18px; padding-left: 16px; border-left: 1px solid var(--line); font: 600 12px/1 var(--mono); }
.lang-switch a { padding: 8px 6px; color: var(--muted); border-radius: 4px; }
.lang-switch a:hover { color: var(--ink); background: var(--soft); }
.lang-switch a[aria-current] { color: var(--red); }
.posts-note { margin-top: 10px; font: 13px var(--mono); color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle .bars { top: 19px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 80px 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 22px 0; }
h1 mark { background: linear-gradient(transparent 62%, #ffd0d6 62%); color: inherit; }
h1.long { font-size: clamp(31px, 4.2vw, 52px); } /* longer headlines (e.g. Turkish, French) a bit smaller, so the words never have to be cut */
.lead { color: var(--muted); font-size: 19px; max-width: 52ch; }
.actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 460px; }
.who img { width: 54px; height: 54px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 30%; } /* flex: none = never squeezed into an oval by the text next to it */
.who b { display: block; font-size: 16px; }
.who span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: balance; }
.who span i { font-style: normal; white-space: nowrap; } /* lines only break between the parts, never inside one */
@media (max-width: 360px) { .who span i { white-space: normal; } } /* very small phones: a long part (e.g. the French title) may break, so the photo stays round and nothing sticks out */

/* Example report card */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .18); overflow: hidden; }
.report-top { background: var(--black); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; font: 13px var(--mono); }
.report-top span { color: #9a9a9a; }
.report-body { padding: 22px 22px 8px; }
.report-meta { display: flex; justify-content: space-between; gap: 12px; font: 13px var(--mono); color: var(--muted); margin-bottom: 18px; }
.sev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.sev div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sev b { display: block; font-size: 24px; line-height: 1.1; }
.sev span { font: 12px var(--mono); color: var(--muted); }
.sev .c b { color: var(--red); }
.sev .h b { color: var(--red-2); }
.sev .md b { color: #333; }
.sev .l b { color: #999; }
.finding { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.finding small { display: block; color: var(--muted); font-size: 13px; }
.sev-badge { font: 700 11px var(--mono); text-transform: uppercase; text-align: center; padding: 4px 0; border-radius: 4px; color: #fff; }
.sev-badge.c { background: var(--red); }
.sev-badge.h { background: var(--red-2); }
.sev-badge.md { background: #333; }
.report-foot { background: var(--soft); border-top: 1px solid var(--line); padding: 12px 20px; font: 12px var(--mono); color: var(--muted); }

/* Stats strip */
.strip { background: var(--black); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .wrap > * { display: block; padding: 24px 0 24px 24px; border-left: 1px solid #2a2a2a; }
.strip .wrap > :first-child { border-left: 0; padding-left: 0; }
.strip a span i { font-style: normal; color: var(--red-2); }
.strip a:hover b { color: var(--red-2); }
.strip a:hover span { color: #fff; }
.strip b { font-size: 26px; display: block; letter-spacing: -.02em; }
.strip span { font: 13px var(--mono); color: #a5a5a5; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.tight { padding-top: 0; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.sh p { color: var(--muted); max-width: 46ch; }
h2 { font-size: 40px; letter-spacing: -.035em; line-height: 1.1; margin-top: 14px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* Services list */
.svc { overflow: hidden; }
.svc .row { display: grid; grid-template-columns: 110px 1.3fr 1fr; gap: 32px; padding: 30px 32px; border-top: 1px solid var(--line); }
.svc .row:first-child { border-top: 0; }
.svc .row.hl { background: var(--red-tint); }
.svc .id { font: 600 13px var(--mono); color: var(--red); padding-top: 4px; }
.svc h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 16px; }
.arrow-list { list-style: none; font-size: 15px; display: grid; gap: 6px; align-content: start; }
.arrow-list li::before { content: "→ "; color: var(--red); font-family: var(--mono); }
.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--red); font-size: 15px; }
.more:hover { text-decoration: underline; }

/* Plain white band, no grid (e.g. latest writeups on the homepage) */
.section.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Dark band (e.g. skills on the homepage) */
.section.dark { background: var(--black); color: #fff; }
.dark .label { background: transparent; border-color: #333; color: #ff6b7d; }
.dark h2 { color: #fff; }
.dark .sh p { color: #a5a5a5; }
.dark .box { background: #181818; border-color: #2a2a2a; }
.dark .spec .yrs { border-color: #2a2a2a; }
.dark .spec .yrs p { color: #a5a5a5; }
.dark .spec td { border-color: #2a2a2a; color: #ececec; }
.dark .spec td:first-child { color: #8d8d8d; }

/* Skills spec sheet */
.spec { display: grid; grid-template-columns: 300px 1fr; }
.spec .yrs { padding: 36px; border-right: 1px solid var(--line); }
.spec .yrs b { font-size: 96px; line-height: .9; letter-spacing: -.05em; color: var(--red); display: block; }
.spec .yrs p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.spec table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec td { padding: 15px 28px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child td { border-top: 0; }
.spec td:first-child { font: 600 13px var(--mono); color: var(--muted); width: 1%; white-space: nowrap; padding-top: 18px; } /* label column as wide as its longest label, never broken */
.spec tr:last-child td { padding-bottom: 30px; } /* room for the dancing cat that overlaps the bottom corner */

/* About me ("Beyond the terminal"): small pinned photos on the left, big photo + text on the right.
   Clicking a pinned photo swaps the big photo and the text. */
.about { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "intro main" "board main"; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 32px; align-items: start; }
.about-intro { grid-area: intro; }
.about-hint { font: 13px var(--mono); color: var(--muted); margin-top: 12px; }
.about-board { grid-area: board; display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 30px 26px; padding: 14px 6px 24px; }
.pin-card {
  position: relative; display: block; width: 100%; padding: 10px 10px 12px; border: 0; background: #fff; cursor: pointer; text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease, box-shadow .3s ease;
}
.pin-card:nth-child(even) { margin-top: 26px; }
.pin-card:hover { transform: rotate(0deg) translateY(-3px); }
.pin-card.on { transform: rotate(0deg) translateY(-4px) scale(1.03); box-shadow: 0 16px 32px rgba(0, 0, 0, .18), 0 0 0 2px var(--red); }
.pin {
  position: absolute; top: -9px; left: 50%; z-index: 2; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a98, var(--red) 55%, #7d0a1a); box-shadow: 0 3px 5px rgba(0, 0, 0, .35);
}
.pin-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pin-cap { display: block; margin-top: 8px; font: 13px var(--mono); color: var(--ink); }
.pin-card.on .pin-cap { color: var(--red); font-weight: 600; }
.about-main { grid-area: main; }
.about-panels { margin-bottom: 22px; }
.about-panel { display: none; } /* only the active text is shown, at its own height: it always starts at the top, with the photo right under it */
.about-panel.on { display: block; animation: about-in .4s ease both; }
@keyframes about-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.about-count { font: 600 13px var(--mono); color: var(--red); margin-bottom: 8px; }
.about-panel h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 8px; }
.about-panel p:not(.about-count) { color: var(--muted); font-size: 17px; }
.about-panel p:not(.about-count) + p { margin-top: 12px; }
.about-panel p.about-note { margin: -2px 0 12px; font: italic 13px/1.5 var(--mono); color: var(--muted); }
.about-panel p.about-note + p { margin-top: 0; }
.hashtag { color: #1d9bf0; font-weight: 600; white-space: nowrap; } /* #KnowledgeShouldBeFree in the about text */
.about-panel p a.person { color: #1d9bf0; white-space: nowrap; } /* people's names ('people' in about.php), same blue as the hashtag */
.about-panel p a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about-stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .3); touch-action: pan-y; }
.about-topic { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .45s ease, visibility .45s; }
.about-topic.on { visibility: visible; opacity: 1; pointer-events: auto; }
.about-big { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.about-big.on { opacity: 1; }
.about-topic.on .about-big.on { visibility: visible; } /* only the shown photo of the shown topic can be clicked or tabbed into */
.credit {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: rgba(255, 255, 255, .85); font: 11px/1.4 var(--mono);
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.credit-friend { padding-top: 48px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.credit-friend b { display: block; font: 700 14px/1.3 var(--font); color: #fff; margin-bottom: 2px; }
.credit-friend b a { text-decoration: none; }
.credit-friend b a:hover { text-decoration: underline; }
.credit-friend span { display: block; color: rgba(255, 255, 255, .85); }
.credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* The whole photo is shown (no cropping); a blurred copy of it fills the rest of the square */
.about-big img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-big .about-fill { object-fit: cover; filter: blur(22px) brightness(.55); transform: scale(1.15); }
.about-big .about-photo { object-fit: contain; }
/* Gallery inside a topic */
.gal-btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); font: 26px/1 var(--font); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.gal-btn:hover { background: #fff; color: var(--red); }
.gal-btn.prev { left: 14px; }
.gal-btn.next { right: 14px; }
.gal-count { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(18, 18, 18, .8); color: #fff; font: 12px var(--mono); padding: 4px 10px; border-radius: 999px; }
.pin-photo { position: relative; }
.pin-more { position: absolute; right: 6px; bottom: 6px; background: rgba(18, 18, 18, .82); color: #fff; font: 11px var(--mono); padding: 2px 7px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .pin-card, .about-big, .about-topic { transition: none; }
  .about-panel.on { animation: none; }
}

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; padding: 24px; transition: border-color .15s; }
.post:hover { border-color: var(--ink); }
.post .tag { font: 600 12px var(--mono); color: var(--red); margin-bottom: 10px; }
.post h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 8px; }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.post .more { margin-top: 16px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { padding: 28px 30px; }
.quote p { font-size: 18px; line-height: 1.55; }
.quote p::before { content: "“"; color: var(--red); font-weight: 800; }
.quote p::after { content: "”"; color: var(--red); font-weight: 800; }
.quote span { display: block; margin-top: 14px; font: 13px var(--mono); color: var(--muted); }

/* Contact & forms */
.form { display: grid; gap: 16px; align-content: start; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 13px var(--mono); color: var(--muted); }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  font: 16px var(--font); color: var(--ink); background: #fff; border: 1px solid #d7d7d7; border-radius: 6px; padding: 12px 13px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { font-size: 13px; color: var(--red); min-height: 0; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form .status { font-size: 15px; }
.form.sent .status { color: #146c2e; font-weight: 600; }
.form .status.error { color: var(--red); }
.form.sending .btn { opacity: .6; pointer-events: none; }


/* Closing contact block (dark, sits right above the footer) */
.end { background: var(--black); color: #fff; padding: 112px 0 96px; border-bottom: 1px solid #262626; }
.end-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.end-label { font: 600 13px var(--mono); color: var(--red-2); }
.end h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 20px; }
.end h2 mark { background: none; color: var(--red-2); }
.end-intro > p { color: #a5a5a5; font-size: 18px; max-width: 38ch; }
.end-mail { display: inline-flex; gap: 10px; align-items: center; margin-top: 36px; padding-bottom: 6px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.02em; border-bottom: 2px solid var(--red); overflow-wrap: anywhere; }
.end-mail span { color: var(--red-2); transition: transform .2s; }
.end-mail:hover span { transform: translateX(4px); }
.end-status { display: flex; align-items: center; gap: 10px; margin-top: 28px; font: 13px var(--mono); color: #a5a5a5; }
.end-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 4px rgba(60, 207, 110, .15); }

.form.dark { gap: 30px; }
.form.dark .two { gap: 30px; }
.form.dark .field { gap: 4px; }
.form.dark .field label { color: #8a8a8a; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.form.dark .field label b { color: var(--red-2); margin-right: 6px; font-weight: 600; }
.form.dark .field label i { color: var(--red-2); }
.form.dark .field input, .form.dark .field select, .form.dark .field textarea {
  background: transparent; color: #fff; border: 0; border-bottom: 1px solid #3a3a3a; border-radius: 0; padding: 12px 0; font-size: 18px;
}
.form.dark .field textarea { min-height: 120px; }
.form.dark .field select option { color: var(--ink); background: #fff; }
.form.dark ::placeholder { color: #5c5c5c; }
.form.dark .field input:focus, .form.dark .field select:focus, .form.dark .field textarea:focus { outline: 0; border-bottom-color: var(--red-2); box-shadow: 0 1px 0 var(--red-2); }
.form.dark .field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px var(--black) inset; }
.form.dark .field.invalid input, .form.dark .field.invalid select, .form.dark .field.invalid textarea { border-bottom-color: var(--red-2); }
.form.dark .field .err { color: var(--red-2); }
.form.dark .btn { justify-self: stretch; padding: 18px 22px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; border-radius: 4px; }
.form.dark .btn span { transition: transform .2s; }
.form.dark .btn:hover span { transform: translateX(4px); }
.form.dark .status { color: #a5a5a5; }
.form.dark.sent .status { color: #5fd38a; }
.form.dark .status.error { color: var(--red-2); }

/* ── Pentest page ─────────────────────────────────────── */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 32px; }
.card .id { font: 600 13px var(--mono); color: var(--red); }
.card h3 { font-size: 22px; letter-spacing: -.02em; margin: 10px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips li { font: 12px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; background: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 28px 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step:nth-child(-n+3) { border-top: 0; }
.step:nth-child(3n+1) { border-left: 0; }
.step b { font: 600 13px var(--mono); color: var(--red); }
.step h3 { font-size: 18px; margin: 6px 0; }
.step p { color: var(--muted); font-size: 15px; }

.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.coverage details { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.coverage details[open] { border-color: var(--ink); }
.coverage summary { cursor: pointer; list-style: none; padding: 14px 16px; font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.coverage summary::-webkit-details-marker { display: none; }
.coverage summary span { margin-left: auto; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.coverage summary::after { content: "+"; font-family: var(--mono); color: var(--red); }
.coverage details[open] summary::after { content: "−"; }
.coverage ul { list-style: none; padding: 0 16px 14px; display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
.coverage li::before { content: "→ "; color: var(--red); font-family: var(--mono); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust .box { padding: 26px; }
.trust b { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--red); line-height: 1.1; }
.trust p { color: var(--muted); font-size: 15px; margin-top: 8px; }
/* the certification card: link to verify it */
.trust .verify { font: 13px/1.5 var(--mono); margin-top: 14px; }
.trust .verify a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.trust .verify span { display: block; color: var(--muted); }
/* Boxes on the left (2 x 2), certificate on the right */
.trust-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.trust-layout .trust { grid-template-columns: 1fr 1fr; }
.cert-wrap { margin: 0; }
.cert { position: relative; display: block; container-type: inline-size; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); transition: transform .3s ease, box-shadow .3s ease; }
.cert:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .55); }
.cert img { width: 100%; height: auto; }
/* the details sit where the official certificate shows them (positions in % of the image) */
.cert span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; color: #111; font-weight: 700; line-height: 1; font-family: "Source Sans Pro", "Source Sans 3", var(--font); }
.cert-name { left: 66.4%; top: 53.8%; font-size: 3.4cqw; }
.cert-date { left: 87.9%; top: 67.9%; font-size: 1.75cqw; }
.cert-id { left: 66.9%; top: 87.6%; font-size: 1.55cqw; transform: translate(0, -50%) !important; }
.cert-wrap figcaption { margin-top: 12px; text-align: center; font: 13px var(--mono); color: var(--muted); }
.cert-wrap figcaption a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cert, .cert:hover { transition: none; transform: none; } }

.deliv { list-style: none; }
.deliv li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px 32px; border-top: 1px solid var(--line); }
.deliv li:first-child { border-top: 0; }
.deliv b { font: 600 13px var(--mono); color: var(--red); padding-top: 3px; }
.deliv h3 { font-size: 18px; margin-bottom: 4px; }
.deliv p { color: var(--muted); font-size: 16px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 32px; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 32px 24px; color: var(--muted); max-width: 80ch; }

/* ── Blog index ───────────────────────────────────────── */
.blog-hero { padding: 72px 0 40px; }
.blog-hero h1 { max-width: 18ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { font: 600 14px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip span { font: 12px var(--mono); color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--black); border-color: var(--black); color: #fff; }
.chip.on span { color: #bdbdbd; }
.blog-list { padding-bottom: 96px; }
.blog-group { padding-top: 40px; }
.blog-group h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.blog-group h2::before { content: ""; width: 10px; height: 10px; background: var(--red); }
.blog-group[hidden] { display: none; }

/* ── 404 ──────────────────────────────────────────────── */
.notfound { padding: 140px 0; text-align: center; }
.notfound h1 { margin: 22px auto; max-width: 16ch; }
.notfound .lead { margin: 0 auto; }
.notfound .actions { justify-content: center; }

/* Dancing cat (Giphy), a small tilted sticker */
.dancing-cat { margin: 0; background: #fff; padding: 6px 6px 4px; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transform: rotate(4deg); }
.dancing-cat img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #f3f3f3; }
.dancing-cat figcaption { font: 10px/1.6 var(--mono); text-align: right; padding-top: 3px; }
.dancing-cat a { color: var(--muted); }
.dancing-cat a:hover { color: var(--red); }
.dancing-cat.in-skills { position: relative; z-index: 1; width: 150px; margin: -18px 10px 0 auto; }
.section.skills { padding-bottom: 64px; }
.dancing-cat.in-404 { width: 200px; margin: 0 auto 28px; transform: rotate(-3deg); box-shadow: 0 16px 32px rgba(0, 0, 0, .15); border: 1px solid var(--line); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--black); color: #a5a5a5; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.foot-brand .logo { color: #fff; font-size: 20px; }
.foot-brand p { margin: 16px 0 24px; font-size: 15px; max-width: 34ch; }
.foot-brand .btn { padding: 11px 18px; font-size: 14px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
.foot-col span { font: 12px var(--mono); color: #6b6b6b; }
.foot-h { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 6px; }
.foot-col a { overflow-wrap: anywhere; }
.foot-col a:hover, .foot-bottom a:hover { color: #fff; }
.foot-col a span { color: var(--red-2); font-size: 12px; }
.foot-blog { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid #262626; }
.foot-blog .foot-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.foot-blog .foot-h a { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--red-2); }
.foot-blog-cols { columns: 4 220px; column-gap: 48px; }
.foot-blog-group { margin-bottom: 26px; }
.foot-blog-group + .foot-blog-group { break-inside: avoid; }
.foot-blog-group summary { font: 600 12px var(--mono); color: var(--red-2); margin-bottom: 10px; break-after: avoid; list-style: none; pointer-events: none; }
.foot-blog-group summary::-webkit-details-marker { display: none; }
.foot-blog-group ul { list-style: none; }
.foot-blog-group li { font-size: 14px; line-height: 1.35; padding: 4px 0; break-inside: avoid; }
.foot-blog-group a:hover { color: #fff; }
/* Big name at the bottom: one line that fills exactly the width of the footer content.
   The text is ~10.5x as wide as its font size, so 9.25% of the content width (cqw) fills it, with a hair of margin. */
.foot-word { container-type: inline-size; font-weight: 800; line-height: .8; color: #2c2c2c; white-space: nowrap; user-select: none; overflow: hidden; }
.foot-word { display: flex; align-items: flex-end; gap: 1.6cqw; }
.foot-word span { display: block; font-size: clamp(26px, 7.6vw, 94px); font-size: 8.4cqw; letter-spacing: -.06em; padding-bottom: .06em; }
.foot-badge { flex-shrink: 0; display: block; padding-bottom: .9cqw; } /* CRTP badge before the name, links to the certificate */
.foot-badge img { display: block; width: auto; height: 9.6cqw; transition: filter .2s ease; }
.foot-badge:hover img { filter: brightness(1.2); }
.foot-word em { font-style: normal; color: var(--red-dark); opacity: .55; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #262626; font: 12px var(--mono); color: #6b6b6b; position: relative; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-legal button:hover { color: #fff; }

/* ── Cookie banner (footer.php + site.js): Refuse and Accept look exactly the same ── */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; background: #121212; color: #d6d6d6; /* fixed colours: the same banner on the light pages and the dark pentest page */ border: 1px solid #2a2a2a; border-radius: 10px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-size: 14px; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-btns { display: flex; gap: 10px; margin-top: 14px; }
.consent-btns button { flex: 1; font: 700 14px/1.2 var(--font); padding: 11px 16px; border-radius: 6px; cursor: pointer; background: #fff; color: #121212; border: 1px solid #fff; }
.consent-btns button:hover { background: #e9e9e9; }
/* Privacy policy page */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin: 14px 0 16px; }
.legal .lead { font-size: 19px; color: var(--muted); }
.legal h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p { color: #3c3f44; }
.legal p + p { margin-top: 12px; }
.legal p a, .link-btn { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.legal-date { margin-top: 40px; font: 13px var(--mono); color: var(--muted) !important; }
.form-privacy { font-size: 13px; color: #8d8d8d; margin-top: 4px; }
.form-privacy a { color: #c9c9c9; text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1000px) {
  .trust-layout { grid-template-columns: 1fr; }
  .cert-wrap { max-width: 640px; width: 100%; margin: 0 auto; }
  .coverage { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 4px; padding-left: 0; border-left: 0; }
  .lang-switch a { padding: 10px 7px; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav .btn { margin-top: 14px; padding: 13px 16px; }
  .nav-open .site-nav { display: flex; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .spec, .cards-2, .quotes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; grid-template-areas: "intro" "board" "main"; row-gap: 20px; }
  /* phone: photos to tap come first, then the big photo right under them (so a tap shows its result at once),
     then only the active text (its own height, no empty gap) */
  .about-main { display: flex; flex-direction: column; }
  .about-stage { order: -1; margin-bottom: 22px; }
  .about-panels { margin-bottom: 0; }
  .about-hint { display: none; }
  .about-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; padding: 14px 2px 0; }
  .pin-card { padding: 5px 5px 6px; }
  .pin-card:nth-child(even) { margin-top: 10px; }
  .pin { width: 13px; height: 13px; top: -6px; margin-left: -6.5px; }
  .pin-cap { font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .about-panel h3 { font-size: 22px; }
  .pin-more { display: none; }
  .gal-btn { width: 38px; height: 38px; margin-top: -19px; font-size: 22px; }
  .hero .wrap { gap: 40px; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .wrap > :nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip .wrap > :nth-child(n+3) { border-top: 1px solid #2a2a2a; }
  .strip .wrap > * { padding-top: 20px; padding-bottom: 20px; padding-right: 8px; }
  .section { padding: 64px 0; }
  .sh { flex-direction: column; align-items: start; }
  h2 { font-size: 32px; }
  .svc .row { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .spec .yrs { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .spec td { display: block; padding: 4px 24px; }
  .spec td:first-child { padding-top: 16px; width: auto; }
  .spec td:last-child { padding-bottom: 14px; }
  .spec tr:last-child td:first-child { padding-bottom: 4px; }
  .spec tr:last-child td:last-child { padding-bottom: 34px; }
  .form .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .end { padding: 72px 0 64px; }
  .end-grid { grid-template-columns: 1fr; gap: 48px; }
  .form.dark, .form.dark .two { gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 56px; padding-bottom: 40px; }
  .foot-brand, .foot-col:last-child { grid-column: 1 / -1; }
  .foot-blog { padding-bottom: 40px; }
  .step { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .step:first-child { border-top: 0 !important; }
  .coverage, .trust { grid-template-columns: 1fr; }
  .deliv li { grid-template-columns: 1fr; gap: 4px; padding: 22px 24px; }
  .faq summary { padding: 20px 24px; font-size: 17px; }
  .faq details p { padding: 0 24px 20px; }
  .notfound { padding: 88px 0; }
  .dancing-cat.in-skills { width: 124px; margin-right: 4px; }
  .dancing-cat.in-404 { width: 170px; }
  /* bigger tap areas for footer links (fingers, not mouse pointers) */
  .foot-col { gap: 0; }
  .foot-col a { padding: 9px 0; }
  .foot-col span { margin-top: 2px; }
  .foot-bottom a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .more { padding: 8px 0; margin-top: 6px; }
  /* footer article list: open by default, tap a category row to fold it */
  .foot-blog { padding-top: 32px; }
  .foot-blog .foot-h { margin-bottom: 8px; }
  .foot-blog-cols { columns: 1; }
  .foot-blog-group { margin-bottom: 0; border-bottom: 1px solid #262626; }
  .foot-blog-group summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin: 0; font-size: 13px; }
  .foot-blog-group summary::after { content: '+'; font: 400 20px/1 var(--font); color: #8a8a8a; }
  .foot-blog-group[open] summary::after { content: '−'; }
  .foot-blog-group ul { padding-bottom: 12px; }
  .foot-blog-group li { padding: 0; }
  .foot-blog-group li a { display: block; padding: 8px 0; }
  /* blog filters: one row you swipe sideways instead of four rows of chips */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 28px -20px 0; padding: 0 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; padding: 10px 16px; }
}
@media (max-width: 520px) {
  /* main buttons: full width, same size, easy to hit with a thumb */
  .actions .btn { flex: 1 1 100%; padding: 15px 22px; }
  .trust-layout .trust { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sev { grid-template-columns: 1fr 1fr; }
  .finding { grid-template-columns: 1fr; gap: 6px; }
  .sev-badge { justify-self: start; padding: 4px 8px; }
}

/* ── Pentest page: dark "terminal" theme ──────────────────
   Turned on with 'body_class' => 'hacker' in a page's $page settings.
   Same red as the rest of the site; dark background, mono accents, a little glow. */
.hacker {
  --ink: #ececec;
  --muted: #9da0a6;
  --line: #24252a;
  --grid: #141417;
  --soft: #131316;
  --red-tint: rgba(208, 20, 44, .08);
  color: var(--ink);
  background-color: #0a0a0c;
  background-image:
    radial-gradient(ellipse 70% 520px at 50% -80px, rgba(208, 20, 44, .2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-repeat: no-repeat, repeat, repeat;
}
.hacker ::selection { background: var(--red); color: #fff; }

/* header */
.hacker .site-header { background: rgba(10, 10, 12, .88); border-bottom-color: #1f2024; }
.hacker .site-nav { color: #a3a6ac; }
.hacker .site-nav a:not(.btn):hover { color: #fff; }
.hacker .lang-switch { border-left-color: #26272c; }
.hacker .lang-switch a:hover { color: #fff; background: #16161a; }
.hacker .lang-switch a[aria-current] { color: var(--red-2); }

/* buttons, labels */
.hacker .btn.red { box-shadow: 0 3px 10px -6px rgba(208, 20, 44, .55); } /* a light red lift, no big glow */
.hacker .btn.out { background: transparent; border-color: #4a4b50; color: #fff; }
.hacker .btn.out:hover { background: #fff; border-color: #fff; color: #0a0a0c; }
.hacker .label { background: rgba(208, 20, 44, .08); border-color: rgba(240, 82, 100, .3); color: #ff6b7d; }
.hacker .label::before { content: "> "; opacity: .7; }

/* hero: terminal prompt with a blinking cursor */
.term { display: inline-flex; max-width: 100%; font: 13px/1.5 var(--mono); color: #d7d7d7; background: #0f0f12; border: 1px solid #26272c; border-radius: 6px; padding: 7px 12px; overflow-wrap: anywhere; }
.term b { color: #3ccf6e; font-weight: 600; }
.term i { color: #6aa8ff; font-style: normal; }
.term .cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -2px; background: var(--red-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .cursor { animation: none; } }
.hacker h1 { color: #fff; }
.hacker h1 mark { color: #fff; background: linear-gradient(transparent 64%, rgba(208, 20, 44, .55) 64%); text-shadow: 0 0 28px rgba(240, 82, 100, .35); }
.hacker .who { border-top-color: #222327; }
.hacker .who img { box-shadow: 0 0 0 2px #0a0a0c, 0 0 0 3px rgba(240, 82, 100, .5); }

/* example report: looks like a terminal window */
.hacker .report { background: #0f0f12; border-color: #26272c; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(208, 20, 44, .5); }
.hacker .report-top { background: #16161a; border-bottom: 1px solid #26272c; }
.hacker .report-top b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 46px; vertical-align: 1px; border-radius: 50%; background: #ff5f57; box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840; }
.hacker .sev div { border-color: #26272c; background: #131316; }
.hacker .sev .md b { color: #d7d7d7; }
.hacker .sev .l b { color: #75777d; }
.hacker .finding { border-top-color: #222327; }
.hacker .sev-badge.md { background: #3a3b41; }
.hacker .report-foot { background: #131316; border-top-color: #222327; }

/* stats strip */
.hacker .strip { background: #0d0d10; border-top: 1px solid #1f2024; border-bottom: 1px solid #1f2024; }
.hacker .strip b { color: #fff; }

/* boxes and cards */
.hacker .box { background: #101013; border-color: var(--line); }
.hacker h2, .hacker h3 { color: #fff; }
.hacker .card { transition: border-color .2s, box-shadow .2s; }
.hacker .card:hover { border-color: rgba(240, 82, 100, .45); box-shadow: 0 0 40px -18px rgba(208, 20, 44, .6); }
.hacker .card .id, .hacker .step b, .hacker .deliv b { color: var(--red-2); }
.hacker .chips li { background: #16161a; border-color: #2a2b30; color: #c9cbd0; }
.hacker .step b::before { content: "["; } .hacker .step b::after { content: "]"; }
.hacker .coverage details { background: #101013; border-color: var(--line); }
.hacker .coverage details:hover { border-color: #3a3b41; }
.hacker .coverage details[open] { border-color: rgba(240, 82, 100, .55); box-shadow: 0 0 30px -16px rgba(208, 20, 44, .6); }
.hacker .coverage summary::after, .hacker .faq summary::after { color: var(--red-2); }
.hacker .coverage li::before { content: "$ "; color: #3ccf6e; }
.hacker .trust .verify a { color: var(--red-2); }
.hacker .cert { box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 0 70px -28px rgba(208, 20, 44, .6); }
.hacker .cert-wrap figcaption a { color: var(--red-2); }
.hacker .trust b { color: var(--red-2); text-shadow: 0 0 24px rgba(240, 82, 100, .35); font-family: var(--mono); letter-spacing: -.04em; }

/* closing request block + form */
.hacker .end { background: #0d0d10; border-top: 1px solid #1f2024; }
.hacker .form.dark .field select option { color: #171717; }

@media (max-width: 860px) {
  .hacker .site-nav { background: #0d0d10; border-bottom-color: #1f2024; }
  .hacker .site-nav a:not(.btn) { color: #ececec; border-bottom-color: #1f2024; }
  .term { font-size: 12px; }
  .hacker .report-top b::before { margin-right: 42px; }
}
