/* ashwinraju.com
   Layout: asymmetric split hero, stat composition for the case study, a stepped price
   ladder, two-column about, full-width contact band. Radius rule: images and stat
   blocks 14px, buttons full pill. One accent (emerald), used everywhere. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #4b525b;
  --line: #dcdfdc;
  --accent: #0a6e52;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1eb;
  --shadow: 0 18px 50px -24px rgb(21 40 33 / 0.35);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111314;
    --surface: #191c1e;
    --ink: #eceeed;
    --muted: #a7aeb3;
    --line: #2b3033;
    --accent: #45c99c;
    --accent-ink: #0b1a14;
    --accent-soft: #15302a;
    --shadow: 0 18px 50px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: center; padding-block: 72px 88px;
}
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 650; }
.hero-sub { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-shot { margin: 0; justify-self: center; max-width: 398px; }
.hero-shot img { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 64px; }
}

/* section rhythm */
section.wrap { padding-block: 88px; }
section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 650; }
.lede { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* case study */
.case { border-top: 1px solid var(--line); }
.stats {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat-lead { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stat-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.stat-lead .stat-num { font-size: clamp(3rem, 6vw, 4.5rem); }
.stat-label { font-size: 15px; line-height: 1.45; color: var(--muted); }
.stat-lead .stat-label { color: var(--accent-ink); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-lead { grid-column: 1 / -1; } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

.case-detail { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.does { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.does li { max-width: 62ch; }
.platform { color: var(--muted); padding: 20px 24px; border-left: 2px solid var(--line); }
.platform strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
@media (max-width: 900px) { .case-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* offers: a stepped ladder, each rung indented a little further */
.offers { border-top: 1px solid var(--line); }
.ladder { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.rung {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) auto;
  gap: 24px; align-items: baseline; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.rung:nth-child(2) { margin-left: 4%; }
.rung:nth-child(3) { margin-left: 8%; }
.rung h3 { font-size: 1.2rem; font-weight: 650; }
.rung-time { font-size: 14px; color: var(--muted); margin-top: 4px; }
.rung-body { color: var(--muted); max-width: 58ch; }
.rung-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.15rem; white-space: nowrap; color: var(--ink); }
.also { margin-top: 28px; color: var(--muted); max-width: 70ch; }
@media (max-width: 800px) {
  .rung { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rung:nth-child(2), .rung:nth-child(3) { margin-left: 0; }
}

/* about */
.about { border-top: 1px solid var(--line); }
.about-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
.about-text { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.skills { margin: 0; display: grid; gap: 20px; }
.skills div { display: grid; gap: 2px; }
.skills dt { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.skills dd { margin: 0; }
@media (max-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* contact */
.contact { background: var(--accent-soft); border-top: 1px solid var(--line); }
.contact-inner { padding-block: 88px; display: flex; flex-direction: column; gap: 24px; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.email { font-family: var(--mono); font-size: clamp(1.2rem, 3vw, 1.8rem); user-select: all; overflow-wrap: anywhere; }
.contact-alt { color: var(--muted); }

.footer { padding-block: 32px; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-shot { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-shot { animation-delay: 0.12s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
