/* ============================================================
   Yashdeep Tomer — profile site
   Aesthetic: "editorial terminal" — deep green-ink dark theme,
   chartreuse signal accent, Fraunces display serif,
   Schibsted Grotesk body, IBM Plex Mono annotations.
   ============================================================ */

/* self-hosted fonts (variable: one file per family covers all weights) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Fraunces.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/SchibstedGrotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1411;            /* page background */
  --ink-2: #151c17;          /* raised surfaces */
  --ink-3: #1c241e;          /* hover surfaces */
  --paper: #ece9dd;          /* primary text */
  --paper-dim: #a3a899;      /* secondary text */
  --signal: #d6f95a;         /* chartreuse accent */
  --signal-dim: #9db83a;
  --hairline: rgba(236, 233, 221, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(214, 249, 90, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(214, 249, 90, 0.04), transparent 55%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--font-mono); }

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--signal);
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 20, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-dot { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--paper-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--paper); }

.nav-cta {
  color: var(--ink) !important;
  background: var(--signal);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s;
}

.nav-cta:hover { background: #e6ff80; transform: translateY(-1px); }

.nav-toggle, .nav-burger { display: none; }

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

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4.5rem;
  position: relative;
}

.kicker {
  color: var(--signal);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 9vw, 5rem);
  line-height: 1.04;
}

.hero-sub {
  max-width: 38rem;
  margin-top: 1.75rem;
  font-size: 1.1rem;
  color: var(--paper-dim);
}

.hero-sub strong { color: var(--paper); font-weight: 500; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}

.btn-primary:hover { background: #e6ff80; transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--paper);
}

.btn-ghost:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }

/* animated waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 56px;
  margin-top: 3.5rem;
  overflow: hidden;
}

.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--signal-dim);
  height: 12%;
  animation: wave 1.6s ease-in-out infinite alternate;
}

.waveform span:nth-child(4n)   { animation-duration: 1.1s; height: 35%; }
.waveform span:nth-child(4n+1) { animation-duration: 1.7s; height: 60%; }
.waveform span:nth-child(4n+2) { animation-duration: 1.3s; height: 22%; }
.waveform span:nth-child(4n+3) { animation-duration: 1.9s; height: 80%; }
.waveform span:nth-child(7n)   { background: var(--signal); }

@keyframes wave {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; }
  html { scroll-behavior: auto; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.stat-strip div {
  background: var(--ink-2);
  padding: 1.2rem 1.4rem;
}

.stat-strip dt {
  font-size: 1.4rem;
  color: var(--signal);
}

.stat-strip dd {
  font-size: 0.85rem;
  color: var(--paper-dim);
  margin-top: 0.15rem;
}

/* ---------------- sections ---------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.section-tinted {
  max-width: none;
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-tinted > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  color: var(--signal);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
  max-width: 34ch;
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: var(--signal-dim); transform: translateY(-3px); }

.card-index {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--signal-dim);
  font-size: 0.85rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.card p { color: var(--paper-dim); font-size: 0.97rem; }

/* work */
.work-list { list-style: none; }

.work-item {
  border-top: 1px solid var(--hairline);
  padding: 1.9rem 0;
}

.work-item:last-child { border-bottom: 1px solid var(--hairline); }

.work-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.work-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
}

.work-tags {
  font-size: 0.78rem;
  color: var(--signal-dim);
  letter-spacing: 0.02em;
}

.work-item p { color: var(--paper-dim); max-width: 62ch; }

.work-item strong { color: var(--signal); font-weight: 500; }

/* why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.why-item h3::before {
  content: "▸ ";
  color: var(--signal);
}

.why-item p { color: var(--paper-dim); font-size: 0.97rem; }

/* skills */
.skills { display: grid; gap: 2rem; }

.skill-group h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.8rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--paper);
  transition: border-color 0.2s, color 0.2s;
}

.chips li:hover { border-color: var(--signal); color: var(--signal); }

/* process */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process li { position: relative; }

.step-num {
  display: block;
  color: var(--signal);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.process h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process p { color: var(--paper-dim); font-size: 0.93rem; }

/* faq */
.faq-list { max-width: 46rem; }

.faq-list details {
  border-top: 1px solid var(--hairline);
}

.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }

.faq-list summary {
  cursor: pointer;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  padding: 0 0 1.4rem;
  color: var(--paper-dim);
  max-width: 60ch;
}

/* contact */
.contact { padding-bottom: 6rem; }

.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }

.contact-sub { color: var(--paper-dim); margin-bottom: 2.25rem; max-width: 42ch; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--paper-dim);
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--signal-dim);
  letter-spacing: 0.06em;
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .card-grid, .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding-top: 4.5rem; }
  .process { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }

  /* mobile nav */
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
  }

  .nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--paper);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    border-radius: 0;
    background: transparent;
    color: var(--signal) !important;
    font-weight: 700;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav { position: relative; }
}
