/* ============================================================
   Yukti Singh, LMFT — Therapy for Silicon Valley
   Modern, clean, warm-grounded. No build step, no dependencies.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #faf8f4;   /* warm off-white */
  --bg-alt:    #f2efe8;   /* slightly deeper section band */
  --surface:   #ffffff;
  --ink:       #1d2a28;   /* deep teal-charcoal */
  --ink-soft:  #4d5a56;
  --muted:     #74807b;
  --line:      rgba(29, 42, 40, 0.10);

  --accent:      #2f6f63; /* calm deep teal */
  --accent-deep: #235349;
  --accent-tint: #e6efeb;
  --sand:        #c9a06a; /* warm secondary, used sparingly */

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 1px 2px rgba(29,42,40,.04), 0 18px 40px -24px rgba(29,42,40,.28);
  --shadow-sm: 0 1px 2px rgba(29,42,40,.05), 0 10px 24px -18px rgba(29,42,40,.25);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --wrap: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
em { font-style: italic; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--accent-tint); }

.section { padding: clamp(4rem, 3rem + 6vw, 7.5rem) 0; }
.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section__title { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.05rem); }
.section__sub { color: var(--ink-soft); margin: 1.1rem 0 0; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--accent-deep); border-color: rgba(47,111,99,.35); box-shadow: none; }
.btn--ghost:hover { background: var(--accent-tint); border-color: var(--accent); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--accent-deep); border-color: #fff; }
.btn--light:hover { background: #f2efe8; border-color: #f2efe8; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.10); border-color: #fff; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -22px rgba(29,42,40,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .95rem 0; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; }
.brand__name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__cred { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .18s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { flex: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav__toggle span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: .25rem; padding: .5rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .85rem .25rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0 clamp(3.5rem, 2rem + 6vw, 6rem); }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 1.7rem + 4.4vw, 4.6rem);
  line-height: 1.03; margin: 0 0 1.4rem; letter-spacing: -0.02em;
}
.hero__title em { color: var(--accent-deep); }
.hero__lead { font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.28rem); color: var(--ink-soft); max-width: 34rem; margin: 0 0 2rem; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.5rem; }
.hero__meta { font-size: .92rem; color: var(--muted); margin: 0; }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.portrait {
  margin: 0; border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--accent-tint), #fff);
  aspect-ratio: 13 / 16;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait__badge {
  position: absolute; right: -.5rem; bottom: 1.75rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .7rem 1.05rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; line-height: 1.15;
}
.portrait__badge span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.portrait__badge strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent-deep); }

/* ---------- Tension ---------- */
.tension { background: var(--bg-alt); }
.tension__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.tension__card h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.tension__card h3::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
  background: var(--accent); margin-bottom: 1.1rem;
}
.tension__card:nth-child(2) h3::before { background: var(--sand); }
.tension__card:nth-child(3) h3::before { background: var(--accent-deep); }
.tension__card p { color: var(--ink-soft); margin: 0; }
.tension__close {
  text-align: center; font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.85rem); color: var(--ink);
  max-width: 34rem; margin: clamp(2rem, 1.5rem + 2vw, 3.25rem) auto 0; line-height: 1.35;
}

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.about__text > p { color: var(--ink-soft); margin: 1.1rem 0 0; }
.about__text > p:first-of-type { margin-top: 1.4rem; }
.creds {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem;
  margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.creds li { display: flex; flex-direction: column; }
.creds strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.creds span { font-size: .9rem; color: var(--muted); margin-top: .15rem; }

.about__quote {
  background: var(--accent-deep); color: #eef4f1; border-radius: var(--radius);
  padding: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); box-shadow: var(--shadow);
  position: sticky; top: 6rem;
}
.about__quote blockquote { margin: 0; }
.about__quote p { font-family: var(--font-head); font-size: 1.28rem; line-height: 1.45; font-style: italic; margin: 0 0 1.2rem; }
.about__quote cite { font-style: normal; font-size: .9rem; letter-spacing: .04em; color: var(--accent-tint); }

/* ---------- Approach ---------- */
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mini { padding-top: 1.3rem; border-top: 2px solid var(--accent); }
.mini__num { font-family: var(--font-head); font-size: 1rem; color: var(--accent); font-weight: 600; }
.mini h3 { font-size: 1.28rem; margin: .5rem 0 .55rem; }
.mini p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Help ---------- */
.help { background: var(--bg-alt); }
.help__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.4rem; font-weight: 500; font-size: 1.05rem;
  display: flex; align-items: center; gap: .85rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.chip::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
}
.chip:hover { transform: translateY(-3px); border-color: rgba(47,111,99,.4); }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work__card h3 { font-size: 1.5rem; margin-bottom: .7rem; color: var(--accent-deep); }
.work__card p { color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--accent-deep); color: #eef4f1; }
.contact__inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.contact__title { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3rem); }
.contact__lead { color: var(--accent-tint); font-size: 1.12rem; margin: 1.2rem auto 2.2rem; max-width: 34rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.contact__meta { margin: 2.2rem 0 0; font-size: .9rem; color: rgba(230,239,235,.7); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c4ccc9; padding: 3rem 0; }
.footer__inner { display: grid; gap: 1.4rem; text-align: center; }
.footer__brand { display: flex; flex-direction: column; gap: .3rem; }
.footer .brand__name { color: #fff; font-size: 1.2rem; }
.footer__fine { font-size: .88rem; color: #9aa4a1; }
.footer__crisis { font-size: .9rem; color: #b7c0bd; margin: 0; }
.footer__crisis strong { color: #fff; }
.footer__crisis a { color: var(--sand); font-weight: 600; text-decoration: underline; }
.footer__copy { font-size: .82rem; color: #7f8a87; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { grid-row: 1; max-width: 340px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__quote { position: static; }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 620px) {
  .tension__grid, .help__grid, .work__grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Motion / theme prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
