/* mariostsop.com · Marios Tsopouridis portfolio · built by TsopTech Digital Solutions */

@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/quicksand-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); }

:root {
  --navy: #2C3E50;
  --navy-700: #24344A;
  --navy-800: #1E2C3B;
  --navy-900: #15202C;
  --teal: #31D3A6;
  --teal-600: #22B58C;
  --teal-ink: #0F7A5C;
  --mint: #55EFC4;
  --coral: #F76C5E;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --ink: #1E2B37;
  --muted: #56636F;
  --line: #E3E8EC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(21, 32, 44, .25);
  --shadow-lg: 0 24px 60px -20px rgba(21, 32, 44, .45);
  --f-head: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-weight: 500; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--teal); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent; font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-teal { background: var(--teal); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(49, 211, 166, .8); }
.btn-teal:hover { background: var(--mint); color: var(--navy-900); box-shadow: 0 14px 30px -10px rgba(49, 211, 166, .9); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { padding: .62em 1.15em; font-size: .92rem; }
.btn .ic { font-size: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .3s, box-shadow .3s, transform .35s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -10px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); opacity: 0; transition: opacity .3s; z-index: -1; }
.site-header.is-solid::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { height: 30px; width: auto; transition: filter .3s; }
.site-header.is-solid .brand img { filter: brightness(0); opacity: .85; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s; }
.main-nav a:hover, .main-nav a.is-active { background: rgba(255, 255, 255, .12); color: var(--mint); }
.site-header.is-solid .main-nav a { color: var(--navy-900); }
.site-header.is-solid .main-nav a:hover, .site-header.is-solid .main-nav a.is-active { background: rgba(21, 32, 44, .1); color: var(--navy-900); }
.site-header.is-solid .header-cta { background: var(--navy); color: #fff; box-shadow: none; }
.site-header.is-solid .header-cta:hover { background: var(--navy-900); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease), background-color .3s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; right: 18px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.site-header.is-solid .menu-toggle span { background: var(--navy-900); }
.menu-open .menu-toggle span { background: #fff; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.menu-open .site-header::before { opacity: 0; }
.menu-open .site-header .brand img { filter: none; }

.menu-overlay { position: fixed; inset: 0; z-index: 90; background: radial-gradient(120% 80% at 50% 0%, var(--navy) 0%, var(--navy-900) 70%); display: grid; place-items: center; padding: 90px 24px 40px; }
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-visible { animation: overlayIn .35s var(--ease) both; }
.menu-overlay ol { display: grid; gap: 6px; counter-reset: none; }
.menu-overlay a { display: flex; align-items: baseline; gap: 14px; padding: 10px 6px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.2rem); text-decoration: none; }
.menu-overlay a .mono { color: var(--teal); font-size: .9rem; }
.menu-overlay a:hover { color: var(--mint); }
.menu-overlay li { opacity: 0; transform: translateY(14px); }
.menu-overlay.is-visible li { animation: itemIn .45s var(--ease) forwards; }
.menu-overlay.is-visible li:nth-child(2) { animation-delay: .05s; }
.menu-overlay.is-visible li:nth-child(3) { animation-delay: .1s; }
.menu-overlay.is-visible li:nth-child(4) { animation-delay: .15s; }
.menu-overlay.is-visible li:nth-child(5) { animation-delay: .2s; }
@keyframes overlayIn { from { opacity: 0; clip-path: circle(0 at calc(100% - 44px) 34px); } to { opacity: 1; clip-path: circle(150% at calc(100% - 44px) 34px); } }
@keyframes itemIn { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #2f4a63 0%, var(--navy) 35%, var(--navy-900) 100%); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 170px; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: 110px; background: var(--bg); clip-path: polygon(0 55%, 50% 100%, 100% 55%, 100% 100%, 0 100%); z-index: 2; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -3; opacity: .32; filter: saturate(.75) contrast(1.05); pointer-events: none; transition: opacity 1.2s var(--ease); }.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .5; }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 25% 50%, rgba(21, 32, 44, .85) 0%, rgba(21, 32, 44, .4) 55%, transparent 100%), linear-gradient(to bottom, rgba(21, 32, 44, .2), rgba(21, 32, 44, .65)); }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; z-index: 3; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .92rem; color: #DDE6EC; backdrop-filter: blur(6px); }
.hero-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(49, 211, 166, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(49, 211, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 211, 166, 0); } }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 .hl { display: block; background: linear-gradient(90deg, var(--teal), var(--mint) 60%, #b8ffe9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: #D3DEE6; max-width: 34ch; margin-bottom: 34px; font-weight: 600; }
.hero-sub .dots { color: var(--teal); animation: blink 1.4s steps(2) infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: code-editor window */
.terminal { background: rgba(14, 22, 31, .86); border: 1px solid rgba(85, 239, 196, .22); border-radius: 10px; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .03); backdrop-filter: blur(8px); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease); font-family: var(--f-mono); }
.terminal:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.ide-tabs { display: flex; align-items: stretch; height: 38px; background: rgba(8, 13, 19, .7); border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .76rem; color: #7F93A4; }
.ide-tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.ide-tab .ic { width: 13px; height: 13px; color: #7F93A4; }
.ide-tab.is-active { background: rgba(14, 22, 31, .95); color: #E9F0F5; box-shadow: inset 0 2px 0 var(--teal); }
.ide-tab.is-active .ic { color: var(--mint); }
.ide-x { position: relative; width: 10px; height: 10px; margin-left: 4px; opacity: .6; }
.ide-x::before, .ide-x::after { content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.ide-x::after { transform: rotate(-45deg); }
.ide-run { margin-left: auto; display: grid; place-items: center; width: 40px; color: var(--teal); }
.ide-run .ic { width: 14px; height: 14px; fill: currentColor; }
.ide-panel { display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 34px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #6E8294; }
.ide-panel .on { color: #E9F0F5; box-shadow: 0 1px 0 var(--teal); padding: 9px 0 8px; }
.ide-shell { margin-left: auto; display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: .74rem; }
.ide-shell .ic { width: 13px; height: 13px; color: var(--teal); }
.ide-status { display: flex; align-items: center; gap: 16px; height: 26px; padding: 0 12px; background: var(--teal); color: var(--navy-900); font-size: .7rem; font-weight: 600; }
.ide-status span { display: flex; align-items: center; gap: 5px; }
.ide-status .ic { width: 12px; height: 12px; }
.ide-status-r { margin-left: auto; }
.term-body { margin: 0; padding: 16px 14px 20px 8px; font-family: var(--f-mono); font-size: clamp(.8rem, 1.05vw, .93rem); line-height: 1.75; color: #C9D6E0; white-space: pre-wrap; min-height: 15.5em; display: grid; align-content: start; counter-reset: ln; }
.term-body .tl { position: relative; padding-left: 3.2em; counter-increment: ln; }
.term-body .tl::before { content: counter(ln); position: absolute; left: 0; width: 2.2em; text-align: right; color: #45596B; }
.js .term-body .tl::before { visibility: visible; }
.term-body b { color: var(--teal); font-weight: 700; }
.term-body .out { color: #E9F0F5; }
.term-body em { color: var(--teal); font-style: normal; }
.term-body strong { color: var(--mint); }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--mint); animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term-body .tl { visibility: hidden; }
.js .term-body .tl.on { visibility: visible; }

.scroll-cue { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; color: rgba(255, 255, 255, .75); font-family: var(--f-head); font-weight: 600; text-decoration: none; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.scroll-cue:hover { color: var(--mint); }
.scroll-cue .ic { font-size: 1.4rem; margin-bottom: 2px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--teal-ink); font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .mono { color: var(--teal-600); letter-spacing: 0; }
.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section h2::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 16px; border-radius: 5px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.section-head.center h2::after { margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 20px 0 0; }
.on-dark h2 { color: #fff; }
.on-dark .eyebrow { color: var(--mint); }
.on-dark .eyebrow .mono { color: var(--teal); }
.on-dark .lead { color: #B9C7D2; }

.band { position: relative; text-align: center; color: #fff; }
.band-teal { background: var(--teal); }
.skills > .band { margin: -96px 0 72px; padding: 22px 20px 34px; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); font-family: var(--f-head); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.6rem); color: var(--navy-900); }

/* ---------- About ---------- */
.about { padding-top: 64px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-text p { font-size: 1.08rem; }
.about-text strong { font-weight: 700; color: var(--navy); background: linear-gradient(transparent 62%, rgba(49, 211, 166, .32) 62%); padding: 0 2px; }
.monitor { margin: 0 0 30px; position: relative; }
.monitor-screen { border-radius: var(--radius); overflow: hidden; border: 10px solid var(--navy); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); transition: transform .5s var(--ease); background: var(--navy); }
.monitor:hover .monitor-screen { transform: rotate(0) scale(1.01); }
.monitor-screen img { width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; }
.monitor figcaption { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; line-height: 1.35; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.facts li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.facts .ic { font-size: 1.35rem; color: var(--navy); background: rgba(49, 211, 166, .2); padding: 8px; width: 40px; height: 40px; border-radius: 10px; }
.facts b { display: block; font-family: var(--f-head); font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 3px; }
.facts span { font-size: .86rem; color: var(--muted); }

/* ---------- Skills ---------- */
.skills { background: linear-gradient(var(--bg), #EEF2F4); }
.skill-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip-btn { padding: 9px 18px; border-radius: 999px; border: 2px solid rgba(49, 211, 166, .55); background: var(--surface); color: var(--navy); font-family: var(--f-body); font-weight: 700; font-size: .92rem; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; box-shadow: 0 4px 12px -6px rgba(44, 62, 80, .25); }
.chip-btn:active { transform: scale(.96); }
@media (hover: hover) {
  .chip-btn:hover { border-color: var(--teal); transform: translateY(-2px); }
}
.chip-btn.is-active { background: var(--teal); border-color: var(--teal); color: var(--navy-900); }
.skill-grid { columns: 3 320px; column-gap: 22px; }
.skill-card { break-inside: avoid; display: block; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 20px -14px rgba(21, 32, 44, .3); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .3s; position: relative; overflow: hidden; }
.skill-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(49, 211, 166, .5); }
  .skill-card:hover::before { transform: scaleX(1); }
}
.skill-card[hidden] { display: none; }
.skill-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--mint); font-size: 1.3rem; flex: none; }
.sc-path { display: block; font-size: .76rem; color: var(--teal-ink); }
.skill-card h3 { font-size: 1.08rem; line-height: 1.25; }
.sc-count { margin-left: auto; align-self: flex-start; font-size: .8rem; color: #9AA7B2; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3; transition: background-color .2s, color .2s; }
.skill-card li .ic { color: var(--mint); font-size: .95em; }
@media (hover: hover) {
  .skill-card li:hover { background: var(--teal); color: var(--navy-900); }
  .skill-card li:hover .ic { color: var(--navy-900); }
}
.skill-card li.more { background: transparent; color: var(--teal-ink); border: 2px dashed rgba(49, 211, 166, .7); }
.skill-card li.more .ic { color: var(--teal-ink); }

/* ---------- Certifications ---------- */
.certs { padding-top: 40px; }
.certs-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cert { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.cert:nth-child(4) { grid-column: 2 / span 2; }
.cert:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow); border-color: rgba(49, 211, 166, .55); }
.cert img { width: 112px; height: 112px; object-fit: contain; margin-bottom: 14px; transition: transform .4s var(--ease); }
.cert:hover img { transform: scale(1.07); }
.cert h3 { font-size: .98rem; line-height: 1.3; margin-bottom: 4px; }
.cert p { margin: 0; font-size: .86rem; color: var(--muted); }
.verify { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 18px; border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(3deg); transition: transform .5s var(--ease); }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.polaroid img { border-radius: 3px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.polaroid figcaption { margin-top: 12px; text-align: center; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--navy); }

/* ---------- Experience ---------- */
.experience { background: radial-gradient(90% 70% at 50% 0%, #34506a 0%, var(--navy) 45%, var(--navy-800) 100%); color: #fff; margin-top: 60px; padding: 140px 0 160px; clip-path: polygon(0 60px, 50% 0, 100% 60px, 100% calc(100% - 60px), 50% 100%, 0 calc(100% - 60px)); }
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(var(--teal), var(--mint), rgba(85, 239, 196, .15)); }
.timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 60px; margin-left: -5px; border-radius: 10px; background: linear-gradient(transparent, #fff, transparent); opacity: .8; animation: packet 4.5s linear infinite; }
@keyframes packet { from { top: 0; } to { top: calc(100% - 60px); } }
.tl-item { position: relative; width: 50%; padding: 0 48px 44px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 48px; }
.tl-node { position: absolute; top: 18px; right: -21px; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--navy-900); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 0 0 6px rgba(49, 211, 166, .18); z-index: 1; }
.tl-item:nth-child(odd) .tl-node .ic { transform: rotate(180deg); }
.tl-item:nth-child(even) .tl-node { right: auto; left: -21px; }
.tl-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(4px); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.tl-item:nth-child(odd) .tl-card { text-align: right; }
.tl-card:hover { transform: translateY(-4px); border-color: rgba(85, 239, 196, .55); background: rgba(255, 255, 255, .09); }
.tl-card.is-current { border-color: rgba(85, 239, 196, .6); box-shadow: 0 0 0 1px rgba(85, 239, 196, .25), 0 20px 50px -20px rgba(49, 211, 166, .45); }
.tl-level { display: inline-block; font-size: .75rem; color: var(--navy-900); background: var(--mint); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; font-weight: 700; }
.tl-card h3 { color: #fff; font-size: 1.22rem; margin-bottom: 8px; }
.tl-card p { margin: 0; color: #C3D0DA; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.band-title { margin: -40px 0 64px; padding: 70px 20px 60px; clip-path: polygon(0 28%, 50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%); }
.band-title h2 { color: var(--navy-900); font-size: clamp(1.8rem, 4.6vw, 3rem); }
.band-title h2::after { display: none; }
.band-title h2 span { display: inline-block; color: #fff; text-shadow: 0 3px 0 var(--navy); transform: rotate(-2deg); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-logo { height: 44px; width: auto; margin-bottom: 18px; }
.contact-info .lead { margin: 0 0 26px; color: var(--ink); }
.channels { display: grid; gap: 12px; }
.channels a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.channels a:hover { transform: translateX(6px); border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.ch-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--mint); font-size: 1.25rem; flex: none; }
.ch-ic.wa { background: #25D366; color: #fff; }
.channels b { display: block; font-family: var(--f-head); font-weight: 600; color: var(--navy); line-height: 1.2; }
.channels small { color: var(--muted); font-size: .9rem; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 0 28px 28px; overflow: hidden; }
/* Windows 11 style title bar */
.form-head { display: flex; align-items: stretch; justify-content: space-between; height: 40px; margin: 0 -28px 24px; padding-left: 14px; background: var(--navy); color: #D5DEE5; font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-weight: 400; font-size: .8rem; user-select: none; }
.fh-title { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-title .ic { width: 14px; height: 14px; color: var(--mint); }
.fh-ctrls { display: flex; flex: none; }
.fh-ctrls span { position: relative; width: 46px; display: grid; place-items: center; color: #E8EEF2; transition: background-color .15s, color .15s; }
.fh-ctrls span:hover { background: rgba(255, 255, 255, .1); }
.fh-ctrls .fh-close:hover { background: #C42B1C; color: #fff; }
.fh-min::before { content: ""; width: 10px; height: 1px; background: currentColor; }
.fh-max::before { content: ""; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }
.fh-close::before, .fh-close::after { content: ""; position: absolute; width: 13px; height: 1px; background: currentColor; transform: rotate(45deg); }
.fh-close::after { transform: rotate(-45deg); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--coral); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid #D4E3E0; background: #FAFCFC; font-weight: 500; transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #94A1AC; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(49, 211, 166, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--coral); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 40px; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.recaptcha-note { margin: 14px 0 0; font-size: .76rem; line-height: 1.5; color: #7C8893; }
.recaptcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden !important; }
.form-status { margin: 16px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--teal-ink); padding: 12px 14px; border-radius: 10px; background: rgba(49, 211, 166, .14); }
.form-status.err { color: #B4372B; padding: 12px 14px; border-radius: 10px; background: rgba(247, 108, 94, .12); }
.contact-form button[disabled] { opacity: .7; cursor: progress; transform: none; }
.contact-form button.is-sending .ic { animation: fly .8s var(--ease) infinite; }
@keyframes fly { 50% { transform: translate(4px, -4px); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; background: var(--navy-900); color: #B6C3CD; padding: 90px 0 110px; clip-path: polygon(0 50px, 50% 0, 100% 50px, 100% 100%, 0 100%); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.site-footer .brand img { height: 38px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.site-footer nav a { color: #DDE6EC; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--mint); }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--navy-900); font-size: 1.1rem; transition: transform .25s var(--ease), background-color .2s; }
.socials a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--mint); color: var(--navy-900); }
.copy { margin: 0; font-size: .9rem; max-width: 60ch; }
.copy a { color: var(--mint); }

/* ---------- Floating dock ---------- */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dock-toggle, html:not(.js) .dock-list a, .js .dock.open .dock-list a { pointer-events: auto; }
.dock-toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--teal); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(21, 32, 44, .55); transition: transform .3s var(--ease), background-color .2s; }
.dock-toggle:hover { transform: scale(1.06); background: var(--mint); }
.dock-toggle .ic { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .2s; }
.dock-toggle .ic-close { opacity: 0; transform: rotate(-90deg); }
.dock.open .dock-toggle .ic-open { opacity: 0; transform: rotate(90deg); }
.dock.open .dock-toggle .ic-close { opacity: 1; transform: none; }
.dock-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.js .dock-list li { opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .25s, transform .3s var(--ease); }
.js .dock.open .dock-list li { opacity: 1; transform: none; }
html:not(.js) .dock-toggle { display: none; }
.dock.open .dock-list li:nth-child(3) { transition-delay: .04s; }
.dock.open .dock-list li:nth-child(2) { transition-delay: .08s; }
.dock.open .dock-list li:nth-child(1) { transition-delay: .12s; }
.dock-list a { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px -10px rgba(21, 32, 44, .6); }
.dock-list a .ic { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--teal); color: var(--navy-900); }
.dock-list a.wa .ic { background: #25D366; color: #fff; }
.dock-list a:hover { background: var(--navy-900); color: var(--mint); }
.rain.takeover { position: fixed; z-index: 150; opacity: .9; pointer-events: none; background: rgba(21, 32, 44, .55); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .terminal { transform: none; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { max-width: 620px; }
  .certs-layout { grid-template-columns: 1fr; }
  .polaroid { max-width: 280px; margin: 10px auto 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 120px; }
  .hero::after { height: 70px; }
  .hero-sub br { display: none; }
  .terminal { display: none; }
  .skills > .band { margin-top: -72px; }
  .scroll-cue { bottom: 78px; }
  .skill-filter { gap: 8px; margin-bottom: 28px; }
  .chip-btn { padding: 9px 14px; font-size: .86rem; min-height: 42px; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cert, .cert:nth-child(4) { grid-column: auto; }
  .cert:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
  .cert img { width: 88px; height: 88px; }
  .experience { padding: 110px 0 120px; clip-path: polygon(0 36px, 50% 0, 100% 36px, 100% calc(100% - 36px), 50% 100%, 0 calc(100% - 36px)); }
  .timeline::before, .timeline::after { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 28px 58px; }
  .tl-item .tl-node, .tl-item:nth-child(even) .tl-node { left: 0; right: auto; top: 16px; width: 40px; height: 40px; }
  .tl-item:nth-child(odd) .tl-node .ic { transform: none; }
  .tl-item:nth-child(odd) .tl-card { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 0 18px 22px; }
  .form-head { margin: 0 -18px 20px; }
  .fh-ctrls span { width: 40px; }
  .band-title { padding: 54px 16px 46px; clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%); }
  .dock { right: 14px; bottom: 14px; }
  .dock-toggle { width: 54px; height: 54px; }
}
@media (max-width: 420px) {
  .cert:last-child { max-width: none; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .timeline::after { display: none; }
}

@media print {
  .site-header, .dock, .rain, .hero-video, .menu-overlay, .scroll-cue, .contact-form { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; padding: 20px 0; }
  .hero h1, .hero-sub { color: #000; }
  .experience { clip-path: none; background: none; color: #000; }
  .tl-card h3, .tl-card p, .on-dark h2 { color: #000; }
}
