:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --muted: #888888;
  --line: rgba(255, 255, 255, 0.2);
  --accent: #990000;
  --accent-hover: #780606;
  --font-main: "Space Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--ink); 
  font-family: var(--font-main); 
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased; 
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; text-transform: uppercase; }

.site-header { height: 82px; padding: 0 6.1vw; display: flex; align-items: center; justify-content: space-between; position: absolute; top: 0; left: 0; width: 100%; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.05em; }
.wordmark span { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.site-nav { display: flex; align-items: center; gap: 40px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.site-nav a, .site-footer a { transition: color .25s ease; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.nav-contact { color: var(--accent); }
.nav-contact span { margin-left: 4px; }
.menu-toggle { display: none; }

.hero { min-height: 810px; height: min(100vh, 940px); max-height: 1000px; padding: 180px 6.1vw 74px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 20px; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: 0.15em; color: var(--accent); font-weight: 700; }
.hero h1 { margin: 30px 0 48px; font-size: clamp(60px, 7vw, 100px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 700; }
h1 em, h2 em, .contact em { font-style: normal; color: var(--accent); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; max-width: 450px; }
.hero-bottom p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Brutalist sharp button instead of round */
.round-link { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--ink); font-size: 18px; transition: all .25s; background: transparent; color: var(--ink); }
.round-link:hover { background: var(--accent); border-color: var(--accent); transform: translate(4px, 4px); }

.hero-frame { height: min(63vh, 590px); min-height: 400px; position: relative; margin: 12px 0 0 7%; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.8)), url("https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&w=1400&q=85") center 47% / cover; background-color: #111; color: var(--ink); overflow: hidden; border: 1px solid var(--line); filter: grayscale(100%) contrast(120%); }
.frame-grain { position: absolute; inset: 0; opacity: .15; 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%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.frame-index, .frame-caption { position: absolute; z-index: 1; font-size: 10px; letter-spacing: 0.1em; font-weight: 700; }
.frame-index { top: 24px; left: 25px; background: var(--accent); padding: 4px 8px; }
.frame-caption { bottom: 25px; left: 25px; }
.frame-mark { position: absolute; z-index: 1; right: 24px; bottom: 10px; font-size: 90px; font-weight: 700; opacity: 0.2; }
.hero-side-note { position: absolute; left: 6.1vw; bottom: 30px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.hero-side-note span { color: var(--accent); padding: 0 6px; }

.section-wrap { padding-left: 10.5vw; padding-right: 10.5vw; }
.work { padding-top: 125px; padding-bottom: 142px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 60px; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(40px, 5vw, 70px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.section-aside { margin: 0 0 7px; font-size: 14px; line-height: 1.4; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px 28px; }
.project-large { grid-column: 1 / -1; }
.project-image { position: relative; height: 330px; overflow: hidden; background-size: cover; background-position: center; transition: background-size .5s ease, filter .3s ease; border: 1px solid var(--line); filter: grayscale(100%); }
.project-large .project-image { height: clamp(340px, 51vw, 650px); }
.project-card:hover .project-image { filter: grayscale(0%); border-color: var(--accent); }

.image-one { background-image: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.8)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=85"); background-position: center 56%; background-color: #111; }
.image-two { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8)), url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1000&q=85"); background-color: #111; }
.image-three { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8)), url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1000&q=85"); background-color: #111; }

.project-number { position: absolute; top: 0; left: 0; z-index: 1; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 6px 12px; }
.project-play { position: absolute; right: 20px; bottom: 20px; z-index: 1; width: 50px; height: 50px; border: 1px solid var(--ink); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(0.9); transition: all .25s; background: var(--bg); }
.project-card:hover .project-play { opacity: 1; transform: scale(1); background: var(--accent); border-color: var(--accent); color: var(--ink); }

.project-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; }
.project-meta h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.project-meta p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.project-meta > span { margin-top: 2px; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }

.about { padding-top: 84px; background: #050505; border-bottom: 1px solid var(--line); }
.about-top { display: flex; align-items: center; justify-content: space-between; }
/* Brutalist sharp square instead of rotating circle */
.about-stamp { display: grid; place-items: center; width: 100px; height: 100px; border: 1px solid var(--ink); text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.6; background: var(--bg); }
.about-content { display: grid; grid-template-columns: 1.3fr .7fr; gap: 9%; align-items: end; padding-top: 60px; padding-bottom: 102px; }
.about-content h2 { margin: 0; max-width: 730px; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.2; letter-spacing: -0.05em; font-weight: 700; }
.about-detail p { margin: 0 0 32px; max-width: 400px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 17px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.text-link span { color: var(--accent); }

.about-footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }

.contact { padding-top: 126px; padding-bottom: 132px; background: var(--accent); color: var(--ink); }
.contact .eyebrow { color: var(--ink); }
.contact > a { position: relative; display: inline-block; margin-top: 22px; font-size: clamp(50px, 8vw, 110px); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; transition: color .2s; }
.contact > a:hover { color: var(--bg); }
.contact > a em { color: var(--bg); }
.contact-arrow { position: absolute; top: 9px; right: -65px; font-size: 40px; color: var(--bg); transition: transform .25s; }
.contact > a:hover .contact-arrow { transform: translate(10px, -10px); }

.site-footer { margin: 0; padding: 0 6.1vw; min-height: 100px; display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 20px; }
.site-footer > a:last-child { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }

.footer-credits { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-credits span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.footer-credits a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: all .2s; }
.footer-credits a:hover { color: var(--accent); border-color: var(--accent); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Resume / Data Log Section */
.resume { padding-top: 100px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
.resume-grid { display: grid; grid-template-columns: 3fr 7fr; gap: 6vw; }

.resume-sidebar { position: sticky; top: 120px; align-self: start; }
.resume-block { margin-bottom: 40px; }
.resume-block h3 { font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 0 15px; letter-spacing: 0.1em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.resume-block p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; }
.resume-block strong { color: var(--ink); }

.brutalist-list { list-style: none; padding: 0; margin: 0; }
.brutalist-list li { font-size: 11px; color: var(--ink); padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; }
.brutalist-list li span { color: var(--muted); }

.experience-item { margin-bottom: 60px; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px; }
.exp-header h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.exp-header span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }

.exp-role { margin-bottom: 25px; }
.exp-role h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.exp-role h4 span { color: var(--accent); font-weight: 400; font-size: 11px; margin-left: 8px; }
.exp-role p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); max-width: 90%; }

/* Footer Additions */
.footer-left { display: flex; align-items: center; gap: 20px; }
.footer-socials { display: flex; gap: 12px; border-left: 1px solid var(--line); padding-left: 20px; }
.footer-socials a { color: var(--muted); transition: color .2s, transform .2s; display: grid; place-items: center; }
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* "Draw & Fill" Support Button */
.btn-support {
  background: transparent;
  border: 1px solid transparent; /* Makes the resting border invisible */
  padding: 10px 18px;
  color: var(--ink) !important;
  font-weight: 700;
  position: relative;
  transition: color 0.5s ease;
  overflow: hidden;
  z-index: 1;
}

/* The top line that draws right to left */
.btn-support::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 2px;
  width: 0;
  background-color: var(--accent);
  transition: width 0.5s ease;
}

.btn-support:hover::before {
  width: 100%;
}

/* The background fill that comes up from the bottom */
.btn-support::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: var(--accent);
  transition: height 0.4s ease;
  z-index: -1;
}

.btn-support:hover {
  color: var(--bg) !important; /* Turns text black when filled */
  transition-delay: 0.4s;
}

.btn-support:hover::after {
  height: 100%;
  transition-delay: 0.4s;
}

/* If you are using a <button> tag anywhere and need it disabled */
.btn-support:disabled {
  pointer-events: none;
  opacity: 1;
  color: var(--bg);
  background: var(--bg);
}

/* YouTube Archive Banner */
.yt-banner {
  margin-top: 80px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s;
}
.yt-banner a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 50px;
}
.yt-banner-left h3 {
  margin: 12px 0 0;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.yt-banner-right svg {
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}
.yt-banner:hover {
  border-color: var(--accent);
  background: rgba(153, 0, 0, 0.08); /* Faint blood red tint */
}
.yt-banner:hover .yt-banner-right svg {
  color: var(--accent);
  transform: scale(1.15) rotate(-5deg);
}

/* Mobile adjustments mapped to the new layout */
@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 6vw; position: fixed; border-bottom: 1px solid var(--line); }
  .menu-toggle { border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 10px; font-weight: 700; }
  .menu-icon { display: flex; flex-direction: column; gap: 4px; width: 16px; }
  .menu-icon i { height: 2px; width: 100%; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
  
  .site-nav { position: fixed; top: 70px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 6vw; background: var(--bg); max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; border-bottom: 1px solid transparent; }
  .site-nav.is-open { max-height: 300px; padding-top: 20px; padding-bottom: 20px; border-bottom-color: var(--line); }
  .site-nav a { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
  
  .hero { height: auto; min-height: 0; padding: 140px 6vw 70px; display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { margin: 25px 0 25px; font-size: clamp(48px, 12vw, 80px); }
  .hero-bottom { max-width: none; }
  .hero-frame { order: 2; margin: 38px 0 0; min-height: 380px; height: 110vw; max-height: 540px; background-position: center; }
  .hero-side-note { left: 6vw; bottom: 24px; font-size: 9px; }
  
  .section-wrap { padding-left: 6vw; padding-right: 6vw; }
  .work { padding-top: 88px; padding-bottom: 92px; }
  .section-heading { padding-bottom: 40px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-heading h2 { font-size: 40px; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .project-large { grid-column: auto; }
  .project-image, .project-large .project-image { height: 72vw; max-height: 480px; min-height: 270px; filter: grayscale(0%); }
  .project-meta { flex-direction: column; gap: 7px; padding-top: 15px; }
  
  .about { padding-top: 60px; }
  .about-stamp { width: 80px; height: 80px; }
  .about-content { grid-template-columns: 1fr; gap: 35px; padding-top: 40px; padding-bottom: 70px; }
  .about-content h2 { font-size: clamp(28px, 8vw, 42px); }
  .about-detail p { max-width: 100%; }
  
  .contact { padding-top: 88px; padding-bottom: 95px; }
  .contact > a { font-size: clamp(42px, 10vw, 70px); }
  .contact-arrow { right: -40px; font-size: 24px; }
  .site-footer { margin: 0; padding: 0 6vw; min-height: 72px; flex-direction: column; justify-content: center; gap: 15px; text-align: center; }

  .resume-grid { grid-template-columns: 1fr; gap: 50px; }
  .resume-sidebar { position: static; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 5px; }
  .footer-left { flex-direction: column; gap: 15px; }
  .footer-socials { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 15px; }

  .btn-support { width: 100%; text-align: center; margin-top: 10px; }
  
  .yt-banner { margin-top: 50px; }
  .yt-banner a { padding: 25px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .yt-banner-right { align-self: flex-end; }
  .yt-banner-left h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}