/* ==========================================================
   Vijay Iyer | Profile site styles
   Same look as the TechOhm site. Colors live in :root.
   Sections: base, buttons, header, hero, stats, sections,
   about, expertise, achievements, experience, education,
   contact, footer, responsive, print.
   ========================================================== */
:root {
  --navy: #0B1F3A;
  --ink: #1A2B44;
  --muted: #56667C;
  --teal: #0F766E;        /* buttons, links (passes contrast with white) */
  --teal-dark: #0B5D57;
  --teal-bright: #2DD4BF; /* graphics only */
  --teal-soft: #E6F6F4;
  --bg: #FFFFFF;
  --soft: #F4F7FA;
  --line: #E2E8F0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 84px; }

.print-only { display: none !important; }   /* shown only in the printed/PDF version */


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 10px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-sm { padding: 9px 18px; font-size: 0.95rem; }

.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: #fff; color: var(--teal); border-color: var(--teal); }

.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--navy); }


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--teal); font-weight: 800; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--navy); }


/* ---------- Hero (top of page) ---------- */
.hero { padding: 88px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-role {
  margin-top: 14px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--teal);
}

.hero .lead {
  margin: 18px 0 36px;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Portrait with a soft backdrop circle and teal ring */
.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 1;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: var(--soft);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -1.5%;
  border-radius: 50%;
  border: 2px dashed var(--line);
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 8px solid #fff;
  box-shadow: 0 0 0 3px var(--teal-bright), var(--shadow);
}


/* ---------- Headline numbers ---------- */
.stats-band { background: var(--navy); padding: 48px 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
}
.stat-num span { color: var(--teal-bright); }
.stat p { margin-top: 10px; color: #C4D0DF; }


/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding-top: 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}
.section-head p { margin-top: 12px; font-size: 1.15rem; color: var(--muted); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}


/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid .section-head { margin-bottom: 24px; }

.section-head .focus { font-size: 1rem; font-weight: 600; color: var(--teal); line-height: 1.5; }

.summary p { font-size: 1.1rem; color: var(--muted); }
.summary p:first-child { font-size: 1.25rem; color: var(--ink); }
.summary p + p { margin-top: 16px; }

.about-card {
  background: var(--soft);
  border-radius: 20px;
  padding: 36px;
}
.about-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }

