/* A quiet, dark canvas with an animated wash of northern light. */
:root {
    color-scheme: dark;
    --bg: #080d0d;
    --text: #f0f3ed;
    --secondary: #a1b1ad;
    --muted: #84958f;
    --accent: #b9f5cf;
    --border: #ffffff16;
    --sans: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; background: var(--bg); }
body { color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.container { width: min(100% - 112px, 1200px); margin-inline: auto; }
.noise { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid var(--border); }
.wordmark { font-size: 34px; font-weight: 700; letter-spacing: -.09em; line-height: 1; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; gap: 34px; font-size: 13px; color: var(--secondary); }
.site-header nav a, .nav-contact { padding-block: 10px; }
.nav-contact { font-size: 13px; }
.nav-contact span { margin-left: 16px; color: var(--accent); }
.hero { position: relative; isolation: isolate; min-height: min(850px, calc(100svh - 100px)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-content { text-align: center; position: relative; z-index: 1; padding-block: 96px 116px; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; font-weight: 400; color: var(--muted); }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--accent); margin-bottom: 26px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px #b9f5cf50; }
.hero-name { font-size: clamp(80px, 11.6vw, 166px); font-weight: 500; letter-spacing: -.075em; line-height: 1.04; margin-left: -.06em; }
.hero-name > span { color: var(--accent); }
.hero-tagline { font-size: clamp(18px, 2.05vw, 29px); letter-spacing: -.045em; margin-top: 24px; }
.hero-tagline > span { color: var(--accent); }
.hero-location { font-size: 15px; color: #b2c3be; line-height: 1.8; margin-top: 18px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 33px; }
.button { min-height: 49px; padding: 13px 21px; border-radius: 6px; font-size: 13px; display: inline-flex; justify-content: center; align-items: center; gap: 30px; }
.button-primary { background: var(--accent); color: #10281e; border: 1px solid var(--accent); box-shadow: 0 2px 22px #b9f5cf0c; }
.button-primary:hover { background: #d6ffe4; color: #10281e; transform: translateY(-2px); }
.button-secondary { background: #0a161666; border: 1px solid #bed8cd35; backdrop-filter: blur(12px); }
.button-secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-links { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 29px; }
.hero-links a { color: #9dafaa; font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
.hero-links a:hover { color: var(--accent); }
.hero-links svg { width: 14px; height: 14px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); position: relative; z-index: 1; margin-top: auto; }
.hero-bottom a span { margin-left: 18px; }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(transparent, #000 18%, #000 76%, transparent); background: radial-gradient(ellipse at 50% 70%, #123a302e, transparent 65%); }
.aurora-ribbon { position: absolute; border-radius: 50%; filter: blur(48px); will-change: transform; }
.ribbon-one { width: 100%; height: 56%; top: 39%; left: -22%; background: radial-gradient(ellipse, #72db922b 0%, #20b98566 29%, #11766f39 48%, transparent 69%); transform: rotate(-28deg); animation: aurora-drift-one 18s ease-in-out infinite alternate; }
.ribbon-two { width: 85%; height: 62%; top: 26%; right: -22%; background: radial-gradient(ellipse, #a2ef8638 0%, #3cab7959 28%, #15737032 49%, transparent 70%); transform: rotate(-32deg); animation: aurora-drift-two 22s ease-in-out infinite alternate; }
.ribbon-three { width: 80%; height: 33%; top: 64%; left: 22%; background: radial-gradient(ellipse, #478cd442, #396fbc24 38%, transparent 70%); transform: rotate(-17deg); animation: aurora-drift-three 16s ease-in-out infinite alternate; }
@keyframes aurora-drift-one { to { transform: translate(15%, -12%) rotate(-12deg) scale(1.15); } }
@keyframes aurora-drift-two { to { transform: translate(-22%, 16%) rotate(-46deg) scale(.94); } }
@keyframes aurora-drift-three { to { transform: translate(-22%, -32%) rotate(8deg) scale(1.22); } }
.animation-paused .aurora-ribbon, .page-hidden .aurora-ribbon { animation-play-state: paused; }
.work-section { padding-block: 106px 94px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
h2 { font-size: clamp(29px, 3.3vw, 43px); font-weight: 400; line-height: 1.18; letter-spacing: -.055em; margin-top: 15px; }
h2 > span { color: var(--accent); }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.8; padding-bottom: 2px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.project-visual { width: 100%; height: 226px; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; transition: border-color .3s, background-color .3s; }
.project-card:hover .project-visual { border-color: #b9f5cf50; background-color: #11201c; }
.project-number { position: absolute; top: 16px; left: 18px; color: #8ca399; font: 10px var(--mono); }
.visual-caption { position: absolute; bottom: 17px; color: #a0b3a9; font: 8px var(--mono); letter-spacing: .12em; }
.monfit { background: radial-gradient(ellipse at center, #25402b88, transparent 72%), #0e1612; }
.fitness-ring { width: 112px; height: 112px; border: 1px solid #b9f5cf22; border-radius: 50%; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 12px #b9f5cf04, 0 0 0 25px #b9f5cf03; }
.fitness-ring::before { content: ''; position: absolute; inset: 7px; border: 3px solid #b9f5cf; border-right-color: #b9f5cf18; border-bottom-color: #b9f5cf18; border-radius: 50%; transform: rotate(35deg); }
.fitness-ring > span { font-size: 42px; line-height: 1; color: #d3f7ca; letter-spacing: -.08em; }
.tiny-plus { font-size: 25px; vertical-align: top; }
.lanking { background: radial-gradient(ellipse at 50% 80%, #1a353e80, transparent 80%), #0e1418; }
.bank-bars { height: 95px; display: flex; gap: 9px; align-items: end; position: relative; border-bottom: 1px solid #a8dcd33d; padding: 0 10px; }
.bank-bars i { width: 17px; height: 28%; background: linear-gradient(#b1d6e2, #40687444); border: 1px solid #b1d6e244; border-radius: 3px 3px 0 0; }
.bank-bars i:nth-child(2) { height: 44%; }.bank-bars i:nth-child(3) { height: 36%; }.bank-bars i:nth-child(4) { height: 65%; }.bank-bars i:nth-child(5) { height: 57%; }.bank-bars i:nth-child(6) { height: 78%; }.bank-bars i:nth-child(7) { height: 100%; }
.homelab { background: radial-gradient(ellipse at center, #37352b55, transparent 80%), #151510; }
.server-stack { width: 148px; display: grid; gap: 7px; transform: perspective(600px) rotateY(-15deg) rotateX(8deg); }
.server-stack > i { display: flex; align-items: center; gap: 7px; padding: 12px; height: 32px; border: 1px solid #bdbba63d; border-radius: 4px; background: linear-gradient(110deg, #323329, #1b211a); box-shadow: 4px 4px 0 #080d0d; }
.server-stack b { width: 4px; height: 4px; border-radius: 50%; background: #b9f5cf; box-shadow: 0 0 7px #b9f5cf66; }.server-stack b + b { opacity: .3; }
.server-stack i > span { width: 32px; height: 7px; margin-left: auto; background: repeating-linear-gradient(90deg, #727b6155 0 2px, transparent 2px 5px); }
.project-icon { display: none; }
.project-title { font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.project-desc { color: var(--secondary); font-size: 13px; line-height: 1.9; margin-top: 10px; margin-bottom: 23px; }
.project-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill { color: #a6b5ad; background: #ffffff04; border: 1px solid var(--border); border-radius: 4px; font: 9px var(--mono); padding: 5px 8px; }
.stack-section { padding-block: 58px 76px; border-top: 1px solid var(--border); }
.stack-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-item { border: 1px solid var(--border); color: #b2beb8; border-radius: 5px; font: 11px var(--mono); padding: 12px 17px; transition: border-color .2s, color .2s; }
.stack-item:hover { border-color: #b9f5cf60; color: var(--accent); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 80px 110px; border-top: 1px solid var(--border); }
.about-section h2 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.25; }
.about-location { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 11px; color: var(--muted); }
.about-content { font-size: 15px; line-height: 1.95; color: var(--secondary); padding-top: 26px; }
.footer { background: #0c1210; border-top: 1px solid var(--border); }
.contact-heading { padding-block: 61px 54px; }
.contact-heading > a { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; font-size: clamp(29px, 4.2vw, 54px); letter-spacing: -.06em; }
.contact-heading > a > span { color: var(--accent); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; border-top: 1px solid var(--border); }
.footer-inner .wordmark { font-size: 27px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-links svg { width: 14px; height: 14px; }
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal-pending { opacity: 0; transform: translateY(18px); }
@media (min-width: 1600px) { .hero-content { padding-block: 120px 145px; } }
@media (max-width: 900px) {
    .container { width: calc(100% - 64px); }
    .projects-grid { gap: 18px; }
    .project-visual { height: 190px; }
    .section-heading > p { max-width: 210px; }
    .about-section { gap: 40px; }
    .hero-bottom { font-size: 8px; }
}
@media (max-width: 680px) {
    .container { width: calc(100% - 40px); }
    .site-header { height: 80px; }
    .site-header nav { gap: 22px; font-size: 12px; }
    .nav-contact { display: none; }
    .hero { min-height: min(760px, calc(100svh - 80px)); }
    .hero-content { padding-block: 85px 86px; }
    .hero-eyebrow { font-size: 8px; letter-spacing: .08em; gap: 8px; margin-bottom: 28px; }
    .hero-name { font-size: clamp(64px, 16vw, 106px); }
    .hero-tagline { font-size: clamp(15px, 3.8vw, 24px); margin-top: 24px; }
    .hero-location { font-size: 12px; margin-top: 19px; }
    .hero-actions { gap: 9px; margin-top: 28px; }
    .button { font-size: 11px; padding: 12px 16px; gap: 19px; }
    .hero-links { flex-wrap: wrap; gap: 17px; }
    .hero-links a { font-size: 10px; }
    .hero-links svg { width: 12px; height: 12px; }
    .hero-bottom { justify-content: center; padding-block: 21px; }
    .hero-bottom > span { display: none; }
    .aurora-ribbon { filter: blur(32px); }
    .ribbon-one { width: 160%; left: -80%; }.ribbon-two { width: 160%; right: -75%; }.ribbon-three { width: 150%; left: 0; }
    .work-section { padding-block: 65px; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading > p { margin-top: 17px; max-width: none; font-size: 12px; }
    .projects-grid { grid-template-columns: 1fr; gap: 38px; }
    .project-visual { height: 235px; margin-bottom: 20px; }
    .project-desc { margin-bottom: 17px; }
    .stack-section { padding-block: 45px 50px; }
    .stack-grid { gap: 8px; }
    .stack-item { padding: 10px 12px; font-size: 10px; }
    .about-section { grid-template-columns: 1fr; gap: 24px; padding-block: 50px 65px; }
    .about-content { padding-top: 0; font-size: 14px; }
    .contact-heading { padding-block: 40px; }
    .footer-links { gap: 14px; }
}
@media (max-width: 360px) {
    .hero-eyebrow { font-size: 7px; }
    .hero-links { gap: 12px; }
    .hero-links a { font-size: 9px; }
    .button { gap: 12px; padding-inline: 13px; }
    .contact-heading > a { font-size: 25px; }
    .footer-links { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal-pending { opacity: 1; transform: none; }
    .aurora-ribbon { will-change: auto; }
    .button:hover { transform: none; }
}
