/* PORTFOLIO NICOLAS — Version atelier. Modifie les couleurs ici. */
:root {
  --paper: #f8f8f5;
  --ink: #111423;
  --muted: #555b63;
  --accent: #ed570d;
  --accent-ink: #c74704;
  --line: #d9dbd8;
  --width: 1280px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --hand: "Segoe Print", "Comic Sans MS", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(#aeb5b2 0.6px, transparent 0.8px); background-size: 24px 24px; opacity: .3; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
/* La hauteur suit la largeur, y compris si le HTML indique une hauteur. */
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 760; }
p + p { margin-top: 14px; }
::selection { background: #ffdfbd; color: var(--ink); }
:focus-visible { outline: 3px solid #235dc6; outline-offset: 7px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; z-index: 20; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--width), calc(100% - 112px)); margin-inline: auto; }
.header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; }
.monogram { font-size: 40px; font-weight: 850; letter-spacing: -.08em; line-height: 1; }
.accent { color: var(--accent); }
.brand-name { border-left: 1px solid #999fa4; padding-left: 24px; font-size: 16px; }
.navigation { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.navigation a { position: relative; padding-block: 8px; }
.navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--accent); transition: right .2s; }
.navigation a:hover::after, .navigation a:focus-visible::after, .navigation a[aria-current]::after { right: 0; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; border-radius: 22px; }
.chapter { position: relative; }
.chapter::before { content: attr(data-chapter); position: absolute; top: 5px; left: -43px; color: var(--accent-ink); font-family: monospace; font-size: 12px; line-height: 1; }
.chapter::after { content: ""; position: absolute; top: 31px; bottom: 0; left: -37px; width: 1px; background: var(--line); }
.hero { min-height: 470px; padding-top: 56px; padding-bottom: 72px; position: relative; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; max-width: 850px; }
.hero h1 { font-size: clamp(54px, 7.3vw, 106px); font-weight: 820; letter-spacing: -.065em; line-height: .99; }
.hero h1 > span { display: block; }
.hero-description { margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.7vw, 23px); line-height: 1.45; }
.hero-authorship { max-width: 660px; margin-top: 24px; padding-left: 17px; border-left: 2px solid var(--accent); font-size: 17px; line-height: 1.6; }
.hero-authorship strong { display: block; font-weight: 650; }
.hero-authorship p { margin-top: 6px; color: #3c424a; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 11px 26px; border: 1px solid transparent; border-radius: 30px; background: var(--accent-ink); color: #fff; font-size: 15px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { background: #cf4400; transform: translateY(-2px); }
.hero .button { margin-top: 25px; }
.handwritten { font-family: var(--hand); font-weight: 400; }
.hero-note { position: absolute; z-index: 3; top: 185px; right: 12px; width: 275px; color: var(--accent-ink); font-size: 25px; line-height: 1.55; transform: rotate(-7deg); }
.hero-note svg { width: 230px; height: 95px; margin-left: -105px; transform: rotate(7deg); }
.ink-stroke { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.animated-line { stroke-dasharray: 1100; animation: ink-drift 14s ease-in-out infinite; }
@keyframes ink-drift { 0%,100% { stroke-dashoffset: 0; opacity: .85; } 50% { stroke-dashoffset: 130; opacity: .55; } }
.motion-toggle { position: absolute; bottom: 14px; right: 0; border: 0; padding: 7px 0 7px 12px; font-size: 12px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.motion-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 410px; z-index: 0; pointer-events: none; }
.lace-study { position: absolute; width: 185px; top: 8px; right: 215px; opacity: .15; mix-blend-mode: multiply; transform: rotate(9deg); }
.sketch { position: absolute; width: 210px; aspect-ratio: 1; background-image: url("assets/croquis-projets.png"); background-repeat: no-repeat; background-size: 200% 200%; opacity: .28; pointer-events: none; mix-blend-mode: multiply; }
.sketch-cards { background-position: 0 0; }
.sketch-ticket { background-position: 100% 0; }
.sketch-box { background-position: 0 100%; }
.sketch-sachet { background-position: 100% 100%; }
.hero-art .sketch-cards { right: -25px; top: 4px; width: 210px; transform: rotate(9deg); }
.hero-art .sketch-ticket { right: -30px; top: 245px; width: 205px; transform: rotate(-9deg); }
.projects-section { position: relative; padding-bottom: 90px; isolation: isolate; }
.section-intro { margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.filters button { border: 1px solid #d4d8d6; padding: 9px 18px; border-radius: 30px; background: transparent; font-size: 13px; line-height: 1.2; min-height: 40px; transition: background .2s, color .2s; }
.filters button span { font-family: monospace; font-size: 10px; margin-left: 8px; }
.filters button:hover { background: #e9ece7; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.project-board { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 48px; padding-top: 20px; position: relative; }
.project-column { display: grid; gap: 46px; min-width: 0; }
.project-column-right { padding-top: 0; }
.project-column-left { padding-top: 34px; }
.project { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 28px; align-items: center; min-width: 0; --tilt: -1.2deg; }
.project--tokulace { order: 1; }
.project--cardroast { --tilt: 1.8deg; order: 2; }
.project--pit { --tilt: .7deg; width: 91%; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); order: 3; }
.project--buynothing { --tilt: -1.6deg; order: 4; }
.project--pupas { --tilt: -.6deg; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); background: #faf6ed; border: 1px solid #e9e6dd; padding-right: 20px; order: 5; }
.project-cover { border: 0; background: transparent; padding: 0; margin: 0; display: block; width: 100%; position: relative; grid-column: 1; grid-row: 1 / span 2; text-align: left; }
.paper { display: block; position: relative; transform: rotate(var(--tilt)); transform-origin: 72% 0; box-shadow: 0 4px 9px #18221a12, 0 1px 2px #18221a15; transition: transform .25s, box-shadow .25s; }
.paper img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.paper .pit-logo { object-fit: contain; background: #fbf7f0; }
.project-cover:hover .paper, .project-cover:focus-visible .paper { transform: rotate(0deg) translateY(-4px); box-shadow: 0 10px 22px #18221a1a, 0 1px 3px #18221a15; }
.binder-clip { position: absolute; z-index: 2; width: 35px; height: 49px; top: -27px; left: 74%; transform: rotate(8deg); filter: drop-shadow(0 2px 1px #0003); pointer-events: none; }
.project--cardroast .binder-clip { left: 45%; transform: rotate(-5deg); }
.project--pit .binder-clip { left: 13%; transform: rotate(-6deg); }
.project--buynothing .binder-clip { left: 82%; transform: rotate(10deg); }
.project--pupas .binder-clip { left: 11%; transform: rotate(-4deg); }
.project-copy { grid-column: 2; grid-row: 1; padding-top: 9px; align-self: end; }
.project-category { font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .025em; color: var(--muted); margin-bottom: 10px; }
.project h3 { font-size: clamp(26px, 2.45vw, 34px); font-weight: 750; overflow-wrap: anywhere; }
.project-description { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.project details { grid-column: 2; grid-row: 2; align-self: start; margin-top: 18px; }
.project summary { list-style: none; width: fit-content; display: flex; align-items: center; gap: 12px; padding: 0; }
.project summary::-webkit-details-marker { display: none; }
.round-arrow { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid #d2d6d1; border-radius: 50%; color: var(--accent); background: var(--paper); font-size: 27px; line-height: 1; font-family: Arial, sans-serif; transition: background .2s, transform .2s; }
.project summary:hover .round-arrow { background: #ffe9da; transform: translateX(3px); }
.summary-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.project details[open] { grid-column: 1 / -1; grid-row: auto; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.project:has(details[open]) .project-cover { grid-row: 1; }
.project details[open] .round-arrow { transform: rotate(-90deg); background: var(--ink); color: white; border-color: var(--ink); }
.project details[open] .summary-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 13px; color: var(--muted); }
.project-details { padding-top: 20px; font-size: 15px; line-height: 1.65; }
.project-details h4 { font-size: 15px; margin: 20px 0 5px; }
.project-details h4:first-of-type { margin-top: 14px; }
.project-details p { color: var(--muted); }
.project-status { color: var(--accent-ink) !important; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; padding: 0; margin: 16px 0; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.next-step { padding-left: 12px; border-left: 2px solid var(--accent); margin-top: 18px; }
.next-step strong { color: var(--ink); display: block; }
.project-site-link { margin-top: 20px; font-size: 13px; padding: 9px 18px; min-height: 42px; }
.project-column-right .project { grid-template-columns: minmax(0,1fr); }
.project-column-right .project-cover { grid-column: 1; grid-row: 1; }
.project-column-right .project-copy { grid-column: 1; grid-row: 2; padding-top: 25px; padding-right: 0; }
.project-column-right .project details { grid-column: 1; grid-row: 3; }
.project--pupas details { padding-bottom: 20px; }
.project--pupas details[open] { margin-left: 20px; }
.project-sketches { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.project-sketches .lace-margin { position: absolute; top: 110px; left: -92px; width: 130px; opacity: .13; mix-blend-mode: multiply; transform: rotate(-12deg); }
.project-sketches .sketch-ticket { left: -130px; top: 53%; width: 240px; transform: rotate(-17deg); }
.project-sketches .sketch-sachet { left: -110px; bottom: 15px; width: 225px; transform: rotate(-6deg); }
.board-endnote { position: relative; text-align: right; margin-top: 30px; min-height: 100px; padding-top: 40px; }
.board-endnote .handwritten { color: var(--accent-ink); font-size: 19px; margin-right: 125px; }
.board-endnote .sketch-box { right: -15px; top: -15px; width: 190px; }
.board-endnote svg { position: absolute; right: 200px; width: 150px; height: 70px; }
.project-board[data-filter]:not([data-filter="tous"]) { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px 30px; }
.project-board[data-filter]:not([data-filter="tous"]) .project-column { display: contents; }
.project-board[data-filter]:not([data-filter="tous"]) .project { width: 100%; grid-template-columns: 1fr; align-self: start; background: transparent; border: 0; padding: 0; }
.project-board[data-filter]:not([data-filter="tous"]) .project-cover { grid-column: 1; grid-row: 1; }
.project-board[data-filter]:not([data-filter="tous"]) .project-copy { grid-column: 1; grid-row: 2; padding-top: 24px; }
.project-board[data-filter]:not([data-filter="tous"]) .project details { grid-column: 1; grid-row: 3; margin-left: 0; }
.project-board[data-filter]:not([data-filter="tous"]) .project-sketches { display: none; }
.method-shell { border-top: 1px solid var(--line); background: #ffffff80; padding-block: 65px; }
.method-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 40px; margin-top: 46px; padding: 0; list-style: none; }
.method-icon { width: 72px; height: 62px; margin-bottom: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.method-icon .icon-accent { stroke: var(--accent); }
.method-grid h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 12px; }
.method-grid p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.authorship { display: grid; grid-template-columns: .7fr 2fr; gap: 45px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.authorship h3 { font-size: 17px; line-height: 1.5; letter-spacing: -.025em; }
.authorship p { color: var(--muted); font-size: 13px; max-width: 800px; }
.about { padding-block: 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.eyebrow { font-family: monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 15px; }
.about-copy { font-size: 16px; color: var(--muted); }
.signature { margin-top: 25px; font-size: 27px; color: var(--accent); transform: rotate(-5deg); width: fit-content; }
.contact { border-top: 1px solid var(--line); padding-block: 45px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact p { color: var(--muted); margin-top: 12px; }
.footer { border-top: 1px solid var(--line); padding-block: 25px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
html[data-motion="paused"] .animated-line { animation-play-state: paused; }
@media (min-width: 1450px) { .hero { min-height: 500px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 100px); }
  .project-board { gap: 30px; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); }
  .project { column-gap: 20px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .project--pit { width: 100%; }
  .project-description { font-size: 14px; }
  .project-category { font-size: 10px; }
  .hero { min-height: 420px; }
  .hero-note { width: 210px; right: -5px; font-size: 21px; top: 210px; }
  .hero-art { opacity: .65; right: -10px; }
  .lace-study { width: 150px; right: 170px; top: -5px; }
  .hero-art .sketch-cards { width: 155px; top: 30px; right: -10px; }
  .hero-art .sketch-ticket { display: none; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 72px); }
  .header { min-height: 85px; gap: 16px; }
  .brand { gap: 15px; }
  .brand-name { padding-left: 15px; font-size: 14px; }
  .navigation { gap: 19px; font-size: 12px; }
  .chapter::before { left: -25px; font-size: 10px; }
  .chapter::after { left: -20px; }
  .hero { padding-top: 35px; padding-bottom: 115px; min-height: 470px; }
  .hero h1 { font-size: clamp(50px,8vw,70px); }
  .hero-copy { max-width: 100%; }
  .hero-note { top: auto; bottom: 20px; right: 15px; width: 240px; font-size: 20px; }
  .hero-note svg { position: absolute; left: -55px; top: -8px; width: 160px; margin: 0; transform: rotate(20deg); }
  .hero-art { width: 210px; right: -5px; opacity: .6; }
  .lace-study { width: 110px; right: 10px; top: 120px; }
  .hero-art .sketch-cards { display: none; }
  .project-board, .project-board[data-filter]:not([data-filter="tous"]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 52px 30px; padding-top: 15px; }
  .project-column { display: contents; }
  .project, .project--pit, .project--pupas { width: 100%; grid-template-columns: 1fr; align-self: start; padding: 0; background: transparent; border: 0; }
  .project--tokulace { order: 1; } .project--cardroast { order: 2; } .project--pit { order: 3; } .project--buynothing { order: 4; } .project--pupas { order: 5; }
  .project-cover, .project-column-right .project-cover { grid-column: 1; grid-row: 1; }
  .project-copy, .project-column-right .project-copy { grid-column: 1; grid-row: 2; padding-top: 24px; }
  .project details, .project-column-right .project details { grid-column: 1; grid-row: 3; }
  .project--pupas details[open] { margin-left: 0; }
  .project h3 { font-size: 28px; }
  .project-description { font-size: 15px; }
  .project-sketches { display: none; }
  .method-grid { gap: 25px; grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 40px; }
  .authorship { grid-template-columns: 1fr; gap: 12px; }
  .about-grid { gap: 35px; grid-template-columns: 1fr 1fr; }
  .board-endnote .handwritten { font-size: 16px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 48px); }
  .header { min-height: 80px; position: relative; flex-wrap: wrap; }
  .brand { gap: 13px; }
  .brand-name { font-size: 13px; padding-left: 13px; }
  .monogram { font-size: 34px; }
  .navigation { width: 100%; justify-content: space-between; padding-bottom: 16px; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .navigation { display: none; }
  .js .navigation.is-open { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px 24px; }
  .chapter::before, .chapter::after { display: none; }
  .hero { min-height: 0; padding-top: 32px; padding-bottom: 125px; }
  .hero h1 { font-size: clamp(43px,10vw,57px); letter-spacing: -.065em; }
  .hero-description { font-size: 17px; margin-top: 23px; }
  .hero-description br { display: none; }
  .hero-authorship { font-size: 16px; padding-left: 14px; }
  .hero .button { margin-top: 24px; }
  .hero-note { font-size: 19px; right: 0; bottom: 28px; width: 215px; }
  .hero-art { display: none; }
  .motion-toggle { bottom: 0; font-size: 11px; }
  .hero-note svg { width: 125px; left: -50px; top: -4px; }
  .section-intro { margin-bottom: 24px; }
  .section-intro h2 { max-width: 300px; font-size: 33px; line-height: 1.08; }
  .filters { gap: 7px; margin-top: 22px; }
  .filters button { font-size: 12px; padding: 9px 12px; }
  .project-board, .project-board[data-filter]:not([data-filter="tous"]) { grid-template-columns: 1fr; gap: 52px; padding-top: 15px; }
  .project-cover { width: min(100%, 440px); margin-inline: auto; }
  .paper { transform: rotate(calc(var(--tilt) * .65)); }
  .binder-clip { width: 29px; height: 43px; top: -24px; }
  .project-copy { padding-top: 25px; }
  .project h3 { font-size: 31px; }
  .project-description { font-size: 16px; }
  .project-category { font-size: 10px; margin-bottom: 8px; }
  .project summary { gap: 12px; }
  .summary-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 12px; color: var(--muted); }
  .project details { margin-top: 16px; }
  .board-endnote { text-align: left; min-height: 90px; padding-top: 30px; margin-top: 15px; }
  .board-endnote .handwritten { display: block; max-width: 200px; margin: 0; }
  .board-endnote .sketch-box { width: 130px; right: -15px; top: 0; opacity: .22; }
  .board-endnote svg { display: none; }
  .projects-section { padding-bottom: 40px; }
  .method-shell { padding-block: 42px; }
  .method-grid { gap: 35px 22px; margin-top: 34px; }
  .method-icon { width: 56px; height: 48px; margin-bottom: 15px; }
  .method-grid h3 { font-size: 18px; }
  .method-grid p { font-size: 13px; }
  .authorship { margin-top: 32px; }
  .about { padding-block: 45px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  .about h2 { font-size: 33px; }
  .about-copy { font-size: 15px; }
  .contact { align-items: flex-start; flex-direction: column; }
  .footer { font-size: 11px; gap: 14px; }
  .footer p:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle { display: none !important; }
}
@media print {
  body { background: white; }
  .wrap { width: 100%; }
  .header, .filters, .hero-art, .hero-note, .motion-toggle, .project-sketches, .board-endnote, .binder-clip, .footer, .menu-toggle { display: none !important; }
  .hero { min-height: 0; padding: 0 0 30px; }
  .hero h1 { font-size: 40px; }
  .hero .button { display: none; }
  .chapter::before, .chapter::after { display: none; }
  .project-board { display: block; }
  .project-column { display: block; padding: 0; }
  .project { margin-bottom: 25px; break-inside: avoid; width: 100%; }
  .project-cover { width: 150px; }
  .paper { transform: none; box-shadow: none; }
  .method-shell, .about { padding-block: 25px; }
}


/* Documents d’origine et échanges : cliquer pour lire chaque pièce. */
.evidence-section { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.project-details .evidence-section > h4 { color: var(--ink); font-size: 17px; line-height: 1.35; margin-top: 16px; }
.evidence-intro { font-size: 13px; line-height: 1.65; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px 16px; margin-top: 18px; align-items: start; }
.evidence-card { min-width: 0; }
.evidence-open { display: block; position: relative; border: 1px solid var(--line); border-radius: 5px; background: #efefe9; overflow: hidden; }
.evidence-open img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transition: opacity .2s; }
.evidence-card--lexora .evidence-open img { aspect-ratio: 16 / 10; background: #14271d; }
.evidence-card--conversation .evidence-open img { aspect-ratio: 2.75; background: #17211b; }
.evidence-open:hover img { opacity: .86; }
.evidence-zoom { position: absolute; right: 7px; bottom: 7px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 650; line-height: 1.4; padding: 5px 9px; box-shadow: 0 1px 6px #0002; }
.evidence-card--conversation .evidence-zoom { position: static; display: block; border-radius: 0; background: var(--ink); color: #fff; text-align: right; padding: 6px 10px; box-shadow: none; }
.evidence-card figcaption { padding-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.evidence-card figcaption strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; line-height: 1.4; }
.evidence-card figcaption span { display: block; }
.evidence-decision { margin-top: 22px; border-left: 2px solid var(--accent); padding-left: 13px; font-size: 13px; }
.evidence-decision > strong { font-size: 13px; }
.evidence-decision p { margin-top: 6px; }
.evidence-document { display: inline-block; margin-top: 18px; color: var(--accent-ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.evidence-document span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
body.has-evidence-viewer { overflow: hidden; }
.evidence-viewer { width: min(1200px, calc(100vw - 40px)); max-width: none; max-height: 92vh; max-height: 92dvh; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.evidence-viewer::backdrop { background: #0b1123cc; }
.evidence-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.evidence-viewer-toolbar .eyebrow { margin: 0; }
.evidence-close, .evidence-size { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 8px 15px; font-size: 13px; min-height: 42px; }
.evidence-close span { font-size: 20px; margin-left: 8px; vertical-align: -1px; }
.evidence-viewer h2 { font-size: clamp(21px, 3vw, 29px); line-height: 1.25; margin-top: 18px; letter-spacing: -.025em; }
#evidence-viewer-caption { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 9px; max-width: 850px; }
.evidence-viewer-media { margin-top: 20px; overflow: auto; max-height: 60vh; max-height: 60dvh; background: #ededE7; border: 1px solid var(--line); border-radius: 5px; overscroll-behavior: contain; }
.evidence-viewer-media img { width: auto; height: auto; max-width: 100%; max-height: 60vh; max-height: 60dvh; object-fit: contain; margin-inline: auto; }
.evidence-viewer.is-zoomed .evidence-viewer-media img { max-width: none; max-height: none; margin: 0; }
.evidence-viewer-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; font-size: 12px; }
.evidence-viewer-actions a { text-decoration: underline; text-underline-offset: 3px; }
.evidence-size[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 560px) {
  .evidence-grid { grid-template-columns: 1fr; gap: 22px; }
  .evidence-viewer { width: calc(100vw - 18px); max-height: 94vh; max-height: 94dvh; padding: 16px; border-radius: 8px; }
  .evidence-viewer-toolbar .eyebrow { font-size: 9px; }
  .evidence-viewer-actions { align-items: flex-start; flex-direction: column; }
}