.checks { list-style: none; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg {
  flex: none;
  width: 26px; height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-top: 1px;
}


/* ---------- Expertise ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillars .card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.pillars .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 20px;
}
.icon svg { width: 28px; height: 28px; }

.pillars h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.pillars p { color: var(--muted); font-size: 0.97rem; }

.skills-box {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.skills-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }

.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
}
.skills li { display: flex; gap: 12px; align-items: baseline; }
.skills li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  transform: translateY(-2px);
}


/* ---------- Key achievements ---------- */
.wins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.win { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.win:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.win.wide { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.win.wide p { color: #C4D0DF; font-size: 1.1rem; max-width: 52ch; }
.win.wide .metric { color: var(--teal-bright); }

.metric {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--teal);
  margin-bottom: 12px;
}
.win p { color: var(--muted); }


/* ---------- Experience ---------- */
.jobs { display: grid; gap: 24px; }

.job { padding: 36px; }

.job-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.job-head-sub {
  grid-template-columns: 1fr auto;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.job-meta h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.job-org { font-weight: 600; color: var(--teal); }
.job-org span { color: var(--muted); font-weight: 500; }

.job-dates {
  align-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.job-intro {
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.02rem;
}

.job-points {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.job-points li { position: relative; padding-left: 22px; }
.job-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
}

/* Company marks (colored initials). Swap for real logo images if you like. */
.logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  position: relative;
  object-fit: contain;
  background: var(--navy);
}
img.logo { background: #fff; border: 1px solid var(--line); padding: 8px; }
.logo-tc   { background: #0C2340; }
.logo-dt   { background: #000; font-size: 1.4rem; }
.logo-dt i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #86BC25; right: 13px; bottom: 17px; }
.logo-sc   { background: #EC0000; font-size: 1.4rem; }
.logo-rf   { background: #5C8F2A; font-size: 1.4rem; }
.logo-tiaa { background: #0067B1; font-size: 1.3rem; }
.logo-rs   { background: #475569; }
.logo-lt   { background: #002F8B; box-shadow: inset 0 -5px 0 #CB333B; }

/* Real company and school logos (files in images/logos/) */
.brand-logo {
  flex: none;
  display: block;
  width: auto;
  height: 30px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
/* Per-logo heights so the marks look the same size to the eye */
.brand-logo[src$="texas-capital.svg"] { height: 25px; }
.brand-logo[src$="deloitte.svg"]      { height: 25px; }
.brand-logo[src$="santander.svg"]     { height: 31px; }
.brand-logo[src$="regions.svg"]       { height: 29px; }
.brand-logo[src$="tiaa.svg"]          { height: 33px; }
.brand-logo-edu { height: 40px; max-width: 220px; }
.job-head:not(.job-head-sub) { grid-template-columns: 200px 1fr auto; }
/* Bio page career cards are narrower: logo sits on its own row */
.career .job-head { grid-template-columns: 1fr auto; row-gap: 14px; }
.career .job-head > .brand-logo { grid-column: 1 / -1; }

.prior { margin-top: 16px; }
.prior > h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.prior-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prior-item { display: flex; gap: 18px; align-items: center; padding: 24px; }
.prior-title { font-weight: 700; color: var(--navy); }
.prior-org { color: var(--muted); font-size: 0.95rem; }

/* Career list on the public bio page (bio.html): titles and dates only */
.career { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.career .job { padding: 26px 28px; }
.career .job-meta h3 { font-size: 1.12rem; }
.career .job-head-sub { margin-top: 18px; padding-top: 16px; }
@media (max-width: 980px) { .career { grid-template-columns: 1fr; } }


/* ---------- Education ---------- */
.edu {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 700px;
}
.edu h3 { font-size: 1.2rem; font-weight: 700; }
.edu p { color: var(--muted); }


/* ---------- Contact ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.contact-box h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.15; }
.contact-box p { color: #C4D0DF; font-size: 1.15rem; margin: 14px 0 30px; }

.contact-list { list-style: none; display: grid; gap: 18px; position: relative; z-index: 1; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list a { color: #fff; word-break: break-word; }
.contact-list a:hover { color: var(--teal-bright); }
.contact-list .icon { margin: 0; width: 46px; height: 46px; flex: none; background: rgba(45, 212, 191, 0.14); color: var(--teal-bright); }
.contact-list .icon svg { width: 22px; height: 22px; }

.contact-deco { position: absolute; right: -60px; bottom: -60px; width: 280px; opacity: 0.18; pointer-events: none; }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 96px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer p { color: var(--muted); font-size: 0.95rem; }
.site-footer p a { color: var(--muted); }
.site-footer p a:hover { color: var(--teal); }


/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { width: min(100%, 300px); order: -1; justify-self: start; margin-left: 6%; }
  .about-grid, .contact-box { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .wins { grid-template-columns: repeat(2, 1fr); }
  .wins .win:last-child { grid-column: span 2; }
  .contact-box { padding: 48px 36px; gap: 36px; }
}

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 24px;
    overflow-x: auto;
    padding: 12px 0 14px;
  }
  .nav-links a { white-space: nowrap; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-tight { padding-top: 0; }
  .hero-photo { width: 220px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .pillars, .skills, .wins, .prior-grid { grid-template-columns: 1fr; }
  .win.wide, .wins .win:last-child { grid-column: auto; }
  .about-card, .skills-box { padding: 26px 22px; }
  .job { padding: 24px 20px; }
  .job-head, .job-head:not(.job-head-sub), .career .job-head { grid-template-columns: 1fr; row-gap: 12px; }
  .edu { flex-wrap: wrap; }
  .job-head .job-dates { grid-column: 1 / -1; justify-self: start; }
  .job-head-sub { grid-template-columns: 1fr; }
  .job-meta h3 { font-size: 1.15rem; }
  .logo { width: 48px; height: 48px; }
  .contact-box { padding: 40px 24px; border-radius: 20px; }
  .site-footer { margin-top: 72px; }
}


/* ==========================================================
   PRINT / SAVE AS PDF
   Turns the page into a clean resume: no header, photo,
   buttons, colors blocks or contact box.
   ========================================================== */
@media print {
  @page { size: letter; margin: 0.45in 0.5in; }

  html, body { background: #fff; }
  body { font-size: 9.2pt; line-height: 1.32; color: #0F172A; }
  a { color: inherit; }

  .site-header, .hero-photo, .hero-actions, .btn, #contact, .site-footer,
  .icon, .logo, .brand-logo, .contact-deco, .section-head p { display: none !important; }
  .print-only { display: block !important; }

  .container { max-width: none; padding: 0; }
  .section, .section-soft, .stats-band { background: none; padding: 6pt 0; }
  .card { border: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }

  /* Name block */
  .hero { padding: 0 0 6pt; border-bottom: 1.5pt solid #0B1F3A; }
  .hero-grid { display: block; }
  .hero h1 { font-size: 22pt; letter-spacing: -0.01em; }
  .hero-role { margin-top: 2pt; font-size: 11.5pt; }
  .hero .lead { display: none; }
  .print-contact { margin-top: 3pt; font-size: 9pt; color: #334155; }

  /* Numbers */
  .stats-band { padding: 6pt 0; border-bottom: 0.75pt solid #CBD5E1; }
  .stats { gap: 8pt; grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 13pt; color: #0B1F3A; }
  .stat-num span { color: #0F766E; }
  .stat p { margin-top: 1pt; font-size: 8pt; color: #475569; }

  /* Section titles */
  .section-head { margin: 0 0 5pt; max-width: none; break-after: avoid; page-break-after: avoid; }
  .section-head h2 {
    font-size: 10.5pt;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 2pt;
    border-bottom: 0.75pt solid #CBD5E1;
  }

  /* About */
  .about-grid { display: block; }
  .about-grid .section-head { margin-bottom: 4pt; }
  .section-head p.focus { display: block !important; margin: 3pt 0 0; font-size: 9pt; font-style: italic; color: #334155; }
  .summary p, .summary p:first-child { font-size: 9.2pt; color: #1E293B; }
  .summary p + p { margin-top: 3pt; }
  .about-card { background: none; padding: 0; margin-top: 5pt; }
  .about-card h3 { display: none; }
  .checks { gap: 2pt; }
  .checks li { gap: 6pt; }
  .checks svg { width: 11pt; height: 11pt; padding: 1pt; background: none; }

  /* Expertise */
  .pillars { display: none; }
  .skills-box { margin: 0; padding: 0; border: 0; }
  .skills-box h3 { display: none; }
  .skills { grid-template-columns: repeat(3, 1fr); gap: 1pt 12pt; font-size: 9pt; }
  .skills li::before { width: 4pt; height: 4pt; }

  /* Achievements: plain list with the number in front */
  .wins { display: block; }
  .win, .win.wide { display: flex; gap: 8pt; background: none; border: 0; margin-bottom: 2pt; break-inside: avoid; }
  .metric, .win.wide .metric { flex: none; width: 58pt; font-size: 9.2pt; margin: 0; color: #0F766E; letter-spacing: 0; line-height: 1.32; }
  .win p, .win.wide p { font-size: 9.2pt; color: #1E293B; max-width: none; }

  /* Experience */
  .jobs { display: block; }
  .job { margin-bottom: 6pt; }
  .job-head { grid-template-columns: 1fr auto; gap: 8pt; break-after: avoid; page-break-after: avoid; }
  .job-head-sub { margin-top: 6pt; padding-top: 0; border-top: 0; }
  .job-meta h3 { font-size: 10.5pt; }
  .job-org { font-size: 9.5pt; }
  .job-dates { padding: 0; background: none; font-size: 9pt; color: #334155; }
  .job-intro { margin-top: 1pt; font-size: 9.2pt; font-style: italic; color: #334155; }
  .job-points { margin-top: 2pt; gap: 1pt; color: #1E293B; }
  .job-points li { padding-left: 11pt; break-inside: avoid; }
  .job-points li::before { width: 4pt; height: 4pt; top: 0.55em; background: #0F766E; }

  .prior { margin-top: 4pt; break-inside: avoid; }
  .prior > h3 { font-size: 10.5pt; margin-bottom: 2pt; }
  .prior-grid { display: block; }
  .prior-item { display: block; padding: 0; margin-bottom: 1pt; }
  .prior-item > div { display: flex; gap: 4pt; }
  .prior-title, .prior-org { font-size: 9.2pt; color: #1E293B; }
  .prior-title::after { content: " \00B7"; }

  /* Education */
  .edu { display: block; max-width: none; }
  .edu h3 { font-size: 10pt; }
  .edu p { color: #1E293B; }
}
