@import url("/assets/css/fonts.css");

/* ============================================================
   Ashwin Vasudevan — design system (clean rebuild)
   Colours & type transcribed from the original design spec.
   ============================================================ */
:root {
  --bg:        #F5E4D6;
  --text:      #111111;
  --muted:     #33302E;
  --blue:      #145DA0;
  --coral:     #E85D4F;
  --border:    rgba(17,17,17,0.28);
  --border-soft: rgba(17,17,17,0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad: 64px;
  --nav-h: 69px;
  --dot: radial-gradient(var(--border-soft) 1px, transparent 1px);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background-image: var(--dot);
  background-size: 22px 22px;
}
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* eyebrow (● SECTION) --------------------------------------- */
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot-color, var(--coral)); flex: none;
}
.eyebrow--blue { --dot-color: var(--blue); }

/* text link with arrow -------------------------------------- */
.arrow-link {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: gap .18s ease, opacity .18s ease;
}
.arrow-link:hover { gap: 13px; opacity: .7; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 9px;
}
.nav__brand::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--sans); font-size: 15px; color: var(--muted);
  transition: color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle svg { display: block; }

@media (max-width: 820px) {
  :root { --pad: 24px; --nav-h: 85px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav__links a { padding: 10px 0; font-size: 18px; }
  .nav[data-open="true"] .nav__links { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 0 64px;
}
.hero__eyebrow { margin-bottom: 34px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: 88px; line-height: 0.92;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 40px;
}
.hero__intro {
  font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.3;
  color: var(--text); max-width: 780px; margin-bottom: 36px;
}
.hero__intro em { font-style: italic; }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
.section { padding: 72px 0; }
.section__head { margin-bottom: 44px; }
.section__head .eyebrow { margin-bottom: 22px; }
.section__title {
  font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1;
  color: var(--text); max-width: 780px;
}

/* ABOUT -------------------------------------------------------*/
.about__lede {
  font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2;
  color: var(--text); max-width: 820px; margin-bottom: 26px;
}
.about__body { max-width: 640px; }
.about__body p {
  font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--text);
  margin-bottom: 18px;
}
.about__actions { margin-top: 30px; }

/* WHAT I BRING ---------------------------------------------- */
.bring { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 8px; }
.bring__item { border-top: 1px solid var(--border-soft); padding-top: 20px; }
.bring__num { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--blue); margin-bottom: 12px; }
.bring__title { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.bring__desc { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 820px) { .bring { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   WORK CARD GRID  (new layout)
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 8px; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; gap: 22px; } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-soft);
  background: rgba(17,17,17,0.015);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-3px); background: rgba(17,17,17,0.04); box-shadow: 0 12px 30px rgba(17,17,17,0.09); }
.card__cover { aspect-ratio: 16 / 10; overflow: hidden; background: #e7ddce; border-bottom: 1px solid var(--border-soft); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__cover img { transform: scale(1.035); }
.card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.05; color: var(--text); margin-bottom: 12px; }
.card__desc { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.45; color: var(--muted); margin-bottom: 22px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card__tag {
  font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border-soft); border-radius: 2px; padding: 7px 12px; white-space: nowrap;
}
.work-more { margin-top: 44px; }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact__headline {
  font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1.1;
  color: var(--text); max-width: 820px; margin-bottom: 34px;
}
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.contact__links a {
  font-family: var(--sans); font-size: 18px; color: var(--text);
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--border); padding-bottom: 3px;
  transition: opacity .15s ease;
}
.contact__links a:hover { opacity: .65; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 60px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: baseline; }
.footer__name { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--text); }
.footer__name span { font-weight: 400; color: var(--muted); margin-left: 10px; }
.footer__links { display: flex; gap: 26px; }
.footer__links a, .footer__copy { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }

/* back link (work page) ------------------------------------- */
.page-hero { padding: 40px 0 8px; }
.page-hero__eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1.02;
  color: var(--text); max-width: 1000px; margin-bottom: 28px;
}
.page-hero__sub { font-family: var(--sans); font-size: 20px; line-height: 1.4; color: var(--muted); max-width: 640px; }

