@import url('https://fonts.google.com/specimen/Libre+Baskerville?query=Libre+Baskerville&preview.script=Latn');

@font-face {
  font-family: 'Saint';
  src: url('../saint.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg:           #000000;
  --bg-2:         #0a0a0a;
  --bg-3:         #111111;
  --border:       #1a1a1a;
  --border-2:     #282828;
  --text:         #b8b8b8;
  --text-bright:  #efefef;
  --text-dim:     #a8a8a8;

  /*  Accent */
  --accent:       #198ab3;
  --accent-faint: rgba(0, 229, 255, 0.07);

  /* Layout */
  --max-width: 840px;
  --gap:       1.5rem;

  /* Type */
  --font-display: 'Saint', 'Space Mono', monospace;
  --font:        'Libre Baskerville ', serif;
  --font-size:   14px;
  --line-height: 1.7;
}

html {
  font-size: var(--font-size);
  line-height: var(--line-height);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* LAYOUT */
.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding-bottom: 3rem;
}

/* TICKER / MARQUEE */
.ticker {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.35rem 0;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-track span {
  padding: 0 3rem;
  white-space: nowrap;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* NAVIGATION */
.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0; 
  right: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
}

/* push page content below the fixed nav */
#site-header {
  height: 5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-logo-wrap {
  display: block;
  position: relative;
}

.nav-logo-still {
  height: 4rem;
  width: auto;
  display: block;
  transition: opacity 0.15s;
}

.nav-logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 4rem;
  width: auto;
  display: block;
  transition: opacity 0.15s;
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.0rem;
}

.nav-links a {
  color: var(--text-bright);
  transition: color 0.1s;
  padding: 0 0.1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-sep {
  color: var(--border-2);
  pointer-events: none;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}

/* classic 88x31 web buttons */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 1px solid var(--border-2);
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
  padding: 3px 5px;
  color: var(--text-dim);
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.1s, color 0.1s;
  white-space: pre-line;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.badge-img {
  padding: 0;
  overflow: hidden;
}

.badge-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.1s, filter 0.1s;
}

.badge-img:hover img {
  opacity: 0.8;
  filter: grayscale(0.4);
}

.footer-meta {
  color: var(--text-dim);
  font-size: 12px;
}

.footer-meta a {
  color: var(--text-dim);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* PAGE HEADER (inner pages) */
.page-header {
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.page-title::before {
  content: '// ';
  color: var(--accent);
  font-weight: 400;
}

.page-title-display {
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 5rem);
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: 0.075em;
}

.page-subtitle {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* BANNER VIDEO */
.banner-wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: #000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.banner-video {
  width: 100%;
  height: 380px;
  display: block;
  max-height: 80vh;
  object-fit: cover;
}

.banner-name {
  position: absolute;
  bottom: 0.25rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 8vw, 5rem);
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* PAGE BANNER (inner pages) */
.page-banner-wrap {
  width: 100%;
  max-width: var(--max-width);
  height: 200px;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  position: relative;
}

.page-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1.00;
}

.page-banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8.5rem);
  color: #000000;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* HOME: HERO */
.hero {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-tagline {
  font-size: 1.0rem;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  max-width: 560px;
  line-height: 1.9;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  padding: 0.3rem 0.8rem;
  background: var(--bg-2);
  letter-spacing: 0.03em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-faint); }
  50%       { opacity: 0.4; }
}

/* HOME: ABOUT */
.home-about {
  padding: 1rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.about-text {
  font-size: 1.0rem;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 1.2rem;
}

.about-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.social-icon:hover {
  background: var(--accent);
}

.social-icon img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.social-icon[aria-label="Resume"] img {
  width: 72%;
  height: 72%;
}

.resume-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-2);
  font-size: 0.85rem;
  color: var(--text-bright);
  background: var(--bg-2);
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.resume-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* HOME: GRID SECTIONS */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 2rem 0 0;
}

