/* =========================================
   NAV, HERO, PHILOSOPHY, PROJECTS,
   EXPERIENCE, MARQUEE, CONTACT
   ========================================= */

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 2rem 5vw;
  z-index: 1100;
  mix-blend-mode: difference;
  color: #fff;
  isolation: isolate;
  transition: padding 0.22s ease, color 0.22s ease, mix-blend-mode 0.22s ease;
}
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.78));
  border-bottom: 1px solid rgba(211, 211, 211, 0.22);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}
nav > * {
  position: relative;
  z-index: 1;
}
body.nav-scrolled nav {
  mix-blend-mode: normal;
  color: var(--silver);
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}
body.nav-scrolled nav::before {
  opacity: 1;
  transform: translateY(0);
}
.easter-nudge {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.75;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

/* --- Hero --- */
#home { min-height: 100vh; position: relative; padding-top: 17vh; }

.hero-title {
  font-size: clamp(5.2rem, 14.5vw, 14.5rem);
  line-height: 0.76;
  max-width: calc(100vw - clamp(17rem, 23vw, 29rem));
  text-wrap: balance;
  color: var(--reflex-blue);
  margin-left: -1vw; position: relative; z-index: 2; display: inline-block;
}

.vertical-punk {
  position: absolute; right: 5vw; top: 15vh;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: clamp(3rem, 8vw, 8rem); color: var(--neon-orange);
  mix-blend-mode: multiply; line-height: 0.8; font-weight: 800;
}
.manifesto {
  margin-top: 11vh; max-width: 520px; background: var(--void); color: var(--acid-pink);
  padding: 2rem; transform: rotate(-2deg); font-size: 1.2rem; line-height: 1.3; font-weight: 700;
  position: relative; z-index: 3;
}
.manifesto .sub {
  display: block;
  margin-top: 1rem;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.impact-line {
  margin-top: 1.9rem;
  max-width: 860px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--void);
  background: rgba(0, 0, 255, 0.08);
  border: 1px solid rgba(0, 0, 255, 0.3);
  padding: 0.8rem 1rem;
  display: inline-block;
  transform: rotate(-0.8deg);
}
.ai-stamp {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--void);
  background: repeating-linear-gradient(
    -45deg,
    var(--neon-orange) 0 12px,
    #ff7a1a 12px 24px
  );
  color: var(--void);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  transform: rotate(-1.2deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}
.ai-stamp .main {
  font-size: clamp(1rem, 2.3vw, 1.7rem);
  line-height: 1;
}
.ai-stamp .since {
  padding: 0.42rem 0.62rem;
  background: var(--void);
  color: var(--silver);
  border: 1px solid rgba(211, 211, 211, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}
.hero-cta-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.hero-cta {
  text-decoration: none;
  border: 1px solid var(--void);
  color: var(--void);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  transform: rotate(-1deg);
  background: rgba(211, 211, 211, 0.55);
}
.hero-cta.primary {
  background: var(--void);
  color: var(--silver);
  border-color: var(--void);
}
.hero-cta:hover {
  color: var(--acid-pink);
  border-color: var(--acid-pink);
}
.hero-cta.primary:hover {
  color: var(--neon-orange);
  border-color: var(--neon-orange);
}
.hero-status {
  font-size: 0.7rem;
  color: var(--neon-orange);
  letter-spacing: 0.09em;
  border: 1px dashed rgba(255, 69, 0, 0.45);
  padding: 0.65rem 0.8rem;
  transform: rotate(1deg);
}

/* --- Delivery Modes --- */
#modes {
  padding-top: 0;
  padding-bottom: 12vh;
}
.modes-head {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--reflex-blue);
  margin-bottom: 1.3rem;
  letter-spacing: 0.08em;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.mode-card {
  border: 2px solid rgba(5, 5, 5, 0.5);
  padding: 1.2rem 1.2rem 1.1rem;
  background:
    linear-gradient(145deg, rgba(211, 211, 211, 0.95), rgba(211, 211, 211, 0.72));
  transform: rotate(-0.7deg);
}
.mode-card:nth-child(2) {
  transform: rotate(0.8deg);
}
.mode-tag {
  font-size: 0.7rem;
  color: var(--neon-orange);
  margin-bottom: 0.75rem;
}
.mode-card h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 0.95;
  margin-bottom: 0.8rem;
  color: var(--void);
}
.mode-card p {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}
.mode-list {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mode-list li {
  border: 1px solid rgba(5, 5, 5, 0.35);
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
}

/* --- Philosophy --- */
#philosophy { padding: 15vh 5vw; background-color: var(--void); color: var(--silver); margin-top: 10vh; }

.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.phil-headline { font-size: clamp(2rem, 5vw, 5rem); line-height: 1; color: var(--acid-pink); }
.phil-text p { margin-bottom: 2rem; font-size: 1.2rem; line-height: 1.6; font-weight: 700; }

.dev-confession {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px dashed var(--neon-orange);
  background: rgba(255,69,0,0.05);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--silver);
  text-transform: uppercase;
  position: relative;
}
.dev-confession .highlight { color: var(--neon-orange); font-weight: bold; }
.blink { animation: blinker 1s linear infinite; color: var(--acid-pink); font-weight: bold; }
@keyframes blinker { 50% { opacity: 0; } }

