:root {
  --bg: #2b3e4e;
  --bg-deep: #223441;
  --surface: #354b5c;
  --surface-2: #3c5365;
  --text: #f6f8fa;
  --muted: #c5d0d9;
  --accent: #91d2fa;
  --accent-light: #d4efff;
  --silver: #dce1e6;
  --silver-mid: #aeb8c2;
  --silver-dark: #7f8c98;
  --line: rgba(203, 234, 255, 0.12);
  --line-strong: rgba(142, 205, 244, 0.32);
  --shadow: 0 30px 70px rgba(4, 12, 20, 0.22);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(145, 210, 250, .10), transparent 34%),
    linear-gradient(180deg, #304657 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

::selection { background: var(--accent); color: #07111a; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin: 0 auto; }
.section-pad { padding: 100px 0; }
.section-divider { border-top: 1px solid var(--line); }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
  background: var(--accent);
}
.ambient-one { right: -120px; top: 80px; }
.ambient-two { left: -180px; top: 620px; width: 520px; height: 520px; opacity: 0.05; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(26, 39, 51, 0.84);
  border-bottom: 1px solid rgba(203, 234, 255, 0.08);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(145deg, var(--silver), var(--accent), var(--silver-mid)); color: #0b1722;
  font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 8px 30px rgba(145, 210, 250, 0.18), inset 0 0 0 1px rgba(255,255,255,.24);
}
.brand-name { font-family: Manrope, sans-serif; letter-spacing: -0.02em; }
.primary-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover { color: var(--accent-light); }
.menu-toggle { display: none; padding: 6px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

.hero { min-height: 670px; display: flex; align-items: center; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(270px, .62fr); gap: clamp(36px, 4.5vw, 62px); align-items: center; }
.hero-main { min-width: 0; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif; letter-spacing: -0.025em; line-height: 1.08; margin-top: 0; }
h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(54px, 5.5vw, 86px);
  margin-bottom: 34px;
  padding-bottom: 16px;
  max-width: none;
  font-weight: 590;
  letter-spacing: .012em;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--silver);
  text-shadow: 0 1px 0 rgba(255,255,255,.18), 0 8px 28px rgba(11,23,34,.16);
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220,225,230,.98), rgba(220,225,230,.34));
  box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(20,35,46,.14);
}
h2, h3 { position: relative; display: inline-block; }
h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 22px; padding-bottom: 14px; }
h3 { font-size: 28px; margin-bottom: 20px; padding-bottom: 12px; }
h2::after, h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--silver), rgba(220,225,230,.28));
  box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(20,35,46,.10);
}
.hero-copy { max-width: 760px; margin: 0; color: #dce6ed; font-size: clamp(21px, 2.5vw, 32px); line-height: 1.42; letter-spacing: -0.012em; }
.hero-portrait { width: min(100%, 350px); aspect-ratio: 1 / 1; justify-self: end; overflow: hidden; border-radius: 36px; border: 2.25px solid rgba(220, 225, 230, .82); background: var(--surface); box-shadow: 0 26px 70px rgba(4, 12, 20, .28), inset 0 0 0 1px rgba(255,255,255,.08); }
.hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(1.018); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #09141d; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-light); }
.button-secondary {
  background: linear-gradient(180deg, #d7e1e8, #c4d0d9);
  color: #24313b;
  border-color: rgba(220,225,230,.78);
  box-shadow: 0 10px 24px rgba(4,12,20,.10);
}
.button-secondary:hover {
  background: linear-gradient(180deg, #e0e8ed, #ced8df);
  color: #1f2c36;
  border-color: rgba(220,225,230,.95);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 68px; }
.hero-meta span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 480px); gap: 50px; align-items: end; margin-bottom: 42px; }
.compact-heading { grid-template-columns: 1fr; }
.section-intro { color: var(--muted); margin: 0; font-size: 17px; }

.project {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #d7e1e8, #c4d0d9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.project-featured { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; overflow: hidden; }
.project-visual { min-height: 100%; position: relative; overflow: hidden; background: #263948; border: 2px solid rgba(220, 225, 230, .76); border-radius: 18px; }
.market-visual { min-height: 560px; }
.market-photo { width: 100%; height: 100%; min-height: 560px; display: block; object-fit: cover; object-position: center; filter: saturate(.78) contrast(.96) brightness(.90); }
.market-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(20,35,46,.78) 100%);
  pointer-events: none;
}
.market-photo-overlay { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: grid; gap: 5px; }
.market-photo-overlay span { color: var(--accent-light); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.market-photo-overlay strong { color: var(--silver); font-size: 22px; font-weight: 650; }
.project-content { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.project h3, .focus-grid h3 { color: #1f2c36; }

.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-complete { background: rgba(66,128,168,.10); color: #285d7a; border: 1px solid rgba(66,128,168,.28); }
.status-dev { background: rgba(42,58,70,.06); color: #344653; border: 1px solid rgba(42,58,70,.14); }
.status-soon { background: rgba(42,58,70,.04); color: #52616d; border: 1px solid rgba(42,58,70,.14); }
.project-number { color: #657482; font-size: 12px; font-family: Manrope, sans-serif; font-weight: 800; }
.project-lead { color: #253441; font-size: 18px; }
.project-content p, .project-compact p { color: #40505d; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { padding: 7px 10px; border-radius: 8px; background: rgba(73,127,161,.08); color: #3d5a6c; font-size: 11px; border: 1px solid rgba(73,127,161,.14); }
.project-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.text-link { color: #2d6585; font-weight: 700; font-size: 14px; }
.link-note { color: #72808b; font-size: 11px; }
.disabled-link { opacity: .65; cursor: not-allowed; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.project-compact { padding: 32px; min-height: 340px; display: flex; flex-direction: column; }
.compact-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 8px 0 28px; border-radius: 14px; color: #556673; background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(145,210,250,.16)); border: 1px solid rgba(95,111,124,.26); font-size: 25px; }
.project-compact .tags { margin-top: auto; padding-top: 20px; }
.project-soon {
  background: linear-gradient(180deg, #d7e1e8, #c4d0d9);
  box-shadow: var(--shadow);
}

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.focus-grid article { padding: 26px 24px; min-height: 250px; border: 1.5px solid rgba(220,225,230,.58); border-radius: 18px; background: linear-gradient(180deg, #d6e0e7, #c5d1d9); box-shadow: 0 18px 40px rgba(4,12,20,.10); }
.focus-grid article > span { color: #3e6e89; font-size: 11px; font-weight: 800; }
.focus-grid h3 { font-size: 20px; margin-top: 56px; }
.focus-grid p { color: #465560; font-size: 14px; margin-bottom: 0; }
.tech-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.tech-strip span { color: #bdcad4; font-size: 13px; }
.tech-strip span:not(:last-child)::after { content: " /"; color: #435666; margin-left: 12px; }

.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about-copy p { color: #c6d2dc; font-size: 19px; margin: 0 0 20px; }
.resume-section, .contact-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.resume-section .section-intro, .contact-section .section-intro { max-width: 620px; }
.contact-links { display: flex; flex-direction: column; min-width: 280px; border-top: 1px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: #dbe5ec; }
.contact-links span { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #728291; font-size: 12px; }
.footer-wrap a:hover { color: var(--accent-light); }

.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; }

@media (max-width: 900px) {
  .section-pad { padding: 76px 0; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-portrait { justify-self: start; width: min(72vw, 340px); }
  .project-featured { grid-template-columns: 1fr; }
  .project-visual { min-height: 420px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .resume-section, .contact-section { align-items: flex-start; flex-direction: column; }
  .contact-links { width: 100%; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 76px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(39,57,71,.98); box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; }
  h1 { font-size: clamp(48px, 14vw, 72px); white-space: normal; }
  .hero-copy { font-size: 21px; }
  .hero-meta { margin-top: 46px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-content { padding: 30px 24px; }
  .project-visual, .market-visual, .market-photo { min-height: 360px; }
  .market-photo-overlay { left: 20px; right: 20px; bottom: 20px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article { min-height: 210px; }
  .focus-grid h3 { margin-top: 40px; }
  .about-copy p { font-size: 17px; }
  .footer-wrap { flex-direction: column; justify-content: center; gap: 6px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.project h3::after, .focus-grid h3::after {
  background: linear-gradient(90deg, #74818c, rgba(116,129,140,.22));
  box-shadow: none;
}
