/* Studio FENNEC marketing site — mobile-first
   Default = mobile · Tablet ≥ 720px · Desktop ≥ 1024px
   No Josephin; Candara for everything (display + body). */

* { box-sizing: border-box; }
/* NB: keep overflow-x default (visible) on html/body — clipping breaks position:sticky on the header.
   Wide elements (marquee, hero media) are clipped at their own level. */
html, body { margin: 0; }
.fn-app { background: transparent; color: var(--fg-1); font-family: var(--font-sans); position: relative; z-index: 1; }

/* ===== GLOBAL UX FIXES (V29) ===== */
/* Prevent horizontal overflow from absolute-positioned fennec animations */
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Visible focus ring for keyboard navigation (only when keyboard) */
:where(a, button, [role=button], input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection in saffron */
::selection { background: rgba(248, 209, 52, 0.35); color: var(--fg-1); }

/* Scrollbar matches the dark theme */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--noir-1000); }
::-webkit-scrollbar-thumb { background: var(--noir-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Skip-to-content link for accessibility (hidden until focused) */
.fn-skip {
  position: absolute;
  left: 8px; top: -100px;
  background: var(--accent);
  color: var(--noir-1000);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1000;
  transition: top .2s;
}
.fn-skip:focus-visible { top: 8px; }

/* Touch action on buttons — better tap response */
button, [role=button], a.btn { touch-action: manipulation; }

/* Hardware-accelerate animated images */
.fn-hero-burrow img,
.fn-services-runner__img,
.fn-realisations-jump__img,
.fn-values-static img,
.fn-footer-jump img { will-change: transform; transform: translateZ(0); }

/* Brand typography — Gilroy everywhere */
.fn-app, .fn-app p, .fn-app .lead, .fn-app .caption, .fn-app .eyebrow,
.fn-app .display-l, .fn-app .display-m, .fn-app h1, .fn-app h2, .fn-app h3,
.fn-hero-title, .fn-service h3, .fn-case-meta h3, .fn-value h3,
.fn-results .display-m, .fn-contact-copy h2, .fn-contact-sent h3,
.fn-mentions h1, .fn-mentions h2, .fn-mentions p {
  font-family: "Gilroy", "Candara", "Helvetica Neue", Arial, sans-serif !important;
}
.fn-app .display-l, .fn-app .display-m, .fn-app h1, .fn-app h2, .fn-app h3,
.fn-hero-title, .fn-service h3, .fn-case-meta h3, .fn-value h3,
.fn-results .display-m, .fn-contact-copy h2, .fn-contact-sent h3,
.fn-mentions h1 {
  font-weight: 800;
}
.fn-hero-marquee, .fn-service-num, .fn-service-items li, .fn-stat-n, .fn-stat-sub,
.fn-contact-meta dt, .fn-qr-cap .caption, .fn-mentions-back, .fn-filter,
.fn-modal-close, .fn-drawer-close { font-family: "Gilroy", "Candara", monospace !important; font-weight: 500; }

/* ===== HEADER ===== */
.fn-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: rgba(5,5,5,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--noir-700);
}
.fn-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.fn-brand img { height: 32px; width: 32px; object-fit: cover; display: block; }
.fn-brand-word { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--fg-1); text-transform: uppercase; }
.fn-burger { display: inline-flex; flex-direction: column; gap: 5px; background: transparent; border: 1px solid var(--noir-600); padding: 10px 12px; cursor: pointer; }
.fn-burger span { width: 18px; height: 2px; background: var(--fg-1); display: block; }
.fn-nav { display: none; }
.fn-cta-mini { display: none; }
.fn-drawer { position: fixed; inset: 0; background: var(--noir-1000); z-index: 60; padding: 80px 28px 32px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out); }
.fn-drawer.is-open { transform: translateX(0); }
.fn-drawer-close { position: absolute; top: 16px; right: 20px; background: transparent; border: 1px solid var(--noir-600); color: var(--fg-1); padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.fn-drawer a { font-family: var(--font-sans); font-weight: 700; font-size: 28px; color: var(--fg-1); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--noir-700); text-transform: uppercase; letter-spacing: 0.02em; }
.fn-drawer a.is-active { color: var(--accent); }
.fn-drawer-cta { margin-top: 24px; padding: 16px; background: var(--accent); color: var(--noir-1000) !important; text-align: center; font-size: 13px !important; letter-spacing: 0.08em; border-bottom: none !important; }