.capabilities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(211,211,211,0.2);
}
.cap-item { font-family: var(--font-mono); color: var(--reflex-blue); font-size: 1rem; }

/* --- Projects --- */
#projects { padding-top: 15vh; padding-bottom: 10vh; }
.section-header { font-size: clamp(3rem, 7vw, 7rem); margin-bottom: 4rem; text-transform: uppercase; line-height: 0.9; }
.projects-head {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.projects-subhead {
  margin: -2.2rem 0 2.6rem;
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.45;
  font-weight: 700;
  color: rgba(5, 5, 5, 0.82);
}

.project-row {
  display: flex; flex-direction: column; padding: 2.6rem 1.2rem;
  border: 2px solid rgba(5,5,5,0.24); position: relative;
  text-decoration: none; color: var(--void); transition: color 0.3s, border-color 0.3s, background-color 0.3s;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 1.1rem;
}
.project-row:hover { color: var(--reflex-blue); border-color: var(--reflex-blue); background: rgba(0, 0, 255, 0.04); }
.project-row:focus-visible {
  outline: 3px dashed var(--reflex-blue);
  outline-offset: 8px;
}
.project-kind {
  margin-bottom: 0.95rem;
  color: var(--reflex-blue);
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}
.project-title { font-size: clamp(2.6rem, 7vw, 7rem); line-height: 0.9; font-weight: 800; text-transform: uppercase; position: relative; z-index: 2; }
.project-meta { display: flex; gap: 3rem; margin-top: 1.5rem; font-weight: 700; color: var(--neon-orange); }
.project-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.project-case-promo {
  display: inline-block;
  border: 2px dashed var(--void);
  color: var(--void);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 69, 0, 0.06);
  transform: rotate(1deg);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.project-link-promo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--void);
  padding: 0.55rem 0.75rem;
  background: rgba(5, 5, 5, 0.04);
  transform: rotate(-1deg);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.project-link-tag {
  color: var(--acid-pink);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.project-link-text {
  color: var(--void);
  letter-spacing: 0.08em;
}
.project-row:hover .project-link-promo {
  border-color: var(--reflex-blue);
  background: rgba(0, 0, 255, 0.08);
  transform: translateX(10px) rotate(0deg);
}
.project-row:hover .project-case-promo {
  border-color: var(--reflex-blue);
  color: var(--reflex-blue);
  background: rgba(0, 0, 255, 0.06);
}
.project-row:hover .project-link-text { color: var(--reflex-blue); }
.project-live-link:focus-visible {
  outline: 2px dashed var(--acid-pink);
  outline-offset: 4px;
}

.hover-reveal {
  position: fixed; top: 0; left: 0; width: 450px; height: 550px; pointer-events: none; opacity: 0;
  transform: scale(0.8) translate(-50%, -50%) rotate(-2deg); transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50; filter: grayscale(100%) contrast(150%) brightness(80%); object-fit: cover;
}
.project-row:hover .hover-reveal { opacity: 1; transform: scale(1) translate(-50%, -50%) rotate(2deg); }

/* --- Experience / Timeline --- */
#experience { padding: 10vh 5vw; }
.timeline-row { display: grid; grid-template-columns: 20vw 1fr; padding: 2rem 0; border-bottom: 1px solid var(--void); }
.year { font-size: 4rem; color: var(--reflex-blue); line-height: 1; }
.role { font-size: 1.5rem; font-weight: 800; text-transform: none; }
.company { font-family: var(--font-mono); color: var(--neon-orange); margin-top: 0.5rem; }
.date-range {
  font-family: var(--font-sans);
  color: rgba(5, 5, 5, 0.7);
  font-size: 1.9rem;
  margin-top: 0.35rem;
}

/* --- Marquee --- */
.marquee-strip {
  background: var(--neon-orange); color: var(--void); padding: 1.5rem 0; margin: 10vh 0;
  transform: rotate(-2deg) scale(1.05); white-space: nowrap; overflow: hidden; display: flex;
  position: relative; z-index: 2; border-top: 4px solid var(--void); border-bottom: 4px solid var(--void);
}
.marquee-content {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  font-size: 3rem;
  font-weight: 800;
  animation: ticker 18s linear infinite;
  will-change: transform;
}
.marquee-content span {
  display: inline-block;
  padding-right: 4rem;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Contact --- */
#contact {
  min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding-bottom: 10vh;
}
.contact-label { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 800; }
.email-link {
  font-size: clamp(1.1rem, 5.6vw, 6.8rem);
  color: var(--void); text-decoration: none; line-height: 0.92;
  white-space: nowrap; word-break: normal; overflow-wrap: normal; max-width: 100%;
  position: relative; display: inline-block;
}
.email-link:hover { color: var(--acid-pink); }
.footer-links { margin-top: 5rem; display: flex; gap: 2rem; }
.footer-links a { font-family: var(--font-mono); color: var(--void); text-decoration: none; font-weight: bold; }
.footer-links a:hover { color: var(--reflex-blue); text-decoration: underline; }
