/* ============================================================
   TOKENS
   ============================================================ */
:root{
  /* --- color: base (editorial plum & cream) --- */
  --ink:          #171522;
  --ink-soft:     #221E2E;
  --ink-line:     #3A3446;
  --paper:        #F7F4EE;
  --paper-dim:    #EFEAE0;
  --cream:        #FFFDF8;
  --line:         #D9D2CA;
  --line-2:       #C9BFAF;
  --muted:        #6E6874;
  --muted-2:      #9A939E;
  --white:        #FFFFFF;

  /* --- color: dosed accents --- */
  --lime:         #5FCB50;
  --lime-deep:    #367A2C;
  --pink:         #AC4BF6;
  --orange:       #F2654C;
  --grad-hero: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  --grad-text: linear-gradient(100deg, var(--pink) 0%, var(--orange) 100%);

  /* --- color: per-case accents (mirror each context's own brand) --- */
  --c-mimbi:      #4FAE3F;
  --c-plezi:      #D6488E;
  --c-swan:       #5A48D6;
  --c-keley:      #E06A3E;

  /* --- type --- */
  --f-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --f-body:    Arial, Helvetica, -apple-system, 'Segoe UI', sans-serif;

  /* --- radius: sharp, editorial (not soft/rounded) --- */
  --r-lg:  4px;
  --r-md:  3px;
  --r-sm:  2px;
  --r-pill: 999px;

  /* --- shadow (soft, understated) --- */
  --shadow-sm: 0 1px 6px rgba(23,21,34,.05);
  --shadow-md: 0 8px 24px rgba(23,21,34,.07);
  --shadow-lg: 0 16px 44px rgba(23,21,34,.11);

  /* --- motion --- */
  --ease: cubic-bezier(.16,.8,.28,1);
  --ease-soft: cubic-bezier(.4,.0,.2,1);
  --dur-fast: .22s;
  --dur-med: .5s;
  --dur-slow: .9s;

  /* --- layout --- */
  --container: 1240px;
  --edge: clamp(20px, 5vw, 34px);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock{ overflow: hidden; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
strong{ font-weight: 700; }
:focus-visible{ outline: 2.5px solid var(--orange); outline-offset: 3px; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }

.eyebrow{
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 400;
}
.eyebrow .num{ color: var(--muted-2); }
.eyebrow.on-accent{ color: rgba(23,21,34,.62); }

.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 5vw, 60px);
  line-height: .98; letter-spacing: -.03em;
  margin-top: 16px;
  color: var(--ink);
}
.section-head .sub{
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
  line-height: 1.5;
}

section{ position: relative; }
.section{ padding: 100px 0; border-top: 1px solid var(--line); }
@media (max-width: 780px){ .section{ padding: 66px 0; } }

