/*
Theme Name: Sahaj Patel Portfolio
Theme URI: https://www.linkedin.com/in/patelsahaj/
Author: Sahaj Patel
Description: Executive-minimal portfolio theme for product leadership, responsible AI and platform strategy.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sahaj-patel-portfolio
*/

:root {
  --paper: #f6f7f4;
  --white: #ffffff;
  --ink: #182025;
  --muted: #5d696c;
  --line: #cfd6d2;
  --teal: #075c61;
  --teal-dark: #06474b;
  --coral: #ed6f57;
  --green: #4e8d62;
  --display: "Manrope", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  width: var(--shell);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 37, 0.08);
  box-shadow: 0 8px 24px rgba(24, 32, 37, 0.12);
}
.brand {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--coral);
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 88svh;
  background: var(--paper) url("assets/hero-workspace.webp") center / cover no-repeat;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: 126px 0 74px;
}
.hero-inner > * { max-width: 650px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.4rem);
  line-height: .94;
  letter-spacing: 0;
}
.hero-statement {
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.18;
}
.hero-copy { margin: 22px 0 0; max-width: 560px; color: #394346; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: rgba(246, 247, 244, .78); }
.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: #536064;
  font-size: .7rem;
}

.section-shell { width: var(--shell); margin: 0 auto; }
.section-intro { max-width: 760px; }
.section-intro h2,
.contact-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.proof-band { padding: 96px 0 110px; background: var(--ink); color: var(--white); }
.proof-band .eyebrow { color: #8bc2b0; }
.proof-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid #556064; }
.proof-item { padding: 28px 36px 0 0; }
.proof-item + .proof-item { padding-left: 36px; border-left: 1px solid #556064; }
.proof-number { margin: 0; color: #8bc2b0; font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 1; }
.proof-item h3 { margin: 20px 0 10px; font-family: var(--display); font-size: 1.2rem; }
.proof-item p:last-child { color: #cfd7d9; font-size: .95rem; }

.profile-section { padding: 126px 0; }
.profile-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 100px; }
.profile-copy { padding-top: 32px; }
.profile-copy p { margin: 0 0 24px; font-size: 1.12rem; }

.case-section { padding: 112px 0; background: var(--white); }
.case-list { margin-top: 72px; border-top: 1px solid var(--line); }
.case-item {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease;
}
.case-item:hover { border-color: var(--coral); }
.case-index { margin: 3px 0 0; color: var(--coral); font-family: var(--display); font-weight: 700; }
.case-label { margin: 0 0 12px; color: var(--teal); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.case-item h3 { margin: 0; font-family: var(--display); font-size: 1.65rem; line-height: 1.2; }
.case-detail p { margin: 0 0 12px; color: var(--muted); font-size: .94rem; }
.case-detail strong { display: inline-block; width: 72px; color: var(--ink); }

.experience-section { padding: 124px 0; }
.experience-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; align-items: start; }
.sticky-intro { position: sticky; top: 36px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { position: relative; padding: 34px 0 36px 34px; border-bottom: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 44px; width: 10px; height: 10px; background: var(--green); border-radius: 50%; }
.timeline-date { margin: 0 0 8px; color: var(--teal); font-size: .77rem; font-weight: 700; text-transform: uppercase; }
.timeline-item h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; }
.timeline-role { margin: 3px 0 12px; font-weight: 600; }
.timeline-item p:last-child { margin-bottom: 0; color: var(--muted); }

.approach-section { padding: 112px 0; background: #e6ede8; }
.capability-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 54px; margin-top: 66px; border-top: 1px solid #afbeb5; }
.capability { display: grid; grid-template-columns: 42px 1fr; gap: 0 18px; padding: 30px 0; border-bottom: 1px solid #afbeb5; }
.capability span { grid-row: 1 / 3; color: var(--teal); font-size: .78rem; font-weight: 700; }
.capability h3 { margin: 0 0 7px; font-family: var(--display); font-size: 1.2rem; }
.capability p { margin: 0; color: #4d5a54; font-size: .94rem; }

.credentials-section { padding: 112px 0; background: var(--white); }
.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.credential-list { border-top: 1px solid var(--line); }
.credential-list p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.credential-list span { color: var(--muted); text-align: right; }

.contact-section { padding: 118px 0; background: var(--teal-dark); color: var(--white); }
.contact-inner { max-width: 900px; margin-left: max(24px, calc((100% - 1180px) / 2)); }
.contact-inner .eyebrow { color: #a4d3c3; }
.contact-inner > p:not(.eyebrow) { max-width: 640px; margin: 26px 0; color: #d8e6e2; font-size: 1.1rem; }
.button-light { border-color: var(--white); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--teal-dark); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: #101719;
  color: #b8c3c5;
  font-size: .78rem;
}
.site-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-reveal { opacity: 0; transform: translateY(18px); animation: hero-in 650ms ease forwards; }
.hero-reveal:nth-child(2) { animation-delay: 80ms; }
.hero-reveal:nth-child(3) { animation-delay: 160ms; }
.hero-reveal:nth-child(4) { animation-delay: 240ms; }
.hero-reveal:nth-child(5) { animation-delay: 320ms; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  body { font-size: 16px; }
  .site-header { min-height: 72px; }
  .menu-button {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .menu-line { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 180ms ease; }
  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    display: none;
    min-width: 190px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    flex-direction: column;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .hero { min-height: 92svh; background-position: 58% center; }
  .hero-inner { padding: 104px 0 52px; }
  .hero-inner > * { max-width: 78%; }
  .hero h1 { font-size: clamp(3.6rem, 14vw, 5.4rem); }
  .hero-statement { font-size: 1.55rem; }
  .hero-copy { font-size: .96rem; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-item { padding: 28px 0; border-bottom: 1px solid #556064; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; }
  .profile-grid, .experience-grid, .credentials-grid { grid-template-columns: 1fr; gap: 44px; }
  .sticky-intro { position: static; }
  .case-item { grid-template-columns: 44px 1fr; }
  .case-detail { grid-column: 2; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .hero { background-position: 53% center; align-items: start; }
  .hero-inner { padding-top: 100px; }
  .hero-inner > * { max-width: 100%; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(246, 247, 244, .68); }
  .hero-inner, .hero-caption { position: relative; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 4.8rem); }
  .hero-statement { font-size: 1.35rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 260px; }
  .hero-caption { display: none; }
  .proof-band, .profile-section, .case-section, .experience-section, .approach-section, .credentials-section, .contact-section { padding: 80px 0; }
  .section-intro h2, .contact-inner h2 { font-size: 2.25rem; }
  .case-list, .proof-list, .capability-list { margin-top: 46px; }
  .case-item { grid-template-columns: 32px 1fr; gap: 20px; padding: 32px 0; }
  .case-item h3 { font-size: 1.3rem; }
  .capability-list { grid-template-columns: 1fr; }
  .credential-list p { flex-direction: column; gap: 3px; }
  .credential-list span { text-align: left; }
  .contact-inner { margin-left: 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal, .hero-reveal { opacity: 1; transform: none; }
}
