/* Diana Blandon — shared styles. Tokens, base, nav, then home, then case-study. */
:root {
  --ink:     #111318;
  --white:   #ffffff;
  --accent:  #1f7a8c;
  --surface: #f4f0ea;
  --muted:   #6b6e7a;
  --border:  #e3e4e8;
  --accent-lt: #5cc0d3;   /* teal for small text on dark (8.8:1 on ink) */
  --accent-dk: #17687a;   /* teal for small text on cream (5.6:1) */
  --font:    'Plus Jakarta Sans', sans-serif;
  --max:     1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }

body.page-home { background: var(--ink); color: var(--white); }

/* ═════ HOME ═════ */
/* ─── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 99;
  height: 64px;
  display: flex; align-items: center;
  transition: background .25s;
}
nav { color: var(--ink); }
nav.stuck { background: rgba(17,19,24,.95); backdrop-filter: blur(16px); color: var(--white); }
.nav-wrap {
  max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px,5vw,64px);
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
nav.stuck .nav-links a { color: rgba(255,255,255,.6); }
nav.stuck .nav-links a:hover { color: #fff; }
@media (max-width: 680px) { .nav-links { display: none; } }
.nav-btn {
  font-family: var(--font); font-size: .8rem; font-weight: 700;
  padding: 8px 20px; border-radius: 999px;
  background: var(--accent); color: #fff;
  transition: opacity .15s;
}
.nav-btn:hover { opacity: .85; }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: min(100svh, 760px);
  display: flex; align-items: center;
  padding-block: calc(64px + clamp(48px, 8vw, 96px)) clamp(64px, 8vw, 96px);
  background: var(--white); color: var(--ink);
}
.hero-inner { max-width: 760px; }
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-tagline strong { font-weight: inherit; color: inherit; }
.hero-body {
  font-size: 1.125rem; line-height: 1.65;
  color: var(--muted); max-width: 62ch;
}
.hero-body + .hero-body { margin-top: 16px; }

/* ─── SECTION LABEL ────────────────────────────────────── */
.section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  margin-bottom: 40px;
}
.section-label.on-light { color: var(--muted); }

/* ─── FEATURED CARD (ai.google style) ──────────────────── */
.featured { padding-block: clamp(60px, 8vw, 96px); }
.card-img {
  position: relative; border-radius: 24px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.card-img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.04);
  transition: transform .6s ease;
}
.card-img:hover > img { transform: scale(1.03); }
/* bottom-weighted shade: keeps the photo vibrant on top, contrast where the text sits */
.card-img::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,10,14,.88) 0%, rgba(8,10,14,.62) 30%, rgba(8,10,14,.18) 55%, rgba(8,10,14,0) 72%);
}
.card-img-overlay {
  position: relative; z-index: 1; width: 100%;
  color: var(--white);
  padding: clamp(24px,4vw,48px);
  display: flex; flex-direction: column; gap: 12px;
}
.card-tag {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(8,10,14,.6); color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); width: fit-content;
}
.card-title {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  text-wrap: balance; max-width: 22ch;
  color: var(--white); text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.card-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700;
  padding: 9px 20px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  width: fit-content; margin-top: 4px;
  transition: opacity .15s;
}
.card-pill:hover { opacity: .88; }

/* featured tall card */
.card-featured { min-height: clamp(400px, 50vw, 600px); }

/* ─── PROJECT GRID (2-col) ──────────────────────────────── */
.projects { padding-bottom: clamp(60px, 8vw, 96px); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 680px) { .proj-grid { grid-template-columns: 1fr; } }
.card-grid-item { min-height: clamp(280px, 30vw, 420px); }