/* ============================================================
   EXPERIENCE — timeline + education/tools/domains
   ============================================================ */
.timeline__row { border-top: 1px solid var(--border-soft); padding: 26px 0; }
.timeline__row:last-child { border-bottom: 1px solid var(--border-soft); }
.timeline__date { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--blue); margin-bottom: 10px; }
.timeline__role { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.timeline__desc { font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 660px; }

.meta-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.meta-col .eyebrow { margin-bottom: 22px; }
.edu__item { margin-bottom: 20px; }
.edu__deg { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.edu__inst { font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--muted); }
.meta-list { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.8; color: var(--text); }
.meta-line { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--muted); }
@media (max-width: 820px) { .meta-cols { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   RESOURCES — download list
   ============================================================ */
.resource { border-top: 1px solid var(--border-soft); padding: 30px 0; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: baseline; justify-content: space-between; }
.resource:last-child { border-bottom: 1px solid var(--border-soft); }
.resource__title { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--text); margin-bottom: 8px; }
.resource__meta { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.resource__dl { font-family: var(--sans); font-size: 15px; color: var(--text); display: inline-flex; gap: 7px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 3px; white-space: nowrap; transition: opacity .15s ease; }
.resource__dl:hover { opacity: .65; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.cs { padding-bottom: 20px; }
.cs-hero { padding: 40px 0 8px; }
.cs-hero__eyebrow { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.cs-hero h1 { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -0.01em; color: var(--text); max-width: 900px; margin-bottom: 24px; }
.cs-hero__sub { font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1.4; color: var(--muted); max-width: 660px; margin-bottom: 32px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tag { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--border-soft); border-radius: 2px; padding: 6px 13px; }

.cs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 30px 40px; padding: 44px 0 8px; }
.cs-meta__label { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cs-meta__value { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.4; color: var(--text); }
@media (max-width: 820px) { .cs-meta { grid-template-columns: 1fr 1fr; } }

.cs-figure { margin: 48px 0; border: 1px solid var(--border-soft); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.cs-figure img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.cs-figure:hover { box-shadow: 0 14px 34px rgba(17,17,17,0.10); transform: translateY(-3px); }
.cs-figure:hover img { transform: scale(1.035); }
.cs-figure figcaption { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); margin: 12px 14px 0; }

.cs-section { padding: 40px 0; }
.cs-eyebrow { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.cs-eyebrow--sm { font-size: 14px; }
.cs-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }

.cs-p { font-family: var(--sans); font-weight: 400; font-size: 19px; line-height: 1.6; color: var(--text); max-width: 680px; margin-bottom: 20px; }

/* content-width divider line (inside .container, not full page) */
.rule { border: 0; border-top: 1px solid var(--border-soft); margin: 0 0 44px; }
.rule--mw { margin: 12px 0 40px; }

/* quick glance */
.qg__row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border-soft); }
.qg__row:last-child { border-bottom: 1px solid var(--border-soft); }
.qg__label { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
.qg__content { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 720px; }
.qg-quote { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text); }
.qg-attr { font-family: var(--sans); font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .qg__row { grid-template-columns: 1fr; gap: 8px; } }

/* three decisions */
.decision { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--border-soft); }
.decision:last-child { border-bottom: 1px solid var(--border-soft); }
.decision__title { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--text); }
.decision__desc { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 620px; }
@media (max-width: 640px) { .decision { grid-template-columns: 1fr; gap: 8px; } }

/* core move + pull-quotes */
.pull { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.35; color: var(--text); border-left: 2px solid var(--coral); padding-left: 24px; max-width: 760px; }
.pull--sm { font-size: 24px; }
.pull--italic { font-style: italic; color: var(--muted); font-size: 26px; max-width: 520px; }

