/* Anish Puthuraya — portfolio. Swiss Light direction.
   Ink #16150f on #fafaf6, klein blue #2242e8, Archivo. */

* { box-sizing: border-box; }

:root {
  --bg: #fafaf6;
  --ink: #16150f;
  --body: #33322b;
  --muted: #55534a;
  --rule: #16150f;
  --rule-soft: #d8d5cc;
  --blue: #2242e8;
  --blue-dark: #1a33b8;
  --blue-light: #b9c4f7;
  --blue-rule: #4d67ee;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* ---- nav ---- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  border-bottom: 1px solid var(--rule);
}

.nav-name { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; }

.nav-links { display: flex; gap: 44px; align-items: center; }

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--blue); }

.nav-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--blue);
  padding: 11px 24px;
  text-decoration: none;
}
.nav-cta:hover { background: var(--blue-dark); color: var(--bg); }

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

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 88px 64px 64px 64px;
  border-bottom: 1px solid var(--rule);
}

.hero-label {
  grid-column: span 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--blue);
}

.label-dash { display: none; }

.hero-content { grid-column: span 7; }

.hero h1 {
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-top: 30px;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 16px; margin-top: 36px; }

.btn {
  font-size: 16px;
  padding: 14px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--blue); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: var(--blue-dark); color: var(--bg); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

.hero-photo { grid-column: span 3; }
.hero-photo img {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 1px solid var(--rule);
  filter: grayscale(1) contrast(1.05);
}

/* ---- platform strip ---- */

.platform {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.platform-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 18px 32px 18px 64px;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 18px 32px;
}
.platform-list li { font-size: 14px; font-weight: 600; }

/* ---- stats ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.stat { padding: 28px 32px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }

.stat-value { font-size: 48px; font-weight: 900; letter-spacing: -0.02em; }
.stat-accent { color: var(--blue); }
.stat-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }

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

.section-label {
  grid-column: span 2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 64px;
  border-bottom: 1px solid var(--rule);
}

.project-body { grid-column: span 10; }

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.project-head h2 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-tags { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); }

.project-copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  max-width: 720px;
  margin-top: 20px;
  text-wrap: pretty;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 720px;
}

.metric { border: 1px solid var(--rule); padding: 20px 24px; }
.metric-value { font-size: 28px; font-weight: 900; }
.metric-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---- experience ---- */

.experience {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 64px;
  border-bottom: 1px solid var(--rule);
}

.experience-body { grid-column: span 10; }

.role {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.role:first-child { padding-top: 0; }
.role:last-child { border-bottom: none; padding-bottom: 0; }

.role-meta { grid-column: span 4; }
.role-points { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; }
.role-points p { font-size: 15px; line-height: 1.6; color: var(--body); }

.role h3 { font-size: 22px; font-weight: 800; }
.role-subtitle { font-size: 15px; color: var(--muted); margin-top: 4px; }
.role-org { font-size: 14px; color: var(--muted); margin-top: 8px; }
.role-dates { font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 4px; }

.edu-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }

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

.contact {
  background: var(--blue);
  color: var(--bg);
  padding: 88px 64px 64px 64px;
}

.contact-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue-light); }

.contact-headline {
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 24px;
}

.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--bg);
  margin-top: 28px;
}
.contact-email:hover { color: var(--blue-light); }

.contact-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  border-top: 1px solid var(--blue-rule);
  padding-top: 24px;
}

.contact-links { display: flex; gap: 32px; }
.contact-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.contact-links a:hover { color: var(--blue-light); text-decoration: underline; }

.contact-location { font-size: 14px; color: var(--blue-light); }

/* ---- tablet and phone ---- */

@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-link { display: none; }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 40px 20px 36px 20px;
  }
  .hero-label { font-size: 12px; letter-spacing: 0.1em; line-height: 1.6; }
  .hero-label br { display: none; }
  .label-dash { display: inline; }
  .hero h1 { margin-top: 18px; }
  .hero-photo { margin-top: 24px; order: 2; }
  .hero-content { display: contents; }
  .hero-content h1 { order: 1; }
  .lede { order: 3; margin-top: 22px; font-size: 15px; }
  .hero-actions { order: 4; flex-direction: column; margin-top: 24px; }
  .btn { width: 100%; }

  .platform { flex-direction: column; }
  .platform-label { padding: 16px 20px 0 20px; border-right: none; }
  .platform-list { padding: 10px 20px 16px 20px; gap: 8px 18px; }
  .platform-list li { font-size: 13px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px; border-bottom: 1px solid var(--rule-soft); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(n+3) { border-bottom: none; }
  .stat-value { font-size: 32px; }
  .stat-label { font-size: 12px; }

  .project, .experience { display: block; padding: 40px 20px; }
  .project-body, .experience-body { margin-top: 12px; }
  .project-head { flex-direction: column; align-items: flex-start; }
  .project-head h2 { font-size: 28px; }
  .project-tags { order: 2; margin-top: 6px; font-size: 12px; }
  .project-copy { font-size: 15px; margin-top: 16px; }
  .project-metrics { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .metric { padding: 16px 18px; }
  .metric-value { font-size: 24px; }
  .metric-label { font-size: 12px; }

  .role { display: block; padding: 24px 0; }
  .role:first-child { padding-top: 20px; }
  .role h3 { font-size: 18px; }
  .role-points { margin-top: 14px; gap: 10px; }
  .role-points p { font-size: 14px; }

  .contact { padding: 48px 20px 32px 20px; }
  .contact-email { font-size: 16px; margin-top: 20px; }
  .contact-bar { margin-top: 40px; padding-top: 18px; }
  .contact-links { gap: 24px; }
  .contact-links a { font-size: 13px; }
  .contact-location { font-size: 13px; }
}
