/* ============================================================
   ILONAH PELAEZ — SHARED STYLES
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --ink: #111111;
  --mid: #777777;
  --light: #f7f7f7;
  --border: #e8e8e8;
  --accent: #B85C38;
  --serif: 'Lora', serif;
  --sans: 'Inter', sans-serif;
  --sm: 11px;
  --md: 15px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--serif); font-size: var(--md); font-weight: 400; background: var(--bg); color: var(--ink); line-height: 1.7; overflow-x: hidden; }

/* ---- NAV ---- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 48px; border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-monogram { width: 28px; height: 28px; border: 1.5px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.nav-monogram span { font-family: var(--serif); font-size: 11px; font-weight: 400; color: var(--accent); font-style: italic; line-height: 1; }
.nav-logo:hover .nav-monogram { background: var(--accent); }
.nav-logo:hover .nav-monogram span { color: #fff; }
.nav-name { font-family: var(--sans); font-size: var(--sm); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: var(--sm); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
.nav-back { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color 0.15s; }
.nav-back:hover { color: var(--accent); }

/* ---- HOMEPAGE HERO ---- */
.hero { padding: 80px 48px; max-width: 45%; }
.hero h1 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.45; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--mid); }
.hero p { font-size: var(--md); color: var(--mid); line-height: 1.8; margin-bottom: 32px; }
.hero-links { display: flex; gap: 24px; }
.hero-links a { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.hero-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- SECTIONS ---- */
section { padding: 64px 48px; border-top: 1px solid var(--border); }
section#work { background: #F0EBE3; border-top: none; }
.section-label { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); margin-bottom: 36px; }

/* ---- CASE LIST (homepage) ---- */
.case-item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.1); text-decoration: none; color: inherit; transition: opacity 0.15s; }
.case-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.case-item:hover { opacity: 0.55; }
.case-title { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 5px; transition: color 0.15s; }
.case-item:hover .case-title { color: var(--accent); }
.case-desc { font-size: 13px; color: var(--mid); line-height: 1.6; }
.case-meta { font-family: var(--sans); font-size: var(--sm); color: var(--mid); text-align: right; white-space: nowrap; }
.case-company { margin-bottom: 2px; }

/* ---- ABOUT (homepage) ---- */
.about-grid { display: grid; grid-template-columns: calc(45% - 48px - 32px) 1fr; gap: 64px; }
.about-left .section-label { margin-bottom: 0; }
.about-right p { font-size: var(--md); color: var(--mid); line-height: 1.8; margin-bottom: 18px; }
.about-right p:last-child { margin-bottom: 0; }
.about-subheading { font-family: var(--sans); font-size: var(--sm); font-weight: 400; color: var(--ink); letter-spacing: 0.02em; margin-bottom: 10px; margin-top: 32px; }
.about-right .about-subheading:first-child { margin-top: 0; }

/* ---- CURRENTLY ---- */
.currently { margin-top: 28px; max-width: 100%; }
.currently-block { background: var(--light); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.currently-row { display: flex; align-items: baseline; gap: 8px; font-family: var(--sans); font-size: var(--sm); }
.currently-emoji { font-size: 13px; flex-shrink: 0; }
.currently-item-label { color: var(--mid); flex-shrink: 0; }
.currently-item-value { color: var(--ink); }

/* ---- CONTACT ---- */
.contact-links { display: flex; gap: 24px; flex-wrap: wrap; }
.contact-link { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---- FOOTER ---- */
footer { padding: 28px 48px; border-top: 1px solid var(--border); display: grid; grid-template-columns: calc(45% - 48px - 32px) 1fr; gap: 64px; align-items: center; }
.footer-copy { font-family: var(--sans); font-size: var(--sm); color: var(--mid); letter-spacing: 0.04em; }
.footer-mark { width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-mark span { font-family: var(--serif); font-size: 9px; font-style: italic; color: var(--mid); }

/* ---- CASE STUDY PAGES ---- */
.case-hero { padding: 64px 48px 52px; border-bottom: 1px solid var(--border); max-width: 760px; }
.case-eyebrow { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; color: var(--mid); margin-bottom: 16px; }
.case-title-large { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.3; margin-bottom: 18px; }
.case-summary { font-size: var(--md); color: var(--mid); line-height: 1.8; max-width: 580px; margin-bottom: 36px; }
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.meta-label { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; color: var(--mid); margin-bottom: 4px; }
.meta-value { font-family: var(--sans); font-size: var(--sm); color: var(--ink); }

/* TOC */
.toc { display: flex; gap: 24px; padding: 20px 48px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toc a { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color 0.15s; }
.toc a:hover { color: var(--accent); }

/* Case study blocks */
.cs-block { padding: 52px 48px; border-bottom: 1px solid var(--border); max-width: 860px; }
.section-heading { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.4; margin-bottom: 18px; }
.body-text { font-size: var(--md); color: var(--mid); line-height: 1.8; max-width: 620px; }
.body-text p + p { margin-top: 14px; }
.body-text strong { color: var(--ink); font-weight: 500; }

/* Callout */
.callout { border-left: 2px solid var(--accent); padding: 14px 22px; margin: 24px 0; max-width: 580px; }
.callout p { font-size: var(--md); color: var(--ink); line-height: 1.7; font-style: italic; }

/* Table */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; }
th { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.04em; color: var(--mid); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-weight: 400; }
td { font-size: 13px; color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
tr:last-child td { border-bottom: none; }

/* Steps */
.steps { margin: 24px 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.step:first-child { border-top: 1px solid var(--border); }
.step-num { font-family: var(--sans); font-size: var(--sm); color: var(--mid); padding-top: 3px; }
.step-title { font-size: var(--md); color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.step-desc { font-size: 13px; color: var(--mid); line-height: 1.7; }

/* Insights */
.insight-list { margin: 24px 0; display: flex; flex-direction: column; gap: 2px; }
.insight { padding: 18px 20px; background: var(--light); font-size: 13px; color: var(--mid); line-height: 1.7; }
.insight strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 4px; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 24px 0; }
.outcome-num { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-bottom: 6px; }
.outcome-label { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.outcome-desc { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* Image placeholders */
.img-placeholder { background: var(--light); margin: 32px 0; overflow: hidden; }
.img-placeholder-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 40px; gap: 8px; }
.img-placeholder img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.img-ph-label { font-family: var(--sans); font-size: var(--sm); color: var(--mid); letter-spacing: 0.04em; }
.img-ph-sub { font-family: var(--sans); font-size: var(--sm); color: rgba(0,0,0,0.25); }

/* Next case */
.next-case { display: flex; justify-content: space-between; align-items: center; padding: 36px 48px; text-decoration: none; color: inherit; transition: background 0.15s; }
.next-case:hover { background: var(--light); }
.next-case:hover .next-title { color: var(--accent); }
.next-label { font-family: var(--sans); font-size: var(--sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.next-title { font-family: var(--serif); font-size: 18px; transition: color 0.15s; }
.next-arrow { color: var(--mid); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: fixed; top: 24px; right: 32px; font-family: var(--sans); font-size: var(--sm); color: rgba(255,255,255,0.6); cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase; }
.lightbox-close:hover { color: #fff; }
