:root {
  --bg: #fcfbfe;          /* soft off-white with a hint of lilac */
  --surface: #ffffff;
  --ink: #1f1b2b;
  --muted: #6a6578;
  --rule: #ebe6f3;
  --accent: #7a5bc0;      /* deep lilac: text, links, buttons */
  --accent-soft: #c9b6ee; /* lilac details */
  --accent-wash: #f1ebfb; /* pale lilac fills */
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
::selection { background: var(--accent-soft); }

.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header + nav */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-decoration: none; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
nav a:hover { color: var(--accent); }

.dropdown { position: relative; }
.dropdown-toggle span { font-size: .7em; }
.dropdown-menu {
  position: absolute; top: 100%; right: -12px; z-index: 10;
  min-width: 210px; padding: 8px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(122, 91, 192, .12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); }
.dropdown-menu a:hover, .dropdown-menu a.current { background: var(--accent-wash); color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 96px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 18ch; }
.hero h1 em { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
nav a.current { color: var(--accent); font-weight: 600; }

/* Homepage: two options */
.options { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 20px; margin-top: 48px; }
.option-btn {
  display: block; padding: 20px 24px; text-align: center; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 1.75rem); color: var(--accent);
  border: 3px solid var(--accent); background: transparent;
  transition: background .2s, color .2s;
}
.option-btn:hover, .option-btn:focus-visible { background: var(--accent); color: #fff; outline: none; }

/* Inner page header */
.page-head { padding: 48px 0 56px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.page-head h1 em { color: var(--accent); }
.back { display: inline-block; margin-bottom: 32px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.back:hover { color: var(--accent); }
.page-head + .work { padding-top: 0; }

/* Next page link */
.next-page { padding: 0 0 88px; }
.next-page a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 32px; border-radius: 16px; background: var(--accent-wash); text-decoration: none;
}
.next-page .kicker { margin: 0; }
.next-page strong { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); }
.next-page a:hover strong { color: var(--accent); }
.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--ink);
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary:hover { background: #64479f; color: #fff; }

/* Sections */
section { padding: 88px 0; }
.section-head h2, .about h2 { font-size: 2.2rem; }

/* Work tabs */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); margin-bottom: 32px;
}
.tabs button {
  font: 500 .95rem var(--sans); color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 16px; margin-bottom: -1px; cursor: pointer;
}
.tabs button:hover { color: var(--accent); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }
.panel-intro { color: var(--muted); margin: 0 0 32px; }

.thumb { background: var(--accent-wash); aspect-ratio: 3 / 2; border-radius: 8px; margin-bottom: 16px; }
.meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
h3 a { text-decoration: none; }
h3 a:hover { color: var(--accent); }
.text-link { color: var(--accent); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.feature h3 { font-size: 2rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card h3 { font-size: 1.3rem; }
.card p:last-child { color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; border-top: 1px solid var(--rule); }
.photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 8px; box-shadow: 14px 14px 0 var(--accent-soft);
}
.about .kicker { margin: 0 0 8px; }

/* Thumbnail labels (until real images are added) */
.thumb[data-label] { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.thumb[data-label]::after { content: attr(data-label); font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }

/* Case study */
.case h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.case h4 { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 8px; }
.case-lede { font-size: 1.15rem; max-width: 60ch; }
.stats {
  list-style: none; padding: 0; margin: 40px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stats li { background: var(--accent-wash); border-radius: 10px; padding: 20px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--accent); }
.stats span { font-size: .88rem; color: var(--muted); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.case-body p { margin: 0; }
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.series-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.series-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.series-card strong { font-family: var(--serif); font-size: 1.3rem; }
.series-card span:last-child { color: var(--accent); font-size: .92rem; }
.case-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Project cards */
.grid.two { grid-template-columns: repeat(2, 1fr); }
.feature { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); align-items: start; }
.feature p, .card p { margin: 0 0 12px; }
.result {
  display: inline-block; font-weight: 600; font-size: .92rem; color: var(--accent);
  background: var(--accent-wash); padding: 4px 12px; border-radius: 6px;
}
.role { font-size: .85rem; color: var(--muted); }
.finding {
  margin-top: 20px !important; padding-left: 16px; border-left: 3px solid var(--accent-soft);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--ink);
}
.finding::before {
  content: "Key finding"; display: block; margin-bottom: 4px;
  font: 600 .72rem var(--sans); font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.feature:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.card p:last-child { color: var(--muted); }
.thumb.has-img { display: block; overflow: hidden; }
.thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.thumb.has-img:hover img { transform: scale(1.03); }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.contact p { color: var(--muted); }
.email { display: inline-block; font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.6rem); color: var(--accent); margin: 12px 0 24px; word-break: break-word; }
.social a { margin: 0 12px; color: var(--muted); }
.social a:hover { color: var(--accent); }

.site-footer { padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--rule); }

