/* ==============================
   LOCAL FONTS (self-hosted WOFF2)
   ============================== */

@font-face{
  font-family: "Manrope";
  src: url("/fonts/Manrope-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Manrope";
  src: url("/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Manrope";
  src: url("/fonts/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Manrope";
  src: url("/fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Prata";
  src: url("/fonts/Prata-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==============================
   TOKENS
   ============================== */

:root{
  /* Color palette */
  --bg-left: #6C7F88;
  --bar-left: #2F3F55;
  --bar-btn: #6F78B7;

  --white: #ffffff;
  --hero-text: rgba(255,255,255,0.92);
  --hero-muted: rgba(255,255,255,0.78);

  --page-bg: #f5f6fa;
  --text: #0f172a;
  --muted: rgba(15,23,42,0.72);

  --mobile-menu-bg: #4D6067;

  /* Layout */
  --split-left: 58%;
  --split-right: 42%;

  --hero-pad-left: 140px;
  --nav-pad-left: 32px;

  --nav-gap: 18px;
  --nav-brand-gap: 42px;

  /* Experience layout */
  --xp-meta-col: 200px;

  /* Soft surfaces */
  --panel: rgba(47,63,85,0.05);
  --panel-hover: rgba(47,63,85,0.07);
  --line: rgba(47,63,85,0.12);
  --connector: rgba(47,63,85,0.12);
}

/* ==============================
   RESET
   ============================== */

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  width: 100%;
  overflow-x: hidden;

  background: var(--page-bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
}

img{ max-width: 100%; height: auto; }

/* ==============================
   LAYOUT
   ============================== */

.section{
  padding: 82px 0;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__title{
  margin: 0 0 28px 0;
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: 28px;
  color: #1e293b;
}

.cols{
  display: grid;
  gap: 26px;
}

.cols--2{ grid-template-columns: 1fr 1fr; }
.cols--3{ grid-template-columns: 1fr 1fr 1fr; }

.section p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ==============================
   ACCESSIBILITY UTILS
   ============================== */

.srOnly{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==============================
   REVEAL
   ============================== */

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==============================
   HERO
   ============================== */

.hero{
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* NAV inside hero (desktop) */
.heroNav{
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 10;
}

.heroNav a{
  color: var(--hero-text);
  text-decoration: none;
}
.heroNav a:visited{ color: var(--hero-text); }

.heroNav__inner{
  width: 100%;
  padding-left: var(--nav-pad-left);
  padding-right: 20px;
  display: flex;
  align-items: center;
}

.heroNav__brand{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  color: var(--hero-text);
}

.heroNav__links{
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  margin-left: var(--nav-brand-gap);
}

.heroNav__links a{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1;
  color: rgba(255,255,255,0.84);
}

.heroNav__links a:hover{
  color: rgba(255,255,255,0.98);
}

/* desktop default (mobile overrides later) */
.heroNav__menu{
  display: none;
  margin-left: auto;
  background: rgba(255,255,255,0.10);
  color: var(--hero-text);
  border: 1px solid rgba(255,255,255,0.26);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.heroNav__mobile{
  display: none;
  padding-left: var(--nav-pad-left);
  padding-right: 20px;
  margin-top: 12px;
}

.heroNav__mobile.open{ display: block; }

.heroNav__mobile a{
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,0.90);
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* HERO GRID */
.hero__grid{
  display: grid;
  grid-template-columns: var(--split-left) var(--split-right);
  height: 100vh;
}

.hero__left{
  background: var(--bg-left);
  color: var(--hero-text);
  padding: 100px 60px 120px var(--hero-pad-left);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.hero__title{
  margin: 0;
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.10;
  color: var(--white);
}

/* thin separators */
.sep{
  display: inline-block;
  width: 1px;
  height: 0.92em;
  background: rgba(255,255,255,0.52);
  margin: 0 14px;
  transform: translateY(2px);
}

.hero__lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hero-muted);
  max-width: 56ch;
}

.hero__lead--big{
  font-size: 17px;
  color: rgba(255,255,255,0.88);
}

.hero__bullets{
  margin: 8px 0 0 0;
  padding-left: 18px;
  max-width: 62ch;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.8;
}

.hero__bullets li{ margin-bottom: 8px; }

.hero__meta{
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

/* square buttons */
.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 2px;
  text-decoration: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  will-change: transform;
}

.chip:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

.chip:active{ transform: translateY(0); }

.chip:focus-visible{
  outline: 2px solid rgba(111,120,183,0.95);
  outline-offset: 3px;
}

.chip--ghost{ background: transparent; }

.chip--ghost:hover{
  background: rgba(255,255,255,0.06);
}

/* HERO PHOTO */
.hero__right img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   HERO BAR
   ============================== */

.heroBar{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
}

.heroBar__wrap{
  width: 100%;
  padding-left: 0;
}

.heroBar__inner{
  display: grid;
  grid-template-columns: 60% 40%;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.heroBar__left{
  background: var(--bar-left);
  padding: 34px 32px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 400;
}

/* email row inside hero bar */
.heroBar__email{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* default (muted) */
.heroBar__label{
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 180ms ease;
}

.heroBar__link{
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  transition: color 180ms ease, border-bottom-color 180ms ease;
}

/* hover (brighter) */
.heroBar__left:hover .heroBar__label{
  color: rgba(255,255,255,0.78);
}

.heroBar__left:hover .heroBar__link{
  color: rgba(255,255,255,0.92);
  border-bottom-color: rgba(255,255,255,0.42);
}

/* socials */
.heroBar__social{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.heroBar__socialLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 180ms ease;
}

.heroBar__socialLink:hover{ color: rgba(255,255,255,0.95); }

.heroBar__socialLink svg{ display: block; }

.heroBar__left .copyBtn{ color: rgba(255,255,255,0.55); }
.heroBar__left:hover .copyBtn{ color: rgba(255,255,255,0.90); }

/* right block */
.heroBar__right{
  background: var(--bar-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 180ms ease;
}

.heroBar__right:hover{ filter: brightness(0.94); }

.heroBar__btn{
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  font-weight: 400;
  padding: 34px 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  transition: color 180ms ease;
}

.heroBar__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.heroBar__btn .heroBar__icon svg{
  stroke: currentColor;
  transition: stroke 180ms ease;
}

.heroBar__right:hover .heroBar__btn{
  color: rgba(255,255,255,1);
}

.heroBar__btn:focus-visible{
  color: rgba(255,255,255,1);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: -2px;
}

/* ==============================
   MOBILE MENU META (inside mobile nav)
   ============================== */

.mobileMeta{
  margin-top: 10px;
  padding-top: 10px;
  opacity: 0.92;
}

.mobileMeta__email{
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  border-bottom: 0;
  text-decoration: none;
}

.mobileMeta__email:hover{ color: rgba(255,255,255,0.90); }

.mobileMeta__social{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobileMeta__social a{
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  border-bottom: 0;
  text-decoration: none;
}

.mobileMeta__social a:hover{ color: rgba(255,255,255,0.86); }

.mobileMeta__sep{
  width: 1px;
  height: 0.85em;
  background: rgba(255,255,255,0.16);
  transform: translateY(1px);
}

/* ==============================
   ABOUT
   ============================== */

.aboutGrid{
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: start;
}

.aboutLead__text,
.aboutBody p{
  max-width: 56ch;
}

.aboutLead__text{
  font-size: 18px;
  line-height: 1.9;
  color: rgba(15,23,42,0.78);
}

.aboutBody p{
  font-size: 15px;
  line-height: 1.85;
  color: rgba(15,23,42,0.72);
}

.aboutLead{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aboutTiles{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
}

.aboutTile{
  background: rgba(47,63,85,0.04);
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.72);
}

/* ==============================
   EXPERIENCE
   ============================== */

.section--xp{
  background: rgba(108,127,136,0.06);
}

.xp{
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 12px;
}

/* optional element: safe to keep hidden */
.xp__sub{ display: none; }

.xp__item{
  display: grid;
  grid-template-columns: var(--xp-meta-col) 1fr;
  gap: 30px;
  align-items: start;
}

.xp__meta{ padding-top: 8px; }

.xp__time{
  font-size: 13px;
  color: rgba(47,63,85,0.70);
  letter-spacing: 0.02em;
}

.xp__role{
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(15,23,42,0.92);
}

.xp__place{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(47,63,85,0.60);
}

.xp__card{
  background: var(--panel);
  border: none;
  padding: 24px 24px;
  transition: transform 180ms ease, background 180ms ease;
  will-change: transform;
}

.xp__card:hover{
  transform: translateY(-2px);
  background: var(--panel-hover);
}

.xp__card ul{
  margin: 0;
  padding-left: 18px;
}

.xp__card li{
  margin: 0 0 12px 0;
  line-height: 1.75;
  color: rgba(15,23,42,0.72);
  font-size: 15px;
}

/* Experience CTA button */
.xp__cta{ margin-top: 16px; }

.xp__ctaBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #6F78B7;
  color: rgba(255,255,255,0.96);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
}

/* Secondary CTA (non-primary link) */
.xp__ctaBtn--subtle{
  background: rgba(15,23,42,0.10);
  color: rgba(15,23,42,0.72);
}

.xp__ctaBtn--subtle:hover{
  opacity: 1;
  background: rgba(15,23,42,0.14);
}

.xp__ctaBtn--subtle:focus-visible{
  outline: 2px solid rgba(15,23,42,0.18);
}

.xp__ctaBtn:hover{ opacity: 0.92; }

.xp__ctaBtn:focus-visible{
  outline: 2px solid rgba(111,120,183,0.45);
  outline-offset: 4px;
}

/* Grouped company roles inside one XP card */
.xp__card--stack ul{ margin: 0; }

.xpStack{
  display: grid;
  gap: 18px;
  padding-left: 0;
}

.xpStack__role{ padding-left: 0; }

.xpStack__role + .xpStack__role{
  padding-top: 18px;
  border-top: 1px solid rgba(47,63,85,0.10);
}

.xpStack__hdr{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.xpStack__title{
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.86);
}

.xpStack__dates{
  font-size: 12px;
  color: rgba(47,63,85,0.60);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==============================
   EDUCATION
   ============================== */

.section--education{
  background: var(--bar-left);
  color: rgba(255,255,255,0.92);
}

.section--education p{
  color: rgba(255,255,255,0.72);
}

.eduTitle{
  margin: 0 0 28px 0;
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: 28px;
  color: rgba(255,255,255,0.96);
}

.eduHead{
  max-width: none;
  margin: 0 0 26px 0;
}

.eduLead{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: none;
  white-space: nowrap;
}

.eduGrid{
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.eduCard{
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  border-radius: 0;
}

.eduMeta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.eduYears{
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.eduLevel{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.eduDegree{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.eduSchool{
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.74);
}

.eduThesis{
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ==============================
   SKILLS
   ============================== */

.section--skills{
  background: rgba(108,127,136,0.04);
}

.skillsGrid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 34px;
  margin-top: 12px;
}

.skillsCol{
  padding: 28px 26px;
  background: rgba(47,63,85,0.035);
}

.skillsCol__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.skillsCol__title{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.80);
}

.skillsCol__tag{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.55);
  white-space: nowrap;
}

.skillRow{ margin-bottom: 22px; }

.skillRow__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: rgba(15,23,42,0.70);
}

.skillBar{
  height: 2px;
  background: rgba(47,63,85,0.16);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.skillBar span{
  display: block;
  height: 100%;
  width: calc(var(--w, 0.7) * 100%);
  background: rgba(111,120,183,0.80);
  transform-origin: left;
  transition: width 280ms ease, background 280ms ease;
}

.skillRow:hover .skillBar span{
  background: rgba(111,120,183,0.95);
}

/* Languages block */
.languages{
  margin-top: 34px;
  padding: 26px 26px;
  background: transparent;
}

.languages__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.languages__title{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.80);
}

.languages__note{
  font-size: 12px;
  color: rgba(47,63,85,0.55);
}

.languages__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
}

.lang__top{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: rgba(15,23,42,0.70);
}

.lang__lvl{
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.55);
  white-space: nowrap;
}

.skillBar--lang{ margin-top: 10px; }

/* ==============================
   HOBBIES
   ============================== */

.section--hobbies{
  background: #ffffff;
}

.hobbiesGrid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 34px;
  overflow: visible;
}

.hobbyItem{
  background: rgba(47,63,85,0.03);
  padding: 34px 18px;
  text-align: center;
  overflow: visible;
}

.hobbyIcon{
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--bar-btn);
}

.hobbyIcon svg{
  width: 46px;
  height: 46px;
  display: block;
}

.hobbyIcon svg *{
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.hobbyLabel{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.72);
}

/* inspiration micro heading */
.section--hobbies .hobbyInspiration{
  margin: 42px 0 0 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.55);
  white-space: nowrap;
}

.section--hobbies .hobbyInspiration__k,
.section--hobbies .hobbyInspiration__v{
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  white-space: inherit;
}

/* Tooltip */
.hobbyIconBtn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: default;
}

.hobbyIconBtn::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(2px);
  opacity: 0;
  pointer-events: none;

  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: center;

  background: #eef1f6;
  border: 1px solid rgba(47,63,85,0.10);
  color: rgba(15,23,42,0.78);

  padding: 10px 12px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;

  box-shadow: 0 10px 24px rgba(15,23,42,0.10);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

.hobbyIconBtn:hover::after,
.hobbyIconBtn:focus-visible::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hobbyIconBtn:focus-visible{
  outline: 2px solid rgba(111,120,183,0.60);
  outline-offset: 6px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce){
  .hobbyIconBtn::after{ transition: none; }
}

/* ==============================
   CONTACT
   ============================== */

.section--contact{
  background: var(--bar-left);
  color: rgba(255,255,255,0.92);
  position: relative;
  padding: 90px 0;
}

.section--contact a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.section--contact a:hover{
  border-bottom-color: rgba(255,255,255,0.55);
}

.contactGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.contactTitle{
  margin: 0 0 28px 0;
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  color: rgba(255,255,255,0.96);
}

.contactInfo__label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 18px;
}

.contactInfo__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 42px;
  max-width: 520px;
}

.contactItem__k{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.contactItem__v{
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.90);
}

.contactItem--span2{ grid-column: 1 / -1; }

.contactItem--span2 .contactItem__k{ margin-bottom: 10px; }

.contactSignature{
  display: block;
  margin-top: 12px;
  width: 180px;      /* smaller on desktop */
  max-width: 60%;
  height: auto;
  opacity: 0.92;
}

.contactRight{ padding-top: 8px; }

.contactForm{
  width: 100%;
  max-width: 560px;
}

.field{
  display: block;
  margin-bottom: 18px;
}

.field__label{
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.field__input{
  width: 100%;
  padding: 14px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  outline: none;
  color: rgba(255,255,255,0.92);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: 14px;
}

.field__input::placeholder{
  color: rgba(255,255,255,0.38);
}

.field__input:focus{
  border-color: rgba(111,120,183,0.70);
}

.field__textarea{
  min-height: 170px;
  resize: vertical;
}

.contactBtn{
  background: var(--bar-btn);
  color: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px 22px;
  border-radius: 2px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.contactBtn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.contactBtn:active{ transform: translateY(0); }

.contactBtn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 3px;
}

.contactSideNote{
  position: absolute;
  left: 14px;
  top: 62%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  user-select: none;
}

/* ==============================
   EMAIL COPY (no layout shift)
   ============================== */

.infoValue--withCopy{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.copyWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.copyBtn{
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
}

.copyBtn:hover{ color: rgba(255,255,255,0.95); }

.copyBtn:focus-visible{
  outline: 2px solid rgba(111,120,183,0.95);
  outline-offset: 4px;
  border-radius: 8px;
}

.copyToast{
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(12px, -50%);
  background: var(--bar-btn);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.copyWrap.is-on .copyToast{
  opacity: 1;
  transform: translate(12px, -50%);
}

@media (prefers-reduced-motion: reduce){
  .copyToast{ transition: none; }
}

/* ==============================
   ONLINE LINKS (subtle)
   ============================== */

.contactOnline{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contactOnline a{
  border-bottom: 0;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.contactOnline a:hover{ opacity: 1; }

.contactOnline__sep{
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: rgba(255,255,255,0.32);
  transform: translateY(1px);
}

/* ==============================
   RESPONSIVE (main site)
   ============================== */

@media (max-width: 900px){

  :root{
    --hero-pad-left: 22px;
    --nav-pad-left: 20px;
    --nav-brand-gap: 22px;
    --mobile-header-h: 64px;
    --mobile-menu-bg: #4D6067;
  }

  /* Fixed header */
  .heroNav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    height: var(--mobile-header-h);
    display: flex;
    align-items: center;

    background: rgba(108,127,136,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .heroNav__inner{
    width: 100%;
    height: var(--mobile-header-h);
    padding: 0 20px;
    display: flex;
    align-items: center;
  }

  .heroNav__links{ display: none; }

  .heroNav__menu{
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,0.92);
    opacity: 0.95;
    cursor: pointer;
  }

  .heroNav__menu:hover{ opacity: 1; }

  .heroNav__menu:focus-visible{
    outline: 2px solid rgba(255,255,255,0.22);
    outline-offset: 3px;
  }

  /* Dropdown panel under header */
  .heroNav__mobile{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 10px 0 14px 0;
    background: var(--mobile-menu-bg);
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  }

  .heroNav__mobile.open{ display: block; }

  .heroNav__mobile a{
    display: block;
    padding: 14px 0;
    margin: 0 20px;
    color: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-top: 0;
  }

  .heroNav__mobile a:last-of-type{ border-bottom: 0; }

  .mobileMeta{
    margin: 10px 20px 0 20px;
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.10);
  }

  .mobileMeta__email{
    display: inline-block;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .mobileMeta__social a{
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  /* HERO layout */
  .hero__grid{
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero__left{
    padding-top: calc(var(--mobile-header-h) + 44px);
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 20px;
  }

  /* mobile title fits better */
  .hero__title{
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .sep{
    margin: 0 5px; /* was 10px */
    transform: translateY(1px);
  }

  .hero__right{ height: 50vh; }

  /* HERO: remove bullets on mobile, keep the same text style */
  .hero__bullets{
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0 0;
  }

  .hero__bullets li{
    margin: 0 0 12px 0;
  }

  /* If the Copenhagen paragraph sits right after the bullets list */
  .hero__bullets + p{
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
  }

  /* HERO BAR: keep only resume on mobile */
  .heroBar{
    position: static;
    width: 100%;
  }

  .heroBar__inner{ grid-template-columns: 1fr; }
  .heroBar__left{ display: none; }
  .heroBar__right{ display: flex; }

  .heroBar__btn{
    padding: 22px 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  /* general columns */
  .cols--2,
  .cols--3{
    grid-template-columns: 1fr;
  }

  /* about */
  .aboutLead__text{ font-size: 16px; max-width: none; }
  .aboutBody p{ max-width: none; }
  .aboutTiles{ grid-template-columns: 1fr; max-width: none; }

  /* experience */
  .xp__item{ grid-template-columns: 1fr; gap: 12px; }
  .xpStack__hdr{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* education */
  .eduGrid{ grid-template-columns: 1fr; }
  .eduLead{ white-space: normal; }

  /* skills */
  .skillsGrid{ grid-template-columns: 1fr; gap: 22px; }
  .languages__grid{ grid-template-columns: 1fr; }

  /* hobbies */
  .hobbiesGrid{
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 30px;
  }
  .section--hobbies .hobbyInspiration{ white-space: normal; }

  /* contact */
  .section--contact{ padding: 70px 0; }
  .contactGrid{ grid-template-columns: 1fr; gap: 40px; }
  .contactInfo__grid{ grid-template-columns: 1fr; max-width: none; }
  .contactForm{ max-width: none; }
  .contactSideNote{ display: none; }

    /* Prevent right-edge clipping and force wrapping */
  .hero__title{
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(22px, 7.2vw, 34px);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .hero__lead{
    overflow-wrap: anywhere;
  }

  .hero__bullets,
  .hero__bullets li{
    overflow-wrap: anywhere;
  }

  .hero__meta{
    margin-bottom: 22px;
  }
}

@media (max-width: 520px){
  .hobbiesGrid{
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 26px;
  }

  .hobbyItem{
    padding: 22px 14px; /* optional: makes cards less tall */
  }

  .hobbyIcon svg{
    width: 40px;  /* optional */
    height: 40px; /* optional */
  }
}

@media (max-width: 360px){
  .hero__title{ font-size: 30px; }
  .sep{ margin: 0 8px; }
}

/* ==============================
   CASE STUDY PAGES
   ============================== */

.caseHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-left);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: none;
}

.caseHeader__inner{
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.caseHeader__left{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.caseHeader__brand{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.caseHeader__back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-bottom: 0;
}

.caseHeader__back:hover{ color: rgba(255,255,255,0.96); }

/* crumb that appears on scroll */
.caseHeader__crumb{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.caseHeader.is-scrolled .caseHeader__crumb{
  opacity: 1;
  transform: translateY(0);
}

.caseHeader__sep{ color: rgba(255,255,255,0.38); }

.caseHeader__page{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
}

/* Case hero */
.caseHero{
  background: var(--bar-left);
  color: rgba(255,255,255,0.92);
  padding: 88px 0 64px 0;
}

.caseHero .caseMeta{ margin-bottom: 28px; }

.caseKicker{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 14px;
}

.caseTitle{
  margin: 0;
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  color: rgba(255,255,255,0.96);
}

.caseLead{
  margin-top: 16px;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.85;
  color: rgba(255,255,255,0.76);
}

/* Meta boxes */
.caseMeta{
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  width: 100%;
}

.caseMeta__item{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
}

.caseMeta__k{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.caseMeta__v{
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
}

/* accent tile */
.caseMeta__item--accent{
  background: transparent;
  border-color: rgba(255,255,255,0.14);
}

.caseMeta__item--accent .caseMeta__k{ color: rgba(255,255,255,0.70); }

.caseMeta__item--accent .caseMeta__v{
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* Thumbnail gallery under meta */
.caseGallery{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 105px);
  gap: 10px;
  width: max-content;
}

.caseGallery__item{
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.caseGallery__item:hover{
  border-color: rgba(255,255,255,0.18);
}

.caseGallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.02);
}

/* Sections */
.caseSection{ padding: 74px 0; }

.caseSection--alt{
  background: rgba(108,127,136,0.06);
}

.caseGrid{ align-items: start; }

.caseSection p:first-child{ margin-top: 0; }

/* Workstreams gallery inside a card (legacy) */
.caseGallery--ws{
  margin-top: 14px;
  margin-bottom: 2px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.caseGallery--ws::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.caseGallery--ws .caseGallery__item{
  flex: 0 0 105px;
  aspect-ratio: 1 / 1;
}

.caseGallery--ws .caseGallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Panel */
.casePanel{
  background: rgba(47,63,85,0.04);
  padding: 22px;
}

.casePanel__k{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.70);
  margin-bottom: 14px;
}

.casePanel__p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(15,23,42,0.72);
}

.casePanel--lift{
  margin-top: -22px;
}

.casePanel__link{ margin-top: 28px; }

.casePanel__link a{
  color: rgba(47,63,85,0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,63,85,0.20);
}

.casePanel__link a:hover{
  color: rgba(47,63,85,0.92);
  border-bottom-color: rgba(47,63,85,0.34);
}

/* Lists */
.caseList ul{
  margin: 0;
  padding-left: 18px;
}

.caseList li{
  margin: 0 0 12px 0;
  line-height: 1.75;
  color: rgba(15,23,42,0.72);
  font-size: 15px;
}

/* Workstreams */
.caseWorkstreams{
  display: grid;
  gap: 18px;
}

.caseCard{
  background: rgba(47,63,85,0.035);
  padding: 24px;
}

.caseCard__title{
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.86);
}

.caseCard__p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(15,23,42,0.72);
}

.caseLinks{
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(47,63,85,0.60);
}

.caseLinks a{
  color: rgba(47,63,85,0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,63,85,0.20);
}

.caseLinks a:hover{
  color: rgba(47,63,85,0.90);
  border-bottom-color: rgba(47,63,85,0.34);
}

.caseLinks__sep{
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: rgba(47,63,85,0.18);
  margin: 0 10px;
  transform: translateY(1px);
}

.caseLinks--ws{
  margin-top: 18px;
  margin-bottom: 18px;
}

.caseNext{ max-width: 70ch; }

.caseCtas{
  margin-top: 22px;
  display: flex;
  gap: 12px;
}

/* Footer */
.caseFooter{
  border-top: 1px solid rgba(47,63,85,0.10);
  padding: 18px 0;
  background: transparent;
}

.caseFooter__bar{
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.72);
}

.caseFooter__brand,
.caseFooter__top{
  color: rgba(47,63,85,0.82);
  text-decoration: none;
}

.caseFooter__brand:hover,
.caseFooter__top:hover{ opacity: 0.82; }

.caseFooter__sep{ color: rgba(47,63,85,0.28); }

.caseFooter__meta{
  color: rgba(47,63,85,0.66);
  letter-spacing: 0.02em;
  text-transform: none;
}

.caseFooter__heart{
  display: inline-block;
  transform: translateY(1px);
}

/* CTA */
.caseSection--cta{
  padding-top: 28px;
  padding-bottom: 76px;
}

.caseCta{
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  background: rgba(47,63,85,0.035);
}

.caseCta__media img{
  width: 100%;
  height: auto;
  display: block;
}

.caseCta__kicker{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47,63,85,0.62);
  margin-bottom: 10px;
}

.caseCta__title{
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(15,23,42,0.84);
}

.caseCta__text{
  margin: 0 0 14px 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(15,23,42,0.68);
  max-width: 62ch;
}

.caseCta__phone{
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: rgba(47,63,85,0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,63,85,0.24);
  padding-bottom: 2px;
}

.caseCta__phone:hover{
  opacity: 0.86;
  border-bottom-color: rgba(47,63,85,0.36);
}

.caseCta__sig{ margin-top: 12px; }

.caseCta__sig img{
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  opacity: 0.90;
}

/* Workstreams link highlight */
.caseWorkstreams .caseLinks{
  margin-top: 18px;
}

.caseWorkstreams .caseLinks a{
  color: #6f78b7;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111,120,183,0.45);
  padding-bottom: 2px;
}

.caseWorkstreams .caseLinks a:hover{
  border-bottom-color: rgba(111,120,183,0.85);
  opacity: 0.92;
}

/* highlight underline */
.hl{
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47,63,85,0.28);
}

/* Impact box */
.caseImpact{
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(47,63,85,0.045);
}

.caseImpact__label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(47,63,85,0.70);
  margin: 0 0 6px 0;
}

.caseImpact__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(47,63,85,0.68);
}

.caseImpact .caseLinks{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.caseImpact .caseLinks a{
  color: rgba(47,63,85,0.62);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(47,63,85,0.18);
  padding-bottom: 2px;
  display: inline-block;
}

.caseImpact .caseLinks a:hover{
  color: rgba(47,63,85,0.82);
  border-bottom-color: rgba(47,63,85,0.30);
}

/* Role section */
.roleTitle{ margin-bottom: 18px; }

.roleLead{
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(15,23,42,0.78);
  max-width: 56ch;
}

.roleNote{
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(15,23,42,0.65);
  max-width: 62ch;
}

.roleStreams .caseCard{
  background: rgba(47,63,85,0.04);
}

/* ==============================
   CASE: RESPONSIVE
   ============================== */

@media (max-width: 900px){
  .caseLead{ white-space: normal; }
  .caseMeta{ grid-template-columns: 1fr; }
  .caseGallery{
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .caseHero{ padding: 70px 0 52px 0; }
  .caseCtas{ flex-direction: column; align-items: flex-start; }
  .casePanel--lift{ margin-top: 0; }
  .caseCta{ grid-template-columns: 1fr; }
  .caseCta__media{ max-width: 320px; }
  .roleLead{ font-size: 16px; }
}

@media (max-width: 680px){
  .caseFooter__bar{
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* ==============================
   LIGHTBOX
   ============================== */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open{ display: block; }

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.lightbox__dialog{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.lightbox__frame{
  display: grid;
  justify-items: center;
}

.lightbox__img{
  max-width: min(1280px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
  background: transparent;
}

.lightbox__caption{
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
}

/* Close */
.lightbox__top{
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 2;
}

.lightbox__btn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  line-height: 1;
}

.lightbox__btn:hover{ color: rgba(255,255,255,0.96); }

.lightbox__btn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.22);
  outline-offset: 6px;
}

/* Arrows */
.lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.72);
  font-size: 34px;
  line-height: 1;
}

.lightbox__prev{ left: 18px; }
.lightbox__next{ right: 18px; }

.lightbox__nav:hover{ color: rgba(255,255,255,0.96); }

.lightbox__nav:focus-visible{
  outline: 2px solid rgba(255,255,255,0.22);
  outline-offset: 6px;
}

/* ==============================
   SHOPBOX CASE STUDY (scoped)
   Requires: <body class="casePage casePage--shopbox">
   ============================== */

.casePage .caseWorkstreams{
  display: grid;
  gap: 18px;
}

.casePage .caseCard{
  background: rgba(47,63,85,0.035);
  padding: 24px;
}

.casePage .caseCard__title{
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.86);
}

.casePage .caseCard__p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(15,23,42,0.72);
}

.casePage .caseImpact{
  margin: 26px 0 26px 0;
  padding: 18px 18px;
  background: rgba(47,63,85,0.045);
}

.casePage .caseImpact__label{
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(47,63,85,0.70);
}

.casePage .caseImpact__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(47,63,85,0.68);
}

.casePage .caseImpact .caseLinks{
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.casePage .caseImpact .caseLinks a{
  color: rgba(47,63,85,0.68);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(47,63,85,0.20);
  padding-bottom: 2px;
  display: inline-block;
}

.casePage .caseImpact .caseLinks a:hover{
  color: rgba(47,63,85,0.86);
  border-bottom-color: rgba(47,63,85,0.32);
}

/* Shopbox: mobile tuning */
@media (max-width: 700px){
  .casePage .caseCard{ padding: 18px; }

  .casePage .caseCard__p{
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .casePage .caseImpact{
    margin: 20px 0;
    padding: 16px;
  }
}

/* ==============================
   SHOPBOX: Workstreams gallery strip (mobile-safe)
   ============================== */

.caseGallery.caseGallery--strip{
  margin-top: 18px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.caseGallery.caseGallery--strip .caseGallery__item{
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

.caseGallery.caseGallery--strip .caseGallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Open gallery link (mobile) */
.caseGalleryOpen{ display: none; }

@media (max-width: 700px){
  .caseGallery.caseGallery--strip{
    gap: 9px;
    margin-top: 16px;
  }

  .caseGallery.caseGallery--strip .caseGallery__item{
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }

  .caseGallery.caseGallery--strip{
    overflow: hidden;
    padding-bottom: 0;
    align-items: center;
  }

  .caseGallery.caseGallery--strip .caseGallery__item{ display: none; }

  .caseGallery.caseGallery--strip .caseGallery__item:first-of-type{
    display: block;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
  }

  .caseGalleryOpen{
    display: inline-flex;
    margin-left: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(47,63,85,0.74);
    text-decoration: none;
    border-bottom: 1px solid rgba(47,63,85,0.22);
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .caseGalleryOpen:hover{
    color: rgba(47,63,85,0.92);
    border-bottom-color: rgba(47,63,85,0.34);
  }
}

/* ==============================
   CASE STUDY HEADER (reliable)
   ============================== */

/* Use fixed instead of sticky (sticky often breaks because of parent overflow/transform) */
.caseHeader{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgba(47, 63, 85, 0.98); /* same vibe as --bar-left */
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Keep header height consistent */
.caseHeader__inner{
  height: 62px;
}

/* Offset page content so it doesn't slide under the fixed header */
.caseMain{
  padding-top: 62px;
}

/* ==============================
   Easter egg: View Source Manifesto
   ============================== */

#sourceModal{
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#sourceModal.is-open{ display: flex; }

#sourceModal .sourceBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.78);
}

#sourceModal .sourceDialog{
  position: relative;
  width: min(860px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  background: #0f1620;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 70px rgba(0,0,0,0.55);
  padding: 22px 22px 18px;
}

#sourceModal .sourceTop{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

#sourceModal .sourceTitle{
  font-family: "Prata", serif;
  font-size: 22px;
  line-height: 1.15;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.01em;
}

#sourceModal .sourceClose{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: rgba(255,255,255,0.86);
  padding: 8px 10px;
  cursor: pointer;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#sourceModal .sourceClose:hover{
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
}

#sourceModal .sourceBody{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230,238,248,0.90);
}

#sourceModal .sourceSection{
  margin-top: 16px;
}

#sourceModal .sourceH{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(190, 205, 222, 0.70);
  margin-bottom: 8px;
}

#sourceModal ul{
  margin: 0;
  padding-left: 18px;
}

#sourceModal li{ margin: 6px 0; }

#sourceModal .sourceLinks a{
  color: rgba(210,235,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(210,235,255,0.25);
  padding-bottom: 1px;
}

#sourceModal .sourceLinks a:hover{
  border-bottom-color: rgba(210,235,255,0.55);
}

#sourceModal .sourceSig{
  margin-top: 18px;
  color: rgba(190, 205, 222, 0.78);
}

/* ==============================
   Easter egg: Matrix overlay
   ============================== */
#matrixCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.matrixEmail{
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 1000;
  pointer-events: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.28);
  padding: 6px 10px;
}

body.is-konami #matrixCanvas{ opacity: 1; }
body.is-konami .matrixEmail{ opacity: 1; }