/* ─── ABOUT ─────────────────────────────────────────────── */
.about {
  background: var(--surface); color: var(--ink);
  padding-block: clamp(80px, 10vw, 120px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  margin-bottom: 28px; text-wrap: balance;
}
.about-p {
  font-size: 1rem; line-height: 1.75;
  color: #4a4e5a; margin-bottom: 16px;
}
.about-p:last-child { margin-bottom: 0; }

.values { border-top: 1px solid rgba(0,0,0,.1); }
.value {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 16px; padding-block: 24px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  align-items: start;
}
.value-n {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-dk); padding-top: 2px;
}
.value-title { font-size: .95rem; font-weight: 700; margin-bottom: 5px; }
.value-desc { font-size: .875rem; color: #5a5e6a; line-height: 1.6; }

/* ─── COMMUNITY ─────────────────────────────────────────── */
.community {
  background: #191c24;
  padding-block: clamp(80px, 10vw, 120px);
  border-top: 1px solid rgba(255,255,255,.04);
}
.community-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 48px;
}
.comm-list { display: flex; flex-direction: column; gap: 2px; }
.comm-item {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr auto;
  gap: 32px; align-items: center;
  padding: 24px 28px; border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.comm-item:hover { background: rgba(255,255,255,.06); }
@media (max-width: 1000px) {
  .comm-item { grid-template-columns: 1fr; gap: 20px; }
  .comm-thumb { max-width: 520px; }
  .comm-cta { justify-self: start; }
}
.comm-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.comm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.comm-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.comm-desc { font-size: .825rem; color: rgba(255,255,255,.65); line-height: 1.55; }
.comm-cta {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  text-align: center; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.comm-cta:hover { border-color: rgba(255,255,255,.45); color: #fff; }

/* ─── CONTACT ───────────────────────────────────────────── */
.contact {
  background: var(--accent);
  padding-block: clamp(80px, 12vw, 140px);
}
.contact-inner { max-width: 700px; }
.contact-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 20px; text-wrap: balance;
}
.contact-sub {
  font-size: 1rem; color: #fff;
  line-height: 1.65; margin-bottom: 40px;
}
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.contact-email {
  font-family: var(--font); font-size: .875rem; font-weight: 700;
  padding: 13px 28px; border-radius: 999px;
  background: var(--white); color: var(--accent);
}
.contact-li {
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  padding: 13px 28px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  transition: border-color .15s;
}
.contact-li:hover { border-color: #fff; }
.contact-extra { font-size: .8rem; color: #fff; }
.contact-extra a { color: #fff; text-decoration: underline; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-wrap {
  max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px,5vw,64px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .875rem; color: rgba(255,255,255,.75);
}

/* ═════ CASE STUDY ═════ */
/* ─── NAV ──────────────────────────────────────────────── */
nav.nav-solid {
  background: rgba(17,19,24,.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--white);
}
.nav-back {
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.nav-back:hover { color: var(--white); }

/* ─── CS HERO ──────────────────────────────────────────── */
.cs-hero {
  background: var(--ink);
  padding-top: 64px;
  color: var(--white);
}
.cs-hero-text {
  padding-top: 72px;
  padding-bottom: 56px;
}
.cs-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
  margin-bottom: 40px; text-wrap: balance; max-width: 16ch;
}
.cs-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 820px) { .cs-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.cs-lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.55); line-height: 1.55;
}
.cs-lead strong { color: rgba(255,255,255,.9); font-weight: 600; }
.cs-meta { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
.cs-meta-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 16px; padding-block: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cs-meta-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.6); padding-top: 2px;
}
.cs-meta-value { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.5; }

/* Hero image full-bleed */
.cs-hero-img {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  background: #1a1e27;
}
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SECTION BASE ──────────────────────────────────────── */
.section { padding-block: clamp(64px, 8vw, 96px); }
.s-white   { background: var(--white); color: var(--ink); }
.s-surface { background: var(--surface); color: var(--ink); }
.s-dark    { background: var(--ink); color: var(--white); }
.s-mid     { background: #191c24; color: var(--white); }


.s-h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  text-wrap: balance; margin-bottom: 28px;
}
.s-body {
  font-size: 1rem; color: #3e424e; line-height: 1.75;
}
.s-body + .s-body { margin-top: 14px; }
.s-body strong { color: var(--ink); }
.s-body.on-dark { color: rgba(255,255,255,.55); }
.s-body.on-dark strong { color: rgba(255,255,255,.88); }

/* full-bleed figure */
.fig-full { width: 100%; overflow: hidden; background: var(--surface); }
.fig-full img { width: 100%; max-height: 580px; object-fit: cover; }
.fig-cap {
  text-align: center; font-size: .8rem; color: var(--muted);
  padding: 14px 20px; background: var(--surface);
}

/* 2-col layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px); align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.col-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.col-img img { width: 100%; }
.col-img.dark-border { border-color: rgba(255,255,255,.07); }

/* process 3-col */
.process-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 48px;
}
@media (max-width: 720px) { .process-grid { grid-template-columns: 1fr; } }
.process-card {
  background: var(--white); border-radius: 20px;
  padding: 32px 28px; border: 1px solid var(--border);
}
.proc-n {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 12px;
}
.proc-title { font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.proc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.proc-list li {
  font-size: .875rem; color: var(--muted); line-height: 1.55;
  padding-left: 16px; position: relative;
}
.proc-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.proc-list strong { color: var(--ink); }

/* artifact 2-col */
.artifact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 20px;
}
@media (max-width: 620px) { .artifact-grid { grid-template-columns: 1fr; } }
.artifact { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.artifact img { width: 100%; }
.artifact-cap {
  padding: 12px 16px; font-size: .78rem; color: var(--muted);
  background: var(--surface); border-top: 1px solid var(--border);
}

/* outcomes card */
.outcomes {
  border-radius: 20px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); padding: 32px 36px;
}
.outcomes h3 {
  font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}
