:root {
  --bg: #090c11;
  --panel: #11161d;
  --panel-2: #171d26;
  --text: #f4f6f8;
  --muted: #9aa5b1;
  --line: #28313d;
  --accent: #6cb5ff;
  --accent-2: #a8d5ff;
  --sidebar: 290px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 34px 28px 24px; background: #0c1016; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; }
.identity { display: grid; justify-items: start; gap: 16px; }
.identity img { width: 92px; height: 92px; object-fit: cover; object-position: 56% 24%; border-radius: 50%; border: 1px solid #394555; box-shadow: 0 12px 30px #0008; }
.name { font-size: 1.15rem; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.identity p { margin: 3px 0 0; color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.identity span { color: var(--muted); font-size: .78rem; }
.side-nav { display: grid; gap: 4px; margin-top: 42px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; color: #b7c0cb; text-decoration: none; border-radius: 9px; font-size: .91rem; transition: .2s ease; }
.side-nav a span { color: #606c7a; font-size: .7rem; font-variant-numeric: tabular-nums; }
.side-nav a:hover { color: #fff; background: #151c25; }
.side-nav a.active { color: #fff; background: #1a2430; box-shadow: inset 3px 0 var(--accent); }
.side-nav a.active span { color: var(--accent); }
.sidebar-footer { margin-top: auto; display: grid; gap: 7px; color: var(--muted); font-size: .75rem; }
.sidebar-footer a { text-decoration: none; }
.sidebar-footer a:hover { color: var(--accent-2); }
.sidebar-footer p { margin: 12px 0 0; }

.content { min-height: 100vh; margin-left: var(--sidebar); }
.page { display: none; min-height: 100vh; padding: clamp(50px, 7vw, 96px) clamp(30px, 7vw, 110px); animation: pageIn .28s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 6vw, 6.3rem); font-weight: 760; }
h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); }
h3 { margin: 0; }
.lede { max-width: 760px; color: #b6c0cb; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.page-header { max-width: 840px; margin-bottom: 42px; }
.page-header > p:last-child { color: var(--muted); font-size: 1.05rem; }

.home-grid { min-height: calc(100vh - 230px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.home-copy .lede { margin: 28px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid #394452; border-radius: 9px; color: #e7ecf2; text-decoration: none; font-size: .88rem; font-weight: 650; transition: .2s ease; }
.button:hover { border-color: #6c7c8f; background: #151c24; transform: translateY(-1px); }
.button.primary { color: #06111d; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #8ac5ff; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 46px 0 0; border: 1px solid var(--line); background: var(--line); border-radius: 12px; overflow: hidden; }
.quick-facts div { padding: 19px; background: var(--panel); }
.quick-facts dt { font-size: 1.15rem; font-weight: 750; }
.quick-facts dd { margin: 2px 0 0; color: var(--muted); font-size: .76rem; }
.home-visual { margin: 0; }
.home-visual img { width: 100%; max-height: 650px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(.8) contrast(1.04); box-shadow: 0 24px 70px #0009; }
.home-visual figcaption { margin-top: 12px; color: var(--muted); font-size: .78rem; }
.skill-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.skill-strip span, .tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #aeb8c4; background: #10151c; font-size: .72rem; }

.project-list { display: grid; gap: 12px; max-width: 1120px; }
.project { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); overflow: hidden; }
.project summary { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center; padding: 14px; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project summary img { width: 150px; height: 98px; object-fit: cover; border-radius: 8px; filter: saturate(.72); }
.project summary span { color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.project summary h3 { margin-top: 3px; font-size: 1.25rem; }
.project summary p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.project summary b { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 1.2rem; transition: transform .2s; }
.project[open] summary b { transform: rotate(45deg); color: var(--accent); }
.project-detail { padding: 6px 24px 26px 188px; border-top: 1px solid var(--line); }
.project-detail > p { max-width: 780px; color: #b5bfca; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.image-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; }

.video-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); max-width: 1120px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.video-wrap { aspect-ratio: 16 / 9; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-copy { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.video-copy > span, .resume-grid span { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; }
.video-copy h3 { margin-top: 12px; font-size: 2rem; }
.video-copy p { color: var(--muted); }
.video-copy .button { margin-top: 10px; }
.fpv-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1120px; margin-top: 14px; }
.fpv-notes div { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fpv-notes strong { font-size: .86rem; }
.fpv-notes p { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }

.timeline { max-width: 980px; border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--accent); font-size: .8rem; font-weight: 700; }
.timeline h3 { font-size: 1.25rem; }
.timeline p { margin: 9px 0 0; color: var(--muted); }

.resume-panel { max-width: 1060px; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #141b24, #0e131a); }
.resume-panel h3 { font-size: 1.6rem; }
.resume-panel p { margin: 7px 0 0; color: var(--muted); }
.resume-panel .actions { margin: 0; }
.resume-grid { max-width: 1060px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.resume-grid article { min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.resume-grid h3 { margin-top: 14px; }
.resume-grid p { color: var(--muted); font-size: .9rem; }

.contact-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1fr minmax(360px, .65fr); gap: 80px; align-items: center; }
.contact-layout h2 { font-size: clamp(3rem, 7vw, 7rem); }
.contact-cards { display: grid; gap: 10px; }
.contact-cards a { position: relative; display: grid; gap: 5px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; transition: .2s; }
.contact-cards a:hover { border-color: #556577; transform: translateX(4px); }
.contact-cards span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.contact-cards b { position: absolute; right: 20px; top: 50%; translate: 0 -50%; color: var(--accent); }
.mobile-menu { display: none; }
.scrim { display: none; }

@media (max-width: 980px) {
  :root { --sidebar: 260px; }
  .page { padding: 46px 32px; }
  .home-grid, .contact-layout { grid-template-columns: 1fr; }
  .home-grid { min-height: auto; }
  .home-visual { max-width: 620px; }
  .home-visual img { aspect-ratio: 16 / 10; }
  .video-card { grid-template-columns: 1fr; }
  .fpv-notes, .resume-grid { grid-template-columns: 1fr; }
  .resume-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .mobile-menu { display: block; position: fixed; top: 14px; right: 14px; z-index: 40; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #111821; color: #fff; font: inherit; font-size: .82rem; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px #000b; }
  body.menu-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 15; display: block; background: #000a; }
  .content { margin-left: 0; }
  .page { padding: 78px 20px 42px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .quick-facts { grid-template-columns: 1fr; }
  .project summary { grid-template-columns: 92px 1fr auto; gap: 12px; }
  .project summary img { width: 92px; height: 76px; }
  .project summary p { display: none; }
  .project-detail { padding: 8px 16px 22px; }
  .image-grid { grid-template-columns: 1fr; }
  .image-grid img { height: 220px; }
  .timeline article { grid-template-columns: 1fr; gap: 7px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-cards { min-width: 0; }
}

/* Squared industrial redesign and higher-contrast accents */
:root {
  --bg: #07090d;
  --panel: #10151c;
  --panel-2: #161d26;
  --text: #f7f8fa;
  --muted: #a8b2bf;
  --line: #303a47;
  --accent: #ff7a18;
  --accent-2: #2fd7d0;
  --sidebar: 290px;
  --radius: 0;
}

/* Intentionally square geometry throughout */
.identity img,
.side-nav a,
.button,
.quick-facts,
.home-visual img,
.skill-strip span,
.tags span,
.project,
.project summary img,
.project summary b,
.image-grid img,
.video-card,
.fpv-notes div,
.resume-panel,
.resume-grid article,
.contact-cards a,
.mobile-menu {
  border-radius: 0 !important;
}

.sidebar {
  background: #0b0f14;
  border-right: 2px solid var(--accent);
}
.identity {
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.identity::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 3px;
  background: var(--accent-2);
}
.identity img {
  width: 112px;
  height: 112px;
  object-position: center 35%;
  border: 2px solid var(--accent);
  box-shadow: 8px 8px 0 var(--accent-2);
  filter: none;
}
.identity p { color: var(--accent-2); }
.side-nav a { border-left: 3px solid transparent; }
.side-nav a:hover { color: #fff; background: #151c25; border-left-color: var(--accent-2); }
.side-nav a.active {
  background: var(--accent);
  color: #090b0e;
  box-shadow: none;
  border-left-color: var(--accent-2);
  font-weight: 750;
}
.side-nav a.active span { color: #090b0e; }
.eyebrow { color: var(--accent-2); }
.button.primary { color: #0b0d10; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #ff994d; border-color: #ff994d; }
.button:hover { border-color: var(--accent-2); background: #121d24; }
.quick-facts { border-top: 3px solid var(--accent); }
.quick-facts dt { color: var(--accent-2); }
.home-visual { position: relative; }
.home-visual::before {
  content: "";
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--accent-2);
  z-index: 0;
}
.home-visual img { position: relative; z-index: 1; box-shadow: 14px 14px 0 #000; }
.skill-strip span, .tags span { border-left: 3px solid var(--accent); }
.project { border-left: 3px solid var(--accent-2); }
.project[open] { border-left-color: var(--accent); }
.project summary b { border-color: var(--accent); color: var(--accent); }
.video-card { border-top: 4px solid var(--accent); }
.fpv-notes div:nth-child(2) { border-top: 3px solid var(--accent-2); }
.fpv-notes div:first-child, .fpv-notes div:last-child { border-top: 3px solid var(--accent); }
.timeline article { border-left: 3px solid transparent; padding-left: 18px; }
.timeline article:hover { border-left-color: var(--accent-2); background: #0d1218; }
.resume-panel { border-left: 5px solid var(--accent); background: #111820; }
.resume-grid article { border-top: 3px solid var(--accent-2); }
.contact-cards a { border-left: 4px solid var(--accent); }
.contact-cards a:hover { border-left-color: var(--accent-2); }
.contact-cards b { color: var(--accent-2); }

@media (max-width: 720px) {
  .sidebar { border-right: 2px solid var(--accent); }
  .mobile-menu { border: 2px solid var(--accent); }
}


/* Dedicated project pages */
.project-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:1120px; }
.project-card { display:grid; grid-template-columns:190px 1fr; min-height:190px; color:var(--text); text-decoration:none; border:1px solid var(--line); border-left:4px solid var(--accent); background:var(--panel); transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.project-card:hover { transform:translateY(-3px); border-color:var(--accent-2); background:var(--panel-2); }
.project-card img { width:100%; height:100%; min-height:190px; object-fit:cover; }
.project-card div { display:flex; flex-direction:column; align-items:flex-start; padding:24px; }
.project-card span { color:var(--accent-2); font-size:.72rem; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.project-card h3 { margin:8px 0 0; font-size:1.3rem; }
.project-card p { color:var(--muted); font-size:.87rem; }
.project-card b { margin-top:auto; color:var(--accent); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.project-article { max-width:1180px; padding:54px clamp(28px,5vw,72px) 80px; }
.back-link { display:inline-block; margin-bottom:34px; color:var(--accent-2); text-decoration:none; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.project-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.85fr); gap:56px; align-items:center; padding-bottom:56px; border-bottom:1px solid var(--line); }
.project-hero h1 { font-size:clamp(3rem,6.8vw,6.8rem); line-height:.92; }
.project-hero img { width:100%; height:540px; object-fit:cover; border:1px solid var(--line); box-shadow:14px 14px 0 var(--accent); }
.project-section { padding:56px 0; border-bottom:1px solid var(--line); }
.project-section h2 { margin-top:7px; font-size:clamp(1.8rem,3vw,3rem); }
.project-section p { color:var(--muted); line-height:1.75; }
.section-label { margin:0; color:var(--accent)!important; text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:800; }
.accent-two { color:var(--accent-2)!important; }
.split { display:grid; grid-template-columns:.55fr 1fr; gap:70px; }
.challenge-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.challenge-grid>div { padding:30px; border:1px solid var(--line); border-top:4px solid var(--accent); background:var(--panel); }
.challenge-grid>div+div { border-top-color:var(--accent-2); }
.project-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:28px; }
.project-gallery figure { margin:0; border:1px solid var(--line); background:var(--panel); }
.project-gallery img { width:100%; height:420px; object-fit:cover; display:block; }
.project-gallery figcaption { padding:13px 15px; color:var(--muted); font-size:.75rem; }
.project-bottom-nav { display:flex; justify-content:space-between; gap:20px; padding-top:34px; }
.project-bottom-nav a { color:var(--accent-2); text-decoration:none; font-weight:700; }
@media(max-width:980px){.project-card-grid{grid-template-columns:1fr}.project-hero{grid-template-columns:1fr}.project-hero img{height:460px}.split{grid-template-columns:1fr;gap:20px}}
@media(max-width:720px){.project-card{grid-template-columns:110px 1fr;min-height:160px}.project-card img{min-height:160px}.project-card div{padding:16px}.project-card p{display:none}.project-article{padding:78px 20px 50px}.project-hero{gap:32px}.project-hero img{height:340px;box-shadow:8px 8px 0 var(--accent)}.challenge-grid,.project-gallery{grid-template-columns:1fr}.project-gallery img{height:300px}.project-bottom-nav{flex-direction:column}}
