/* ==========================================================
   Lisa Escudero — Portfolio
   Built from the Figma file "Projects" (Claude page).
   ========================================================== */

/* ES Allianz: Regular, Medium and Italic (files live next to this stylesheet). */
@font-face {
  font-family: "ES Allianz";
  src: url("ESAllianz-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ES Allianz";
  src: url("ESAllianz-Medium.woff") format("woff");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ES Allianz";
  src: url("ESAllianz-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #222;
  --bg: #f9fff6;          /* PEF / Eggshell */
  --slate: #3f5e80;       /* PEF / Slate */
  --muted: #9c9c9c;
  --rule: #d4d4d4;
  --placeholder: #d9d9d9;
  --gutter: 11px;
  --col: 50%;            /* right-hand content column starts at the centre line */
  --measure: 551px;      /* max width of body copy */
  --text: 20px;
  --small: 15px;
  --dot: #415c84;        /* overridden per page */
  --font: "ES Allianz", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tracking: 0;
}

body.page-work   { --dot: #057f0b; }
body.page-about  { --dot: #e6d9b3; }
body.page-cv     { --dot: #7a1e1e; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.2;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0; }
p + p { margin-top: 1.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 17px;
  background: var(--bg);
}
.site-header .name    { flex: 0 0 var(--col); }  /* puts the tagline exactly on the centre line, matching the copy column */
.site-header .tagline { flex: 1; }
.site-header nav      { display: flex; gap: 52px; align-self: stretch; align-items: center; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Work dropdown ---------- */
.nav-work { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -19px;
  margin: 0;
  padding: 4px 4px 16px 19px;  /* left padding as in Figma; small right padding so it never runs off-screen */
  list-style: none;
  white-space: nowrap;
  background: var(--bg);
  line-height: 1.75;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-work.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown a { display: block; padding: 2px 0; }
.dropdown a:hover,
.dropdown a:focus-visible { color: var(--muted); text-decoration: none; }
.dropdown a[aria-current="page"] { color: var(--muted); }


/* ---------- Generic two-column section ---------- */
.section {
  display: grid;
  grid-template-columns: var(--col) 1fr;
  padding: 106px var(--gutter) 120px;
}
.section + .section { border-top: 1px solid var(--rule); }
.section .content { max-width: var(--measure); }
.section .content.wide { max-width: 800px; }

/* Small label with coloured square, e.g. "■ Featured Work" */
.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--small);
  line-height: 1.2;
}
.label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--dot);
  flex: none;
}
.small { font-size: var(--small); }

/* ---------- Home ---------- */
.intro { padding-top: 166px; padding-bottom: 166px; }

.featured { padding: 0 var(--gutter); }
.featured .label { margin-bottom: 9px; }
.card { display: block; }
.card:hover { text-decoration: none; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card figure { margin: 0; overflow: hidden; background: var(--placeholder); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.02); }
.card .caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: var(--small);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 120px 17px 14px var(--gutter);
  font-size: var(--small);
}
.site-footer .links { display: flex; gap: 52px; }
.site-footer .email { color: var(--muted); margin-left: auto; }

/* ---------- About ---------- */
.expertise {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: 48px;
}
.expertise h3 { margin: 0 0 2px; font-size: 13px; font-weight: 400; }
.expertise ul, .plain-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Index / CV ---------- */
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { line-height: 2; font-size: 18px; }

/* ---------- Project (case study) ---------- */
.project-head { padding-top: 166px; padding-bottom: 166px; }
.project-head h1 {
  margin: 14px 0 22px;
  max-width: 630px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}
.gallery {
  display: grid;
  grid-template-columns: 365fr 628fr 686fr;
  gap: 12px;
  align-items: start;
  padding: 0 var(--gutter);
}
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: var(--small); }
.gallery .tall img { aspect-ratio: 365 / 547; object-fit: cover; width: 100%; }
.gallery .wide img { aspect-ratio: 628 / 419; object-fit: cover; width: 100%; }
.gallery .wider img { aspect-ratio: 686 / 457; object-fit: cover; width: 100%; }

.project-body {
  display: grid;
  /* "My Role" starts ~13% in; "Impact" lines up with the centre column */
  grid-template-columns: 13.4% calc(var(--col) - 13.4%) 1fr;
  padding: 230px var(--gutter) 120px;
}
.project-body > * { max-width: var(--measure); }
.project-body > :nth-child(1) { grid-column: 2; padding-right: 32px; }
.project-body > :nth-child(2) { grid-column: 3; }
.project-body h2 { margin: 0 0 2px; font-size: var(--small); font-weight: 400; }

.bullets { margin: 0; padding-left: 30px; line-height: 2; }

/* ---------- Work grid ---------- */
.work-head { padding-top: 70px; padding-bottom: 80px; display: block; }
.work-head h1 { margin: 14px 0 0; font-size: 36px; font-weight: 400; }
.work-row {
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 0 var(--gutter) 160px;
}
/* Proportions taken from the live Webflow layout */
.work-row.g1 { grid-template-columns: 474fr 338fr; gap: 16px; }
.work-row.g2 { grid-template-columns: 266fr 266fr 262fr; gap: 16px; }
.work-row.g3 { grid-template-columns: 393fr 406fr; gap: 28px; }
.card .client { color: var(--muted); }
.page-home .featured .label { margin-bottom: 0; }
.page-home .featured { padding-bottom: 9px; }
.work-row .card .caption { margin-top: 8px; }
.ph { background: var(--placeholder); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header nav { gap: 32px; }
  .project-body { grid-template-columns: var(--col) 1fr; }
  .project-body > :nth-child(1) { grid-column: 1; padding-right: 32px; }
  .project-body > :nth-child(2) { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --text: 18px; --gutter: 16px; }
  .site-header { padding: 0 var(--gutter); justify-content: space-between; }
  .site-header .name { flex: none; }
  .site-header .tagline { display: none; }
  .site-header nav { gap: 24px; }
  /* On phones, hang the menu from the right edge of the nav so it never runs off-screen */
  .site-header nav { position: relative; }
  .nav-work { position: static; }
  .dropdown { left: auto; right: -16px; padding: 4px 16px 16px 24px; text-align: right; }

  .section { grid-template-columns: 1fr; row-gap: 24px; padding: 56px var(--gutter) 64px; }
  .intro, .project-head { padding-top: 56px; padding-bottom: 72px; }
  .project-head h1 { font-size: 28px; }

  .gallery,
  .work-row.g1, .work-row.g2, .work-row.g3 { grid-template-columns: 1fr; row-gap: 32px; }
  .work-row { padding-bottom: 32px; }
  .work-row:empty { display: none; }

  .project-body { grid-template-columns: 1fr; row-gap: 48px; padding-top: 80px; }
  .project-body > :nth-child(n) { grid-column: 1; }

  .expertise { grid-template-columns: 1fr; row-gap: 24px; }

  .site-footer { padding-top: 72px; }
  .site-footer .links { gap: 24px; }
  .site-footer .email { margin-left: 0; width: 100%; }
}

/* ---------- Added for live-site copy ---------- */
.labels { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.muted { color: var(--muted); }
.cv-list a, .plain-list a { text-decoration: none; }
.cv-list a:hover, .plain-list a:hover { text-decoration: underline; }
.more { margin-top: 1.2em; }

.project-body h2,
.read-more h2 { margin: 0 0 4px; font-size: var(--small); font-weight: 400; color: var(--muted); }
.project-body .stack > section + section { margin-top: 72px; }
.read-more { margin-top: 2.4em; font-size: var(--small); }
.read-more p + p { margin-top: 6px; }

.gallery.g-1 { grid-template-columns: minmax(0, 66%); }
.gallery.g-2 { grid-template-columns: 1fr 1.3fr; }
.gallery.g-3 { grid-template-columns: repeat(3, 1fr); }
.gallery .ph { width: 100%; }

@media (max-width: 760px) {
  .gallery.g-1, .gallery.g-2, .gallery.g-3 { grid-template-columns: 1fr; }
}

/* ---------- Real images ---------- */
.gallery img, .press-shot img { width: 100%; height: auto; }
.gallery + .gallery { margin-top: 12px; }
.press-shot { margin: 12px 0 0; }

/* Form controls don't inherit letter spacing by default */
input, button { letter-spacing: inherit; }

/* Headings keep the tighter -1px tracking; body text is 0 */
h1, .work-head h1, .project-head h1 { letter-spacing: var(--tracking); }

/* ---------- Prelude page (Figma frame "Frame 2", node 2766:3297) ---------- */
.project-head .client { color: #999; }
.page-case .project-head { padding-top: 114px; padding-bottom: 115px; }
.page-case .project-head h1 { margin-top: 0; }
.page-case .project-body { padding-top: 120px; padding-bottom: 118px; }

/* photo rows: images bottom-aligned on one row, captions on the row below */
.pg { display: grid; align-items: end; row-gap: 14px; }
.pg figure { margin: 0; }
.pg img { display: block; width: 100%; height: auto; cursor: default; }
.pg-cap { margin: 0; align-self: start; font-size: var(--small); line-height: 1.2; }
.pg-3 { grid-template-columns: 309fr 581fr 284fr; column-gap: 28px; padding: 0 30px 0 21px; }
.pg-2 { grid-template-columns: 591fr 602fr; column-gap: 24px; padding: 0 31px 0 32px; }
.pg-last { grid-template-columns: 598fr 597fr; column-gap: 16px; padding: 0 37px 0 32px; }

.highlights { padding: 106px var(--gutter) 78px calc(347 / 1280 * 100%); }
.highlights h2 { margin: 0 0 12px; font-size: var(--small); font-weight: 400; color: #999; }
.highlights .bullets { margin: 0; padding-left: 16px; max-width: 600px; line-height: 1.15; }
.highlights .bullets li { margin-bottom: 22px; }
.highlights .bullets li:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .page-case .project-head { padding-top: 56px; padding-bottom: 56px; }
  .page-case .project-body { padding-top: 64px; padding-bottom: 64px; }
  .pg, .pg-3, .pg-2, .pg-last { grid-template-columns: 1fr; padding: 0 var(--gutter); row-gap: 8px; }
  /* keep each caption directly under its own photo on phones */
  .pg figure:nth-of-type(1) { order: 1; } .pg .pg-cap:nth-of-type(1) { order: 2; margin-bottom: 24px; }
  .pg figure:nth-of-type(2) { order: 3; } .pg .pg-cap:nth-of-type(2) { order: 4; margin-bottom: 24px; }
  .pg figure:nth-of-type(3) { order: 5; } .pg .pg-cap:nth-of-type(3) { order: 6; }
  .highlights { padding: 56px var(--gutter) 48px; }
}
.page-case .project-head > div:first-child { padding-left: 10px; }
.page-case .project-head h1 { max-width: 562px; }
.page-case .project-head .content { max-width: 491px; }
.page-case .project-body .stack { max-width: 495px; }
@media (max-width: 760px) { .page-case .project-head > div:first-child { padding-left: 0; } }

/* ---------- Case-study photo rows (layout values come from Figma, see tools/case_studies.py) ---------- */
.prow { display: grid; }
.prow figure { margin: 0; }
.prow img { display: block; width: 100%; height: auto; }
.prow figcaption { margin-top: 9px; font-size: var(--small); line-height: 1.2; }
.prow-centre-cap figcaption { text-align: center; }
.prow-centre-cap { margin-bottom: 40px; }
.page-case .project-body + .project-body { padding-top: 0; }
@media (max-width: 760px) {
  .prow { grid-template-columns: 1fr !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; row-gap: 24px; }
}
/* Work page first row (Figma "comms.lisaes.com/work"): large Prelude card + Creative BC */
.work-row.w1 { grid-template-columns: 828fr 380fr; gap: 25px; padding-left: calc(19 / 1280 * 100%); padding-right: calc(28 / 1280 * 100%); align-items: end; }
@media (max-width: 760px) { .work-row.w1 { grid-template-columns: 1fr; padding-left: var(--gutter); padding-right: var(--gutter); } }
.page-worklist .work-row { align-items: end; }

/* About + Index (Figma "comms.lisaes.com/about", "/index"): larger labels, no divider lines */
.page-about .label, .page-cv .label { font-size: 20px; }
.page-about .section, .page-cv .section { border-top: 0; padding-top: 100px; padding-bottom: 100px; }
.page-about main > .section:first-child, .page-cv main > .section:first-child { padding-top: 100px; }

/* 404 page (Figma "comms.lisaes.com/404") */
.notfound { padding: 108px 17px 0; min-height: calc(100vh - 66px - 160px); }
.notfound .nf-code { margin: 0; font-size: 24px; color: #a7a7a7; }
.notfound h1 { margin: 217px 0 0; font-size: 44px; font-weight: 400; line-height: 1; }
.notfound .nf-home { margin-top: 24px; font-size: var(--small); color: var(--muted); }
@media (max-width: 760px) { .notfound h1 { margin-top: 96px; font-size: 32px; } }

/* Home (Figma "comms.lisaes.com/home", 1280 × 736): intro only, narrow column on the centre line */
.home-intro { padding: 311px 0 23px 50%; }
.home-intro .content { max-width: 295px; }
@media (max-width: 760px) { .home-intro { padding: 96px var(--gutter) 64px; } .home-intro .content { max-width: none; } }
.home-row { margin-bottom: 120px; }
.home-row .card img { width: 100%; height: auto; }
.page-home .intro { padding-top: 100px; padding-bottom: 196px; }
.home-row { margin-bottom: 120px; }
.home-row .card img { width: 100%; height: auto; }
.page-home .intro { padding-top: 100px; padding-bottom: 196px; }
