/* =========================================================
   AMY WENSTROM — PORTFOLIO (soft / rounded / pastel direction)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:ital,wght@1,400;1,500&display=swap');

:root {
  /* neutrals */
  --page-bg:   #ECEEF6;   /* outside the frame */
  --frame-bg:  #FFFFFF;
  --ink:       #201D33;
  --ink-70:    #201D33B3;
  --ink-50:    #201D3380;
  --line:      #201D3316;

  /* gradient hero */
  --grad-a: #E3EFFB;
  --grad-b: #FDEEE1;

  /* pastel accents: bg tint + deep text tone, paired */
  --lav-bg:  #EAE3FC; --lav-tx:  #6A4EE0;
  --peach-bg:#FCE7D6; --peach-tx:#C1793B;
  --mint-bg: #DEF3E4; --mint-tx: #3E8E5B;
  --pink-bg: #FBE1EA; --pink-tx: #C24E75;
  --sky-bg:  #DDEEFB; --sky-tx:  #3577B0;

  --primary: #4B3FE4;     /* solid CTA */
  --primary-dark: #201D33;

  --f-head: 'Plus Jakarta Sans', sans-serif;
  --f-body: 'Plus Jakarta Sans', sans-serif;
  --f-accent: 'Fraunces', serif;

  --max: 1160px;
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 28px 16px;
}

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

.frame {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--frame-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(32,29,51,0.25);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
}

.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

em, .accent { font-family: var(--f-accent); font-style: italic; font-weight: 400; }

/* ---------- nav ---------- */
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 10px;
}
.brand-mark {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark .dot {
  width: 9px; height: 9px;
  background: var(--primary);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 4px;
  background: #F3F3F8;
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  color: var(--ink-70);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); outline: none; }
.nav-links a.active { background: var(--frame-bg); color: var(--ink); box-shadow: 0 2px 6px rgba(32,29,51,0.08); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary-dark);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .site-nav .wrap {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
    padding-top: 22px;
  }
  .brand-mark { order: 1; }
  .nav-cta { order: 2; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nav-links a { padding: 8px 12px; font-size: 12px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  padding-bottom: 64px;
}
.hero-inner { text-align: center; padding-top: 56px; }
.hero-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  margin: 18px 0 0;
  letter-spacing: -0.01em;
}
.hero-title em { color: var(--primary); }
.hero-sub {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--ink-70);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(32,29,51,0.08); }
.btn.dark { background: var(--primary-dark); color: #fff; }

/* ---------- fuse line (positioning statement w/ pastel chips) ---------- */
.fuse {
  text-align: center;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
}
.chip {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: var(--r-sm);
  display: inline-block;
}
.chip.lav  { background: var(--lav-bg);  color: var(--lav-tx); }
.chip.peach{ background: var(--peach-bg);color: var(--peach-tx); }
.chip.mint { background: var(--mint-bg); color: var(--mint-tx); }
.chip.pink { background: var(--pink-bg); color: var(--pink-tx); }
.chip.sky  { background: var(--sky-bg);  color: var(--sky-tx); }

/* ---------- identity badges (pill row under name) ---------- */
.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
}
.badge .ic { font-size: 16px; font-style: normal; }
.badge.lav  { background: var(--lav-bg);  color: var(--lav-tx); }
.badge.sky  { background: var(--sky-bg);  color: var(--sky-tx); }
.badge.peach{ background: var(--peach-bg);color: var(--peach-tx); }

/* ---------- 3x3 stat grid (stats-first hero) ---------- */
.stat-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 48px;
  margin-top: 64px;
}
.stat-cell { padding: 0 28px; text-align: center; }
.stat-cell:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
@media (max-width: 700px) {
  .stat-grid3 { grid-template-columns: 1fr; row-gap: 32px; }
  .stat-cell { border-left: none !important; padding: 0; }
}
.stat-cell .snum {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}
.stat-cell .slbl {
  font-size: 14px;
  color: var(--ink-70);
  margin-top: 10px;
}
.stat-cell .ssrc {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-50);
  margin-top: 8px;
}

/* ---------- stats (legacy small row, still used on inner pages) ---------- */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
}
.stat .num::before { content: "+"; color: var(--primary); }
.stat .num.nop::before { content: ""; }
.stat .lbl {
  font-size: 12px;
  color: var(--ink-50);
  margin-top: 4px;
  max-width: 110px;
}

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  margin: 6px 0 0;
}
.section-title em { color: var(--primary); }

/* ---------- capability cards ---------- */
.cap-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .cap-row { grid-template-columns: repeat(2, 1fr); } }
.cap-card {
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: left;
}
.cap-card .ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 26px;
}
.cap-card .lbl { font-weight: 700; font-size: 14px; }
.cap-card.lav  { background: var(--lav-bg);  color: var(--lav-tx); }
.cap-card.peach{ background: var(--peach-bg);color: var(--peach-tx); }
.cap-card.mint { background: var(--mint-bg); color: var(--mint-tx); }
.cap-card.pink { background: var(--pink-bg); color: var(--pink-tx); }
.cap-card.sky  { background: var(--sky-bg);  color: var(--sky-tx); }

