/* ============================================================
   Ruta Ajgaonkar — Portfolio
   Direction: "Light & Warm"
   Cream · warm sand · cocoa brown · amber. Bright, warm, editorial.
   ============================================================ */

:root {
  --cocoa: #5a4636;
  --cocoa-deep: #493729;
  --cocoa-soft: #6d5642;
  --amber: #c08a3e;
  --amber-deep: #a5722d;
  --amber-light: #e0b070;
  --amber-tint: #f4e9d5;
  --base: #fbf4ea;
  --paper: #fffdf8;
  --sand: #f3e9db;
  --sand-2: #ecdfcd;
  --ink: #4a3b30;
  --ink-soft: #7c6c5d;
  --ink-faint: #ab9c8b;
  --line: #ece0cf;
  --line-warm: #e0d2bd;
  --shadow: 0 22px 50px -30px rgba(90, 70, 54, 0.28);
  --shadow-lg: 0 34px 74px -34px rgba(73, 55, 41, 0.34);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --max: 1180px;
  --r: 16px;
  --r-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ===== Typography helpers ===== */
.section { padding: clamp(64px, 9vw, 124px) 0; }

.section__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section__eyebrow::before {
  content: ""; width: 30px; height: 1.5px; background: var(--amber);
}
.section__eyebrow--light { color: var(--amber-light); }
.section__eyebrow--light::before { background: var(--amber-light); }

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cocoa);
}
.section__title--light { color: var(--paper); }

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__intro { margin-top: 18px; color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}
.nav.is-scrolled {
  background: rgba(251, 244, 234, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 13px 0;
}
.nav__inner {
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__monogram {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--cocoa);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50%;
}
.nav__name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cocoa);
  letter-spacing: -0.01em;
}

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--amber-deep); }
.nav__cta {
  padding: 9px 22px;
  background: var(--amber);
  border-radius: 100px;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--amber-deep); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--cocoa); transition: 0.3s; border-radius: 2px; }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }

/* ===== Hero (light) ===== */
.hero {
  position: relative;
  background: var(--base);
  color: var(--ink);
  overflow: hidden;
  padding: 150px 0 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 520px at 82% 18%, rgba(224, 176, 112, 0.28), transparent 60%),
    radial-gradient(680px 560px at 2% 92%, rgba(243, 233, 219, 0.9), transparent 55%),
    linear-gradient(160deg, #fdf6ec, var(--base) 55%, #f4e7d4);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(90,70,54,0.05) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 74% 40%, #000, transparent 70%);
  opacity: 0.5;
}
.hero__inner {
  position: relative;
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 600; margin-bottom: 24px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 6.6vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  color: var(--cocoa);
}
.hero__lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__lede strong { color: var(--amber-deep); font-weight: 600; }

.hero__stats { display: flex; gap: 0; margin-bottom: 42px; flex-wrap: wrap; border-top: 1px solid var(--line-warm); }
.stat { display: flex; flex-direction: column; padding: 22px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--line-warm); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat__num {
  font-family: var(--display);
  font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--cocoa);
  letter-spacing: -0.02em;
}
.stat__plus { color: var(--amber); }
.stat__label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 9px; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 100px;
  font-size: 0.94rem; font-weight: 600; text-decoration: none;
  transition: all 0.22s ease; cursor: pointer; border: 1.5px solid transparent;
}
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(192,138,62,0.6); }
.btn--ghost { border-color: var(--line-warm); color: var(--cocoa); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-deep); }

/* Portrait frame — soft arch, amber keyline */
.hero__portrait { display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: 100%; max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 190px 190px var(--r) var(--r);
  overflow: hidden;
  border: 1px solid var(--line-warm);
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 5px rgba(192, 138, 62, 0.22);
  z-index: 3; pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame img.is-missing { display: none; }

/* Photo placeholders */
.portrait-frame__placeholder,
.photo-block__placeholder {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; text-align: center; padding: 20px;
  color: var(--ink-faint);
}
.portrait-frame img.is-missing ~ .portrait-frame__placeholder,
.photo-block img.is-missing ~ .photo-block__placeholder { display: flex; }
.ph-icon { font-size: 2.3rem; color: var(--amber); opacity: 0.9; }
.ph-label { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ph-hint { font-size: 0.72rem; font-family: ui-monospace, monospace; opacity: 0.7; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--ink-faint); text-decoration: none; font-size: 1.3rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===== About ===== */
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 64px; align-items: center;
}
.photo-block {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line-warm);
  box-shadow: var(--shadow);
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; }
.photo-block img.is-missing { display: none; }
.photo-block__placeholder { color: var(--ink-faint); }
.photo-block__placeholder .ph-icon { color: var(--amber); }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; top: 22px; left: -22px; bottom: -22px; right: 22px;
  border: 1.5px solid var(--amber); border-radius: var(--r); z-index: -1; opacity: 0.5;
}

