/* mohith.tech — palette and type borrowed from Manthan (manthan.sirune.tech) */

:root {
  --bg:        #0d0d0d;
  --surface:   #141414;
  --surface-2: #191919;
  --border:    #242424;
  --border-lit:#333330;
  --text:      #e8e6e0;
  --text-2:    #a5a29a;
  --dim:       #555550;
  --amber:     #f5a623;
  --amber-2:   #e0a860;
  --amber-dim: #7a5110;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Press Start 2P", "JetBrains Mono", monospace;

  --wrap: 940px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--amber-2);
  background: #ffffff08;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

em { font-style: normal; color: var(--amber-2); }
strong { color: var(--text); font-weight: 500; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 26px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 14px; top: 14px; z-index: 100;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--amber); border-radius: 4px;
  padding: 10px 16px;
}

/* ---------------- top bar ---------------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  background: #0d0d0dcc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.bar.stuck { border-bottom-color: var(--border); background: #0d0d0df2; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  box-shadow: 0 0 10px #f5a62366;
}
.brand-name {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.bar nav { display: flex; gap: 22px; }
.bar nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.bar nav a:hover { color: var(--amber); }

@media (max-width: 560px) {
  .bar { padding-inline: 18px; }
  .bar nav { gap: 14px; }
  .bar nav a { font-size: 11.5px; }
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Keeps the graph from fighting the text for attention. */
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 80% at 4% 50%, #0d0d0df7 0%, #0d0d0dd4 42%, #0d0d0d40 74%, transparent 100%),
    linear-gradient(to top, var(--bg) 1%, transparent 22%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 130px 26px 100px;
  pointer-events: none;
}
.hero-inner a, .hero-inner .btn { pointer-events: auto; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 26px;
}

.hero .lede {
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 0 34px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 5px;
  border: 1px solid var(--border-lit);
  color: var(--text);
  background: #ffffff05;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.btn:hover {
  border-color: var(--amber-dim);
  background: #f5a6230f;
  color: var(--amber);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #140d02;
  font-weight: 500;
}
.btn-primary:hover { background: var(--amber-2); border-color: var(--amber-2); color: #140d02; }

.hero-hint {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 22px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
@media (max-width: 620px) { .hint-graph { display: none; } }

/* ---------------- bands ---------------- */

.band { padding-block: 96px; }
.band-alt { background: var(--surface); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.section-lede {
  color: var(--text-2);
  max-width: var(--measure);
  margin: 0 0 46px;
}

/* ---------------- projects ---------------- */

.proj {
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.proj:first-of-type { margin-top: 34px; }

.proj-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.proj h3 {
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.proj-link {
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  color: var(--dim);
  margin-left: auto;
  transition: color .2s;
}
.proj-link:hover { color: var(--amber); }

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  border: 1px solid var(--border-lit);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}
.chip-hot {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: #f5a6230f;
}
.chip-quiet { color: var(--dim); }

.proj-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  margin: 0 0 18px;
}

.proj > p { color: var(--text-2); max-width: var(--measure); }

.detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 26px 0 22px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.detail-item {
  background: var(--bg);
  padding: 20px 22px;
}
.band-alt .detail-item { background: var(--surface-2); }
.detail-item h4 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--amber-2);
  margin: 0 0 8px;
  font-weight: 400;
}
.detail-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

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

.stack {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin: 18px 0 0;
  line-height: 1.9;
}

/* ---------------- ideas ---------------- */

.ideas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .ideas { grid-template-columns: 1fr; } }

.idea {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px 26px;
  transition: border-color .25s, transform .25s;
}
.idea:hover { border-color: var(--border-lit); transform: translateY(-2px); }

.idea-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-dim);
  letter-spacing: 0.1em;
}
.idea h3 {
  font-size: 1.16rem;
  margin: 8px 0 12px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.idea p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---------------- timeline ---------------- */

.timeline {
  list-style: none;
  margin: 34px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--border);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 26px;
  padding-block: 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -27px; top: 33px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-lit);
}
.timeline li:first-child::before {
  border-color: var(--amber);
  box-shadow: 0 0 9px #f5a62359;
}

.t-when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  padding-top: 4px;
}
.t-body h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 500; }
.t-body p { margin: 0; color: var(--text-2); max-width: var(--measure); font-size: 15.5px; }

@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .t-when { padding-top: 0; }
}

/* ---------------- toolkit ---------------- */

.toolkit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.toolkit h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin: 0 0 7px;
  font-weight: 400;
}
.toolkit p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.8; }

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

/* ---------------- contact ---------------- */

.contact .section-lede { margin-bottom: 34px; }

.mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 3.2vw, 1.7rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 5px;
  transition: color .2s, border-color .2s;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--amber); border-color: var(--amber); }

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 0;
  margin: 38px 0 0;
  font-family: var(--mono);
  font-size: 13px;
}
.social a { text-decoration: none; color: var(--text-2); }
.social a:hover { color: var(--amber); }

/* ---------------- footer ---------------- */

footer { border-top: 1px solid var(--border); padding-block: 30px 42px; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}

/* ---------------- reveal ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
}
