/* ==========================================================
   Bernelie Barwise — portfolio
   Palette & type mirror her CV: signal yellow + charcoal, Montserrat
   ========================================================== */
:root {
  --yellow: #ffde3b;
  --yellow-soft: #fff6c7;
  --ink: #1f1f1f;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --radius: 4px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.brand span { background: var(--yellow); padding: 2px 6px; margin-right: 4px; }
.brand em { font-style: normal; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav a.btn--solid { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 14px 22px; border-radius: var(--radius);
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s, background .15s, color .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 12px; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; }
.section-title mark, .hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: inherit; padding: 0 .1em; }
.section-lead { font-size: 17px; color: var(--muted); margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-tags { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-tags span:not(:first-child)::before { content: "/"; margin-right: 14px; color: var(--muted); font-weight: 400; }
.hero h1 { font-size: clamp(46px, 8vw, 96px); letter-spacing: -.02em; line-height: .98; margin-bottom: 28px; }
.hero h1 .first { display: inline-block; background: var(--yellow); padding: 4px 14px 2px; font-weight: 800; }
.hero h1 .last { display: block; font-weight: 300; padding-left: clamp(40px, 9vw, 120px); margin-top: 6px; }
.hero-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink); font-weight: 500; max-width: 560px; }
.hero-sub { color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 700/750; object-fit: cover; border-radius: var(--radius); }
.hero-badge {
  position: absolute; left: 0; bottom: 28px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 22px;
}
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--ink); border-radius: var(--radius); z-index: -1; }

/* ---------- Logo strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.logos .wrap { display: flex; align-items: center; gap: 28px; }
.logos-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logos-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 36px; flex: 1; }
.logos-row img { height: 34px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos-row img.tall { height: 46px; }
.logos-row img:hover { filter: none; opacity: 1; }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result { background: #fff; padding: 30px 28px; }
.result .num { font-size: clamp(38px, 5vw, 54px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.result:first-child .num span { background: var(--yellow); padding: 0 8px; }
.result .label { font-weight: 600; color: var(--ink); margin-top: 12px; font-size: 15px; }
.result .src { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.case-logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.case-role { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-num { font-size: 12px; font-weight: 800; letter-spacing: .14em; background: var(--ink); color: var(--yellow); padding: 4px 8px; }
.case h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.case-intro { font-size: 16.5px; }
.case ul.ticks { list-style: none; margin: 20px 0 0; }
.case ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.case ul.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 4px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.case ul.ticks strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.chip--y { background: var(--yellow-soft); border-color: transparent; }
.minis { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 12px; margin-top: 24px; }
.mini { border-left: 4px solid var(--yellow); background: var(--paper-2); padding: 12px 14px; }
.mini b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mini span { font-size: 13px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; background: #fff;
  transition: background .15s;
}
.social-link:hover { background: var(--yellow); }

.case-media { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.media-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; }
.frame { position: relative; width: 100%; background: #111; border-radius: var(--radius); overflow: hidden; }
.frame--16x9 { aspect-ratio: 16/9; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.embed-pair > * { min-width: 0; }
.embed-pair blockquote { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
.embed-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 200px; overflow: hidden; }
.embed-fallback { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 22px; min-height: 200px; font-size: 14px; text-decoration: none; color: var(--ink); }
.embed-fallback b { font-size: 15px; }

.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cause { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 16px; border-radius: var(--radius); transition: transform .15s, box-shadow .15s; }
.cause:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.cause b { color: var(--ink); font-size: 14px; line-height: 1.35; }
.cause span { font-size: 12px; color: var(--muted); }
.cause .go { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }

/* Cherry Neon showcase */
.neon {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #2a0b18 0%, #0d0508 60%, #050203 100%);
  min-height: 340px; display: grid; place-items: center; text-align: center; padding: 40px 24px;
  text-decoration: none;
}
.neon::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px); pointer-events: none; }
.neon-word {
  font-family: "Pacifico", "Brush Script MT", cursive; font-size: clamp(46px, 7vw, 76px); color: #ffe9f1; line-height: 1.1;
  text-shadow: 0 0 4px #fff, 0 0 12px #ff2d75, 0 0 26px #ff2d75, 0 0 48px #ff2d75, 0 0 80px #ff2d75;
  animation: flicker 6s infinite;
}
.neon-sub { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #9ef3ff; text-shadow: 0 0 8px #31d7ff, 0 0 18px #31d7ff; }
.neon-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 10px 16px; border-radius: 999px; }
.neon:hover .neon-cta { background: rgba(255,255,255,.1); }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
.map-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.map-row div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.map-row div small { display: block; font-size: 22px; line-height: 1.2; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 940/580; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }

/* ---------- Experience timeline ---------- */
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 72px); }
.xp-col h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; margin-bottom: 22px; }
.timeline { list-style: none; border-left: 2px solid var(--ink); margin-left: 5px; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline li.now::before { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.timeline .when { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline .what { font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.35; margin: 4px 0 2px; }
.timeline .where { font-size: 14px; color: var(--ink-2); }
.timeline .note { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); }
.bars { list-style: none; }
.bars li { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.bars .bar { height: 8px; background: #e9e9e9; position: relative; }
.bars .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: var(--w); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tool { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); }
.tool .icon { width: 20px; height: 20px; }
.edu { margin-top: 36px; display: grid; gap: 12px; }
.edu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edu-item b { display: block; color: var(--ink); font-size: 15px; }
.edu-item span { font-size: 14px; color: var(--muted); }
.edu-item img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }

/* ---------- Contact ---------- */
.contact { background: var(--yellow); padding: clamp(64px, 9vw, 112px) 0; }
.contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.contact h2 span { font-weight: 300; display: block; }
.contact p { font-size: 18px; color: var(--ink); margin-top: 18px; max-width: 520px; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 14px; text-decoration: none; background: #fff; color: var(--ink); padding: 16px 18px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: transform .15s; word-break: break-word; }
.contact-list a:hover { transform: translateX(4px); }
.contact-list .ic { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex: none; }
.contact-list small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a.dl { background: var(--ink); color: #fff; }
.contact-list a.dl small { color: var(--yellow); }
.contact-list a.dl .ic { border-color: var(--yellow); color: var(--yellow); }

.site-footer { background: var(--ink); color: #bdbdbd; font-size: 13px; padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .neon-word { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .case, .xp-grid, .skills-grid, .contact .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .case-media { order: 2; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .logos .wrap { flex-direction: column; align-items: flex-start; }
  .logos-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { justify-content: center; margin-top: 14px; border-bottom: 2px solid var(--ink); }
  .nav-toggle { display: block; }
  .causes { grid-template-columns: 1fr; }
  .embed-pair { grid-template-columns: 1fr; }
  .map-row { grid-template-columns: repeat(2, 1fr); }
  .hero-photo::before { inset: 12px -10px -10px 12px; }
}
@media (max-width: 480px) {
  .result { padding: 22px 16px; }
  .result .num { font-size: 34px; }
  .gallery { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 .last { padding-left: 0; }
}
@media print {
  .site-header, .nav-toggle, .case-media iframe, .embed-pair { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
