/* ==========================================================================
   Dr. Pradeep Raj — drpradeepraj.com
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.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 {
  --bg:        #FFFFFF;
  --hero-bg:   #EEF3FF;
  --white:     #FFFFFF;
  --tint:      #EAF0FF;
  --tint-2:    #DCE6FF;
  --ink:       #0B1220;
  --body:      #3D4658;
  --muted:     #5F6978;
  --line:      #D6DEF0;
  --accent:    #2457F5;
  --accent-d:  #1B46CC;

  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(36px, 4.4vw, 56px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
h4 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
h5 { font-size: 17px; letter-spacing: -0.01em; }
/* card titles sit under a section h2, so they are h3 semantically but sized like h4 */
.photo-card h3, .career-card h3, .case-body h3, .recog-card h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.more-item h4 { font-size: 17px; letter-spacing: -0.01em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 500; font-size: 16px;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .2s ease; font-size: 15px; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 243, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { background: rgba(255, 255, 255, 0.88); border-bottom-color: var(--line); }
.nav-links a.is-active:not(.nav-cta) { color: var(--ink); font-weight: 600; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .arrow-circle:focus-visible { outline-offset: 4px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { font-family: var(--head); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; color: var(--body); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-cta { margin-left: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.nav-cta .arrow { font-size: 20px; line-height: 1; }
.nav-cta:hover { color: var(--accent-d) !important; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}
.hero-watermark {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  font-family: var(--head); font-weight: 700;
  font-size: clamp(160px, 27vw, 420px);
  letter-spacing: -0.05em; line-height: 1;
  color: var(--white);
  opacity: 0.9;
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 4.6fr 2.4fr;
  align-items: end;
  min-height: calc(100vh - 84px);
  min-height: min(calc(100vh - 84px), 860px);
  padding-top: 40px;
}

.hero-portrait { position: relative; align-self: end; }
.hero-portrait img {
  width: 100%; max-width: 560px;
  margin-inline: auto;
}

.hero-copy { padding-bottom: clamp(48px, 8vh, 96px); padding-left: 12px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-role { font-size: 19px; color: var(--ink); line-height: 1.45; margin-bottom: 10px; font-weight: 500; }
.hero-creds { font-size: 15px; color: var(--muted); margin-bottom: 32px; }

.hero-object { position: relative; align-self: start; padding-top: 24px; }
.hero-object img {
  width: 150%; max-width: 440px; margin-left: -30%;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.chip {
  position: absolute;
  background: var(--white);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.10);
  display: grid; gap: 2px;
  line-height: 1.25;
}
.chip strong { font-family: var(--head); font-size: 26px; color: var(--ink); letter-spacing: -0.02em; font-weight: 600; }
.chip span { font-size: 13.5px; color: var(--muted); }
.chip-left { left: 0; bottom: 88px; }
.chip-right { right: 0; bottom: -40px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

/* ---------- about ---------- */
.about-card {
  background: var(--tint);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  margin-bottom: 96px;
}
.about-text h3 { margin-bottom: 20px; }
.about-text p { font-size: 17px; max-width: 52ch; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--white); border-radius: var(--r-lg);
  padding: 24px 24px 22px;
  display: grid; gap: 6px; align-content: start;
}
.stat strong { font-family: var(--head); font-size: 40px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.4; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative;
  background: var(--tint);
  border-radius: var(--r-xl);
  padding: 56px 32px 32px;
  margin-top: 36px;
}
.feature-icon {
  position: absolute; top: -36px; left: 24px;
  width: 72px; height: 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--accent);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h4 { margin-bottom: 10px; }
.feature p { font-size: 15.5px; }

/* ---------- practice ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.photo-card { display: block; }
.photo-card-img {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--tint);
}
.photo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-card:hover .photo-card-img img { transform: scale(1.04); }
.arrow-circle {
  position: absolute; right: 0; bottom: 0;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  outline: 12px solid var(--bg);
  transition: transform .25s ease;
}
.arrow-circle svg { width: 28px; height: 28px; }
.photo-card:hover .arrow-circle { transform: rotate(45deg); }
.photo-card h3 { margin: 22px 0 0; padding-left: 8px; }

.practice-more {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.more-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.more-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--tint); color: var(--accent);
  display: grid; place-items: center;
}
.more-icon svg { width: 22px; height: 22px; }
.more-item h4 { margin-bottom: 4px; }
.more-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- career ---------- */
.career-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.career-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 32px;
}
.career-card-main { background: var(--tint); border-color: transparent; }
.career-dates {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--white); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px;
}
.career-card:not(.career-card-main) .career-dates { background: var(--tint); }
.career-card h3 { margin-bottom: 6px; }
.career-role { font-weight: 500; color: var(--ink); font-size: 16px; }
.career-place { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.career-card li {
  position: relative; padding-left: 18px; font-size: 15px; margin-bottom: 10px;
}
.career-card li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- case studies ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--tint); border-radius: var(--r-xl); overflow: hidden;
  min-height: 380px;
}
.case-img { position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 80px;
  background: var(--tint);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.case-body { padding: 36px 32px 32px 8px; display: flex; flex-direction: column; justify-content: center; }
.case-body h3 { margin-bottom: 20px; }
.case-body dt { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: none; margin-bottom: 4px; }
.case-body dd { font-size: 15px; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.case-body dd:last-child { margin-bottom: 0; }

/* ---------- recognition ---------- */
.recog-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.recog-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 36px;
}
.recog-card-tint { background: var(--tint); border-color: transparent; }
.recog-card h3 { margin-bottom: 20px; }
.recog-list li {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.recog-card-tint .recog-list li { border-top-color: rgba(11,18,32,0.08); }
.recog-list li:last-child { padding-bottom: 0; }
.recog-list span { font-weight: 500; color: var(--ink); font-size: 16px; }
.recog-list small { font-size: 14px; color: var(--muted); text-align: right; flex: none; max-width: 45%; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info {
  background: var(--tint); border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { max-width: 40ch; margin-bottom: 36px; }
.contact-lines { display: grid; gap: 12px; font-size: 17px; }
.contact-lines a { color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines span { color: var(--muted); }

.contact-form {
  background: var(--tint); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 18px;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-size: 13px; font-weight: 600; color: var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.12);
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: #157A46; }
.form-note.err { color: #C0392B; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 22px; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }

/* ---------- hero entrance ---------- */
.enter { opacity: 0; transform: translateY(24px); animation: enter .8s cubic-bezier(.2,.7,.2,1) forwards; }
.enter-1 { animation-delay: .05s; }
.enter-2 { animation-delay: .2s; }
.enter-3 { animation-delay: .5s; }
@keyframes enter { to { opacity: 1; transform: none; } }
/* chips are absolutely positioned inside an animated parent; keep their own animation but no transform conflict */
.chip.enter { transform: translateY(12px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .enter { opacity: 1; transform: none; animation: none; }
  .hero-object img { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-object { display: none; }
  .feature-row, .practice-grid, .practice-more, .career-grid { grid-template-columns: 1fr 1fr; }
  .career-card-main { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-row { height: 72px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 16px 0 0; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; gap: 0; }
  .hero-portrait { order: 1; margin-bottom: 28px; }
  .hero-portrait img { max-width: 360px; }
  .hero-copy { order: 2; padding: 0 0 40px; }
  .hero-copy .btn { width: 100%; justify-content: center; }
  .hero-watermark { top: 30%; font-size: 40vw; }
  .chip-left { left: 0; bottom: 24px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-card { grid-template-columns: 1fr; margin-bottom: 72px; }
  .feature-row, .practice-grid, .practice-more, .career-grid, .recog-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature { margin-top: 44px; }
  .case-card { grid-template-columns: 1fr; }
  .case-img { aspect-ratio: 3 / 2; }
  .case-img::after { display: none; }
  .case-body { padding: 28px; }
  .recog-list li { flex-direction: column; gap: 2px; }
  .recog-list small { text-align: left; max-width: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .stat strong { font-size: 32px; }
  .arrow-circle { width: 64px; height: 64px; }
}

/* ==========================================================================
   Client copy (Sept 2026) — fitting the supplied text into existing components
   ========================================================================== */
.chip-text { max-width: 250px; }
.chip-text strong { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.about-card { margin-bottom: 0; }
.about-text p + p { margin-top: 14px; }
.about-card-solo { grid-template-columns: 1fr; }
.about-card-solo .about-text { max-width: 820px; }
.about-card-solo h3 { margin-bottom: 18px; }
.about-stats .stat:nth-child(3):last-child { grid-column: 1 / -1; }
.section-intro { font-size: 18px; max-width: 62ch; margin: -16px 0 clamp(32px, 4vw, 48px); }
.photo-card p { font-size: 15.5px; margin-top: 8px; padding-left: 8px; max-width: 36ch; }
.case-card-wide { grid-template-columns: 1fr 1fr; }
.case-body p { font-size: 16px; margin-bottom: 12px; line-height: 1.6; }
.tag-line { font-size: 13.5px !important; font-weight: 600; color: var(--accent); margin: 8px 0 0 !important; }
.card-text { font-size: 15.5px; margin: 10px 0 0; }
.career-card .tag-line { margin-top: 16px !important; }
.recog-card .career-role { margin-bottom: 6px; }
.footer-id { display: grid; gap: 2px; }
.footer-id p { font-size: 13.5px; }
@media (max-width: 800px) {
  .about-card { margin-bottom: 0; }
  .case-card-wide { grid-template-columns: 1fr; }
  .section-intro { margin-top: -8px; }
  .chip-text { max-width: 220px; }
}