@media (min-width: 1024px) {
  .fn-header { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; padding: 18px 40px; }
  .fn-burger, .fn-drawer { display: none; }
  .fn-nav { display: flex; gap: 28px; justify-self: center; }
  .fn-cta-mini { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--noir-1000); background: var(--accent); padding: 12px 18px; text-decoration: none; transition: background var(--dur-base) var(--ease-out); }
}
.fn-nav-link { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--fg-2); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.fn-nav-link:hover { color: var(--fg-1); }
.fn-nav-link.is-active { color: var(--fg-1); border-bottom-color: var(--accent); }
.fn-arrow { width: 14px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; min-height: 52px; border: 1px solid transparent; font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.btn--primary { background: var(--accent); color: var(--noir-1000); }
.btn--primary:hover { background: var(--saffron-600); }
.btn--ghost { background: transparent; color: var(--fg-1); padding-inline: 0; }
.btn--ghost:hover { color: var(--accent); }

/* ===== FADE / REVEAL ===== */
.fn-fade-line { opacity: 0; transform: translateX(-32px); animation: fnFadeRight .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 100ms); }
@keyframes fnFadeRight { to { opacity: 1; transform: translateX(0); } }
.fn-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.fn-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ===== HERO ===== */
.fn-hero { padding: 32px 20px 16px; position: relative; }
.fn-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.fn-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.fn-hero-title { font-size: clamp(40px, 11vw, 56px); line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; color: var(--fg-1); margin: 0; display: flex; flex-direction: column; gap: 4px; }
.fn-hero-line { display: block; }
.fn-hero-lead { max-width: 540px; font-size: 16px; }
.fn-hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.fn-hero-ctas .btn { width: 100%; }
.fn-hero-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.fn-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-hero-cap { position: absolute; left: 12px; bottom: 12px; background: rgba(5,5,5,0.7); padding: 6px 10px; }

@media (min-width: 720px) {
  .fn-hero-ctas { flex-direction: row; align-items: center; }
  .fn-hero-ctas .btn { width: auto; }
}
@media (min-width: 1024px) {
  .fn-hero { padding: 64px 40px 24px; }
  .fn-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
  .fn-hero-title { font-size: clamp(48px, 6vw, 88px); }
}

/* Infinite horizontal marquee — no wrap, continuous scroll, paused on hover */
.fn-hero-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--noir-700);
  border-bottom: 1px solid var(--noir-700);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  text-transform: uppercase;
  /* Gradient fade at both edges */
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.fn-hero-marquee__track {
  display: inline-flex;
  gap: 16px;
  white-space: nowrap;
  animation: fnMarqueeScroll 60s linear infinite;
  /* width fits twice the content so the seam is invisible */
}
.fn-hero-marquee:hover .fn-hero-marquee__track {
  animation-play-state: paused;
}
.fn-hero-marquee__track > span {
  display: inline-block;
  flex-shrink: 0;
}
.fn-hero-marquee .dot { color: var(--accent); margin: 0 6px; }
@keyframes fnMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (min-width: 1024px) { .fn-hero-marquee { margin-top: 64px; font-size: 12px; } }

/* ===== SECTIONS ===== */
.fn-section { padding: 56px 20px; }
.fn-section--alt { background: rgba(14, 13, 12, 0.55); backdrop-filter: blur(2px); }
.fn-section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.fn-section-head .display-m { font-size: clamp(36px, 9vw, 56px); line-height: 0.98; letter-spacing: -0.015em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .fn-section { padding: 96px 40px; }
  .fn-section-head { margin-bottom: 56px; }
  .fn-section-head--row { flex-direction: row; justify-content: space-between; align-items: end; gap: 40px; }
}

/* ===== SERVICES ===== */
.fn-services-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(38, 36, 42, 0.6); border: 1px solid rgba(38, 36, 42, 0.6); }
.fn-service { background: rgba(5, 5, 5, 0.55); backdrop-filter: blur(2px); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.fn-service:hover { background: rgba(24, 23, 26, 0.7); }
.fn-service-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; }
.fn-service h3 { font-size: 22px; line-height: 1.1; color: var(--fg-1); text-transform: uppercase; letter-spacing: -0.005em; }
.fn-service p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.fn-service-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fn-service-items li { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; text-transform: uppercase; display: flex; gap: 8px; }
.fn-bullet { color: var(--accent); }
@media (min-width: 720px) { .fn-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fn-services-grid--4 { grid-template-columns: repeat(4, 1fr); } .fn-service { padding: 28px 22px; } }

