/* ================================================================
   YASH AHIRE — v2 · BLACK/YELLOW MONOSPACE BRUTALISM (REEDL_ DNA)
   ================================================================ */
:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --panel2: #161616;
  --line: #262626;
  --line2: #3a3a3a;
  --txt: #f0f0f0;
  --dim: #9a9a9a;
  --yl: #ffd02e;
  --yl-dark: #d9ae12;
  --grn: #38e07a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --rad: 4px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt); font-family: var(--mono);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yl); color: #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line2); border: 2px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--yl); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.dim { color: var(--dim); }
.small { font-size: .82rem; }
.yl { color: var(--yl); }
.blink { animation: blink 1.1s steps(1) infinite; color: var(--yl); }
@keyframes blink { 50% { opacity: 0; } }

/* ============ BOOT LOADER ============ */
.boot {
  position: fixed; inset: 0; z-index: 999; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s, visibility .45s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot pre {
  font-family: var(--mono); font-size: clamp(.62rem, 1.7vw, .85rem); color: var(--yl);
  width: min(560px, 90%); white-space: pre-wrap; line-height: 1.7;
}
.boot pre .ok { color: var(--grn); }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem); height: 58px;
  background: rgba(10,10,10,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -1px; }
.brand span { color: var(--yl); }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; }
.topnav a {
  text-decoration: none; font-size: .78rem; color: var(--dim); letter-spacing: .06em;
  transition: color .2s; position: relative;
}
.topnav a:hover { color: var(--yl); }
.topnav a.active { color: var(--yl); }
.topnav a.active::before { content: "▸ "; }
.topnav-cta { border: 1px solid var(--yl); color: var(--yl) !important; padding: .3rem .7rem; border-radius: var(--rad); }
.topnav-cta:hover { background: var(--yl); color: #000 !important; }
.topbar-right { display: flex; align-items: center; gap: .9rem; }
.clock { font-size: .78rem; color: var(--dim); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grn); animation: pdot 1.8s infinite; }
@keyframes pdot { 0%,100% { box-shadow: 0 0 0 0 rgba(56,224,122,.5);} 50% { box-shadow: 0 0 0 6px rgba(56,224,122,0);} }
.burger { display: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 110px 0 60px; overflow: hidden;
}
.hero-giant {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: clamp(6rem, 22vw, 20rem); font-weight: 800; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px #1e1e1e; user-select: none; pointer-events: none;
  white-space: nowrap; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center;
}
.term-window {
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--rad);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.term-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--panel2);
  border-radius: var(--rad) var(--rad) 0 0;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.term-bar i:first-child { background: var(--yl); }
.term-bar span { margin-left: 10px; font-size: .72rem; color: var(--dim); }
.term-body { padding: 1.2rem 1.3rem; font-size: .92rem; }
.tline { min-height: 1.6em; }
.tprompt { color: var(--yl); font-weight: 700; }
.tanswer { color: var(--txt); padding-left: 1.2rem; white-space: pre-wrap; }
.tanswer.dim, .tline .dim { color: var(--dim); }
.caret {
  display: inline-block; width: 9px; height: 1.1em; background: var(--yl);
  vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 1.6rem;
}
.hstat { background: var(--panel); padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.hstat b { font-size: 1.5rem; color: var(--yl); font-weight: 800; letter-spacing: -1px; }
.hstat span { font-size: .68rem; color: var(--dim); line-height: 1.5; text-transform: uppercase; letter-spacing: .05em; }
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.hero-logo {
  width: min(300px, 60%); border: 1px solid var(--line2); border-radius: var(--rad);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg);} 50% { transform: translateY(-14px) rotate(1deg);} }
.hero-kicker { text-align: center; font-size: .8rem; letter-spacing: .22em; color: var(--dim); line-height: 2; }
.hero-scroll {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: var(--dim); text-decoration: none; font-size: .72rem; letter-spacing: .25em;
  animation: bob 2s ease-in-out infinite; z-index: 1;
}
.hero-scroll:hover { color: var(--yl); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 7px);} }