/* ---------- dark cta bar ---------- */
.cta-bar {
  background: var(--primary-dark);
  border-radius: var(--r-md);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-bar p { margin: 0; font-size: 14px; color: #FFFFFFB3; }
.cta-bar strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
.cta-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- role / experience rows ---------- */
.role {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.role:last-child { border-bottom: 1px solid var(--line); }
.role-years { font-size: 13px; color: var(--ink-50); padding-top: 4px; font-weight: 600; }
.role-company { font-family: var(--f-head); font-weight: 700; font-size: clamp(20px, 3vw, 26px); margin: 0 0 4px; }
.role-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--ink-70); }
.role-desc { color: var(--ink-70); max-width: 640px; font-size: 15px; }
.role-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.role-dot.lav { background: var(--lav-tx); }
.role-dot.peach { background: var(--peach-tx); }
.role-dot.mint { background: var(--mint-tx); }

/* ---------- cards grid (case studies etc) ---------- */
.study-card {
  border-radius: var(--r-md);
  padding: 32px;
  margin-bottom: 20px;
  background: #F8F8FB;
}
.study-card .stat-mini-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.study-card .stat-mini .num { font-family: var(--f-head); font-weight: 700; font-size: 24px; }
.study-card .stat-mini .lbl { font-size: 12px; color: var(--ink-50); margin-top: 2px; }

/* ---------- brand cards ---------- */
.mark-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .mark-grid { grid-template-columns: 1fr; } }
.mark-card { border-radius: var(--r-md); padding: 28px; }
.mark-word { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 3.5vw, 30px); margin: 0 0 12px; }
.mark-word em { color: inherit; }
.mark-card p { color: var(--ink-70); font-size: 14px; margin: 0; }
.mark-card.lav  { background: var(--lav-bg); }
.mark-card.peach{ background: var(--peach-bg); }
.mark-card.mint { background: var(--mint-bg); }
.mark-card.pink { background: var(--pink-bg); }

/* ---------- projects gallery ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: flex-end;
  font: inherit;
  color: inherit;
}
.project-tile:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.project-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.project-tile .tile-body {
  position: relative;
  z-index: 1;
  padding: 16px;
  width: 100%;
}
.project-tile .tile-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.85);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-bottom: 8px;
}
.project-tile .tile-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 17px;
  background: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: var(--r-md);
  display: inline-block;
}
.project-tile.lav   { background: var(--lav-bg); }
.project-tile.peach { background: var(--peach-bg); }
.project-tile.mint  { background: var(--mint-bg); }
.project-tile.pink  { background: var(--pink-bg); }
.project-tile.sky   { background: var(--sky-bg); }

/* ---------- project modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(32,29,51,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #F3F3F8;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.modal-cat { }
.modal-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px,4vw,30px); margin: 10px 0 14px; }
.modal-desc { color: var(--ink-70); font-size: 15px; margin-bottom: 22px; }
.modal-support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 500px) { .modal-support { grid-template-columns: repeat(2, 1fr); } }
.modal-support .simg {
  aspect-ratio: 4/3;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.modal-support .simg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal-support .simg.lav   { background: var(--lav-bg); }
.modal-support .simg.peach { background: var(--peach-bg); }
.modal-support .simg.mint  { background: var(--mint-bg); }
.modal-support .simg.pink  { background: var(--pink-bg); }
.modal-support .simg.sky   { background: var(--sky-bg); }

/* ---------- access gate (standalone case study pages) ---------- */
.gate-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  padding: 24px;
}
.gate-box {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px -30px rgba(32,29,51,0.25);
}
.gate-box h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 24px;
  margin: 10px 0 20px;
}
.gate-input {
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  outline: none;
  box-sizing: border-box;
}
.gate-input:focus { border-color: var(--primary); }
.gate-error {
  color: var(--pink-tx);
  font-size: 13px;
  margin-top: 12px;
}
.detail-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.detail-page h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  margin: 36px 0 12px;
}
.detail-page p { color: var(--ink-70); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }

.note-block {
  border-radius: var(--r-md);
  background: #F3F3F8;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-50);
  margin-bottom: 32px;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-item:nth-child(5n+1),
.gallery-item:nth-child(5n+2) { grid-column: span 3; }
.gallery-item:nth-child(5n+3),
.gallery-item:nth-child(5n+4),
.gallery-item:nth-child(5n+5) { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(5n+1),
  .gallery-item:nth-child(5n+2),
  .gallery-item:nth-child(5n+3),
  .gallery-item:nth-child(5n+4),
  .gallery-item:nth-child(5n+5) { grid-column: span 1; }
}
.gallery-item {
  aspect-ratio: 3/2;
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item .cap {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.75);
  padding: 7px 11px;
  border-radius: var(--r-sm);
}
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: #F3F3F8; }
.gallery-item .cap { position: relative; z-index: 1; }
.gallery-item.lav { background: var(--lav-bg); }
.gallery-item.peach { background: var(--peach-bg); }
.gallery-item.mint { background: var(--mint-bg); }
.gallery-item.pink { background: var(--pink-bg); }
.gallery-item.sky { background: var(--sky-bg); }

/* ---------- footer ---------- */
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-50);
  padding: 26px 40px 34px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