/* toggle — coral-filled button */
.cs-toggle { margin: 28px 0 8px; }
.cs-toggle button { font-family: var(--sans); font-weight: 400; font-size: 17px; color: #fff; background: var(--coral); border: 0; border-radius: 2px; padding: 13px 22px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; transition: opacity .15s ease; }
.cs-toggle button:hover { opacity: .88; }

/* lightbox */
.cs-figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(17,17,17,0.92); display: flex; align-items: center; justify-content: center; padding: 32px; z-index: 200; cursor: zoom-out; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.4); cursor: default; }
.lightbox__close { position: fixed; top: 20px; right: 26px; font-size: 32px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.full-story[hidden] { display: none; }
.full-story h2 { font-family: var(--display); font-weight: 700; font-size: 50px; line-height: 1.15; color: var(--text); max-width: 760px; margin: 8px 0 8px; }

.num-label { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }

/* owned / co-led */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 8px 0 24px; }
.role-col__label { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.role-col--owned .role-col__label { color: var(--coral); }
.role-col--coled .role-col__label { color: var(--muted); }
.role-col ul { list-style: none; margin: 0; padding: 0; }
.role-col li { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--text); padding: 14px 0; border-top: 1px solid var(--border-soft); }
.role-col li:last-child { border-bottom: 1px solid var(--border-soft); }
.recap { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; gap: 28px; } }

/* methodology */
.phase { margin-bottom: 56px; }
.phase h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--text); margin-bottom: 14px; }
.phase .cs-figure { margin: 24px 0 0; }
/* deliverable / paired images */
.cs-figure-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 48px 0; align-items: start; }
.cs-figure-row .cs-figure { margin: 0; }

@media (min-width: 821px) {
  .phase { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: center; }
  .phase__text { min-width: 0; }
  .phase .cs-figure { margin: 0; }
  .phase .pull { max-width: none; }
  .cs-figure-row { grid-template-columns: 1fr 1fr; }
  .cs-figure-row--wide { grid-template-columns: 2fr 3fr; }
}

/* deliverable */
.deliver-meta { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); margin-bottom: 18px; }

/* conclusion */
.conclusion__tested { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: 57px; line-height: 1; color: var(--blue); margin-bottom: 12px; }
.stat__desc { font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--muted); }
.quote-attr { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 14px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* reflections (auto-fits 2 or 3 columns) */
.reflections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.reflections h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--text); margin-bottom: 14px; }
.reflections p { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) { .reflections { grid-template-columns: 1fr; gap: 32px; } }

/* conclusion outcome bullets (dash + text, no numeric stat) */
.outcomes { display: grid; gap: 4px; margin-bottom: 36px; max-width: 760px; }
.outcome { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border-soft); }
.outcome:last-child { border-bottom: 1px solid var(--border-soft); }
.outcome__mark { font-family: var(--sans); font-weight: 400; font-size: 18px; color: var(--blue); }
.outcome__text { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--text); }

/* in-body bulleted list (e.g. deliverable sub-section) */
.cs-list { list-style: none; margin: 0 0 8px; padding: 0; max-width: 680px; }
.cs-list li { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--text); padding: 10px 0 10px 22px; position: relative; }
.cs-list li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }
.cs-subhead { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--text); margin: 8px 0 12px; }

/* more work — uses the shared .work-grid / .card component */
.cs-section .work-grid { margin-top: 8px; }
.mw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mw-head .cs-eyebrow { margin-bottom: 0; }

@media (max-width: 820px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 54px; }
  .hero__intro { font-size: 25px; }
  .section { padding: 52px 0; }
  .section__title { font-size: 30px; }
  .contact__headline { font-size: 30px; }
  .card__title { font-size: 32px; }
  .page-hero h1 { font-size: 44px; }
  .resource__title { font-size: 26px; }
  .cs-hero h1 { font-size: 38px; }
  .full-story h2 { font-size: 34px; }
  .pull { font-size: 25px; }
  .stat__num { font-size: 46px; }
}