@media (max-width: 580px) {
  .home-grid { grid-template-columns: 1fr; }
}

.home-panel {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg-2);
}

.home-panel-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.home-panel-footer {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
}

.home-panel-footer a {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.home-panel-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* HOME: ACTIVITY/NOW WIDGET */
.now-widget {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg-2);
  margin-top: var(--gap);
}

.now-widget-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
}

.now-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.now-list li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.78rem;
  align-items: baseline;
}

.now-label {
  color: var(--text-dim);
  font-size: 10px;
  min-width: 90px;
  flex-shrink: 0;
}

.now-value {
  color: var(--text);
}

.exp-section {
  padding: var(--gap) 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.exp-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.exp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.exp-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.exp-role {
  font-size: 0.96rem;
  color: var(--text-bright);
  font-weight: 700;
}

.exp-date {
  font-size: 0.86rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.exp-org {
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.exp-desc {
  font-size: 1.0rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  line-height: 1.6;
}

.exp-bullets {
  font-size: 1.0rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  line-height: 1.6;
  list-style: disc;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.exp-logo {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.9;
}

/* PROJECT CARDS */
.project-section {
  margin-bottom: calc(var(--gap) * 1.5);
}

.project-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: calc(var(--gap) * 0.75);
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-card {
  padding: 1.4rem 0;
}

.project-card:first-child {
  padding-top: 0;
}

.project-card + .project-card {
  border-top: 1px solid var(--border);
}

.project-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}

.project-card-title a {
  color: var(--text-bright);
}

.project-card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-card-year {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  max-width: 580px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  background: var(--bg-3);
  letter-spacing: 0.03em;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skills-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-card-body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.project-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-card-content .project-card-desc {
  margin-bottom: 0;
}

.project-card-content .project-tags {
  margin-bottom: 0;
  margin-top: 0;
}

.project-card-content .exp-bullets {
  margin-top: 0;
}

.project-card-media {
  flex-shrink: 0;
}

.project-poster-thumb {
  width: 300px;
  display: block;
  border: 1px solid var(--border-2);
  opacity: 0.8;
  cursor: zoom-in;
  transition: opacity 0.15s, border-color 0.15s;
}

.project-poster-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.project-card-img {
  width: 350px;
  display: block;
  border: 1px solid var(--border-2);
}

@media (max-width: 600px) {
  .project-card-body { flex-direction: column; }
  .project-poster-thumb { width: 100%; }
  .project-card-img { width: 100%; }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--border-2);
}

.project-links {
  display: flex;
  gap: 0.9rem;
  font-size: 0.8rem;
}

.project-links a {
  color: var(--text-dim);
}

.project-links a:hover {
  color: var(--accent);
}

/* BLOG */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:first-child {
  border-top: 1px solid var(--border);
}

.post-date {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 76px;
  letter-spacing: 0.02em;
}

.post-title {
  font-size: 0.82rem;
  color: var(--text-bright);
}

.post-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.empty-state {
  padding: 2.5rem 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 2;
}

/* CONTACT */
.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.contact-item:first-child {
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 9px;
  color: var(--text-dim);
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.contact-value a {
  color: var(--text-bright);
}

.contact-value a:hover {
  color: var(--accent);
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  white-space: nowrap;
  line-height: 1.8;
}

/* UTILITIES */
.text-accent  { color: var(--accent); }
.text-dim     { color: var(--text-dim); }
.text-bright  { color: var(--text-bright); }
.mt-1         { margin-top: 0.5rem; }
.mt-2         { margin-top: 1rem; }
.mt-3         { margin-top: 1.5rem; }

hr.dashed {
  border: none;
  border-top: 1px dashed var(--border-2);
  margin: 2rem 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  :root { --font-size: 12px; }
  .hero-name   { font-size: 1.8rem; }
  .nav-brand   { display: none; }
  .post-item   { flex-direction: column; gap: 0.2rem; }
  .post-date   { min-width: unset; }
  .contact-item { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
}
