/* Maxime Chiarizia — portfolio clair, lisible et humain */
:root {
  color-scheme: light;
  --background: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #eef5f8;
  --surface-blue: #e7f1fa;
  --text: #19354a;
  --muted: #4e6575;
  --subtle: #526b79;
  --accent: #12669b;
  --accent-strong: #104f7c;
  --teal: #137f7a;
  --line: #d6e3e8;
  --line-strong: #b8cfd9;
  --shadow: 0 22px 60px rgba(30, 66, 86, .09);
  --sans: Inter, "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1230px;
  --header-height: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { min-width: 320px; margin: 0; background: var(--background); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #c8e8eb; color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin-top: 0; }
ul, ol { margin-top: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-150%); border-radius: 10px; background: var(--text); color: white; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.container, .header-inner, .status-inner, .footer-inner { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }

/* Navigation */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height); border-bottom: 1px solid rgba(158, 188, 200, .33); background: rgba(250, 253, 252, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .2s ease, background .2s ease; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 8px 30px rgba(28, 67, 82, .07); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 11px; font-size: .84rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark, .error-brand > span { display: flex; flex: none; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 12px; background: var(--text); color: white; font: 700 .82rem/1 var(--sans); letter-spacing: -.045em; box-shadow: 0 5px 13px rgba(25, 53, 74, .16); }
.brand-mark__point { color: #97d9d3; }
.brand-name strong { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 23px; min-width: 0; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(11px, 1.55vw, 25px); margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: #536b79; font-size: .81rem; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="location"], .nav-links a.is-active { color: var(--accent-strong); }
.nav-cv { min-height: 39px !important; padding: 9px 14px !important; border-color: #bdd6df !important; background: white !important; font-size: .76rem !important; }
.nav-toggle { display: none; }
.nav-toggle__line { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__line + .nav-toggle__line { margin-top: 4px; }
.site-header.menu-open .nav-toggle__line:first-child { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-toggle__line:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle__line:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Shared elements */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 19px; color: var(--accent); font-size: .76rem; font-weight: 750; line-height: 1.4; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow::before { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.hero-eyebrow::before { display: none; }
.eyebrow-dot, .panel-indicator { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #d8efea; }
.button, .btn { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 49px; padding: 12px 20px; border: 1px solid transparent; border-radius: 11px; font-size: .88rem; font-weight: 700; line-height: 1.3; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover, .btn:hover { transform: translateY(-2px); }
.button-primary, .button--primary, .btn-primary { border-color: var(--accent-strong); background: var(--accent-strong); color: white; box-shadow: 0 11px 24px rgba(17, 93, 143, .17); }
.button-primary:hover, .button--primary:hover, .btn-primary:hover { background: #0b3e64; box-shadow: 0 15px 30px rgba(17, 93, 143, .23); }
.button-secondary, .button--secondary, .button--ghost { border-color: var(--line-strong); background: white; color: var(--text); }
.button-secondary:hover, .button--secondary:hover, .button--ghost:hover { border-color: var(--accent); background: #f4fbfd; }
.section { position: relative; padding-block: clamp(78px, 8vw, 112px); }
.section + .section { border-top: 1px solid #e6eef1; }
.section-head, .section-heading { max-width: 800px; margin-bottom: 40px; }
.section h2 { margin-bottom: 16px; color: var(--text); font-size: clamp(2.3rem, 3.8vw, 3.55rem); font-weight: 730; line-height: 1.12; letter-spacing: -.055em; }
.section h2 span { color: var(--accent); }
.section-head > p:last-child, .section-heading > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }

/* Opening */
.hero { position: relative; display: flex; align-items: center; min-height: 760px; padding-block: calc(var(--header-height) + 66px) 90px; overflow: hidden; background: radial-gradient(circle at 82% 33%, rgba(191, 226, 231, .6), transparent 31%), radial-gradient(circle at 10% 100%, rgba(255, 225, 200, .36), transparent 34%), linear-gradient(130deg, #fbfdfb 12%, #f1f8f7 100%); }
.hero::after { position: absolute; top: 105px; right: -145px; width: 420px; height: 420px; border: 1px solid rgba(32, 122, 148, .1); border-radius: 50%; box-shadow: 0 0 0 90px rgba(50, 156, 165, .035), 0 0 0 180px rgba(50, 156, 165, .025); content: ""; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr); align-items: center; gap: clamp(35px, 5vw, 75px); }
.hero-copy { position: relative; z-index: 1; max-width: 710px; }
.hero .eyebrow { margin-bottom: 23px; }
.hero h1 { max-width: 740px; margin-bottom: 26px; font-size: clamp(3.45rem, 5.5vw, 5.75rem); font-weight: 740; line-height: 1.02; letter-spacing: -.067em; }
.hero h1 span { color: var(--accent); }
.hero-role { margin-bottom: 17px; color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.37rem); font-weight: 680; letter-spacing: -.025em; }
.hero-description { max-width: 555px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; margin-top: 38px; color: var(--muted); font-size: .85rem; font-weight: 580; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.hero-meta__divider { display: none !important; }
.hero-visual { position: relative; z-index: 1; min-width: 0; }
.hero-visual::before { position: absolute; z-index: -1; inset: 9% 0 0; border-radius: 50%; background: #9fd5d0; filter: blur(75px); opacity: .26; content: ""; pointer-events: none; }
.hero-visual__caption { margin: 13px 12px 0; color: var(--subtle); font-size: .76rem; line-height: 1.5; }

/* Quick reading strip */
.highlights { position: relative; z-index: 2; margin-top: -1px; border-block: 1px solid #deeaed; background: white; }
.highlights-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 24px; }
.highlight-item { display: flex; align-items: flex-start; gap: 15px; min-width: 0; padding: 7px 28px; border-right: 1px solid var(--line); }
.highlight-item:first-child { padding-left: 0; }
.highlight-item:last-child { padding-right: 0; border-right: 0; }
.highlight-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e4f3f0; color: var(--teal); font-size: 1.2rem; }
.highlight-item:nth-child(2) .highlight-icon { background: #e7f1fa; color: var(--accent); }
.highlight-item:nth-child(3) .highlight-icon { background: #fff0e4; color: #b9703b; }
.highlight-item h3 { margin-bottom: 2px; color: var(--text); font-size: .96rem; font-weight: 720; line-height: 1.35; }
.highlight-item p { margin-bottom: 0; color: var(--muted); font-size: .82rem; line-height: 1.48; }

/* Profile */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(50px, 7vw, 115px); align-items: start; }
#profil .section-head { margin-bottom: 0; }
.about-copy { max-width: 740px; }
.about-copy p { margin-bottom: 19px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.about-copy .lead, .about-copy p:first-of-type { color: var(--text); font-size: 1.14rem; font-weight: 520; }
.about-quote { margin: 29px 0; padding: 21px 25px; border-left: 4px solid #2c9b95; border-radius: 0 14px 14px 0; background: #f0f8f5; color: #23515a; font-size: 1.04rem; font-weight: 600; line-height: 1.7; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.about-tags span { padding: 7px 11px; border: 1px solid #cfe2e3; border-radius: 999px; background: #f8fcfa; color: #365c64; font-size: .78rem; font-weight: 620; }

/* Career */
.experience-section { background: #f0f6f7; }
.experience-layout { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); gap: clamp(42px, 6vw, 95px); }
.experience-layout .section-head { margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 22px; bottom: 22px; left: -22px; width: 2px; background: #b4d2d7; content: ""; }
.timeline-item { position: relative; padding: 27px 31px; border: 1px solid #dbe8eb; border-radius: 18px; background: white; box-shadow: 0 13px 34px rgba(29, 67, 82, .045); }
.timeline-item::before { position: absolute; top: 35px; left: -28px; width: 14px; height: 14px; border: 4px solid #f0f6f7; border-radius: 50%; background: var(--teal); content: ""; }
.timeline-item__date { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; background: #e3f1ef; color: #126b67; font-size: .75rem; font-weight: 750; letter-spacing: .025em; }
.timeline-item__date time { margin: 0; }
.timeline-item__date > span { color: #71a19c; }
.timeline-item h3 { margin-bottom: 2px; color: var(--text); font-size: clamp(1.26rem, 1.7vw, 1.52rem); font-weight: 720; letter-spacing: -.03em; }
.timeline-item__role { margin-bottom: 17px; color: var(--accent); font-size: .9rem; font-weight: 650; }
.timeline-item ul { display: grid; gap: 8px; margin-bottom: 16px; padding: 0; list-style: none; }
.timeline-item li { position: relative; padding-left: 18px; color: #3e5868; font-size: .91rem; line-height: 1.56; }
.timeline-item li::before { position: absolute; top: .73em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #55aaa1; content: ""; }
.timeline-item__context { margin: 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .77rem; line-height: 1.55; }

/* Competencies */
.skills-section { background: #fff; }
.skill-grid, .skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.skill-card { position: relative; min-width: 0; padding: 29px 32px 31px; border: 1px solid #dce8ed; border-radius: 19px; background: #fff; box-shadow: 0 9px 32px rgba(29, 67, 82, .035); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: #a7d0d6; box-shadow: 0 17px 42px rgba(29, 67, 82, .085); }
.skill-card__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.skill-card__number { color: var(--teal); font-size: .77rem; font-weight: 750; letter-spacing: .08em; }
.skill-card__glyph { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf5f2; color: var(--teal); font: 500 1.45rem/1 var(--sans); }
.skill-card:nth-child(2) .skill-card__glyph { background: #e9f2fa; color: var(--accent); }
.skill-card:nth-child(3) .skill-card__glyph { background: #fff0e4; color: #b9703b; }
.skill-card:nth-child(4) .skill-card__glyph { background: #edf0fa; color: #5467a1; }
.skill-card h3 { margin-bottom: 5px; color: var(--text); font-size: 1.26rem; font-weight: 720; letter-spacing: -.03em; }
.skill-card > p { max-width: 440px; margin-bottom: 21px; color: var(--muted); font-size: .91rem; line-height: 1.58; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-list li { padding: 6px 10px; border: 1px solid #dce8e9; border-radius: 8px; background: #f7faf9; color: #3d5964; font-size: .79rem; font-weight: 590; line-height: 1.35; }

/* Personal homelab */
.infrastructure-section { overflow: hidden; background: #eff6f9; }
.infrastructure-heading { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(245px, .82fr); align-items: end; gap: 25px; max-width: none; }
.infrastructure-heading p:last-child { margin-bottom: 0; }
.infra-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(285px, .62fr); align-items: start; gap: 18px; }
.infra-map, .infra-sidebar > *, .infra-tech, .terminal { min-width: 0; border: 1px solid #d8e6eb; border-radius: 17px; background: white; box-shadow: 0 11px 34px rgba(30, 66, 86, .045); }
.infra-map { position: relative; padding: clamp(22px, 3vw, 36px); overflow: hidden; }
.infra-map::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(59, 134, 162, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 134, 162, .035) 1px, transparent 1px); background-size: 26px 26px; content: ""; pointer-events: none; }
.infra-map > * { position: relative; }
.infra-map__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 27px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text); font-size: .77rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.infra-map__header > span:first-child { display: inline-flex; align-items: center; gap: 11px; }
.infra-map__hint { color: var(--subtle); font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.diagram-main { display: flex; flex-direction: column; align-items: center; }
.diagram-step { display: flex; flex-direction: column; align-items: center; width: 100%; }
.diagram-step > .infra-node { width: min(100%, 295px); }
.diagram-connector { position: relative; display: block; width: 2px; height: 29px; background: #95cbd4; }
.diagram-connector::after { position: absolute; bottom: -1px; left: -3px; width: 8px; height: 8px; border-right: 2px solid #75aeba; border-bottom: 2px solid #75aeba; transform: rotate(45deg); content: ""; }
.infra-node { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 65px; padding: 12px 15px; border: 1px solid #cbdfe6; border-radius: 11px; background: white; color: var(--text); text-align: left; box-shadow: 0 5px 13px rgba(27, 68, 87, .05); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.infra-node:hover, .infra-node[aria-pressed="true"], .infra-node.is-active { z-index: 1; transform: translateY(-2px); border-color: #499caf; background: #f0f9fa; box-shadow: 0 8px 20px rgba(30, 117, 136, .12); }
.infra-node[data-node="firewall"] { border-color: #80b9c6; background: #f4fafb; }
.infra-node strong { display: block; color: var(--text); font: 700 .78rem/1.4 var(--sans); }
.infra-node small { display: block; margin-top: 3px; color: var(--muted); font: 500 .72rem/1.45 var(--mono); overflow-wrap: anywhere; }
.infra-node__icon { display: grid; flex: none; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #e5f2f4; color: var(--accent); font-size: 1.05rem; }
.infra-node__body { display: block; flex: 1; min-width: 0; }
.infra-node__badge { align-self: flex-start; padding: 3px 6px; border-radius: 5px; background: #dceeee; color: #13636a; font: 700 .58rem/1.3 var(--sans); letter-spacing: .055em; }
.diagram-zone-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(62px, .3fr) minmax(0, 1fr); align-items: center; gap: clamp(9px, 1.3vw, 17px); width: 100%; margin-top: 35px; padding-top: 25px; }
.diagram-zone-grid::before { position: absolute; top: 0; left: 25%; width: 50%; height: 2px; background: #a4cdd6; content: ""; }
.diagram-zone-grid::after { position: absolute; top: 0; left: 50%; width: 2px; height: 25px; background: #a4cdd6; content: ""; }
.diagram-zone { position: relative; min-width: 0; padding: 16px; border: 1px solid #d0e5e9; border-radius: 12px; background: #f3f9fa; }
.diagram-zone--servers { background: #f6f8fc; border-color: #dce4ef; }
.diagram-zone::before { position: absolute; top: -25px; left: 50%; width: 2px; height: 25px; background: #a4cdd6; content: ""; }
.diagram-zone__label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 11px; color: var(--accent-strong); font-size: .73rem; font-weight: 760; letter-spacing: .065em; }
.diagram-zone__label small { color: var(--muted); font: 500 .68rem/1.4 var(--mono); letter-spacing: 0; }
.diagram-transfer { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: .66rem; line-height: 1.35; text-align: center; }
.diagram-transfer__label { max-width: 105px; }
.diagram-transfer__line { position: relative; display: block; width: 100%; height: 2px; background: #91c5d0; }
.diagram-transfer__line::after { position: absolute; top: -3px; right: 0; width: 8px; height: 8px; border-top: 2px solid #75aeba; border-right: 2px solid #75aeba; transform: rotate(45deg); content: ""; }
.diagram-transfer small { font-size: .65rem; }
.diagram-admin { margin-top: 23px; padding: 17px; border: 1px dashed #acd0d8; border-radius: 12px; background: #f8fbfc; }
.diagram-admin__heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 13px; margin-bottom: 12px; color: var(--text); font-size: .7rem; font-weight: 740; letter-spacing: .04em; }
.diagram-admin__heading small { color: var(--muted); font: 500 .68rem/1.4 var(--mono); letter-spacing: 0; }
.diagram-admin__path { display: flex; align-items: center; gap: 10px; }
.diagram-admin .infra-node { flex: 1 1 0; min-width: 0; }
.diagram-admin__arrow { flex: none; color: var(--teal); font-size: 1.1rem; font-weight: 650; }
.diagram-admin__destination { flex: .8 1 0; min-width: 90px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.infra-map__caption { margin: 18px 0 0; color: var(--subtle); font-size: .77rem; line-height: 1.55; }
.infra-sidebar { display: grid; gap: 18px; min-width: 0; }
.node-detail, .infra-network-card { padding: 24px; }
.node-detail { min-height: 237px; }
.node-detail__eyebrow { margin-bottom: 13px; color: var(--teal); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.node-detail h3 { margin-bottom: 9px; color: var(--text); font-size: 1.25rem; font-weight: 730; letter-spacing: -.03em; }
.node-detail p { margin-bottom: 14px; color: var(--muted); font-size: .86rem; line-height: 1.62; }
.node-detail .node-detail__eyebrow { color: var(--teal); }
.node-detail .node-detail__meta { margin-bottom: 0; color: #446271; font: 500 .75rem/1.55 var(--mono); overflow-wrap: anywhere; }
.node-detail__fallback h3 { font-size: 1rem; }
.infra-network-card h3, .infra-tech h3 { margin-bottom: 13px; color: var(--text); font-size: 1rem; font-weight: 720; }
.network-list { display: grid; margin: 0; }
.network-list > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); font: 500 .73rem/1.45 var(--mono); }
.network-list > div:last-child { border-bottom: 0; }
.network-list dt { color: var(--text); font-weight: 700; }
.network-list dd { margin: 0; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.infra-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; margin-top: 18px; }
.infra-tech { padding: 25px; }
.infra-tech p { margin-bottom: 18px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tech-list li { padding: 6px 9px; border: 1px solid #d2e3e8; border-radius: 7px; background: #f4f9fa; color: #365767; font: 550 .72rem/1.35 var(--mono); }
.terminal { overflow: hidden; background: #f6f9fc; }
.terminal__bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #e6eff4; color: #536e7b; font: 550 .69rem/1.35 var(--mono); }
.terminal__bar > span:nth-child(2) { min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal__dots { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; }
.terminal__dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #94b8c5; }
.terminal__dots i:first-child { background: #e9a98f; }
.terminal__dots i:nth-child(2) { background: #e7ce89; }
.terminal__dots i:nth-child(3) { background: #89c7ae; }
.terminal__body { padding: 19px 21px; }
.terminal p { margin: 0 0 10px; color: #496779; font: 500 .75rem/1.7 var(--mono); }
.terminal p:last-child { margin-bottom: 0; }
.terminal__prompt { color: var(--teal); font-weight: 700; }
.terminal__output { color: var(--text); overflow-wrap: anywhere; }
.terminal-animated .terminal-line { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.terminal-animated .terminal-line.is-visible { opacity: 1; transform: none; }

/* Security */
.security-section { background: #fbfdfc; }
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.security-card { min-height: 164px; padding: 22px; border: 1px solid #dbe8e9; border-radius: 15px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.security-card:hover { transform: translateY(-3px); box-shadow: 0 11px 27px rgba(27, 71, 77, .07); }
.security-card__index { display: block; margin-bottom: 18px; color: var(--teal); font-size: .69rem; font-weight: 760; letter-spacing: .06em; }
.security-card h3 { margin-bottom: 7px; color: var(--text); font-size: .96rem; font-weight: 720; line-height: 1.4; }
.security-card p { margin-bottom: 0; color: var(--muted); font-size: .81rem; line-height: 1.56; }
.section-note { max-width: 810px; margin: 22px 0 0; color: var(--subtle); font-size: .81rem; line-height: 1.6; }

/* Education and credentials */
.education-section { background: #f0f6f7; }
.education-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 0; padding: 0; list-style: none; }
.education-item { display: flex; align-items: flex-start; gap: 18px; min-height: 162px; padding: 26px; border: 1px solid #dbe8eb; border-radius: 16px; background: white; }
.education-item__index { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e1f2ef; color: var(--teal); font-size: .76rem; font-weight: 760; }
.education-item h3 { margin-bottom: 8px; color: var(--text); font-size: 1.03rem; font-weight: 720; line-height: 1.4; }
.education-item p { margin-bottom: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.certifications-section { background: white; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.cert-card { display: flex; align-items: flex-start; gap: 17px; min-height: 117px; padding: 25px; border: 1px solid #dbe8eb; border-radius: 16px; background: #fafdfe; }
.cert-card__mark { display: grid; flex: none; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #e6f2f6; color: var(--accent); font-size: .75rem; font-weight: 760; }
.cert-card h3 { margin-bottom: 4px; color: var(--text); font-size: 1rem; font-weight: 720; }
.cert-card p { margin-bottom: 0; color: var(--muted); font-size: .85rem; }

/* Contact and footer */
.contact-section { padding-block: clamp(85px, 8vw, 118px); background: radial-gradient(circle at 86% 30%, rgba(147, 208, 213, .38), transparent 28%), linear-gradient(130deg, #e8f3f5, #f2f8f6); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .68fr); align-items: center; gap: clamp(40px, 8vw, 130px); }
.contact-grid h2 { max-width: 680px; font-size: clamp(3rem, 5.2vw, 5.3rem); line-height: 1.03; }
.contact-copy > p:not(.eyebrow) { max-width: 550px; color: var(--muted); font-size: 1.05rem; line-height: 1.73; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.contact-info { min-width: 0; padding: 12px 28px; border: 1px solid #cbdfe3; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.contact-info h3 { margin: 13px 0 4px; color: var(--text); font-size: .77rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.contact-info dl { margin: 0; }
.contact-info dl > div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-info dl > div:last-child { border-bottom: 0; }
.contact-info dt { margin-bottom: 3px; color: var(--subtle); font-size: .74rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.contact-info dd { margin: 0; color: var(--text); font-size: .92rem; font-weight: 590; overflow-wrap: anywhere; }
.contact-info a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: #acd0e0; text-underline-offset: 4px; }
.contact-info a:hover { text-decoration-color: currentColor; }
.site-footer { padding-block: 33px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 25px; }
.footer-brand { display: block; margin-bottom: 3px; color: var(--text); font-size: .9rem; font-weight: 720; }
.site-footer p { margin-bottom: 0; color: var(--subtle); font-size: .77rem; line-height: 1.6; }
.footer-infra { max-width: 310px; }
.footer-end { display: grid; justify-items: end; gap: 6px; color: var(--subtle); font-size: .75rem; }
.footer-end a { color: var(--accent-strong); font-weight: 650; }
.footer-end a:hover { text-decoration: underline; }

/* 404 */
.error-page { min-height: 100svh; }
.error-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; height: 100%; }
.error-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: .8rem; }
.error-brand strong { font-weight: 730; }
.error-header-link { color: var(--accent-strong); font-size: .84rem; font-weight: 650; }
.error-header-link:hover { text-decoration: underline; }
.error-shell { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(calc(100% - 64px), 870px); min-height: calc(100svh - 98px); margin-inline: auto; padding-block: calc(var(--header-height) + 60px) 75px; }
.error-code { margin-bottom: 15px; color: var(--teal); font-size: .8rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.error-shell h1 { margin-bottom: 18px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: 1.05; letter-spacing: -.065em; }
.error-shell p:not(.error-code) { max-width: 550px; margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }
.error-route { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; width: 100%; margin-top: 68px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .74rem; font-weight: 650; letter-spacing: .06em; }
.error-route i { display: block; flex: 1 1 25px; max-width: 90px; height: 2px; background: #b4d5da; }
.error-route-end { color: var(--accent-strong); }
.error-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; padding-block: 25px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .75rem; }

/* Entrance transitions: content remains visible without JavaScript */
.js-enabled .reveal { opacity: 0; transform: translateY(17px); transition: opacity .65s ease, transform .65s cubic-bezier(.18,.68,.25,1); }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* The opening card gives a quick, visual overview of the role. */
.hero-intro { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 26px; padding: 8px 14px; border: 1px solid #c9e5df; border-radius: 999px; background: #eff9f5; color: #365e60; font-size: .87rem; line-height: 1.35; }
.hero-intro strong { color: var(--text); font-weight: 720; }
.hero h1 span { background: linear-gradient(transparent 83%, rgba(109, 197, 183, .22) 83%); }
.hero-showcase { position: relative; min-width: 0; padding: 24px; overflow: hidden; border: 1px solid #c7e1e4; border-radius: 26px; background: linear-gradient(145deg, #dceef0 0%, #eff8f6 52%, #e8f2f8 100%); box-shadow: 0 29px 65px rgba(21, 100, 121, .14); }
.hero-showcase::before { position: absolute; top: -105px; right: -125px; width: 350px; height: 350px; border: 1px solid rgba(28, 113, 138, .13); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255, 255, 255, .23), 0 0 0 96px rgba(255, 255, 255, .15); content: ""; }
.hero-showcase::after { position: absolute; right: -18px; bottom: 58px; width: 145px; height: 145px; border-radius: 50%; background: #f6d6bc; filter: blur(50px); opacity: .7; content: ""; pointer-events: none; }
.showcase-header, .showcase-cards, .showcase-link { position: relative; z-index: 1; }
.showcase-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 33px; }
.showcase-kicker { color: #315d69; font-size: .77rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.showcase-monogram { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 13px; background: rgba(255, 255, 255, .72); color: var(--accent-strong); font-size: .79rem; font-weight: 780; box-shadow: 0 6px 14px rgba(27, 103, 117, .07); }
.showcase-cards { display: grid; gap: 12px; padding-bottom: 13px; }
.showcase-card { position: relative; display: flex; align-items: flex-start; gap: 15px; width: 93%; min-height: 112px; padding: 20px 20px 17px; border: 1px solid rgba(190, 217, 223, .92); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 25px rgba(37, 104, 122, .09); transition: transform .23s ease, box-shadow .23s ease; }
.showcase-card:hover { transform: translateY(-3px) !important; box-shadow: 0 16px 28px rgba(37, 104, 122, .15); }
.showcase-card--support { transform: rotate(-2deg); }
.showcase-card--systems { justify-self: end; transform: rotate(1.6deg); }
.showcase-card--lab { transform: rotate(-1deg); }
.showcase-card__icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #dff2eb; color: #136d69; font-size: .76rem; font-weight: 780; }
.showcase-card--systems .showcase-card__icon { background: #e3f0fb; color: var(--accent); }
.showcase-card--lab .showcase-card__icon { background: #fff0df; color: #8e4e2d; }
.showcase-card h2 { margin-bottom: 4px; color: var(--text); font-size: 1.04rem; font-weight: 730; line-height: 1.35; letter-spacing: -.023em; }
.showcase-card p { margin-bottom: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.showcase-link { display: inline-flex; align-items: center; gap: 9px; margin: 13px 0 0 4px; color: var(--accent-strong); font-size: .8rem; font-weight: 730; }
.showcase-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.highlight-item__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e4f3f0; color: var(--teal); font-size: 1.2rem; }
.highlight-item:nth-child(2) .highlight-item__icon { background: #e7f1fa; color: var(--accent); }
.highlight-item:nth-child(3) .highlight-item__icon { background: #fff0e4; color: #b9703b; }
.highlight-item strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .95rem; font-weight: 720; line-height: 1.35; }

@media (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 13px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .76rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr); gap: 30px; }
  .hero h1 { font-size: clamp(3.15rem, 5.1vw, 5.1rem); }
}
@media (max-width: 1360px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; flex: none; width: 43px; height: 43px; margin-left: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--text); }
  .site-nav { position: absolute; top: calc(var(--header-height) + 7px); right: 24px; left: auto; display: block; width: min(440px, calc(100% - 48px)); max-height: calc(100svh - var(--header-height) - 24px); margin: 0; padding: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
  .js-enabled .site-nav { display: none; }
  .js-enabled .site-header.menu-open .site-nav { display: block; }
  html:not(.js-enabled) .site-header { position: relative; height: auto; }
  html:not(.js-enabled) .header-inner { height: auto; padding-block: 12px; flex-wrap: wrap; }
  html:not(.js-enabled) .nav-toggle { display: none; }
  html:not(.js-enabled) .site-nav { position: static; display: block; width: 100%; max-height: none; }
  html:not(.js-enabled) .hero { padding-top: 70px; }
  .nav-links { display: grid; gap: 0; }
  .nav-links a { width: 100%; min-height: 44px; padding: 7px 12px; border-radius: 7px; font-size: .91rem; }
  .nav-links a:hover, .nav-links a.is-active { background: #edf6f8; }
  .nav-cv { display: flex; width: 100%; margin-top: 8px; }
}
@media (max-width: 980px) {
  :root { --header-height: 68px; }
  .container, .header-inner, .status-inner, .footer-inner { width: min(calc(100% - 48px), var(--container)); }
  .hero { min-height: 0; padding-block: calc(var(--header-height) + 70px) 85px; }
  .hero-grid { grid-template-columns: 1fr; gap: 43px; }
  .hero-copy { max-width: 750px; }
  .hero h1 { max-width: 740px; font-size: clamp(3.9rem, 7.7vw, 5.75rem); }
  .hero-showcase { width: min(100%, 680px); }
  .showcase-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .showcase-card { width: 100%; min-height: 175px; flex-direction: column; gap: 10px; }
  .showcase-card--systems { justify-self: stretch; }
  .showcase-card h2 { font-size: .96rem; }
  .showcase-card p { font-size: .78rem; }
  .experience-layout { grid-template-columns: 1fr; gap: 38px; }
  .timeline { margin-left: 22px; }
  .infrastructure-heading { grid-template-columns: 1fr; gap: 0; }
  .infra-layout { grid-template-columns: 1fr; }
  .infra-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .container, .header-inner, .status-inner, .footer-inner { width: min(calc(100% - 36px), var(--container)); }
  .site-nav { right: 18px; left: 18px; width: auto; }
  .brand { font-size: .76rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-block: calc(var(--header-height) + 54px) 60px; }
  .hero-intro { margin-bottom: 20px; font-size: .8rem; }
  .hero h1 { margin-bottom: 22px; font-size: clamp(3.05rem, 9vw, 4.7rem); }
  .hero-role { font-size: 1.08rem; }
  .hero-description { font-size: .98rem; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 13px; font-size: .81rem; }
  .hero-meta { margin-top: 28px; font-size: .77rem; }
  .hero-showcase { padding: 18px; }
  .showcase-header { margin-bottom: 23px; }
  .showcase-cards { grid-template-columns: 1fr; gap: 10px; }
  .showcase-card { width: 96%; min-height: 0; flex-direction: row; padding: 16px; }
  .showcase-card--systems { justify-self: end; }
  .showcase-card h2 { font-size: .98rem; }
  .showcase-card p { font-size: .79rem; }
  .highlights-inner { grid-template-columns: 1fr; padding-block: 16px; }
  .highlight-item, .highlight-item:first-child, .highlight-item:last-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .highlight-item:last-child { border-bottom: 0; }
  .section { padding-block: 74px; }
  .section-head, .section-heading { margin-bottom: 30px; }
  .section h2 { font-size: clamp(2.15rem, 7.6vw, 3rem); }
  .about-grid { grid-template-columns: 1fr; gap: 27px; }
  .skill-grid, .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { padding: 25px; }
  .infra-map { padding: 18px; }
  .infra-sidebar { grid-template-columns: 1fr; }
  .diagram-zone { padding: 12px; }
  .diagram-zone .infra-node { padding: 11px 9px; }
  .infra-node strong { font-size: .73rem; }
  .infra-node small { font-size: .67rem; }
  .diagram-admin { padding: 12px; }
  .diagram-admin__path { gap: 6px; }
  .diagram-admin .infra-node { padding: 9px; }
  .diagram-admin .infra-node__icon { display: none; }
  .diagram-admin__destination { min-width: 74px; font-size: .65rem; }
  .infra-bottom { grid-template-columns: 1fr; }
  .education-list { grid-template-columns: 1fr; gap: 11px; }
  .education-item { min-height: 0; }
  .cert-grid { grid-template-columns: 1fr; gap: 11px; }
  .contact-grid { grid-template-columns: 1fr; gap: 31px; }
  .contact-grid h2 { font-size: clamp(2.75rem, 9.6vw, 4rem); }
  .footer-end { justify-items: start; }
  .error-shell { width: min(calc(100% - 36px), 870px); }
}
@media (max-width: 540px) {
  .diagram-zone-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 26px; padding-top: 20px; }
  .diagram-zone-grid::before { left: 50%; width: 2px; height: 20px; }
  .diagram-zone-grid::after, .diagram-zone::before { display: none; }
  .diagram-transfer { gap: 6px; padding-block: 1px; }
  .diagram-transfer__line { width: 2px; height: 20px; }
  .diagram-transfer__line::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .diagram-admin__heading small { display: block; margin-top: 5px; }
  .diagram-admin__path { flex-wrap: wrap; }
  .diagram-admin .infra-node { flex-basis: calc(50% - 13px); }
  .diagram-admin__destination { flex-basis: 100%; text-align: center; }
  .security-grid { grid-template-columns: 1fr; }
  .security-card { min-height: 0; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 11.1vw; }
  .hero-actions .button { flex-basis: 100%; }
  .showcase-card { width: 100%; transform: none; }
  .diagram-admin .infra-node { flex-basis: 100%; }
  .diagram-admin__arrow { flex-basis: 100%; text-align: center; transform: rotate(90deg); }
  .contact-grid h2 { font-size: 9.4vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js-enabled .reveal, .terminal-animated .terminal-line { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #304959; --subtle: #425e6b; --line: #a8bdc6; --line-strong: #7d9ba9; }
  .site-header { background: white; }
  .button-secondary, .nav-toggle { border-color: var(--line-strong); }
  .skill-card, .timeline-item, .security-card, .education-item, .cert-card, .infra-map, .infra-sidebar > *, .infra-tech, .terminal { border-color: var(--line-strong); }
}