@media (max-width: 760px) {
  .feature, .about { grid-template-columns: 1fr; gap: 24px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .case-body, .series { grid-template-columns: 1fr; gap: 20px; }
  .options { margin-top: 36px; gap: 16px; }
  .option-btn { padding: 16px 20px; }
  .page-head { padding: 24px 0 40px; }
  .next-page { padding-bottom: 64px; }
  .next-page a { padding: 20px 24px; }
  .photo { max-width: 320px; }
  nav { gap: 8px 16px; flex-wrap: wrap; }
  .dropdown-menu { right: 0; }
  .hero { padding: 40px 0 64px; }
  section { padding: 64px 0; }
  .site-header, main, .site-footer { padding-left: 16px; padding-right: 16px; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 12px 12px; }
}

/* Portrait (vertical video) thumbnails */
.thumb.portrait { aspect-ratio: 4 / 5; max-width: 420px; }
.thumb.portrait img { object-position: 50% 45%; }

/* Website screenshots: show the whole image, no crop */
.thumb.screenshot { aspect-ratio: auto; border: 1px solid var(--rule); }
.thumb.screenshot img { height: auto; }

/* Reporting groups */
.group-head { font-size: 1.6rem; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.grid + .group-head { margin-top: 72px; }
.card .links { display: flex; gap: 20px; flex-wrap: wrap; }
.card .links a { color: var(--accent); font-size: .95rem; }
.card > p:not(.meta):not(.result):not(.links) { color: var(--muted); font-size: .95rem; }

/* Homepage: About Me at the top */
.about-hero { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding: 56px 0 0; }
.about-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: none; }
.about-hero .kicker { margin: 0 0 8px; }
.about-hero p:not(.kicker) { color: var(--muted); max-width: 60ch; }
.about-hero + .options { margin-top: 72px; }

/* Homepage: closing statement */
.statement { border-top: 1px solid var(--rule); margin-top: 88px; text-align: center; }
.statement h2, .statement .lede { margin-left: auto; margin-right: auto; }
.statement h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; text-wrap: balance; }
.statement h2 em { color: var(--accent); }

@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .about-hero + .options { margin-top: 48px; }
  .statement { margin-top: 64px; }
}

/* Que Onda Hermanas: in-person events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.events figure { margin: 0; }
.events img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.events figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .events { grid-template-columns: 1fr; } }

/* Inline text links: lilac underline, violet highlight on hover */
.inline-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
  padding: 0 2px; margin: 0 -2px; border-radius: 4px;
  transition: background .15s, color .15s, text-decoration-color .15s;
}
.inline-link:hover, .inline-link:focus-visible {
  color: var(--accent); background: var(--accent-wash); text-decoration-color: var(--accent); outline: none;
}

/* Project detail pages */
.block-body { max-width: 68ch; }
.block-body p { color: var(--muted); margin: 0 0 14px; }
.examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.examples figure { margin: 0; }
.examples .thumb { aspect-ratio: 4 / 5; margin-bottom: 8px; }
.examples img { display: block; width: 100%; height: 100%; object-fit: cover; }
.examples figcaption { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .examples { grid-template-columns: 1fr 1fr; }
  }

/* Clickable project cards */
a.project-link { display: block; text-decoration: none; color: inherit; border-radius: 10px; }
a.project-link h3 { transition: color .15s; }
a.project-link .thumb { transition: transform .2s, box-shadow .2s; }
a.project-link:hover h3, a.project-link:focus-visible h3 { color: var(--accent); }
a.project-link:hover .thumb, a.project-link:focus-visible .thumb { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(122, 91, 192, .15); }
a.project-link:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 6px; }
.see-more { color: var(--accent); font-weight: 600; font-size: .92rem; }
.card .soon { color: var(--muted); font-style: italic; }
.detail-body { padding-top: 0; }
.detail-body .result { margin: 0 0 24px; }
.examples-head { font-size: 1.6rem; margin: 48px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.campaign { scroll-margin-top: 24px; }
.campaign .examples-head { margin-bottom: 8px; }
.campaign .meta { margin-bottom: 16px; }
.detail-body .soon { color: var(--muted); font-style: italic; }
.soon { color: var(--muted); font-style: italic; }
.examples.wide { grid-template-columns: 1fr; max-width: 760px; }
.examples.wide .thumb { aspect-ratio: auto; }
.examples.wide img { height: auto; }
@media (max-width: 760px) { .examples.wide { grid-template-columns: 1fr; } }

/* Homepage statement photos */
.statement-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.statement-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .statement-photos { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; } }

/* Hidden drafts stay hidden even when a class sets display */
[hidden] { display: none !important; }
.feature:not(:has(~ .feature:not([hidden]))) { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
a.thumb { text-decoration: none; }
.examples.single { grid-template-columns: minmax(0, 340px); }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.split .examples { margin-top: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.post-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.post-links li::before { content: "▸ "; color: var(--accent-soft); }
.section-intro { color: var(--muted); max-width: 68ch; margin: 0 0 20px; }
.qoh-videos { margin-bottom: 48px; }
.video-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.video-title a { text-decoration: none; }
.video-title a:hover { color: var(--accent); }
.thumb.contain { background: #fff; border: 1px solid var(--rule); }
.thumb.contain img { object-fit: contain; padding: 12px; }
.qoh-videos .thumb { aspect-ratio: 4 / 5; }
.role-block { margin: 20px 0 16px; }
.role-label { font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 8px; }
.role-list { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; display: grid; gap: 6px; }
.role-list li::marker { color: var(--accent-soft); }