/* ===== CASES ===== */
.fn-case-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fn-case-filters--media { margin-bottom: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--noir-700); }
.fn-filter--media { font-size: 11px; padding: 10px 18px; font-weight: 700; }
.fn-filter--media.is-active { background: var(--accent); color: var(--noir-1000); border-color: var(--accent); }
.fn-case-media-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(5,5,5,0.78); color: var(--accent); font-family: "Gilroy", monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 8px; border: 1px solid var(--accent); }
.fn-filter { background: transparent; border: 1px solid var(--noir-600); color: var(--fg-2); padding: 8px 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.fn-filter:hover { color: var(--fg-1); border-color: var(--fg-2); }
.fn-filter.is-active { background: var(--accent); color: var(--noir-1000); border-color: var(--accent); }
.fn-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; }
.fn-case { position: relative; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.fn-case:hover { transform: translateY(-3px); }
.fn-case-img { aspect-ratio: 1/1; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.fn-case-meta { padding: 8px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.fn-case-meta h3 { font-size: 13px; color: var(--fg-1); text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.15; }
.fn-case-meta .caption { font-size: 10px; letter-spacing: 0.08em; }
.fn-case-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.85) 100%); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); opacity: 0; transition: opacity .4s cubic-bezier(.2,.7,.2,1), backdrop-filter .4s; pointer-events: none; }
.fn-case:hover .fn-case-overlay { opacity: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fn-case-voir { position: absolute; left: 50%; bottom: 18%; transform: translate(-50%, 24px); padding: 8px 18px; background: var(--accent); color: var(--noir-1000); font-family: "Gilroy", "Candara", sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; z-index: 2; }
.fn-case:hover .fn-case-voir { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px)  { .fn-cases-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .fn-cases-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .fn-case--lg { grid-column: span 2; grid-row: span 2; }
  .fn-case--lg .fn-case-img { aspect-ratio: 1/1; }
  .fn-case--lg .fn-case-meta h3 { font-size: 18px; }
  .fn-case--lg .fn-case-voir { font-size: 12px; padding: 12px 26px; }
}

/* ===== RESULTS ===== */
.fn-results { padding: 56px 20px; background: var(--accent); color: var(--noir-1000); }
.fn-results .eyebrow { color: var(--noir-1000); }
.fn-results .display-m { color: var(--noir-1000); font-size: clamp(36px, 9vw, 64px); line-height: 0.98; letter-spacing: -0.015em; text-transform: uppercase; }
.fn-results-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.fn-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; border-top: 1px solid var(--noir-1000); padding-top: 24px; }
.fn-stat-n { font-family: var(--font-mono); font-weight: 500; font-size: clamp(32px, 8vw, 56px); line-height: 1; letter-spacing: -0.01em; color: var(--noir-1000); font-variant-numeric: tabular-nums; }
.fn-stat-label { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--noir-1000); margin-top: 6px; }
.fn-stat-sub { font-family: var(--font-mono); font-size: 10px; color: var(--noir-700); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
@media (min-width: 1024px) { .fn-results { padding: 96px 40px; } .fn-results-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; } .fn-stat-label { font-size: 14px; } }

/* ===== VALUES ===== */
.fn-values { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--noir-700); }
.fn-value { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--noir-700); }
.fn-value-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.fn-value h3 { font-size: clamp(20px, 5.5vw, 28px); text-transform: uppercase; letter-spacing: -0.005em; color: var(--fg-1); }
.fn-value p { font-size: 15px; color: var(--fg-2); line-height: 1.55; max-width: 520px; }
@media (min-width: 1024px) { .fn-value { grid-template-columns: 80px 1fr 2fr; gap: 28px; align-items: baseline; padding: 28px 0; } .fn-value h3 { font-size: clamp(22px, 2vw, 32px); } }