.about__body p { margin-bottom: 18px; color: var(--ink-soft); }
.about__body p strong { color: var(--ink); font-weight: 600; }
.about__body .section__title { margin-bottom: 24px; }
.about__highlights { list-style: none; margin-top: 30px; display: grid; gap: 12px; }
.about__highlights li {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.about__highlights span {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber-tint);
  color: var(--amber-deep); font-size: 0.85rem; flex-shrink: 0;
}

/* ===== Journey / Timeline ===== */
.journey { background: var(--sand); }
.timeline { list-style: none; position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 148px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--amber), rgba(192,138,62,0.2));
}
.timeline__item {
  position: relative; display: grid;
  grid-template-columns: 128px 1fr; gap: 46px;
  padding-bottom: 32px;
}
.timeline__item::before {
  content: ""; position: absolute; left: 142px; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--amber);
  z-index: 2;
}
.timeline__year {
  text-align: right; padding-top: 5px;
  font-weight: 600; font-size: 0.82rem; color: var(--amber-deep);
  letter-spacing: 0.02em;
}
.timeline__card {
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.timeline__card h3 {
  font-family: var(--display); font-size: 1.25rem; font-weight: 600;
  color: var(--cocoa); margin-bottom: 6px; letter-spacing: -0.015em;
}
.timeline__card p { color: var(--ink-soft); font-size: 0.95rem; }
.timeline__tag {
  display: inline-block; margin-top: 13px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--amber-deep); padding: 4px 12px; background: var(--amber-tint); border-radius: 100px;
}
.timeline__card--cap { background: var(--cocoa); border-color: var(--cocoa); }
.timeline__card--cap h3 { color: var(--paper); }
.timeline__card--cap p { color: rgba(255,253,248,0.8); }
.timeline__item--cap::before { border-color: var(--amber); background: var(--amber); }

/* ===== Expertise ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: var(--r-sm);
  background: var(--amber-tint); color: var(--amber-deep);
  font-size: 1.5rem; margin-bottom: 22px;
}
.card h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--cocoa); margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Credentials ===== */
.credentials { background: var(--sand); }
.credentials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cred-list { list-style: none; margin-top: 8px; display: grid; gap: 16px; }
.cred-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); padding: 20px 22px; border: 1px solid var(--line-warm); border-radius: var(--r-sm); }
.cred-list__mark {
  flex-shrink: 0; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cocoa); color: var(--amber-light);
  font-family: var(--display); font-weight: 600; font-size: 0.98rem;
}
.cred-list--alt .cred-list__mark { background: var(--amber); color: #fff; }
.cred-list li strong { display: block; color: var(--cocoa); font-weight: 600; font-size: 1.05rem; font-family: var(--display); }
.cred-list li em { color: var(--ink-soft); font-style: normal; font-size: 0.92rem; }

/* ===== MAARK (warm cocoa — the one rich section) ===== */
.maark { background: var(--cocoa); color: var(--paper); }
.maark__grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 56px; align-items: start; }
.maark__lede { font-size: 1.12rem; color: rgba(255,253,248,0.85); margin: 22px 0 42px; max-width: 640px; }

.maark__mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 50px; }
.mv {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(224,176,112,0.28);
  border-radius: var(--r); padding: 26px;
}
.mv h4 { font-family: var(--display); font-size: 1.3rem; color: var(--amber-light); margin-bottom: 9px; font-weight: 600; }
.mv p { color: rgba(255,253,248,0.8); font-size: 0.94rem; }