.section-dark{
  background: var(--ink); color: var(--paper); border-top: none;
}
.section-dark .eyebrow{ color: rgba(247,244,238,.5); }
.section-dark .eyebrow .num{ color: rgba(247,244,238,.32); }
.section-dark .section-head h2{ color: var(--paper); }
.section-dark .section-head .sub{ color: rgba(247,244,238,.6); }
.section-dark .approach-step .num{ color: rgba(247,244,238,.4); }
.section-dark .approach-step h3{ color: var(--paper); }
.section-dark .approach-step p{ color: rgba(247,244,238,.62); }
.section-dark .approach-step::before{ background: var(--lime); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--orange); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost{ background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost.on-accent{ color: var(--ink); border-color: rgba(23,21,34,.4); }
.btn-ghost.on-accent:hover{ background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn svg{ width: 15px; height: 15px; flex: none; }

/* ============================================================
   SIGNAL-RING MOTIF (signature graphic element, dosed)
   ============================================================ */
.rings{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rings svg{ position: absolute; }
@keyframes ring-rotate{ to{ transform: rotate(360deg); } }
.ring-ping{
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  animation: ring-ping-out .7s var(--ease) forwards;
}
@keyframes ring-ping-out{
  0%{ width: 10px; height: 10px; opacity: .9; }
  100%{ width: 340px; height: 340px; opacity: 0; }
}
.hero-blob{
  position: absolute;
  right: 10%; top: 50%; width: 260px; height: 260px; transform: translateY(-58%);
  border-radius: 50%;
  background: var(--grad-hero);
  filter: blur(50px) saturate(1.15);
  opacity: .55;
}
.hero-photo-col{ display: flex; flex-direction: column; align-items: center; position: relative; z-index: 3; }
.hero-photo{
  width: 190px; height: 190px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cream); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(18px) scale(.97); animation: rise .9s var(--ease) .2s forwards;
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px){ .hero-photo{ width: 150px; height: 150px; } }

.hero-cursor{
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s var(--ease), width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.hero-cursor::after{
  content: '';
  position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--orange); transform: translate(-50%, -50%);
}
.hero-cursor.on{ opacity: .7; }
.hero-cursor.hover{ width: 44px; height: 44px; border-color: var(--ink); }
.hero-cursor.hover::after{ background: var(--ink); }
@media (pointer: coarse){ .hero-cursor{ display: none; } }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 78px;
  display: flex; align-items: center;
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
.site-header::before{
  content: '';
  position: absolute; inset: 0;
  background: rgba(247,244,238,.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{ height: 66px; }
.site-header.scrolled::before{ opacity: 1; border-bottom-color: var(--line); }

.nav-inner{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }

.brand{
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: 21px; letter-spacing: -.02em; color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.brand .mark{ font-style: normal; color: var(--orange); font-size: 15px; }

.nav-center{ display: none; }

.page-toggle{
  display: flex; align-items: center; gap: 2px;
  background: var(--paper-dim); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px;
}
.page-toggle-item{
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  padding: 7px 18px; border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.page-toggle-item:hover{ color: var(--ink); }
.page-toggle-item.active{ background: var(--ink); color: var(--paper); }

.nav-right{ display: flex; align-items: center; gap: 16px; }
.lang-btn{
  border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r-pill);
  padding: 7px 15px; cursor: pointer; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-btn:hover{ background: var(--ink); color: var(--paper); }

.nav-toggle{ display: none; width: 34px; height: 34px; align-items: center; justify-content: center; position: relative; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: ''; position: absolute; width: 20px; height: 1.4px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}
.nav-toggle::before{ top: 12px; }
.nav-toggle span{ top: 17px; }
.nav-toggle::after{ top: 22px; }
.nav-toggle.open::before{ top: 17px; transform: rotate(45deg); }
.nav-toggle.open span{ opacity: 0; }
.nav-toggle.open::after{ top: 17px; transform: rotate(-45deg); }

.mobile-nav{
  position: fixed; inset: 0; z-index: 400; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 36px;
  transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-nav.open{ transform: translateX(0); visibility: visible; }
.mobile-nav a{ font-family: var(--f-display); font-size: 30px; font-style: italic; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height: 92svh;
  display: flex; align-items: center;
  padding: 110px 0 60px;
  position: relative; overflow: hidden;
}
.hero-inner{
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
  position: relative; z-index: 3; width: 100%;
}
.hero-avatar-row{ display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) .05s forwards;
}
.hero-avatar{ width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--ink); flex: none; }
.hero-avatar img{ width: 100%; height: 100%; object-fit: cover; }

.hero-name{
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(52px, 8vw, 108px);
  line-height: .86; letter-spacing: -.045em;
  margin: 0 0 26px;
  max-width: 760px;
  opacity: 0; transform: translateY(18px); animation: rise .85s var(--ease) .16s forwards;
}
.hero-name em{
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline{
  font-size: clamp(18px, 1.8vw, 22px); max-width: 54ch; line-height: 1.42; color: var(--ink);
  opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) .3s forwards;
}
.hero-cta{ margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) .42s forwards;
}
@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }

.hero-note{
  margin-top: 28px; font-size: 13.5px; max-width: 260px;
  opacity: 0; animation: rise .9s var(--ease) .5s forwards;
}
.hero-note strong{
  display: block; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 19px;
  border-top: 1.5px solid var(--ink); padding-top: 14px; margin-bottom: 8px; line-height: 1.25;
}
.hero-note span{ color: var(--muted); line-height: 1.5; }

.hero-scroll{
  position: absolute; left: var(--edge); bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
  opacity: 0; animation: rise 1s var(--ease) .9s forwards;
}
.hero-scroll .line{ width: 30px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-scroll .line::after{ content:''; position:absolute; inset:0; background: var(--orange); animation: scroll-line 1.8s ease-in-out infinite; }
@keyframes scroll-line{ 0%{ transform: translateX(-100%); } 50%{ transform: translateX(0); } 100%{ transform: translateX(100%); } }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo-col{ align-items: flex-start; margin-top: 20px; }
  .hero-note{ max-width: none; }
}
@media (max-width: 860px){
  .nav-center{ display: none; }
  .nav-toggle{ display: flex; }
}
@media (max-width: 640px){
  .hero-blob{ width: 220px !important; height: 220px !important; right: -8% !important; top: 6% !important; opacity: .55 !important; }
}

/* ============================================================
   REVEAL-ON-SCROLL
   ============================================================ */
.reveal{ opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > *{ opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1){ transition-delay: .02s; }
.reveal-stagger.in > *:nth-child(2){ transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3){ transition-delay: .14s; }
.reveal-stagger.in > *:nth-child(4){ transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(5){ transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(6){ transition-delay: .32s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-copy p{ font-size: 19px; line-height: 1.56; margin-bottom: 22px; color: var(--ink); max-width: 560px; }
.about-copy p:last-child{ margin-bottom: 0; }
.about-copy strong{ color: var(--ink); }

.path-rail{ margin-top: 8px; }
.path-item{
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.path-item:first-child{ border-top: 1px solid var(--line); }
.path-item .n{ font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--muted-2); width: 20px; flex: none; }
.path-item .txt{ display: flex; flex-direction: column; gap: 2px; }
.path-item .label{ font-family: var(--f-display); font-size: 18px; color: var(--ink); }
.path-item .sub{ font-size: 12.5px; color: var(--muted); }
.path-item:last-child .label{ color: var(--orange); }

.facts{ display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 44px; }
.fact{ padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(2n){ padding-left: 20px; border-left: 1px solid var(--line); }
.fact b{ display: block; font-family: var(--f-display); font-weight: 400; font-size: 34px; color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.fact span{ color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-copy p{ max-width: none; }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid{ display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill{ position: relative; padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 168px; overflow: hidden; transition: background var(--dur-fast) var(--ease); }
.skill::before{
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad-hero); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.skill:hover{ background: var(--paper-dim); }
.skill:hover::before{ transform: scaleX(1); }
.skill h3{ font-family: var(--f-display); font-weight: 400; font-size: 23px; margin: 0 0 12px; letter-spacing: -.01em; position: relative; }
.skill p{ color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.6; position: relative; }
@media (max-width: 900px){ .skill-grid{ grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px){ .skill-grid{ grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   APPROACH
   ============================================================ */
.approach-grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; margin-top: 8px; }
.approach-step{ position: relative; padding-top: 20px; grid-column: span 2; }
.approach-step:nth-child(4){ grid-column: 2 / span 2; }
.approach-step:nth-child(5){ grid-column: 4 / span 2; }
.approach-step::before{
  content: ''; position: absolute; top: 0; left: 0; width: 30px; height: 2px;
  background: var(--orange);
}
.approach-step .num{ font-family: var(--f-display); font-style: italic; font-size: 13px; color: var(--muted-2); }
.approach-step h3{ font-family: var(--f-display); font-weight: 400; font-size: 22px; margin-top: 8px; color: var(--ink); }
.approach-step p{ margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px){
  .approach-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .approach-step{ grid-column: span 1 !important; }
}

/* ============================================================
   WORK — case grid
   ============================================================ */
.case-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card{
  position: relative;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-align: left;
  width: 100%;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  box-shadow: var(--shadow-sm);
}
.case-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-card:focus-visible{ outline: 2px solid var(--orange); outline-offset: 3px; }
.case-card-media{ display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-soft); }
.case-card-media img{ width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.case-card:hover .case-card-media img{ transform: scale(1.06); }
.case-card-accent{ display: block; height: 3px; width: 100%; }
.case-card-body{ display: flex; flex-direction: column; padding: 28px; flex: 1; }
.case-card-top{ display: flex; align-items: center; justify-content: space-between; }
.case-card-tag{
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid rgba(247,244,238,.3); color: rgba(247,244,238,.85);
}
.case-card-arrow{
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247,244,238,.3); transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.case-card:hover .case-card-arrow{ transform: rotate(45deg); background: var(--paper); border-color: var(--paper); color: var(--ink); }
.case-card-arrow svg{ width: 15px; height: 15px; }
.case-card-company{ font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 32px; margin-top: 18px; letter-spacing: -.01em; display: block; }
.case-card-hook{ margin-top: 10px; font-size: 14.5px; color: rgba(247,244,238,.68); max-width: 42ch; line-height: 1.55; display: block; }
.case-card-role{ margin-top: 16px; font-size: 12px; color: rgba(247,244,238,.5); text-transform: uppercase; letter-spacing: .06em; display: block; }
@media (max-width: 860px){ .case-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   CASE VIEWER (overlay: rail + detail)
   ============================================================ */
.viewer{
  position: fixed; inset: 0; z-index: 800;
  background: var(--paper);
  display: flex;
  transform: translateY(100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.viewer.open{ transform: translateY(0); visibility: visible; }
.viewer-rail{
  width: 292px; flex: none;
  background: var(--ink); color: var(--paper);
  padding: 88px 0 20px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.viewer-close{
  position: absolute; top: 20px; left: 20px; z-index: 5;
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--paper);
  padding: 9px 16px 9px 12px; border-radius: var(--r-pill); border: 1px solid rgba(247,244,238,.24);
  transition: background var(--dur-fast) var(--ease);
}
.viewer-close:hover{ background: rgba(247,244,238,.1); }
.viewer-close svg{ width: 14px; height: 14px; }

.rail-list{ display: flex; flex-direction: column; padding: 0 14px; gap: 6px; }
.rail-item{
  display: flex; align-items: center; gap: 13px;
  padding: 11px; border-radius: var(--r-md);
  cursor: pointer; text-align: left; width: 100%;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  position: relative;
}
.rail-item:hover{ background: rgba(247,244,238,.06); }
.rail-item.active{ background: rgba(247,244,238,.07); border-color: rgba(247,244,238,.14); }
.rail-item-bar{ position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px; background: transparent; transition: background var(--dur-fast) var(--ease); }
.rail-item.active .rail-item-bar{ background: var(--rail-accent, var(--orange)); }
.rail-thumb{ width: 54px; height: 40px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--ink-soft); }
.rail-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.rail-meta{ min-width: 0; overflow: hidden; }
.rail-company{ font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 16px; display: block; }
.rail-role{ font-size: 11px; color: rgba(247,244,238,.5); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; text-transform: uppercase; letter-spacing: .04em; }

.viewer-detail{ flex: 1; min-width: 0; overflow-y: auto; padding: 88px 0 120px; scroll-behavior: smooth; }
.viewer-detail-inner{ max-width: 760px; margin: 0 auto; padding: 0 var(--edge); }

.case-head{ padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.case-head .tag-pill{
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--paper-dim); color: var(--muted); margin-bottom: 20px;
}
.case-head .tag-pill .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--case-accent, var(--orange)); }
.case-head h2{ font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.03; letter-spacing: -.025em; }
.case-head .tagline{ margin-top: 16px; font-size: 17.5px; color: var(--muted); max-width: 60ch; line-height: 1.55; }
.case-meta-row{ display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.case-meta{ display: flex; flex-direction: column; gap: 4px; }
.case-meta .k{ font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); font-weight: 700; }
.case-meta .v{ font-family: var(--f-display); font-size: 16px; color: var(--ink); }

.case-intro{ font-size: 16.5px; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }

.impact-row{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 34px 0; background: var(--line); border: 1px solid var(--line); }
.impact-card{ background: var(--paper-dim); padding: 22px 22px; }
.impact-card .v{ font-family: var(--f-display); font-weight: 400; font-size: 32px; color: var(--case-accent, var(--ink)); }
.impact-card .l{ font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.impact-image{ margin: 28px 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.impact-image img{ width: 100%; transition: transform .9s var(--ease); }
.impact-image:hover img{ transform: scale(1.035); }
.figure-caption{ font-size: 12.5px; color: var(--muted-2); margin-top: 10px; font-style: italic; font-family: var(--f-display); }

.chapter-tabs{ display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0 8px; }
.chapter-tabs-bottom{ margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.chapter-tab{
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  border: 1px solid var(--line-2); color: var(--muted); transition: all var(--dur-fast) var(--ease);
}
.chapter-tab:hover{ border-color: var(--ink); color: var(--ink); }
.chapter-tab.active{ background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chapter{ padding-top: 34px; }
.chapter-title{ font-family: var(--f-display); font-weight: 400; font-size: 25px; margin-bottom: 22px; letter-spacing: -.01em; }
.chapter-block{ margin-bottom: 26px; }
.chapter-block .k{ font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--case-accent, var(--orange)); font-weight: 700; margin-bottom: 8px; display:block; }
.chapter-block p{ font-size: 16px; line-height: 1.7; color: var(--ink); }

.shot{ border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); margin-top: 8px; }
.shot-bar{ height: 28px; background: var(--paper-dim); display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.shot-bar i{ width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.shot .shot-img-wrap{
  overflow: hidden; display: flex; align-items: flex-start; justify-content: center;
  max-height: 480px; background: var(--paper-dim);
}
.shot img{ max-width: 100%; max-height: 480px; width: auto; height: auto; display: block; transition: transform .9s var(--ease); margin: 0 auto; }
.shot:hover img{ transform: scale(1.02); }
.shot-img-wrap.is-scroll{
  max-height: 480px; overflow-y: auto; align-items: flex-start; justify-content: flex-start;
  scrollbar-width: thin;
}
.shot-img-wrap.is-scroll img{ max-width: none; max-height: none; width: 100%; height: auto; margin: 0; }
.shot-img-wrap.is-scroll:hover img{ transform: none; }
.shot-img-wrap.is-wide{ max-height: 560px; }
.scroll-hint{ color: var(--muted-2); font-style: normal; }
.shot-group{ display: flex; flex-direction: column; gap: 26px; margin-top: 20px; }
.shot-group.pair{ flex-direction: row; gap: 16px; }
.shot-group.pair figure{ flex: 1; min-width: 0; }
.shot-group.pair .shot-img-wrap{ max-height: 340px; }
.shot-group.pair img{ max-height: 340px; }
.shot-group.pair .shot-img-wrap.is-scroll img{ max-height: none; }
@media (max-width: 640px){ .shot-group.pair{ flex-direction: column; } }

.callout{
  margin-top: 20px; padding: 20px 22px; border-radius: var(--r-md);
  background: var(--paper-dim); border-left: 2px solid var(--case-accent, var(--orange));
  font-size: 14.5px; color: var(--ink); line-height: 1.6;
}
.callout .k{ font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; display: block; margin-bottom: 8px; }

.case-result{
  margin-top: 46px; padding: 30px 32px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--paper);
}
.case-result .k{ font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--case-accent, var(--orange)); font-weight: 700; margin-bottom: 10px; display: block; }
.case-result p{ font-size: 16.5px; line-height: 1.65; color: rgba(247,244,238,.94); }

.case-nav-buttons{ display: flex; justify-content: space-between; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-nav-btn{ display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.case-nav-btn:hover{ color: var(--ink); }
.case-nav-btn svg{ width: 14px; height: 14px; }

.diagram-wrap{ margin-top: 8px; border-radius: var(--r-md); background: var(--paper-dim); border: 1px solid var(--line); padding: 26px; }
.diagram-wrap svg{ width: 100%; height: auto; display: block; }

@media (max-width: 860px){
  .viewer{ flex-direction: column; }
  .viewer-rail{ width: 100%; height: auto; max-height: 30vh; padding: 80px 0 12px; flex-direction: column; }
  .rail-list{ flex-direction: row; overflow-x: auto; padding: 10px 14px 6px; }
  .rail-item{ flex-direction: column; width: 126px; flex: none; align-items: flex-start; }
  .rail-meta{ width: 100%; }
  .rail-item-bar{ left: 10px; right: 10px; top: auto; bottom: 0; height: 2.5px; width: auto; }
  .rail-thumb{ width: 100%; height: 62px; }
  .viewer-detail{ padding-top: 18px; }
  .case-meta-row{ gap: 22px; }
  .impact-row{ grid-template-columns: 1fr; }
}

/* ============================================================
   GRAPHIC / BEYOND PRODUCT — mosaic + lightbox
   ============================================================ */
.mosaic{
  columns: 4 200px;
  column-gap: 14px;
}
.mosaic-item{
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden; cursor: pointer;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.mosaic-item:hover{ box-shadow: var(--shadow-md); }
.mosaic-item img{ width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.mosaic-item:hover img{ transform: scale(1.04); }
.mosaic-item .tag{
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(23,21,34,.72); color: var(--paper); padding: 5px 10px; border-radius: var(--r-pill);
  opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mosaic-item:hover .tag{ opacity: 1; transform: translateY(0); }
@media (max-width: 900px){ .mosaic{ columns: 3 150px; } }
@media (max-width: 560px){ .mosaic{ columns: 2 130px; column-gap: 10px; } .mosaic-item{ margin-bottom: 10px; } }

.lightbox{
  position: fixed; inset: 0; z-index: 900; background: rgba(23,21,34,.94);
  display: flex; align-items: center; justify-content: center; padding: 60px var(--edge);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-med) var(--ease);
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox-figure{ max-width: 1000px; max-height: 84vh; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-figure img{ max-width: 100%; max-height: 70vh; width: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-caption{ color: var(--paper); text-align: center; }
.lightbox-caption .label{ font-family: var(--f-display); font-style: italic; font-size: 18px; }
.lightbox-caption .tag{ font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(247,244,238,.5); margin-top: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: fixed; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,244,238,.3);
  color: var(--paper); transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(247,244,238,.12); border-color: var(--paper); }
.lightbox-close{ top: 22px; right: 22px; }
.lightbox-prev{ left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg{ width: 18px; height: 18px; }
@media (max-width: 700px){
  .lightbox-prev, .lightbox-next{ width: 38px; height: 38px; }
  .lightbox-prev{ left: 10px; } .lightbox-next{ right: 10px; }
  .lightbox-close{ top: 14px; right: 14px; }
}

/* ============================================================
   CV SECTION
   ============================================================ */
.cv-grid{ display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.cv-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.cv-preview-frame{
  display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--white); position: relative;
  transition: box-shadow var(--dur-med) var(--ease);
}
.cv-preview-frame img{ width: 100%; display: block; transition: transform .8s var(--ease); }
.cv-preview-frame:hover{ box-shadow: var(--shadow-lg); }
.cv-preview-frame:hover img{ transform: scale(1.015); }
.cv-preview-frame::after{
  content: 'Ouvrir le PDF ↗'; position: absolute; right: 14px; bottom: 14px;
  background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-pill); opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
html[lang="en"] .cv-preview-frame::after{ content: 'Open PDF ↗'; }
.cv-preview-frame:hover::after{ opacity: 1; transform: translateY(0); }
.cv-preview > .figure-caption{ margin-top: 12px; text-align: center; }

.cv-block{ margin-bottom: 36px; }
.cv-block:last-child{ margin-bottom: 0; }
.cv-block-title{ font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cv-exp-item{ display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cv-exp-item:first-child{ padding-top: 0; }
.cv-exp-left .company{ font-family: var(--f-display); font-size: 18px; font-style: italic; color: var(--ink); }
.cv-exp-left .role{ font-size: 13px; color: var(--muted); margin-top: 3px; }
.cv-exp-right{ text-align: right; flex: none; }
.cv-exp-right .dates{ font-size: 12px; color: var(--ink); font-weight: 700; }
.cv-exp-right .place{ font-size: 11px; color: var(--muted-2); margin-top: 3px; }

.cv-brief-group{ margin-bottom: 26px; }
.cv-brief-group:last-child{ margin-bottom: 0; }
.chip-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  font-size: 12.5px; color: var(--ink); background: var(--paper-dim);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; line-height: 1.3;
}
.cv-linkedin-note{ margin-top: 12px; font-size: 12px; color: var(--muted-2); }
.cv-linkedin-note a{ color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px){ .cv-grid{ grid-template-columns: 1fr; gap: 40px; } .cv-preview-frame{ aspect-ratio: 1/1.1; } }

/* ============================================================
   CONTACT — bold color block (dosed)
   ============================================================ */
.contact{ background: var(--lime); padding: 90px 0; margin-top: 0; }
.contact .eyebrow{ color: rgba(23,21,34,.55); }
.contact h2{
  font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 6vw, 68px);
  margin-top: 14px; max-width: 18ch; line-height: .98; letter-spacing: -.03em; color: var(--ink);
}
.contact-row{ display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.contact-note{ max-width: 380px; font-size: 15px; color: rgba(23,21,34,.72); line-height: 1.55; }
.contact-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.contact-name{ font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(23,21,34,.6); }
.cv-row{ margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(23,21,34,.18); display: flex; gap: 12px; flex-wrap: wrap; }
.cv-link{ display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink); padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid rgba(23,21,34,.3); transition: all var(--dur-fast) var(--ease); }
.cv-link:hover{ background: var(--ink); color: var(--lime); border-color: var(--ink); }
.cv-link svg{ width: 14px; height: 14px; }
@media (max-width: 700px){ .contact-row{ display: block; } .contact-row > *{ margin-bottom: 20px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--ink); color: rgba(247,244,238,.55); padding: 26px 0 32px; }
.footer-inner{ display: flex; align-items: center; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-inner .back{ display: flex; align-items: center; gap: 8px; color: rgba(247,244,238,.75); transition: color var(--dur-fast) var(--ease); }
.footer-inner .back:hover{ color: var(--orange); }
.footer-inner .back svg{ width: 13px; height: 13px; }

/* ============================================================
   COUNT-UP number helper
   ============================================================ */
[data-count-to]{ font-variant-numeric: tabular-nums; }
