@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-300.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-900.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/jetbrainsmono-latin-400.woff2) format("woff2"); }

:root {
  --accent: #F2A900;
  --black: #000;
  --ink: #0d0d0d;
  --text: #c4c4c4;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --header: 56px;
  --radius: 8px;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1rem/1.7 var(--sans); overflow-x: hidden; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .5rem 1rem; background: var(--accent); color: #000; font-weight: 700; }
.skip:focus { left: 1rem; top: .5rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 4vw, 2.5rem); background: #000; transition: height .3s, box-shadow .3s; }
.site-header.scrolled { height: 48px; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.wordmark { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.wordmark .accent { color: var(--accent); }
.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-size: .95rem; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; padding: .2rem 0; transition: background-size .25s; }
.site-nav a:hover, .site-nav a:focus-visible { background-size: 100% 2px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: #f2f2f2; display: grid; place-items: center; overflow: hidden; padding: calc(var(--header) + 2rem) 1.25rem 18vw; }
.hero-inner { text-align: center; will-change: transform, opacity; }
.hero-name { color: #111; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; font-size: clamp(3rem, 15vw, 10rem); text-shadow: .05em .05em 0 var(--accent); }
.hero-name span { display: inline-block; }
.hero-sub { margin: 1.5rem 0 0; color: #444; font-weight: 300; font-size: clamp(1rem, 2.4vw, 1.5rem); letter-spacing: .12em; text-transform: uppercase; }
.hero-cut { position: absolute; left: 0; right: 0; bottom: -1px; height: 16vw; background: var(--ink); clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%); }

/* Big headings */
.big { text-align: center; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.6rem, 9vw, 6rem); margin-bottom: 1.5rem; }
.big .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.big .w > span { display: inline-block; }
.dot { color: var(--accent); font-weight: 900; }

/* Skills */
.skills { background: var(--ink); padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; max-width: 80rem; margin: 0 auto; }
.skills { box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.mono { font-family: var(--mono); font-weight: 400; color: var(--accent); }
.skills h2.mono { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; line-height: 1; margin-bottom: 1.75rem; letter-spacing: .02em; }
.skills-intro p:not(.mono) { color: var(--text); font-size: 1rem; max-width: 30rem; padding-left: 1.25rem; }
.brace-close { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; margin-top: 2.5rem; }
.skills-panel { position: relative; }
.js .skills-panel { padding-right: 2.75rem; }
.group-name { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 5), 2rem); grid-auto-flow: column; column-gap: 3.5rem; row-gap: .85rem; position: relative; }
.skill-list::before { content: ""; position: absolute; top: -.5rem; bottom: -.5rem; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(242,169,0,.55); }
.skill-list li { display: flex; align-items: center; gap: .85rem; color: #e8e8e8; font-size: .95rem; line-height: 1.25; min-width: 0; }
/* Logo slot: fixed box so names line up; logos keep their aspect ratio (object-fit: contain) */
.lg { flex: 0 0 58px; width: 58px; height: 24px; display: flex; align-items: center; transition: transform .2s; transform-origin: left center; }
.lg img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.lg.tile img { width: auto; max-width: 100%; box-sizing: border-box; padding: 3px 5px; background: #f4f4f4; border-radius: 5px; object-position: center; }
.lg.tile.sq img { width: 28px; padding: 3px; }
.skill-list li:hover .lg { transform: scale(1.1); }
/* Page 1 has only square marks: a narrower slot keeps 'Intune Endpoint Management' on one line */
#skills-g1 .lg { flex-basis: 34px; width: 34px; }
.skill-list li:hover .nm { color: #fff; }
.skill-group + .skill-group { margin-top: 2.5rem; }
.tm-note { margin: 2.25rem 0 0; font-size: .75rem; }
.tm-note a { color: var(--muted); }
.tm-note a:hover { color: var(--accent); }

/* Explorer-style scrollbar */
.skills-bar { display: none; }
.js .skills-bar { display: flex; flex-direction: column; position: absolute; right: 0; top: var(--bar-top, 2.6rem); height: var(--bar-h, 16rem); width: 18px; user-select: none; -webkit-user-select: none; }
.sb-arrow { flex: 0 0 18px; height: 18px; width: 18px; padding: 0; border: 0; background: #1a1a1a; color: #8a8a8a; cursor: pointer; display: grid; place-items: center; transition: color .15s, background .15s; }
.sb-arrow svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-arrow:hover, .sb-arrow:focus-visible { color: var(--accent); background: #222; }
.sb-arrow:active { color: #000; background: var(--accent); }
.sb-prev { border-radius: 4px 4px 0 0; }
.sb-next { border-radius: 0 0 4px 4px; }
.sb-track { position: relative; flex: 1 1 auto; background: #1a1a1a; cursor: pointer; outline: none; touch-action: none; }
.sb-track:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.sb-thumb { position: absolute; left: 4px; right: 4px; top: calc(var(--i) * 100% / var(--n)); height: calc(100% / var(--n)); border-radius: 5px; background: #6b6b6b; background-clip: content-box; padding: 2px 0; box-sizing: border-box; transition: top .3s cubic-bezier(.2,.7,.2,1), background .15s; cursor: grab; }
.sb-track:hover .sb-thumb, .sb-track:focus-visible .sb-thumb, .sb-track.dragging .sb-thumb, .sb-thumb:active { background: var(--accent); }
.sb-track.dragging .sb-thumb { transition: background .15s; cursor: grabbing; }
.js .skill-group { display: none; }
.js .skill-group.active { display: block; animation: groupIn .4s ease both; }
.js .skill-group + .skill-group { margin-top: 0; }
@keyframes groupIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Wave band */
.wave-band { height: clamp(160px, 26vw, 280px); background: #000 url(waves.svg) 0 0 / 120px 40px repeat fixed; border-top: 1px solid #000; }

/* Resume */
.resume { background: #000; padding: clamp(4rem, 10vw, 7rem) 1.25rem; text-align: center; }
.lead { color: var(--text); max-width: 34rem; margin: 0 auto 2rem; }
.pill { display: inline-block; font: 700 1rem/1 var(--sans); color: #fff; background: transparent; border: 2px solid #fff; border-radius: 999px; padding: .9rem 2rem; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.pill:hover, .pill:focus-visible { background: #fff; color: #000; transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.pill:disabled { opacity: .6; cursor: wait; transform: none; }
.unlock { max-width: 26rem; margin: 1.5rem auto 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; background: #0d0d0d; }
label { display: block; color: #ddd; font-size: .9rem; font-weight: 700; margin: 1rem 0 .4rem; }
.unlock label { margin-top: 0; }
input, textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: #fff; background: rgba(255,255,255,.06); border: 1.5px solid #6b6b6b; border-radius: var(--radius); padding: .7rem .9rem; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(242,169,0,.35); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row input { flex: 1 1 10rem; width: auto; }
.row .pill { padding: .7rem 1.5rem; }
.status { min-height: 1.6em; margin: .8rem 0 0; font-size: .9rem; font-weight: 700; color: #ddd; }
.status.error { color: #ff8a80; }
input[aria-invalid="true"] { border-color: #ff8a80; }

/* Contact */
.contact { position: relative; padding: clamp(4rem, 10vw, 7rem) 1.25rem; overflow: hidden; background: #050505; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: -10%; z-index: -1; filter: blur(60px); opacity: .9;
  background:
    radial-gradient(30% 40% at 20% 30%, rgba(242,169,0,.55), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(25% 35% at 65% 20%, rgba(242,169,0,.25), transparent 70%),
    url(waves.svg) 0 0 / 120px 40px; }
.glass { max-width: 36rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 16px; background: rgba(20,20,20,.45); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.glass .big { font-size: clamp(2.4rem, 8vw, 4.5rem); }
.glass .pill { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #000; border-top: 1px solid #1a1a1a; text-align: center; padding: 1.5rem 1rem; font-size: .85rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Simple pages (thanks, trademarks) */
.page { min-height: calc(100vh - 70px); padding: calc(var(--header) + 4rem) 1.25rem 4rem; max-width: 44rem; margin: 0 auto; }
.page .big { text-align: left; font-size: clamp(2.4rem, 8vw, 4.5rem); }
.page ul { padding-left: 1.2rem; columns: 2 12rem; }
.page .pill { text-decoration: none; margin-top: 1rem; }

/* Motion (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .big .w > span { transform: translateY(105%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.js .in .big .w > span, .js .big.in .w > span { transform: none; }
.js .big .w:nth-child(2) > span { transition-delay: .12s; }
.js .skill-list li { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i, 0) * 50ms); }
.js .in .skill-list li { opacity: 1; transform: none; }
.js .hero-name span { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-name span + span { animation-delay: .12s; }
.js .hero-sub { animation: fade 1.2s .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .big .w > span, .js .skill-list li { opacity: 1; transform: none; }
  .sb-thumb { transition: none !important; }
  .wave-band { background-attachment: scroll; }
}

/* Tablet / phone */
@media (max-width: 64rem) {
  .skills { grid-template-columns: 1fr; gap: 2rem; }
  .skills-intro p:not(.mono) { max-width: 40rem; }
  .brace-close { display: none; }
}
@media (max-width: 40rem) {
  .menu-toggle { display: block; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #000; border-top: 1px solid #1a1a1a; display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .js .site-nav a { display: block; padding: .85rem 1.5rem; background: none; }
  .js .site-nav a:hover { color: var(--accent); }
  .site-nav ul { gap: 1rem; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; padding-block: .6rem; }
  .skills-intro p:not(.mono) { padding-left: 0; }
  .skill-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; grid-auto-rows: 1.9rem; row-gap: .6rem; padding-top: 1.25rem; }
  .skill-list::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 3px; margin-left: 0; }
  .skill-list li { font-size: .9rem; gap: .75rem; }
  .js .skills-panel { padding-right: 0; touch-action: pan-y; }
  .js .skills-bar { position: static; flex-direction: row; width: 100%; height: 18px; margin-top: 1.5rem; }
  .sb-thumb { top: 4px; bottom: 4px; padding: 0 2px; left: calc(var(--i) * 100% / var(--n)); right: auto; width: calc(100% / var(--n)); height: auto; transition: left .3s cubic-bezier(.2,.7,.2,1), background .15s; }
  .sb-prev { border-radius: 4px 0 0 4px; } .sb-next { border-radius: 0 4px 4px 0; }
  .sb-arrow svg { transform: rotate(-90deg); }
  .wave-band { background-attachment: scroll; }
}