.maark__sub {
  font-family: var(--display); font-size: 1.55rem; font-weight: 600;
  color: var(--paper); margin-bottom: 24px; letter-spacing: -0.02em;
}
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 50px; }
.segment {
  border-left: 2px solid var(--amber-light);
  padding: 4px 0 4px 18px;
}
.segment h4 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--paper); margin-bottom: 6px; }
.segment p { color: rgba(255,253,248,0.74); font-size: 0.91rem; }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 46px; }
.phase {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(224,176,112,0.22);
  border-radius: var(--r); padding: 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.phase:hover { border-color: var(--amber-light); transform: translateY(-3px); }
.phase__num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber); color: #fff;
  font-family: var(--display); font-weight: 600; margin-bottom: 16px; font-size: 1rem;
}
.phase strong { display: block; font-family: var(--display); color: var(--paper); font-size: 1rem; margin-bottom: 6px; }
.phase p { color: rgba(255,253,248,0.72); font-size: 0.85rem; }

.maark__values { display: flex; flex-wrap: wrap; gap: 10px; }
.maark__values span {
  font-size: 0.81rem; font-weight: 500;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(224,176,112,0.14); border: 1px solid rgba(224,176,112,0.38);
  color: var(--amber-light);
}

.maark__aside { display: grid; gap: 22px; position: sticky; top: 100px; }
.photo-block--dark { background: var(--cocoa-deep); border-color: rgba(224,176,112,0.28); }
.photo-block--dark .photo-block__placeholder { color: rgba(255,253,248,0.7); }
.photo-block--dark .photo-block__placeholder .ph-icon { color: var(--amber-light); }
.maark__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(224,176,112,0.28);
  border-radius: var(--r); padding: 26px;
}
.maark__card h4 { font-family: var(--display); font-size: 1.25rem; color: var(--amber-light); margin-bottom: 10px; font-weight: 600; }
.maark__card p { color: rgba(255,253,248,0.82); font-size: 0.94rem; }

/* ===== Philosophy ===== */
.philosophy {
  background: var(--amber-tint);
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}
.philosophy blockquote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.3vw, 2.3rem);
  line-height: 1.36; font-weight: 600; color: var(--cocoa);
  max-width: 900px; margin: 0 auto 26px;
  letter-spacing: -0.02em;
  position: relative;
}
.philosophy blockquote::before {
  content: "\201C"; font-family: var(--display); font-size: 4rem; color: var(--amber);
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%); opacity: 0.55;
}
.philosophy cite { color: var(--amber-deep); font-style: normal; font-weight: 600; letter-spacing: 0.02em; }

/* ===== Contact ===== */
.contact { background: var(--base); }
.contact__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact__intro { color: var(--ink-soft); font-size: 1.06rem; margin: 16px auto 44px; max-width: 540px; }
.contact__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact__method {
  display: flex; flex-direction: column; gap: 7px;
  padding: 28px 22px; background: var(--paper); border: 1px solid var(--line-warm); border-radius: var(--r);
  text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
a.contact__method:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow); }
.contact__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); font-weight: 600; }
.contact__value { color: var(--cocoa); font-weight: 600; font-size: 1.02rem; font-family: var(--display); }

/* ===== Footer ===== */
.footer { background: var(--cocoa-deep); color: rgba(255,253,248,0.75); padding: 42px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .nav__monogram { background: var(--amber); }
.footer__brand strong { display: block; color: var(--paper); font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.footer__brand span { font-size: 0.85rem; }
.footer__note { font-size: 0.85rem; }

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

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__portrait { order: -1; }
  .portrait-frame { max-width: 300px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 420px; }
  .about__media::before { display: none; }
  .credentials__grid { grid-template-columns: 1fr; gap: 40px; }
  .maark__grid { grid-template-columns: 1fr; }
  .maark__aside { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 100px 32px; gap: 22px; transform: translateX(100%);
    transition: transform 0.35s ease; box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--ink) !important; font-size: 1.04rem; }
  .nav__toggle { display: block; z-index: 110; }

  .hero__stats { gap: 0; }
  .stat { padding-right: 22px; margin-right: 22px; }
  .stat__num { font-size: 2rem; }
  .timeline::before { left: 7px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
  .timeline__item::before { left: 1px; }
  .timeline__year { text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .segments, .maark__mv { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .contact__methods { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