/* ===== CONTACT ===== */
.fn-contact { padding: 56px 20px; background: rgba(14, 13, 12, 0.55); backdrop-filter: blur(2px); }
.fn-contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.fn-contact-copy { display: flex; flex-direction: column; gap: 18px; }
.fn-contact-copy h2 { font-size: clamp(40px, 11vw, 64px); line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; color: var(--fg-1); }
.fn-contact-copy em.accent { font-style: normal; color: var(--accent); }
.fn-contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--noir-700); }
.fn-contact-meta div { display: flex; flex-direction: column; gap: 4px; }
.fn-contact-meta dt { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }
.fn-contact-meta dd { margin: 0; font-size: 14px; color: var(--fg-1); word-break: break-word; }
.fn-link, a.fn-link { color: var(--accent) !important; text-decoration: none; border-bottom: 1px solid var(--accent); transition: opacity .2s; }
.fn-link:hover, a.fn-link:hover { opacity: 0.75; }
.fn-app a:not(.fn-nav-link):not(.fn-brand):not(.fn-cta-mini):not(.fn-drawer-cta):not(.btn) { color: var(--accent); }

.fn-contact-qr { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--noir-700); }
.fn-qr-block { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--accent); width: fit-content; }
.fn-qr-img { width: 128px; height: 128px; object-fit: contain; display: block; mix-blend-mode: multiply; }
.fn-qr-block .fn-qr-cap .caption { color: var(--noir-1000) !important; }
.fn-qr-cap { display: flex; flex-direction: column; gap: 2px; }
.fn-qr-cap .caption { color: var(--noir-1000); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.fn-contact-form { background: var(--noir-1000); border: 1px solid var(--noir-700); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.fn-field { display: flex; flex-direction: column; gap: 6px; }
.fn-field label { color: var(--fg-3); }
.fn-field input, .fn-field textarea { background: transparent; border: none; border-bottom: 1px solid var(--noir-600); padding: 12px 0; color: var(--fg-1); font-family: var(--font-sans); font-size: 16px; outline: none; min-height: 44px; }
.fn-field input:focus, .fn-field textarea:focus { border-color: var(--accent); }
.fn-contact-form .btn { width: 100%; }
.fn-contact-sent { padding: 16px 0; }
.fn-contact-sent h3 { font-size: 26px; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.fn-contact-sent p { color: var(--fg-2); margin-top: 12px; }
@media (min-width: 1024px) {
  .fn-contact { padding: 96px 40px; }
  .fn-contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .fn-contact-form { padding: 32px; gap: 22px; }
  .fn-contact-form .btn { width: auto; align-self: flex-start; }
}

/* ===== FOOTER ===== */
.fn-footer { padding: 40px 20px 24px; background: rgba(5, 5, 5, 0.75); backdrop-filter: blur(2px); border-top: 1px solid var(--noir-700); }
.fn-footer-top { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid var(--noir-700); }
.fn-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }
.fn-footer-cols .caption { color: var(--accent); display: block; margin-bottom: 12px; }
.fn-footer-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fn-footer-cols li { font-family: var(--font-sans); font-size: 13px; color: var(--fg-1); transition: color .2s; cursor: pointer; }
.fn-footer-cols li:hover { color: var(--accent); }
.fn-footer-link { color: var(--fg-1) !important; text-decoration: none; transition: color .2s; cursor: pointer; }
.fn-footer-link:hover { color: var(--accent) !important; }
.fn-footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--noir-700); }
@media (min-width: 720px) { .fn-footer-cols { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .fn-footer { padding: 64px 40px 32px; } .fn-footer-top { flex-direction: row; gap: 80px; padding-bottom: 48px; } .fn-footer-bottom { flex-direction: row; justify-content: space-between; padding-top: 24px; } }

/* (modal removed — case-study cards now navigate to ../case-study/index.html) */

/* ===== MENTIONS PAGE ===== */
.fn-mentions { min-height: 100vh; background: rgba(5, 5, 5, 0.55); color: var(--fg-1); animation: fnPageIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes fnPageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fn-mentions-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(5,5,5,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--noir-700); }
.fn-mentions-back { background: transparent; border: 1px solid var(--noir-600); color: var(--fg-1); padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.fn-mentions-back:hover { border-color: var(--accent); color: var(--accent); }
.fn-mentions-body { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; display: flex; flex-direction: column; gap: 24px; }
.fn-mentions-body h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; margin: 8px 0 16px; }
.fn-mentions-body h2 { font-size: 18px; text-transform: uppercase; color: var(--accent); letter-spacing: 0.04em; margin: 0 0 8px; }
.fn-mentions-body p { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.fn-mentions-body section { padding-top: 20px; border-top: 1px solid var(--noir-700); }
.fn-mentions-foot { margin-top: 24px; }
@media (min-width: 1024px) { .fn-mentions-head { padding: 18px 40px; } .fn-mentions-body { padding: 80px 40px 120px; } }

/* ===== CUSTOM CURSOR (desktop only) — hotspot on tip ===== */
.fn-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* Hide native OS cursor on every element + pseudo + form control.
     The double-cursor bug we hit before was caused by form/button inline
     `cursor: pointer/text` rules — those need !important to defeat. */
  html.fn-has-cursor,
  html.fn-has-cursor body,
  html.fn-has-cursor *,
  html.fn-has-cursor *::before,
  html.fn-has-cursor *::after,
  html.fn-has-cursor a,
  html.fn-has-cursor a:hover,
  html.fn-has-cursor button,
  html.fn-has-cursor button:hover,
  html.fn-has-cursor input,
  html.fn-has-cursor input:hover,
  html.fn-has-cursor input:focus,
  html.fn-has-cursor textarea,
  html.fn-has-cursor textarea:focus,
  html.fn-has-cursor select,
  html.fn-has-cursor label { cursor: none !important; }
  /* Hide the caret too — it's part of the "second cursor" feel */
  html.fn-has-cursor input,
  html.fn-has-cursor textarea { caret-color: var(--accent); }
  .fn-cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 30px; height: 38px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
  }
  .fn-cursor::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 80px; height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
      rgba(248,209,52,0.12) 0%,
      rgba(248,209,52,0.05) 40%,
      rgba(248,209,52,0) 70%);
    pointer-events: none;
    z-index: -1;
    transition: opacity .2s, width .2s, height .2s, background .2s;
  }
  .fn-cursor img {
    position: relative;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.65));
    transition: transform .2s cubic-bezier(.2,.7,.2,1), filter .2s;
    transform-origin: 0 0;
    z-index: 1;
  }
  .fn-cursor.is-link img { transform: scale(1.22); filter: drop-shadow(0 3px 10px rgba(248,209,52,0.9)); }
  .fn-cursor.is-link::before {
    width: 112px; height: 112px;
    background: radial-gradient(circle,
      rgba(248,209,52,0.22) 0%,
      rgba(248,209,52,0.08) 45%,
      rgba(248,209,52,0) 75%);
  }
  .fn-cursor.is-down img { transform: scale(0.86); }
}