.outcome-list { display: flex; flex-direction: column; gap: 0; }
.outcome-item { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.outcome-label {
  font-size: .8rem; font-weight: 700; color: var(--accent-lt); margin-bottom: 5px;
}
.outcome-text { font-size: .875rem; color: rgba(255,255,255,.48); line-height: 1.6; }
.outcome-text strong { color: rgba(255,255,255,.78); }

/* case footer */
.cs-footer { background: var(--surface); padding-block: 56px; border-top: 1px solid var(--border); }
.cs-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.cs-footer-inner h3 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.cs-footer-inner p { font-size: .875rem; color: var(--muted); }
.btn-accent {
  font-family: var(--font); font-size: .875rem; font-weight: 700;
  padding: 12px 28px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  transition: opacity .15s;
}
.btn-accent:hover { opacity: .85; }

/* case-study additions (batch of remaining case studies) */
.artifact-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .artifact-grid.cols-3 { grid-template-columns: 1fr; } }
.artifact-grid.single { grid-template-columns: 1fr; }
.s-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.s-list li { font-size: 1rem; color: #3e424e; line-height: 1.7; padding-left: 18px; position: relative; }
.s-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.s-list strong { color: var(--ink); }
.s-body + .s-list, .s-list + .s-body { margin-top: 18px; }
.col-center { max-width: 360px; margin-inline: auto; }
.s-dark .s-body { max-width: 90ch; }

/* ─── ACCESSIBILITY ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .875rem;
  padding: 10px 20px; border-radius: 999px; transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-lt); outline-offset: 3px; border-radius: 4px; }
.card-img:focus-visible, .comm-cta:focus-visible, .nav-btn:focus-visible { border-radius: 24px; }
main { display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-img:hover > img { transform: none; }
}
section[id], main[id] { scroll-margin-top: 64px; }

/* ─── 404 ───────────────────────────────────────────────── */
.nf { min-height: 100svh; display: flex; align-items: center; background: var(--white); color: var(--ink); padding-block: 120px 80px; }
.nf-code { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.nf h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 16px; }
.nf p.nf-text { font-size: 1.125rem; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
