/* Interaction polish only: the existing palette, type and page layouts remain authoritative. */
/* Motion is enabled by JavaScript; unenhanced content is never hidden. */
.if-scroll-progress { position: fixed; z-index: 45; inset: 0 0 auto; height: 3px; background: var(--wine); pointer-events: none; transform: scaleX(0); transform-origin: left center; }
.personal-hero.if-hero-motion { overflow: hidden; }
.personal-hero.if-hero-motion > img { animation: if-hero-breathe 10s ease-in-out infinite alternate; animation-play-state: paused; transform-origin: 64% 52%; }
.personal-hero.if-hero-motion::before { content: ''; position: absolute; inset: -18%; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.36) 48%, transparent 75%); animation: if-hero-light 9s ease-in-out infinite alternate; animation-play-state: paused; }
.personal-hero.if-hero-motion.is-active > img, .personal-hero.if-hero-motion.is-active::before { animation-play-state: running; }
@keyframes if-hero-breathe { from { transform: scale(1.035) translateX(-.8%); } to { transform: scale(1.10) translateX(.8%); } }
@keyframes if-hero-light { from { opacity: .35; transform: translate(-28%,-4%); } to { opacity: 1; transform: translate(22%,3%); } }
/* Independent ambient loops keep the same layout and brand colours. */
.contact-band.if-contact-ambient { position: relative; isolation: isolate; overflow: hidden; }
.contact-band.if-contact-ambient::before, .contact-band.if-contact-ambient::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.2), rgba(255,255,255,.05) 48%, transparent 72%); animation: if-contact-light 12s ease-in-out infinite alternate; animation-play-state: paused; }
.contact-band.if-contact-ambient::before { width: min(760px,100%); height: 520px; left: -12%; top: -190px; }
.contact-band.if-contact-ambient::after { width: min(600px,100%); height: 460px; right: -10%; bottom: -220px; animation-duration: 14s; animation-delay: -4s; animation-direction: alternate-reverse; }
@keyframes if-contact-light { from { opacity: .6; transform: translate(-8%,0) scale(.9); } to { opacity: 1; transform: translate(22%,12%) scale(1.16); } }
.if-cta-ambient { position: relative; isolation: isolate; overflow: hidden; }
.if-cta-ambient::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -50%; bottom: -50%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); animation: if-cta-sheen 6s ease-in-out infinite; animation-delay: var(--if-ambient-delay,0s); animation-play-state: paused; }
@keyframes if-cta-sheen { 0%,38% { opacity: 0; transform: translateX(0) skewX(-18deg); } 42% { opacity: 1; } 64% { opacity: 1; transform: translateX(420%) skewX(-18deg); } 66%,100% { opacity: 0; transform: translateX(420%) skewX(-18deg); } }
.if-heading-ambient { position: relative; }
.if-heading-ambient::after { content: ''; position: absolute; pointer-events: none; left: 0; bottom: -14px; width: 64px; height: 2px; background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent); transform-origin: center; animation: if-heading-glint 9s ease-in-out infinite; animation-delay: var(--if-ambient-delay,0s); animation-play-state: paused; }
.if-heading-ambient.if-ambient-centered::after { left: calc(50% - 32px); }
@keyframes if-heading-glint { 0%,100% { opacity: .35; transform: translateX(-6px) scaleX(.55); } 50% { opacity: .8; transform: translateX(6px) scaleX(1); } }
.if-contact-ambient.if-ambient-active::before, .if-contact-ambient.if-ambient-active::after, .if-cta-ambient.if-ambient-active::before, .if-heading-ambient.if-ambient-active::after { animation-play-state: running; }
.button, .if-copy-button, .if-publication-filters button, .if-photo-controls button, .if-photo-close { transition: background-color .24s, border-color .24s, transform .24s, box-shadow .24s; }
.text-link span, .hero-links a span, .email-link span, .button span { display: inline-block; transition: transform .24s; }
.area-list > article, .process > article, .if-publication { transition: transform .3s, border-color .3s, box-shadow .3s; }
.faq-list summary::after { transition: transform .24s; }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .if-copy-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #382c2d18; }
  .text-link:hover span, .hero-links a:hover span, .email-link:hover span, .button:hover span { transform: translate(3px,-2px); }
  .area-list > article:hover { transform: translateX(6px); border-bottom-color: var(--wine); }
  .process > article:hover, .if-publication:hover { transform: translateY(-5px); border-color: var(--wine); }
  .faq-list details:not([open]) summary:hover::after { transform: rotate(90deg); }
}
.process > article:focus-within, .if-publication:focus-within { border-color: var(--wine); }
.if-photo-zoom { cursor: zoom-in; }
.if-photo-zoom:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
.if-photo-dialog {
  width: min(980px, calc(100% - 40px));
  max-width: 980px;
  max-height: calc(100svh - 40px);
  padding: 28px;
  overflow: auto;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 80px #382c2d33;
}
.if-photo-dialog::backdrop { background: #382c2db3; backdrop-filter: blur(3px); }
.if-photo-dialog[open]::backdrop { animation: if-photo-backdrop-in .36s ease both; }
.if-photo-dialog.is-closing::backdrop { animation: if-photo-backdrop-out .22s ease both; }
@keyframes if-photo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes if-photo-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.if-photo-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.if-photo-dialog-head h2 { font-size: 34px; line-height: 1.1; }
.if-photo-close, .if-photo-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--wine); cursor: pointer; font-size: 13px; }
.if-photo-close { font-size: 24px; line-height: 1; }
.if-photo-close:hover, .if-photo-controls button:hover { background: var(--soft); }
.if-photo-dialog figure { margin: 0; }
.if-photo-dialog-image { display: block; width: 100%; height: auto; max-height: 68svh; object-fit: contain; margin: auto; }
.if-photo-dialog figcaption { margin-top: 18px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.if-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.if-photo-count, .if-photo-status { color: var(--muted); font-size: 12px; }
.if-photo-status { margin-top: 14px; }
.if-photo-open { overflow: hidden; }
.if-publication-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; margin: 24px 0; }
.if-publication-image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.if-article-image { display: block; width: 100%; height: auto; border-radius: 3px; margin: 32px 0; }
.if-article-image img { display: block; width: 100%; height: auto; border-radius: inherit; }
.if-portrait-real { aspect-ratio: auto; }
.if-portrait-real .if-portrait-image { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; flex: 0 0 auto; }
@media (max-width: 1000px) {
  html:not(.if-menu-ready) .site-header { flex-wrap: wrap; padding-block: 24px 12px; }
  html:not(.if-menu-ready) .menu-toggle { display: none; }
  html:not(.if-menu-ready) .navigation { position: static; display: flex; flex-basis: 100%; width: 100%; max-height: none; padding: 6px 0 14px; box-shadow: none; overflow: visible; }
}
@media (max-width: 700px) {
  .if-photo-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 18px; }
  .if-photo-dialog-head { gap: 12px; }
  .if-photo-dialog-head h2 { font-size: 29px; }
  .if-photo-dialog-image { max-height: 62svh; }
  .if-photo-controls { gap: 10px; }
  .if-photo-count { flex-basis: 100%; text-align: center; order: 3; }
  .if-publication-image { margin-block: 20px; }
  .if-article-image { margin-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .if-scroll-progress { display: none; }
  .personal-hero.if-hero-motion > img, .personal-hero.if-hero-motion::before { animation: none; transform: none; }
  .personal-hero.if-hero-motion::before { display: none; }
  .if-contact-ambient::before, .if-contact-ambient::after, .if-cta-ambient::before, .if-heading-ambient::after { display: none; animation: none; }
  .area-list > article, .process > article, .if-publication, .text-link span, .hero-links a span, .email-link span, .button span, .if-copy-button, .if-publication-filters button, .if-photo-controls button, .if-photo-close, .faq-list summary::after { transition: none; animation: none; }
  .area-list > article:hover, .process > article:hover, .if-publication:hover, .text-link:hover span, .hero-links a:hover span, .email-link:hover span, .button:hover span, .if-copy-button:hover, .faq-list summary:hover::after { transform: none; }
  .reveal.pending, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .button, .navigation, .faq-list details, .if-photo-dialog { transition: none; animation: none; }
  .if-photo-dialog::backdrop { animation: none; }
  .button:hover { transform: none; }
}
@media print {
  .if-scroll-progress, .personal-hero.if-hero-motion::before, .if-contact-ambient::before, .if-contact-ambient::after, .if-cta-ambient::before, .if-heading-ambient::after { display: none; animation: none; }
  .personal-hero.if-hero-motion > img { animation: none; transform: none; }
}
