@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #f7fbff;
  --muted: #a9c4d4;
  --soft: #6f94a8;
  --line: rgba(206, 238, 255, 0.18);
  --panel: #21475f;
  --panel-deep: #122b3d;
  --blue: #80cbc4;
  --yellow: #ffc600;
  --bg: #193549;
  --max: 1240px;
  --sans: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0.2;
  background-image: linear-gradient(rgba(128, 203, 196, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 203, 196, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow); }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
em { color: var(--blue); font-style: normal; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(32px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(18, 43, 61, 0.82);
  backdrop-filter: blur(14px);
}
.wordmark, .footer-mark {
  color: var(--yellow);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.wordmark-mark { color: var(--blue); font-size: 20px; }
.topbar-meta { display: flex; align-items: center; gap: 28px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.availability { display: flex; align-items: center; gap: 8px; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(128, 203, 196, 0.14); }
.topbar-link { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.topbar-link span, .text-link span, .project-link span { color: var(--yellow); }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr); min-height: 585px; padding-top: 88px; padding-bottom: 78px; }
.eyebrow, .section-index, .detail-label, .project-topline { color: var(--soft); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { display: flex; gap: 14px; margin: 0 0 28px; }
.eyebrow span, .section-index span:first-child { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 28px; font-size: clamp(56px, 8vw, 112px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.92; }
.hero-intro { max-width: 510px; margin-bottom: 34px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 13px 17px; font-weight: 600; }
.button-primary { color: var(--panel-deep); background: var(--yellow); }
.button-primary:hover { color: var(--panel-deep); background: var(--blue); }
.text-link, .project-link { color: var(--ink); font-weight: 600; }
.hero-portrait { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-bottom: 14px; }
.portrait-frame { position: relative; width: min(100%, 300px); }
.portrait-frame::before { position: absolute; top: 15px; left: 15px; width: 100%; height: 100%; border: 1px solid var(--blue); content: ''; }
.portrait-frame img { position: relative; width: 100%; aspect-ratio: 0.88; object-fit: cover; filter: saturate(0.78) contrast(1.05); }
.portrait-label { position: absolute; right: -12px; bottom: 16px; z-index: 1; padding: 5px 9px; color: var(--panel-deep); background: var(--blue); font-family: var(--mono); font-size: 10px; }
.hero-note { padding-bottom: 4px; color: var(--soft); font-family: var(--mono); font-size: 11px; line-height: 1.9; text-transform: uppercase; }

.profile-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-detail { display: flex; flex-direction: column; gap: 7px; min-height: 105px; padding: 22px 24px; border-right: 1px solid var(--line); }
.profile-detail:first-child { padding-left: 0; }
.profile-detail:last-child { border-right: 0; }
.profile-detail strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.profile-detail-accent strong { color: var(--yellow); }
.social-row { display: flex; gap: 7px; }
.social-row a { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.social-row svg { width: 15px; height: 15px; }
.social-row a:hover { border-color: var(--yellow); color: var(--yellow); }

.section-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 52px; padding-top: 112px; }
.section-index { display: flex; flex-direction: column; gap: 8px; padding-top: 9px; }
.section-content { min-width: 0; }
h2 { margin-bottom: 38px; font-size: clamp(40px, 5vw, 68px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.98; }
.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 820px; color: var(--muted); font-size: 17px; }
.about-columns p:first-child { color: var(--ink); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin-bottom: 48px; }
.section-heading p { max-width: 250px; margin-bottom: 52px; color: var(--muted); font-size: 14px; }
.project-list { display: grid; gap: 20px; }
.project { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr); min-height: 370px; border-top: 1px solid var(--line); }
.project-image { position: relative; display: block; overflow: hidden; background: var(--panel-deep); }
.project-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: transform 350ms ease, opacity 350ms ease; }
.project-image:hover img { opacity: 1; transform: scale(1.04); }
.image-arrow { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; color: var(--panel-deep); background: var(--yellow); font-size: 20px; }
.project-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 42px 48px; background: var(--panel-deep); }
.project-topline { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.project h3 { margin-bottom: 20px; font-size: clamp(28px, 3.8vw, 49px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98; }
.project-copy p { max-width: 480px; margin-bottom: 28px; color: var(--muted); font-size: 15px; }
.project-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 14px; }
.project-links { display: flex; flex-wrap: wrap; gap: 22px; }
.project-secondary { min-height: 300px; }
.project-secondary .project-copy { background: var(--panel-deep); }

.footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 112px; padding-top: 24px; padding-bottom: 34px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.footer-mark { margin-right: 9px; }
.footer-muted { margin: 0 8px; color: var(--soft); }
.footer a { color: var(--blue); }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 40px), var(--max)); }
  .topbar { padding-inline: 20px; }
  .topbar-meta { gap: 0; }
  .availability { display: none; }
  .hero { grid-template-columns: 1fr 260px; gap: 30px; padding-top: 60px; }
  .profile-strip { grid-template-columns: repeat(2, 1fr); }
  .profile-detail:nth-child(2) { border-right: 0; }
  .profile-detail:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-detail:first-child { padding-left: 24px; }
  .section-grid { grid-template-columns: 100px minmax(0, 1fr); gap: 28px; }
  .project { grid-template-columns: 1fr; }
  .project-image { height: 280px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .topbar { min-height: 64px; padding-inline: 16px; }
  .topbar-link { font-size: 12px; }
  .hero { display: flex; flex-direction: column; min-height: auto; padding-top: 58px; padding-bottom: 64px; }
  h1 { font-size: clamp(52px, 16vw, 78px); }
  .hero-intro { font-size: 16px; }
  .hero-portrait { justify-content: flex-start; padding: 20px 0 0 22px; }
  .portrait-frame { width: min(68vw, 250px); }
  .hero-note { display: none; }
  .profile-strip { grid-template-columns: 1fr; }
  .profile-detail, .profile-detail:nth-child(-n+2) { min-height: auto; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-detail:last-child { border-bottom: 0; }
  .section-grid { display: block; padding-top: 76px; }
  .section-index { flex-direction: row; gap: 12px; margin-bottom: 22px; }
  h2 { font-size: 46px; }
  .about-columns { grid-template-columns: 1fr; gap: 0; font-size: 16px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 18px; }
  .section-heading p { margin-bottom: 34px; }
  .project { display: block; min-height: 0; }
  .project-image { height: 220px; }
  .project-copy { padding: 28px 22px 32px; }
  .project-topline { margin-bottom: 22px; font-size: 9px; }
  .project h3 { font-size: 38px; }
  .footer { flex-direction: column; margin-top: 76px; }
}
