:root {
  --ink: #0a0a0a;
  --panel: #ffffff;
  --panel-2: #e9e8e3;
  --paper: #f3f2ee;
  --white: #ffffff;
  --muted: #676762;
  --line: #cbc9c2;
  --accent: #eb4d2f;
  --accent-2: #eb4d2f;
  --max: 1380px;
  --radius: 22px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

::selection { background: var(--accent); color: #fff; }
.skip-link { background: var(--ink); color: #fff; }

.site-header {
  width: 100%;
  margin: 0;
  padding-inline: clamp(1rem, 3vw, 4rem);
  height: 74px;
  border-bottom: 1px solid #8f8e89;
  background: rgba(243, 242, 238, .92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}

.brand { color: var(--ink); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
}
.brand-logo { width: 112px; max-width: none; }
.brand > span:last-child { font-weight: 500; font-size: .78rem; }
nav { gap: clamp(1.25rem, 3vw, 2.8rem); }
nav a { color: var(--ink); font-size: .86rem; font-weight: 500; }
nav a:hover, nav a:focus-visible { color: var(--accent); }
.nav-cta { border: 0; padding: 0; }
.nav-cta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem; border-radius: 50%; background: var(--accent); }
.nav-toggle { color: var(--ink); border-color: var(--ink); border-radius: 999px; }

.hero {
  min-height: calc(100vh - 74px);
  padding: clamp(3.5rem, 7vw, 7rem) 1rem 4rem;
  background: var(--paper);
}
.hero::before {
  width: min(52vw, 780px);
  height: min(52vw, 780px);
  right: min(-25vw, -260px);
  top: 3%;
  border: 1.2px solid var(--ink);
  box-shadow: none;
  z-index: 0;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  gap: clamp(3rem, 7vw, 8rem);
  position: relative;
  z-index: 1;
}
.hero-copy::before {
  content: "CYBERSÉCURITÉ  ·  RÉSEAUX  ·  SYSTÈMES";
  display: block;
  margin-bottom: 1.9rem;
  font: 500 .67rem/1.4 "DM Mono", monospace;
  letter-spacing: .24em;
}
.eyebrow {
  position: absolute;
  right: 0;
  top: -2.4rem;
  color: var(--ink);
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}
.status-dot { width: 7px; height: 7px; background: var(--accent); box-shadow: none; }
h1 {
  max-width: 800px;
  font-size: clamp(3.6rem, 6.8vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 760;
}
h1 span {
  color: var(--ink);
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -.075em;
  -webkit-text-stroke: 0;
}
.hero-intro { max-width: 680px; color: #4f4f4b; font-size: clamp(1rem, 1.5vw, 1.18rem); margin: 2rem 0 1.7rem; }
.hero-intro::first-line { color: var(--ink); font-weight: 650; }
.button { min-height: 52px; border-radius: 999px; padding: .8rem 1.5rem; font-weight: 650; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #d94228; }
.button-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.quick-facts { border-top-color: #9f9e98; gap: 0; justify-content: stretch; }
.quick-facts li { flex: 1; padding-right: 1.2rem; }
.quick-facts li + li { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.quick-facts strong { color: var(--ink); font-size: 1.3rem; font-weight: 500; }
.quick-facts span { color: var(--muted); font-size: .7rem; }

.identity-card { background: transparent; border: 0; padding: 0; box-shadow: none; transform: none; }
.portrait-wrap { aspect-ratio: 4/5.15; border-radius: var(--radius); background: #d7d5d0; }
.portrait-wrap::after { display: none; }
.portrait-wrap img { filter: grayscale(1) contrast(1.03) blur(var(--portrait-blur, 0px)); object-position: 50% 24%; will-change: filter; }
.portrait-code { display: none; }
.identity-content { position: relative; margin: 1.15rem 0 0; padding: 0 0 0 2.3rem; }
.identity-content::before { content: ""; position: absolute; top: .65rem; left: 0; width: 24px; height: 3px; background: var(--accent); }
.identity-content .mono { display: none; }
.identity-content h2 { color: var(--ink); font-size: 1.08rem; font-weight: 650; }
.identity-content > p:not(.mono) { color: var(--muted); margin: .2rem 0 .65rem; font: 500 .66rem/1.6 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.identity-meta { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: .75rem 2.25rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.identity-meta span { display: grid; gap: .2rem; }
.identity-meta span::before { content: attr(data-label); color: var(--accent); font: .57rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.nerd-widget { margin-top: 1.4rem; padding: 1rem; border-radius: 14px; background: #121310; color: #f8f7f3; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.nerd-widget-head { display: flex; align-items: center; justify-content: space-between; font: .6rem "DM Mono", monospace; letter-spacing: .09em; }
.nerd-widget-head span { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.72); }
.nerd-widget-head i { width: 6px; height: 6px; border-radius: 50%; background: #83d18c; box-shadow: 0 0 0 4px rgba(131,209,140,.12); }
.nerd-widget-head strong { color: #83d18c; font: inherit; }
.nerd-widget-head button { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; letter-spacing: .07em; }
.nerd-widget-head button:hover { color: #fff; }
.signal-scope-frame { position: relative; margin-top: .9rem; overflow: hidden; border-radius: 8px; background: #1c1d19; }
.signal-scope { display: block; width: 100%; height: 70px; }
.signal-grid { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.signal-scope polyline { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(239,79,54,.55)); }
.scope-mark { position: absolute; right: .55rem; bottom: .45rem; color: rgba(255,255,255,.35); font: .48rem "DM Mono", monospace; letter-spacing: .08em; }
.packet-target { position: absolute; z-index: 2; left: 50%; top: 50%; width: 24px; height: 24px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--accent); color: #fff; cursor: crosshair; font: 700 1rem/1 Arial, sans-serif; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(239,79,54,.14), 0 0 18px rgba(239,79,54,.7); animation: packet-pulse .8s ease-in-out infinite alternate; }
.packet-target:active { transform: translate(-50%, -50%) scale(.8); }
@keyframes packet-pulse { to { box-shadow: 0 0 0 10px rgba(239,79,54,0), 0 0 24px rgba(239,79,54,.85); } }
.signal-metrics { display: flex; justify-content: space-between; gap: .75rem; margin: .75rem 0; color: rgba(255,255,255,.42); font: .54rem "DM Mono", monospace; letter-spacing: .06em; }
.signal-metrics b { color: #fff; font-weight: 500; }
.signal-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.1); }
.signal-control { display: grid; grid-template-columns: 1fr auto; gap: .35rem; color: rgba(255,255,255,.5); font: .53rem "DM Mono", monospace; text-transform: uppercase; }
.signal-control input { grid-column: 1 / -1; width: 100%; margin: .1rem 0 0; accent-color: var(--accent); cursor: ew-resize; }
.signal-control output { color: #fff; text-align: right; }
.switch-lab { margin-top: .9rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #1c1d19; }
.network-map { display: grid; grid-template-columns: 38px 1fr 48px 1fr 38px; align-items: center; gap: .3rem; min-height: 68px; padding: .7rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.lab-pc, .lab-switch { display: grid; place-items: center; min-height: 27px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; font: .47rem "DM Mono", monospace; transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.lab-pc:hover, .lab-switch:hover, .lab-pc.active, .lab-switch.active { transform: translateY(-2px); border-color: #fff; color: #fff; }
.lab-switch { min-height: 38px; border-color: var(--accent); color: var(--accent); line-height: 1.05; }.lab-switch small { color: rgba(255,255,255,.4); font-size: .42rem; }
.lab-link { position: relative; height: 2px; background: rgba(255,255,255,.16); overflow: visible; }
.lab-link::before, .lab-link::after { content: ""; position: absolute; top: -7px; left: 0; width: 10px; height: 7px; border-radius: 2px; background: #83d18c; box-shadow: 0 0 8px rgba(131,209,140,.65); opacity: 0; }
.lab-link::before { top: 3px; background: #78c8df; box-shadow: 0 0 8px rgba(120,200,223,.65); }
.switch-lab.connected .lab-pc { border-color: #83d18c; color: #83d18c; box-shadow: 0 0 12px rgba(131,209,140,.22); }
.switch-lab.connected .lab-link::after { animation: switch-packet-forward 3.2s linear infinite; }
.switch-lab.connected .lab-link::before { animation: switch-packet-return 3.2s linear infinite; }
.switch-lab.connected .lab-link-right::after, .switch-lab.connected .lab-link-left::before { animation-delay: 1.6s; }
.switch-lab.connected .lab-switch { box-shadow: 0 0 14px rgba(239,79,54,.25); }
@keyframes switch-packet-forward {
  0% { left: 0; opacity: 0; }
  4% { opacity: 1; }
  40% { left: calc(100% - 10px); opacity: 1; }
  45%, 100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes switch-packet-return {
  0% { left: calc(100% - 10px); opacity: 0; }
  4% { opacity: 1; }
  40% { left: 0; opacity: 1; }
  45%, 100% { left: 0; opacity: 0; }
}
.terminal-window { padding: .65rem .7rem; background: #121310; font: .52rem/1.55 "DM Mono", monospace; }.terminal-output { min-height: 67px; max-height: 92px; overflow: auto; color: rgba(255,255,255,.72); }.terminal-output p { margin: 0; }.terminal-output span, #switch-terminal-form span { color: #83d18c; }.terminal-error { color: #f46c55; }.terminal-hint { color: rgba(255,255,255,.35); }
#switch-terminal-form { display: flex; gap: .35rem; margin-top: .35rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: .4rem; }#switch-terminal-input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; }

.lab-section { border-top: 1px solid var(--line); }
.lab-workspace { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lab-brief { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.lab-brief h3 { color: var(--ink); margin: 1rem 0; font-size: 1.6rem; }
.lab-brief li { margin: .6rem 0; }
.lab-brief summary { cursor: pointer; color: var(--ink); }
.lab-workspace .nerd-widget { margin-top: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: 22px; }
.lab-workspace .nerd-widget-head { font-size: .8rem; flex-wrap: wrap; gap: 1rem; }
.lab-workspace .network-map { min-height: 160px; grid-template-columns: 65px 1fr 95px 1fr 65px; }
.lab-workspace .lab-pc { min-height: 48px; font-size: .85rem; }
.lab-workspace .lab-switch { min-height: 65px; font-size: .9rem; }
.lab-workspace .lab-switch small { font-size: .65rem; }
.lab-workspace .terminal-window { padding: 1rem; font-size: .85rem; line-height: 1.75; }
.lab-workspace .terminal-output { height: 260px; max-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-workspace .signal-metrics { font-size: .75rem; flex-wrap: wrap; }
.lab-workspace #switch-terminal-input { font-size: 16px; }
.lab-preview { overflow: hidden; margin-top: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #171815; }
.lab-preview-bar { display: flex; align-items: center; gap: .35rem; min-height: 28px; padding: 0 .6rem; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font: .55rem "DM Mono", monospace; }
.lab-preview-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.24); }
.lab-preview-bar span { margin-left: .35rem; }
.lab-preview-screen { display: grid; min-height: 110px; place-content: center; justify-items: center; gap: .35rem; padding: 1rem; text-align: center; transition: background .5s ease; }
.lab-preview-icon { color: var(--accent); font-size: 1.5rem; line-height: 1; transition: color .5s ease, transform .5s ease; }
.lab-preview-screen strong { color: rgba(255,255,255,.9); font-size: .85rem; }.lab-preview-screen p { max-width: 38ch; margin: 0; color: rgba(255,255,255,.45); font: .62rem/1.5 "DM Mono", monospace; }
.lab-preview.online .lab-preview-screen { background: linear-gradient(120deg, rgba(59,129,78,.22), transparent 70%); }.lab-preview.online .lab-preview-icon { color: #83d18c; transform: scale(1.2); }.lab-preview.online .lab-preview-bar i { background: #83d18c; }
.switch-lab.port-up .lab-switch { border-color: #83d18c; color: #83d18c; }
.switch-lab.connected .lab-link { background: #315739; }
@media (max-width: 760px) { .lab-workspace { grid-template-columns: 1fr; } .lab-workspace .network-map { grid-template-columns: 46px 1fr 85px 1fr 46px; } }
@media (prefers-reduced-motion: reduce) { .switch-lab.connected .lab-link::before, .switch-lab.connected .lab-link::after { animation: none; left: calc(50% - 5px); opacity: 1; } }
.section { padding: clamp(5rem, 9vw, 8.5rem) 1rem; }
.section-label { color: var(--ink); font-size: .66rem; letter-spacing: .16em; }
.section-title { font-size: clamp(2.6rem, 5vw, 5rem); color: var(--ink); }
.about-section { border-top: 1px solid #9f9e98; }
.about-copy { color: var(--muted); }
.stats-section { background: var(--paper); border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { display: flex; min-height: 220px; flex-direction: column; justify-content: space-between; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-card strong { color: var(--ink); font-size: clamp(3.5rem, 6vw, 5.4rem); font-weight: 500; line-height: .85; letter-spacing: -.08em; }
.stat-card span { color: var(--ink); font-size: .92rem; font-weight: 650; }
.stat-card small { color: var(--muted); font: .61rem "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.stat-card-accent { background: var(--accent); border-color: var(--accent); }
.stat-card-accent strong, .stat-card-accent span, .stat-card-accent small { color: #fff; }

.skills-section { background: #e8e7e2; color: var(--ink); border-top: 1px solid #9f9e98; }
.section-heading > p { color: var(--muted); }
.skill-book { display: block; border: 0; min-height: 0; }
.skill-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; border: 0; margin-bottom: .7rem; }
.skill-tabs button {
  position: relative;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  text-align: left;
  font-size: .88rem;
  align-content: end;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.skill-tabs button::before { display: block; margin-bottom: 1.8rem; color: var(--muted); font: 400 .68rem "DM Mono", monospace; }
.skill-tabs button:nth-child(1)::before { content: "01"; }
.skill-tabs button:nth-child(2)::before { content: "02"; }
.skill-tabs button:nth-child(3)::before { content: "03"; }
.skill-tabs button:nth-child(4)::before { content: "04"; }
.skill-tabs button:nth-child(5)::before { content: "05"; }
.skill-tabs button:last-child { border-bottom: 1px solid var(--line); }
.skill-tabs button:hover { border-color: var(--ink); transform: translateY(-2px); }
.skill-tabs button[aria-selected="true"] { background: #f5f4f1; color: var(--ink); padding: 1.2rem; border-color: var(--ink); }
.skill-tabs button[aria-selected="true"]::before { color: var(--accent); }
.skill-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-panel {
  min-height: 390px;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.skill-number { width: 58px; height: 58px; border-color: var(--ink); color: var(--ink); border-radius: 50%; }
.skill-panel .mono { color: var(--accent); }
.skill-panel h3 { color: var(--ink); }
.skill-panel > p { color: var(--muted); }
.tag-cloud span, .tag-row span { border-color: var(--line); color: var(--ink); border-radius: 999px; background: transparent; }
.skill-proof { border-left-color: var(--accent); background: #f4f2ee; border-radius: 0 12px 12px 0; }
.skill-proof p { color: var(--ink); }

.projects-section { background: var(--paper); }
.projects-section .section-heading > p { color: var(--muted); }
.project-list { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project-card {
  min-height: 390px;
  grid-template-columns: 1fr;
  align-content: space-between;
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.project-card { transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease; }
.project-featured { grid-column: 1 / -1; min-height: 430px; grid-template-columns: 150px 1fr 220px; background: var(--ink); }
.project-index, .project-featured .project-index { color: var(--accent); }
.project-body > p, .project-outcomes { color: var(--muted); }
.project-featured .project-body > p, .project-featured .project-outcomes { color: #b9b8b3; }
.project-card:not(.project-featured) .tag-row span { color: var(--ink); border-color: var(--line); }
.project-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.2rem; }
.project-logos img { width: 23px; height: 23px; object-fit: contain; opacity: .62; filter: grayscale(1) contrast(1.35); transition: transform .22s ease, opacity .22s ease; }
.project-featured .project-logos img { filter: grayscale(1) brightness(0) invert(1); opacity: .7; }
.project-card:hover .project-logos img { opacity: .95; }
.project-logos img:hover { transform: translateY(-2px) scale(1.13); opacity: 1; }
.technology-tooltip { position: fixed; z-index: 30; padding: .42rem .6rem; color: #fff; border-radius: 7px; background: var(--ink); font: .62rem "DM Mono", monospace; letter-spacing: .04em; pointer-events: none; opacity: 0; transform: translate(-50%, 5px); transition: opacity .16s ease, transform .16s ease; white-space: nowrap; }
.technology-tooltip.is-visible { opacity: 1; transform: translate(-50%, 0); }
.project-glyph { border-color: #41413e; color: var(--accent); }
.enigma-art { place-self: center; width: min(185px, 100%); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.enigma-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.paf-art { place-self: center; width: min(220px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.paf-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.omnidev-art { place-self: center; width: min(210px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.omnidev-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.terminal-art { border-radius: 14px; box-shadow: none; background: #e8e7e2; color: #65655f; }
.terminal-art .ok { color: var(--ink); }
.cert-art { border-radius: 14px; border-color: var(--line); color: var(--ink); }
.cert-art::before { border-color: var(--accent); }

.certifications-section { background: #fff; border-top: 1px solid var(--line); }
.certifications-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.certification-card { display: flex; min-height: 260px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f6f2; transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease, border-color .26s ease; }
.certification-code { color: var(--accent); font: .63rem "DM Mono", monospace; letter-spacing: .13em; }
.certification-card h3 { margin: auto 0 .45rem; color: var(--ink); font-size: 1.55rem; font-weight: 600; }
.certification-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.certification-provider { margin-top: 1.5rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink); font: .64rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.certification-toeic { background: var(--ink); border-color: var(--ink); }
.certification-toeic h3, .certification-toeic .certification-provider { color: #fff; }
.certification-toeic p { color: #c8c7c1; }
.certification-toeic .certification-provider { border-top-color: #454541; }

.github-section { background: #e8e7e2; border-top: 1px solid var(--line); }
.github-preview { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.github-profile { display: flex; align-items: center; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.5rem); color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.github-profile:hover { background: #f5f4f1; }
.github-profile img { width: 78px; height: 78px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.github-profile-copy { display: grid; gap: .25rem; min-width: 0; }
.github-profile-copy .mono { color: var(--accent); font-size: .66rem; letter-spacing: .14em; }
.github-profile-copy strong { font-size: 1.25rem; font-weight: 650; }
.github-profile-copy small { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.github-arrow { margin-left: auto; font-size: 1.5rem; }
.github-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 1.5rem; }
.github-stats div { display: grid; gap: .15rem; padding: .5rem 1rem; text-align: center; }
.github-stats div + div { border-left: 1px solid var(--line); }
.github-stats strong { font-size: 1.65rem; font-weight: 500; }
.github-stats span { color: var(--muted); font: .62rem/1.4 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.github-repositories { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.github-repository { min-height: 175px; padding: 1.5rem; color: var(--ink); text-decoration: none; transition: background .26s ease, color .26s ease; }
.github-repository + .github-repository { border-left: 1px solid var(--line); }
.github-repository:hover { background: #f5f4f1; color: var(--ink); }
.github-repository .mono { display: block; margin-bottom: 1rem; color: var(--accent); font-size: .62rem; letter-spacing: .1em; }
.github-repository h3 { margin: 0 0 .55rem; font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; }
.github-repository p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.github-repository:hover p { color: var(--muted); }
.github-loading, .github-error { grid-column: 1 / -1; margin: 0; padding: 1.5rem; color: var(--muted); font-size: .88rem; }

@media (hover: hover) and (pointer: fine) {
  .project-card:hover, .certification-card:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 22px 48px rgba(10,10,10,.14);
  }
  .certification-card:hover { border-color: var(--ink); }
}

.journey-section { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.journey-column > h3 { color: var(--accent); }
.timeline li { border-left-color: var(--line); }
.timeline li::before { left: 0; box-sizing: border-box; transform: translateX(-50%); background: #fff; border-color: var(--accent); }
.timeline time { color: var(--muted); }
.timeline .place { color: var(--accent); }
.timeline .place a { color: inherit; text-decoration: none; }
.timeline .place a:hover { text-decoration: underline; text-underline-offset: .18em; }
.timeline p:last-child { color: var(--muted); }

.contact-section { background: var(--ink); color: #fff; }
.contact-inner h2 { color: #fff; }
.contact-inner h2 span { color: #7f7f79; font-family: inherit; font-weight: 400; -webkit-text-stroke: 0; }
.contact-inner > .mono { color: var(--accent); }
.contact-section .button-primary { background: var(--accent); color: #fff; }
.contact-section .button-secondary { color: #fff; border-color: #777772; }
.contact-section .button-secondary:hover { background: #fff; color: var(--ink); }
footer { background: var(--paper); color: var(--muted); }

.edit-launcher { border: 1px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.edit-launcher:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slideshow-toggle { position: fixed; z-index: 45; left: 1.15rem; bottom: 1.15rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: 999px; background: rgba(243,242,238,.94); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.12); backdrop-filter: blur(12px); cursor: pointer; font: 700 .82rem -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.slideshow-toggle:hover { background: #fff; }
.slideshow-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.standby-deck { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; padding: clamp(1.25rem, 4vw, 4rem); overflow: hidden; background: #11110f; color: #fff; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s step-end; }
.standby-deck.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.standby-deck::before { content: ""; position: absolute; width: min(70vw, 900px); aspect-ratio: 1; right: -20%; bottom: -38%; border-radius: 50%; background: radial-gradient(circle, rgba(239,79,54,.55), transparent 67%); filter: blur(25px); }
.standby-deck-head, .standby-deck-foot, .standby-slide { position: relative; z-index: 1; }
.standby-deck-head, .standby-deck-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: .7rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.standby-deck-head strong { color: var(--accent); }
.standby-close { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .65rem .9rem; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.standby-slide { align-self: center; max-width: min(1050px, 85vw); transition: opacity .7s ease, transform .85s cubic-bezier(.16,1,.3,1); }
.standby-slide.is-changing { opacity: 0; transform: translateY(28px) scale(.98); }
.standby-index { color: var(--accent); font: .8rem "DM Mono", monospace; letter-spacing: .12em; }
.standby-slide h2 { max-width: 12ch; margin: .65rem 0 1.25rem; color: #fff; font-size: clamp(3.4rem, 10vw, 9rem); line-height: .92; letter-spacing: -.075em; }
.standby-slide p { max-width: 57ch; margin: 0; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.8vw, 1.45rem); line-height: 1.5; }
.standby-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.standby-tags span { padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font: .72rem "DM Mono", monospace; }
.standby-progress { display: flex; gap: .35rem; }
.standby-progress i { width: 28px; height: 2px; background: rgba(255,255,255,.25); }
.standby-progress i.active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .standby-deck, .standby-slide { transition: none; } }
.contact-phone { position: fixed; z-index: 100; right: clamp(1rem, 4vw, 4rem); bottom: 1.25rem; width: min(360px, calc(100vw - 2rem)); transform: translateY(calc(100% + 2rem)); opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.18,.92,.26,1), opacity .25s ease; }
.contact-phone.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.phone-shell { position: relative; padding: 9px; border: 6px solid #3d3e3c; border-radius: 54px; background: linear-gradient(105deg, #242522, #6b6d66 46%, #292a28 65%, #4a4c47); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 28px 72px rgba(0,0,0,.38); }
.phone-shell::before, .phone-shell::after { content: ""; position: absolute; z-index: -1; width: 5px; border-radius: 4px; background: linear-gradient(to right, #2a2b29, #73756d); }
.phone-shell::before { left: -10px; top: 112px; height: 116px; box-shadow: 0 136px 0 #4e504b; }
.phone-shell::after { right: -10px; top: 170px; height: 76px; }
.phone-screen { position: relative; height: min(610px, calc(100dvh - 3.5rem)); min-height: 510px; overflow: hidden; padding: 1.45rem 1.15rem 3.4rem; border-radius: 41px; background: radial-gradient(circle at 88% 86%, #ee6f62 0, transparent 29%), radial-gradient(circle at 15% 77%, #bd744d 0, transparent 32%), linear-gradient(155deg, #7093b0, #526c7d 47%, #272426 78%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.phone-island { position: absolute; z-index: 2; top: 18px; left: 50%; width: 116px; height: 33px; border-radius: 999px; background: #070707; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); transform: translateX(-50%); }
.phone-status { display: flex; justify-content: space-between; padding: .35rem .35rem 0; font-size: .73rem; font-weight: 700; }
.phone-status span:last-child { font-size: .64rem; letter-spacing: .08em; }
.weather-widget { display: flex; align-items: center; justify-content: space-between; min-height: 120px; margin-top: 2rem; padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,.38); border-radius: 24px; background: linear-gradient(135deg, rgba(58,118,173,.82), rgba(124,180,208,.68)); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.25); }
.weather-widget div { display: grid; }
.weather-location { font-size: .72rem; font-weight: 700; }
.weather-widget strong { margin-top: .35rem; font-size: 3rem; font-weight: 500; letter-spacing: -.08em; line-height: 1; }
.weather-widget small { margin-top: .45rem; font-size: .7rem; }
.weather-emoji { font-size: 3.7rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.14)); }
.phone-widget-label { margin: .35rem 0 1.25rem; color: #fff; text-align: center; font-size: .68rem; font-weight: 600; }
.phone-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .8rem; }
.phone-app { display: grid; gap: .35rem; justify-items: center; color: #fff; text-decoration: none; font-size: .62rem; text-align: center; }
.phone-app > span { display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 15px; background: rgba(28,40,53,.78); box-shadow: inset 0 1px rgba(255,255,255,.16), 0 5px 10px rgba(0,0,0,.16); font-size: 1.7rem; transition: transform .2s ease, background .2s ease; }
.phone-app:hover > span { transform: scale(1.08); background: rgba(10,10,10,.88); }
.phone-app small { font-size: .58rem; }
.phone-dock { display: flex; justify-content: space-around; margin-top: 1.5rem; padding: .7rem; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; background: rgba(245,245,245,.24); backdrop-filter: blur(12px); }
.phone-dock a { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: rgba(28,40,53,.78); color: #fff; font-size: 1.6rem; text-decoration: none; }
.phone-time { margin: 0 0 3.4rem .35rem; font-size: .72rem; font-weight: 700; }
.phone-contact-heading > span, .phone-contact-details small { color: var(--accent); font: .62rem "DM Mono", monospace; letter-spacing: .13em; }
.phone-contact-heading h2 { margin: .55rem 0 .35rem; font-size: 2.7rem; line-height: .9; letter-spacing: -.08em; }
.phone-contact-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.phone-contact-actions { display: flex; gap: .65rem; margin: 1.7rem 0; }
.phone-contact-actions a { display: grid; flex: 1; gap: .25rem; place-items: center; padding: .7rem .35rem; border-radius: 14px; background: rgba(255,255,255,.6); color: var(--ink); text-decoration: none; font-size: .7rem; font-weight: 700; }
.phone-contact-actions span { color: var(--accent); font-size: 1.15rem; }
.phone-contact-details { display: grid; overflow: hidden; border: 1px solid rgba(10,10,10,.12); border-radius: 18px; background: rgba(255,255,255,.62); }
.phone-contact-details a { display: grid; gap: .28rem; padding: .9rem; color: var(--ink); text-decoration: none; }
.phone-contact-details a + a { border-top: 1px solid rgba(10,10,10,.1); }
.phone-contact-details a:hover { background: #fff; }
.phone-contact-details strong { font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; }
.phone-home { position: absolute; right: 50%; bottom: 18px; width: 110px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: #fff; transform: translateX(50%); cursor: pointer; }
.phone-home:hover, .phone-home:focus-visible { box-shadow: 0 0 0 5px rgba(255,255,255,.2); outline: 0; }
@media (max-width: 560px) { .contact-phone { right: 50%; transform: translate(50%, calc(100% + 2rem)); } .contact-phone.open { transform: translate(50%, 0); } .phone-screen { min-height: 0; } }
.editor-dialog { border-color: var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 35px 110px rgba(0,0,0,.25); }
.editor-dialog::backdrop { background: rgba(10,10,10,.54); }
.editor-head { background: rgba(255,255,255,.96); border-bottom-color: var(--line); }
.editor-head .mono, .editor-step { color: var(--accent); }
.editor-close { border-color: var(--line); color: var(--ink); border-radius: 50%; }
.editor-block { border-bottom-color: var(--line); }
.editor-action { border-color: var(--ink); color: var(--ink); border-radius: 999px; }
.editor-action.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.editor-action.danger { color: #c32c1c; border-color: #e2a69e; }
.project-form label { color: var(--ink); }
.project-form input, .project-form textarea { border-color: var(--line); background: #f5f4f1; color: var(--ink); border-radius: 10px; }
.manager-item { background: #f3f2ee; border-radius: 10px; }
.manager-item button { color: var(--accent); }
.edit-toolbar { border-color: #333; border-radius: 999px; background: rgba(10,10,10,.96); }
.edit-toolbar span { color: #fff; }
.edit-toolbar button { border-color: #777; color: #fff; border-radius: 999px; }
.edit-toolbar .toolbar-save { background: var(--accent); color: #fff; border-color: var(--accent); }
.editing [data-editable] { outline-color: var(--accent); }
.editing [data-editable]:focus { background: rgba(235,77,47,.08); }
.custom-project .project-index { color: var(--accent); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 3rem; }
  .eyebrow { position: static; margin-bottom: 1.5rem; }
  .hero-copy::before { margin-bottom: .8rem; }
  .skill-tabs { grid-template-columns: repeat(3, 1fr); }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-header { height: 72px; }
  nav { top: 64px; background: rgba(243,242,238,.98); border-color: var(--line); border-radius: 0 0 16px 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 680px; height: 680px; right: -500px; top: 28%; }
  .identity-card { width: min(100%, 520px); }
  .skill-tabs { border-bottom: 0; flex-direction: unset; overflow: visible; }
  .skill-tabs button { flex: unset; }
  .project-list { grid-template-columns: 1fr; }
  .github-preview { grid-template-columns: 1fr; }
  .github-profile { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-featured { grid-column: auto; grid-template-columns: 1fr; }
  .project-glyph, .enigma-art, .paf-art, .omnidev-art, .terminal-art, .cert-art { place-self: start; }
}

@media (max-width: 650px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 170px; padding: 1.15rem; }
  .stat-card strong { font-size: 3.2rem; }
  .identity-meta { grid-template-columns: 1fr; gap: .75rem; }
  .certifications-grid { grid-template-columns: 1fr; }
  .certification-card { min-height: 190px; }
  .github-stats { padding: .75rem .25rem; }
  .github-stats div { padding: .65rem .35rem; }
  .github-stats strong { font-size: 1.3rem; }
  .github-repositories { grid-template-columns: 1fr; }
  .github-repository + .github-repository { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 650px) {
  .hero-copy::before { font-size: .58rem; letter-spacing: .13em; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .skill-tabs { grid-template-columns: 1fr 1fr; }
  .skill-tabs button { min-height: 105px; }
  .skill-tabs button:last-child { grid-column: 1 / -1; }
  .project-featured { min-height: 0; }
}

@media (max-width: 420px) {
  .skill-tabs { grid-template-columns: 1fr; }
  .skill-tabs button:last-child { grid-column: auto; }
}