/* ===== INTRO SEQUENCE — 4 actes ===== */
.fn-intro { position: fixed; inset: 0; z-index: 9500; background: var(--noir-1000); overflow: hidden; opacity: 1; transition: opacity .8s cubic-bezier(.2,.7,.2,1); }
.fn-intro.is-exiting { opacity: 0; pointer-events: none; }

/* Intro minimaliste — juste le logo qui apparaît, puis fade out */
.fn-intro--minimal {
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fn-intro--minimal.is-exiting { transition: opacity .6s cubic-bezier(.2,.7,.2,1); }
.fn-intro-logo {
  width: clamp(56px, 7vw, 92px);
  height: clamp(56px, 7vw, 92px);
  display: grid;
  place-items: center;
  animation: fnIntroIn 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.fn-intro-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes fnIntroIn {
  0%   { opacity: 0; transform: scale(.88); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0);       transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.fn-act { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.2s cubic-bezier(.4,0,.2,1); display: flex; align-items: center; justify-content: center; }
.fn-act--video { transition: opacity 1.6s cubic-bezier(.4,0,.2,1); }
.fn-intro.phase-0 .fn-act--logo,
.fn-intro.phase-1 .fn-act--video,
.fn-intro.phase-2 .fn-act--motion { opacity: 1; pointer-events: auto; }

/* === ACT 1 — Logo === */
.fn-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.fn-logo-mark { width: clamp(160px, 24vw, 260px); height: clamp(160px, 24vw, 260px); object-fit: cover; opacity: 0; transform: scale(0.86); }
.fn-intro.phase-0 .fn-logo-mark { animation: fnLogoIn 1s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes fnLogoIn { 0% { opacity: 0; transform: scale(0.86); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
.fn-logo-cap { font-family: "Gilroy", "Candara", sans-serif; font-weight: 700; font-size: clamp(13px, 1.5vw, 17px); letter-spacing: 0.5em; color: var(--fg-1); text-transform: uppercase; opacity: 0; clip-path: inset(0 100% 0 0); padding-left: 0.5em; }
.fn-intro.phase-0 .fn-logo-cap { animation: fnCapDraw 1.1s cubic-bezier(.4,0,.2,1) .85s forwards; }
@keyframes fnCapDraw { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }

/* === ACT 2 — Vidéo + overlay === */
.fn-act--video { background: #000; }
.fn-act-video, .fn-act-video-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fn-act-video-fallback { background: radial-gradient(120% 90% at 30% 50%, #2a2620 0%, #0a0a0a 60%, #050505 100%); z-index: 0; }
.fn-act-video { z-index: 1; object-fit: cover; }
/* size iframe so vimeo background mode covers viewport — vimeo player scales to its parent */
.fn-act-video { transform: scale(1.6); transform-origin: center; }
.fn-act-video-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%); z-index: 2; }
.fn-act-overlay { position: relative; z-index: 3; max-width: min(1100px, 92vw); padding: 0 32px; display: flex; flex-direction: column; gap: 22px; opacity: 0; transform: translateY(14px); }
.fn-intro.phase-1 .fn-act-overlay { animation: fnOverlayIn .8s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes fnOverlayIn { to { opacity: 1; transform: translateY(0); } }
.fn-overlay-eyebrow { color: var(--accent); font-family: "Gilroy", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; }
.fn-overlay-title { font-family: "Le Murmure", "Times New Roman", serif; font-weight: 400; font-size: clamp(40px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.01em; color: #f6efe0; margin: 0; }
.fn-overlay-title span { display: block; }
.fn-overlay-title em { font-style: italic; color: var(--accent); }
.fn-overlay-meta { display: flex; gap: 14px; align-items: center; font-family: "Gilroy", sans-serif; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,239,224,0.7); }
.fn-meta-dot { color: var(--accent); }

/* === ACT 3 — Motion === */
.fn-act--motion { background: #050505; }
.fn-motion-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fn-motion { width: min(52vw, 520px); height: auto; max-height: 56vh; }
.fn-motion-outro { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; align-items: center; justify-content: center; opacity: 0; }
.fn-motion-outro .fn-logo-mark { width: clamp(140px, 20vw, 220px); height: clamp(140px, 20vw, 220px); opacity: 1; transform: scale(1); }
.fn-motion-outro .fn-logo-cap { opacity: 1; clip-path: none; }
.fn-intro.phase-2 .fn-motion-outro { animation: fnMotionOutro 1.4s cubic-bezier(.2,.7,.2,1) 5.2s forwards; }
@keyframes fnMotionOutro { 0% { opacity: 0; transform: scale(0.96); } 35%, 100% { opacity: 1; transform: scale(1); } }
.fn-motion-caption { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; font-family: "Gilroy", sans-serif; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246,239,224,0.75); }
.fn-motion-caption-line { width: 60px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.fn-intro.phase-2 .fn-motion-caption { animation: fnCapFade 1.0s ease 5.9s forwards; }
.fn-intro.phase-2 .fn-motion-caption-line { animation: fnLineGrow .7s cubic-bezier(.4,0,.2,1) 6.0s forwards; }
@keyframes fnCapFade { to { opacity: 1; } }
@keyframes fnLineGrow { to { transform: scaleX(1); } }

/* Motion sub-timeline. Each glyph: in 0.25s, hold ~0.9s, out 0.25s. Strokes draw via dasharray. */
.fn-mg { opacity: 0; transform-origin: center; }
.fn-mg path, .fn-mg line, .fn-mg rect, .fn-mg circle { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.fn-mg.fn-mg--fill { stroke-dasharray: 0; stroke-dashoffset: 0; }
.fn-intro.phase-2 .fn-mg--carrot   { animation: fnGlyph 1.0s ease 0.05s forwards; }
.fn-intro.phase-2 .fn-mg--toque    { animation: fnGlyph 0.8s ease 1.05s forwards; }
.fn-intro.phase-2 .fn-mg--bed      { animation: fnGlyph 0.8s ease 1.85s forwards; }
.fn-intro.phase-2 .fn-mg--plate    { animation: fnGlyph 0.8s ease 2.65s forwards; }
.fn-intro.phase-2 .fn-mg--bottle   { animation: fnGlyph 0.8s ease 3.45s forwards; }
.fn-intro.phase-2 .fn-mg--cocktail { animation: fnGlyph 0.8s ease 4.25s forwards; }
.fn-intro.phase-2 .fn-mg--carrot   path, .fn-intro.phase-2 .fn-mg--carrot   line { animation: fnStroke 0.45s ease 0.1s forwards; }
.fn-intro.phase-2 .fn-mg--toque    path, .fn-intro.phase-2 .fn-mg--toque    line, .fn-intro.phase-2 .fn-mg--toque    rect { animation: fnStroke 0.4s ease 1.1s forwards; }
.fn-intro.phase-2 .fn-mg--bed      path, .fn-intro.phase-2 .fn-mg--bed      line, .fn-intro.phase-2 .fn-mg--bed      rect { animation: fnStroke 0.4s ease 1.9s forwards; }
.fn-intro.phase-2 .fn-mg--plate    path, .fn-intro.phase-2 .fn-mg--plate    line, .fn-intro.phase-2 .fn-mg--plate    circle { animation: fnStroke 0.4s ease 2.7s forwards; }
.fn-intro.phase-2 .fn-mg--bottle   path, .fn-intro.phase-2 .fn-mg--bottle   line, .fn-intro.phase-2 .fn-mg--bottle   rect { animation: fnStroke 0.4s ease 3.5s forwards; }
.fn-intro.phase-2 .fn-mg--cocktail path, .fn-intro.phase-2 .fn-mg--cocktail line, .fn-intro.phase-2 .fn-mg--cocktail circle { animation: fnStroke 0.4s ease 4.3s forwards; }

/* knife chop motion */
.fn-mg--knife { transform-origin: 420px 100px; animation: fnChop 0.9s ease 0.15s forwards; }
@keyframes fnChop {
  0%   { transform: translate(-80px, -120px) rotate(-12deg); opacity: 0; }
  25%  { transform: translate(0, -40px) rotate(-6deg); opacity: 1; }
  55%  { transform: translate(0, 80px) rotate(8deg); }
  70%  { transform: translate(0, 60px) rotate(4deg); }
  100% { transform: translate(0, 80px) rotate(8deg); opacity: 1; }
}
.fn-mg--slice { stroke-dasharray: 80; stroke-dashoffset: 80; animation: fnStroke 0.2s ease 0.55s forwards; }

@keyframes fnGlyph {
  0%   { opacity: 0; transform: scale(0.92); }
  15%  { opacity: 1; transform: scale(1); }
  78%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
@keyframes fnStroke { to { stroke-dashoffset: 0; } }

/* Skip + progress */
.fn-intro-skip { position: absolute; right: 20px; bottom: 20px; padding: 12px 18px; min-height: 44px; background: var(--accent); color: var(--noir-1000); border: 1px solid var(--accent); font-family: "Gilroy", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; z-index: 10; }
.fn-intro-skip:hover { background: var(--saffron-600); border-color: var(--saffron-600); }
@media (min-width: 1024px) { .fn-intro-skip { right: 32px; bottom: 32px; padding: 14px 22px; font-size: 13px; } }
.fn-intro-progress { position: absolute; left: 20px; bottom: 28px; display: flex; gap: 8px; z-index: 10; }
.fn-intro-progress span { display: block; width: 32px; height: 2px; background: rgba(255,255,255,0.18); transition: background .3s ease; }
.fn-intro-progress span.is-on { background: var(--accent); }
@media (min-width: 1024px) { .fn-intro-progress { left: 32px; bottom: 40px; } .fn-intro-progress span { width: 44px; } }

/* ===== LOADING OVERLAY ===== */
.fn-loading { position: fixed; inset: 0; background: var(--noir-1000); z-index: 9000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fn-loading.is-on { opacity: 1; pointer-events: auto; }
.fn-loading-logo { position: relative; width: 120px; height: 120px; overflow: hidden; }
.fn-loading-logo img { width: 100%; height: 100%; object-fit: cover; }
.fn-loading-logo .fn-loading-mask { position: absolute; inset: 0; background: var(--noir-1000); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); animation: fnPaintOut 1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes fnPaintOut {
  0% { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); }
  100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}
.fn-loading.is-on .fn-loading-logo .fn-loading-mask { animation: fnPaintIn 1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes fnPaintIn {
  0% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
  100% { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); }
}

/* ===========================================================================
   DESERT DUNES — ambient background with scroll-driven wind
   --wind (0..1)  : tied to scroll position, drives drift / blur / haze
   --gust         : drift speed multiplier, ramps with --wind
   =========================================================================== */
:root {
  --wind: 0;
  --gust: 1;
  --dunes-opacity: 0.65;  /* always visible by default, scroll-JS may bump up */
}

.fn-bg-dunes {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--dunes-opacity, 0);
  transition: opacity 240ms cubic-bezier(.4, 0, .2, 1);
}

/* Two parallax layers — a deeper one farther back, a closer one in front.
   They both stretch a bit beyond the viewport so the skew/translate stays edge-clean. */
.fn-bg-dunes__far,
.fn-bg-dunes__near {
  position: absolute;
  inset: -8% -8% -8% -8%;
  background-image: url('assets/desert-dunes.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  will-change: transform, filter;
  transition: filter 600ms linear;
}
/* Softer rendering: more blur, lower brightness, gentler transforms */
.fn-bg-dunes__far {
  filter:
    brightness(calc(0.42 + var(--wind, 0) * 0.18))
    saturate(calc(0.7 + var(--wind, 0) * 0.18))
    blur(3px);
  transform:
    scale(1.08)
    translateX(calc(var(--wind, 0) * -28px))
    skewX(calc(var(--wind, 0) * -0.7deg));
  opacity: 0.85;
}
.fn-bg-dunes__near {
  inset: 35% -8% -8% -8%;
  filter:
    brightness(calc(0.34 + var(--wind, 0) * 0.16))
    saturate(calc(0.65 + var(--wind, 0) * 0.15))
    blur(1.5px);
  transform:
    scale(1.04)
    translateY(calc(var(--wind, 0) * -24px))
    translateX(calc(var(--wind, 0) * -42px))
    skewX(calc(var(--wind, 0) * -0.5deg));
  mix-blend-mode: normal;
  opacity: 0.78;
}

/* Saffron sand specks drifting horizontally, faster when scrolling */
.fn-bg-dunes__sand {
  position: absolute;
  inset: 30% 0 0 0;
  background-image:
    radial-gradient(circle at 12% 32%, rgba(248,209,52,0.22) 0, transparent 1.5px),
    radial-gradient(circle at 78% 50%, rgba(248,209,52,0.14) 0, transparent 1px),
    radial-gradient(circle at 48% 80%, rgba(248,209,52,0.18) 0, transparent 1.5px),
    radial-gradient(circle at 32% 18%, rgba(248,209,52,0.12) 0, transparent 1px),
    radial-gradient(circle at 88% 92%, rgba(248,209,52,0.16) 0, transparent 1.2px);
  background-size: 260px 260px, 200px 200px, 340px 340px, 220px 220px, 180px 180px;
  mix-blend-mode: screen;
  opacity: calc(0.4 + var(--wind, 0) * 0.5);
  animation: fnSandDrift calc(18s / max(0.4, var(--gust))) linear infinite;
}
@keyframes fnSandDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: -260px 4px, -200px -3px, -340px 2px, -220px -2px, -180px 1px; }
}

/* Horizontal wind streaks — appear only when scrolling */
.fn-bg-dunes__streaks {
  position: absolute;
  inset: 25% 0 10% 0;
  background:
    repeating-linear-gradient(
      88deg,
      transparent 0 60px,
      rgba(248, 209, 52, 0.04) 60px 62px,
      transparent 62px 140px
    );
  mix-blend-mode: screen;
  opacity: calc(var(--wind, 0) * 0.7);
  transform: translateX(calc(var(--wind, 0) * -120px));
  transition: transform 200ms linear;
}

/* Dark vignette — soft, lets dunes breathe but keeps text readable. */
.fn-bg-dunes__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(5,5,5,0.18) 75%),
    linear-gradient(to bottom,
      rgba(5,5,5,0.22) 0%,
      rgba(5,5,5,0.40) 50%,
      rgba(5,5,5,0.70) 100%);
}