/* ============ YELLOW MARQUEE ============ */
.ymarquee { background: var(--yl); overflow: hidden; padding: .75rem 0; transform: rotate(-1deg) scale(1.02); border: 1px solid #000; }
.ymarquee-track {
  display: flex; gap: 2.2rem; width: max-content; align-items: center;
  animation: marq 22s linear infinite; color: #000; font-weight: 800; font-size: 1rem;
  white-space: nowrap; letter-spacing: .04em;
}
.ymarquee-track em { font-style: normal; font-weight: 400; }
.ymarquee-track span { font-weight: 800; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; position: relative; }
.sec-head { margin-bottom: 3rem; }
.sec-tag { display: block; font-size: .78rem; color: var(--yl); letter-spacing: .18em; margin-bottom: .6rem; }
.sec-head h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }

/* ============ REEDL ============ */
.reedl-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.6rem; align-items: center; }
.browser { border: 1px solid var(--line2); border-radius: var(--rad); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.browser-bar { display: flex; justify-content: space-between; align-items: center; background: var(--panel2); border-bottom: 1px solid var(--line); padding: .55rem .9rem; font-size: .72rem; color: var(--dim); }
.b-live { color: var(--grn); font-weight: 700; animation: blink 2.2s steps(1) infinite; }
.reedl-app { background: #0d0d0d; font-size: .72rem; }
.ra-nav {
  display: flex; align-items: center; gap: 1.1rem; background: var(--yl); color: #000;
  padding: .55rem .9rem; font-weight: 700;
}
.ra-nav b { font-size: .95rem; letter-spacing: -1px; margin-right: auto; }
.ra-nav span { font-size: .68rem; opacity: .75; }
.ra-write { background: #000; color: var(--yl); padding: .2rem .55rem; opacity: 1 !important; }
.ra-main { display: grid; grid-template-columns: 108px 1fr 158px; min-height: 320px; }
.ra-side { border-right: 1px solid var(--line); padding: .8rem .5rem; display: flex; flex-direction: column; gap: .45rem; }
.ra-cat { color: var(--yl); font-size: .62rem; letter-spacing: .08em; margin-bottom: .1rem; }
.ra-side a { color: var(--dim); text-decoration: none; font-size: .68rem; padding: .18rem .4rem; }
.ra-side a.active, .ra-side a:hover { background: var(--yl); color: #000; }
.ra-article { padding: .9rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.ra-chip { font-size: .6rem; color: var(--yl); border: 1px solid var(--line2); display: inline-block; padding: .12rem .4rem; width: fit-content; }
.ra-article h4 { font-size: .85rem; line-height: 1.35; color: var(--txt); }
.ra-img {
  height: 74px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #2b4bd8 0 34px, #8a8a8a 34px 68px, #c96f12 68px 102px, #c22f2f 102px 136px, #2e8b57 136px 170px);
  opacity: .8;
}
.ra-keys { border-left: 2px solid var(--yl); padding: .35rem .6rem; display: flex; flex-direction: column; gap: .25rem; }
.ra-keys p { font-size: .62rem; color: var(--dim); }
.ra-actions { display: flex; gap: .8rem; align-items: center; margin-top: auto; font-size: .64rem; color: var(--dim); }
.ra-save { border: 1px solid var(--line2); padding: .2rem .5rem; }
.ra-read { background: var(--yl); color: #000; font-weight: 800; padding: .28rem .6rem; margin-left: auto; }
.ra-next { padding: .8rem .6rem; display: flex; flex-direction: column; gap: .7rem; }
.ra-mini { display: flex; flex-direction: column; gap: .25rem; }
.ra-thumb { height: 34px; border-radius: 3px; }
.ra-thumb.t1 { background: linear-gradient(120deg, #1a2a4a, #3a5a8a); }
.ra-thumb.t2 { background: linear-gradient(120deg, #4a2a1a, #8a5a3a); }
.ra-thumb.t3 { background: linear-gradient(120deg, #2a4a2a, #5a8a5a); }
.ra-mini p { font-size: .6rem; color: var(--txt); line-height: 1.4; }
.ra-mini span { font-size: .58rem; color: var(--dim); }

.reedl-side h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.agents { border: 1px solid var(--line2); border-radius: var(--rad); margin: 1.2rem 0; overflow: hidden; }
.agent { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; font-size: .74rem; border-bottom: 1px solid var(--line); }
.agent:last-child { border-bottom: 0; }
.a-name { color: var(--yl); font-weight: 700; }
.a-job { color: var(--dim); }
.chiprow { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.chiprow span { font-size: .68rem; padding: .22rem .6rem; border: 1px solid var(--line2); color: var(--dim); border-radius: 2px; }
.ybtn {
  display: inline-block; background: var(--yl); color: #000; font-weight: 800; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: var(--rad); font-size: .9rem; letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s; border: 1px solid var(--yl);
}
.ybtn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--yl-dark); }
.gbtn {
  display: inline-block; background: transparent; color: var(--txt); text-decoration: none;
  padding: .8rem 1.4rem; border-radius: var(--rad); font-size: .85rem;
  border: 1px solid var(--line2); transition: border-color .2s, color .2s, transform .2s; cursor: pointer; font-family: var(--mono);
}
.gbtn:hover { border-color: var(--yl); color: var(--yl); transform: translateY(-2px); }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.wcard {
  border: 1px solid var(--line2); border-radius: var(--rad); background: var(--panel);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.wcard:hover { transform: translateY(-6px); border-color: var(--yl); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px var(--yl); }
.wc-wide { grid-column: span 3; flex-direction: row; }
.wcard-media { flex: 0 0 42%; overflow: hidden; }
.wcard-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: transform .5s, filter .5s; }
.wcard:hover .wcard-media img { transform: scale(1.05); filter: grayscale(0); }
.wcard-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.wmeta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wbadge { font-size: .62rem; font-weight: 700; letter-spacing: .08em; padding: .22rem .55rem; border-radius: 2px; }
.wb-prod { background: var(--yl); color: #000; }
.wb-res { border: 1px solid var(--yl); color: var(--yl); }
.wb-oss { border: 1px solid var(--line2); color: var(--dim); }
.wrole { font-size: .62rem; color: var(--dim); letter-spacing: .12em; }
.wcard h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.wcard p { font-size: .84rem; color: var(--dim); flex: 1; }
.wcard p b { color: var(--txt); }
.wlink { font-size: .78rem; color: var(--yl); text-decoration: none; }
.wlink:hover { text-decoration: underline; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.photo-frame { border: 1px solid var(--line2); border-radius: var(--rad); overflow: hidden; background: var(--panel); }
.photo-frame img { width: 100%; }
.photo-cap { display: block; padding: .7rem .9rem; font-size: .7rem; color: var(--dim); border-top: 1px solid var(--line); letter-spacing: .1em; }
.about-term { border: 1px solid var(--line2); border-radius: var(--rad); background: var(--panel); padding: 1rem 1.1rem; font-size: .78rem; margin-top: 1rem; }
.about-body .big { font-size: clamp(1rem, 1.9vw, 1.25rem); line-height: 1.75; margin-bottom: 1.2rem; }
mark { background: var(--yl); color: #000; padding: 0 .3em; border-radius: 2px; }
.pillars { display: flex; flex-direction: column; margin-top: 2rem; border-top: 1px solid var(--line); }
.pillar { display: flex; gap: 1.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); transition: background .25s, padding-left .25s; }
.pillar:hover { background: rgba(255,208,46,.04); padding-left: .6rem; }
.p-num { color: var(--yl); font-weight: 800; font-size: .85rem; padding-top: .2rem; }
.pillar h4 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.pillar p { font-size: .84rem; color: var(--dim); }

/* ============ EXPERIENCE LOG ============ */
.log-feed { border-left: 2px solid var(--yl); padding-left: 1.6rem; display: flex; flex-direction: column; gap: 1.6rem; }
.log-entry { position: relative; border: 1px solid var(--line2); background: var(--panel); border-radius: var(--rad); padding: 1.4rem 1.6rem; transition: border-color .3s, transform .3s; }
.log-entry:hover { border-color: var(--yl); transform: translateX(6px); }
.log-entry::before {
  content: "▸"; position: absolute; left: -1.6rem; top: 1.35rem; transform: translateX(-50%);
  color: var(--yl); background: var(--bg); padding: .2rem 0; font-size: 1rem;
}
.log-ts { font-size: .68rem; color: var(--yl); letter-spacing: .12em; }
.log-entry h3 { font-size: 1.1rem; font-weight: 800; margin: .35rem 0 .5rem; }
.log-entry p { font-size: .85rem; color: var(--dim); margin-bottom: .4rem; }
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.edu { border: 1px dashed var(--line2); border-radius: var(--rad); padding: 1.2rem 1.4rem; }
.edu h4 { font-size: 1rem; font-weight: 800; margin: .3rem 0 .2rem; }
.edu p { font-size: .78rem; color: var(--dim); }
.skills-block { margin-top: 2.4rem; border: 1px solid var(--line2); border-radius: var(--rad); background: var(--panel); padding: 1.4rem 1.6rem; }
.skills-lines { margin-top: .8rem; display: flex; flex-direction: column; gap: .45rem; font-size: .82rem; color: var(--dim); overflow-x: auto; }
.skills-lines p { white-space: nowrap; }
.sk-cat { color: var(--yl); font-weight: 700; }

/* ============ QUOTE ============ */
.quote-sec { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bigquote { font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.7; font-style: italic; position: relative; padding-left: 2rem; border-left: 3px solid var(--yl); }
.bigquote .qmark { color: var(--yl); font-style: normal; }
.bigquote footer { margin-top: 1.4rem; font-size: .8rem; font-style: normal; color: var(--dim); }
.bigquote footer a { color: var(--yl); text-decoration: none; }
.bigquote footer a:hover { text-decoration: underline; }

/* ============ PLAYABLE TERMINAL ============ */
.term-window.big { max-width: 860px; margin: 0 auto; }
.term-play { min-height: 340px; max-height: 460px; overflow-y: auto; cursor: text; outline: none; }
.term-input-line { display: flex; align-items: center; gap: .5rem; }
.term-input-line input {
  background: none; border: none; outline: none; color: var(--txt);
  font-family: var(--mono); font-size: .92rem; flex: 1; caret-color: transparent;
}
#termOut .tline { word-break: break-word; }
#termOut .cmd { color: var(--txt); }
#termOut .out-yl { color: var(--yl); }
#termOut .out-dim { color: var(--dim); }
#termOut .out-grn { color: var(--grn); }
#termOut .out-err { color: #ff5c5c; }

/* ============ CONTACT ============ */
.contact-sec { background: var(--yl); color: #000; }
.contact-inner { text-align: center; }
.contact-sec .sec-tag { color: #000; opacity: .65; }
.contact-giant { font-size: clamp(3rem, 11vw, 8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: .5rem 0 1.2rem; }
.contact-sec .dim { color: #3a3200; }
.contact-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact-actions .ybtn { background: #000; color: var(--yl); border-color: #000; }
.contact-actions .ybtn:hover { box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.contact-actions .gbtn { border-color: #000; color: #000; }
.contact-actions .gbtn:hover { background: #000; color: var(--yl); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .72rem; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-grid, .reedl-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-right { flex-direction: row; justify-content: flex-start; }
  .hero-logo { width: 110px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .wc-wide { grid-column: span 2; flex-direction: column; }
  .wcard-media { flex: none; height: 180px; }
  .ra-main { grid-template-columns: 92px 1fr; }
  .ra-next { display: none; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .wc-wide { grid-column: span 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .edu-row { grid-template-columns: 1fr; }
  .topnav {
    position: fixed; inset: 58px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(5,5,5,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s; padding: .6rem 0;
  }
  .topnav.open { transform: translateY(0); }
  .topnav a { padding: .85rem 1.4rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; margin-left: .5rem;
  }
  .burger span { width: 22px; height: 2px; background: var(--yl); transition: transform .3s, opacity .3s; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .clock { display: none; }
  .topbar { gap: .8rem; }
  .section { padding: 4rem 0; }
}

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