/* giboul.com — the showcase, in Giboul's Nacre identity.
   Structure after acquit-balance.com; black, pearl white, Instrument Serif for
   headlines, Geist for reading, and each chapter in its mineral from the app. */

@font-face { font-family: Giboul Serif; src: url('/fonts/nacre/InstrumentSerif-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Giboul Serif; src: url('/fonts/nacre/InstrumentSerif-Italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: Giboul Sans; src: url('/fonts/nacre/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Giboul Sans; src: url('/fonts/nacre/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Giboul Sans; src: url('/fonts/nacre/Geist-SemiBold.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:is(#giboul-vitrine, .gv-site) {
  --paper: #040404;
  --band: #0a1210;
  --ink: #f2f1ee;
  --quiet: #b5b3af;
  --dim: #a3a19d;
  --line: #ffffff1a;
  --jade: #a1dcca;
  --apricot: #efb692;
  --glacier: #a6d7f5;
  --rose: #e2b1bd;
  --lavender: #c7baf1;
  --pearl: linear-gradient(145deg, #fff, #e6e5e3 45%, #fdfcf9 70%, #d1d0ce);
  --serif: Giboul Serif, 'Instrument Serif', Georgia, serif;
  --sans: Giboul Sans, 'Geist', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:is(#giboul-vitrine, .gv-site) *, :is(#giboul-vitrine, .gv-site) *::before, :is(#giboul-vitrine, .gv-site) *::after { box-sizing: border-box; }
:where(:is(#giboul-vitrine, .gv-site)) :where(h1, h2, p, figure, dl, dd) { margin: 0; }
:is(#giboul-vitrine, .gv-site) a { color: inherit; }
:is(#giboul-vitrine, .gv-site) :where(a, summary):focus-visible { outline: 2px solid var(--lavender); outline-offset: 5px; border-radius: 4px; }
:is(#giboul-vitrine, .gv-site) section[id] { scroll-margin-top: 24px; }
:is(#giboul-vitrine, .gv-site) :where(h1, h2) { font: 400 clamp(2.9rem, 5.6vw, 6rem)/.95 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
:is(#giboul-vitrine, .gv-site) :where(h1, h2) em { color: var(--jade); }
:is(#giboul-vitrine, .gv-site) [data-tone='apricot'] { --tone: var(--apricot); }
:is(#giboul-vitrine, .gv-site) [data-tone='glacier'] { --tone: var(--glacier); }
:is(#giboul-vitrine, .gv-site) [data-tone='rose'] { --tone: var(--rose); }
.gv-wrap { width: min(100% - 96px, 1264px); margin-inline: auto; }
.gv-label { font: 500 .8125rem/1.4 var(--sans); color: var(--jade); }

/* ── Header ── */
.gv-header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.gv-skip { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 8px 16px; background: var(--ink); color: var(--paper) !important; border-radius: 8px; transform: translateY(-160%); }
.gv-skip:focus { transform: none; }
.gv-wordmark { width: fit-content; font: 400 2.6rem/1 var(--serif); letter-spacing: -.045em; text-decoration: none; }
.gv-wordmark span { color: var(--jade); }
.gv-nav, .gv-header-actions, .gv-actions, .gv-languages { display: flex; align-items: center; }
.gv-nav { gap: 30px; }
.gv-header-actions { gap: 22px; justify-self: end; }
.gv-languages { gap: 14px; }
.gv-nav a, .gv-languages a { padding-block: 12px; color: var(--quiet); font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .18s ease; }
.gv-nav a:hover, .gv-languages a:hover { color: var(--ink); }

:is(#giboul-vitrine, .gv-site) .gv-store {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
  width: fit-content; min-height: 52px; padding: .75rem 1.05rem .75rem 1.25rem;
  border-radius: 999px; background: var(--pearl); color: #171715;
  font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  box-shadow: inset 0 1px 0 #fff, 0 6px 24px #0007;
  transition: transform .18s ease, box-shadow .18s ease;
}
:is(#giboul-vitrine, .gv-site) .gv-store:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 30px #000a, 0 0 0 4px #ffffff12; }
:is(#giboul-vitrine, .gv-site) .gv-store:active { transform: scale(.98); }
:is(#giboul-vitrine, .gv-site) .gv-store--small { min-height: 42px; padding: .55rem .85rem .55rem 1rem; font-size: .85rem; }
.gv-store span, .gv-text-link span { display: inline-block; transition: transform .21s cubic-bezier(.2,.72,.27,1); }
.gv-store:hover span, .gv-text-link:hover span { transform: translate(2px, -2px); }
.gv-text-link {
  display: inline-flex; align-items: center; gap: .5em; width: fit-content; min-height: 44px;
  color: var(--ink); font-size: .95rem; font-weight: 500;
  text-decoration: underline; text-decoration-color: #ffffff4d; text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: text-decoration-color .18s ease;
}
.gv-text-link:hover { text-decoration-color: var(--ink); }

/* ── Hero ── */
.gv-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 4vw, 72px); align-items: center; padding-block: 56px 72px; }
.gv-hero-copy .gv-label { margin-bottom: 20px; }
:is(#giboul-vitrine, .gv-site) .gv-hero h1 { font-size: clamp(4rem, 8.6vw, 9.25rem); line-height: .88; letter-spacing: -.035em; }
:is(#giboul-vitrine, .gv-site) .gv-intro { max-width: 34ch; color: var(--quiet); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.gv-hero .gv-intro { margin-top: 28px; }
.gv-actions { flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.gv-devices { margin-top: 16px; color: var(--dim); font-size: .85rem; }
.gv-hero-figure figcaption, .gv-tour-figure figcaption { margin-top: 12px; color: var(--dim); font-size: .78rem; text-align: right; }
.gv-hero-art {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.06; min-height: 430px;
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 18%, #a1dcca2e, transparent 70%),
    radial-gradient(60% 50% at 80% 100%, #a6d7f51a, transparent 70%),
    #0b100f;
}
.gv-art-caption { position: absolute; inset: 22px auto auto 24px; z-index: 1; display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: .8rem; font-weight: 500; }
.gv-art-caption span { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); }
.gv-phone {
  position: absolute; overflow: hidden; padding: 7px;
  border: 1px solid #ffffff2e; border-radius: clamp(26px, 3.2vw, 46px);
  background: #0a0a0a;
  box-shadow: 0 30px 80px #000c, inset 0 0 0 2px #ffffff10;
}
.gv-phone img { display: block; width: 100%; height: auto; border-radius: max(19px, calc(clamp(26px, 3.2vw, 46px) - 7px)); background: #050505; }
.gv-hero-art .gv-phone { width: 50%; left: 25%; top: 12%; rotate: -4deg; }

/* ── Tour ── */
.gv-tour { padding-block: clamp(72px, 9vw, 132px); background: var(--band); border-block: 1px solid var(--line); }
.gv-section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 68px); }
.gv-section-heading p { max-width: 38ch; padding-bottom: 6px; color: var(--quiet); font-size: 1.1rem; }
.gv-tour-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(32px, 6vw, 108px); }
.gv-chapter { border-top: 1px solid var(--line); }
.gv-chapter:last-child { border-bottom: 1px solid var(--line); }
.gv-chapter summary, .gv-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; }
:is(#giboul-vitrine, .gv-site) summary::-webkit-details-marker { display: none; }
.gv-chapter .gv-label { display: block; margin-bottom: 8px; color: var(--tone); }
.gv-chapter-title { display: block; font: 400 clamp(1.9rem, 3vw, 3rem)/1 var(--serif); letter-spacing: -.02em; }
.gv-chapter p { max-width: 40ch; color: var(--quiet); }
.gv-chapter .gv-text-link { margin-block: 6px 14px; }
.gv-plus { position: relative; flex: 0 0 auto; width: 22px; height: 22px; color: var(--dim); }
.gv-plus::before, .gv-plus::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 1.5px; border-radius: 1px; background: currentColor; }
.gv-plus::after { rotate: 90deg; transition: rotate .21s ease; }
details[open] > summary .gv-plus::after { rotate: 0deg; }
.gv-tour-art { position: relative; overflow: hidden; aspect-ratio: 1.36; border: 1px solid var(--line); border-radius: 28px; background: #0b0b0b; }
.gv-slide {
  position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden;
  background: radial-gradient(70% 70% at 50% 10%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 72%), #0b0b0b;
  transition: opacity .46s ease, visibility .46s;
}
.gv-slide--modeles { z-index: 1; opacity: 1; visibility: visible; }
.gv-slide--radar { z-index: 2; }
.gv-slide--archives { z-index: 3; }
.gv-tour-grid:is([data-active='radar'], :has([data-topic='radar'][open])) .gv-slide--radar,
.gv-tour-grid:is([data-active='archives'], :has([data-topic='archives'][open])) .gv-slide--archives { opacity: 1; visibility: visible; }
.gv-tour-grid:is([data-active='radar'], [data-active='archives'], :has([data-topic='radar'][open], [data-topic='archives'][open])) .gv-slide--modeles { opacity: 0; visibility: hidden; }
.gv-slide .gv-phone { left: 30%; top: 8%; width: 40%; transform: translateY(14px); transition: transform .6s cubic-bezier(.2,.72,.27,1); }
.gv-slide--modeles .gv-phone,
.gv-tour-grid:is([data-active='radar'], :has([data-topic='radar'][open])) .gv-slide--radar .gv-phone,
.gv-tour-grid:is([data-active='archives'], :has([data-topic='archives'][open])) .gv-slide--archives .gv-phone { transform: none; }

/* ── Free, privacy, questions ── */
.gv-lower :where(.gv-free, .gv-trust, .gv-faq) { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(32px, 7vw, 115px); padding-block: clamp(56px, 7vw, 104px); }
.gv-lower :where(.gv-trust, .gv-faq) { border-top: 1px solid var(--line); }
.gv-lower :where(.gv-free, .gv-trust) p { max-width: 44ch; color: var(--quiet); }
.gv-free h2 + p { margin-top: 18px; }
.gv-facts { border-top: 1px solid var(--line); }
.gv-facts > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gv-facts dt { color: var(--quiet); font-size: 1rem; }
.gv-facts dd { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.01em; text-align: right; }
.gv-note { margin-top: 14px; color: var(--dim); font-size: .85rem; }
.gv-trust .gv-text-link { margin-top: 10px; }
.gv-questions details { border-top: 1px solid var(--line); }
.gv-questions details:last-child { border-bottom: 1px solid var(--line); }
.gv-questions summary { min-height: 56px; padding-block: 14px; font-weight: 500; }
.gv-questions details p { max-width: 58ch; padding-bottom: 20px; color: var(--quiet); }

/* ── Close and footer ── */
.gv-close { background: var(--band); border-block: 1px solid var(--line); }
.gv-close-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-block: clamp(68px, 8vw, 116px); text-align: center; }
.gv-close-inner img { border-radius: 16px; box-shadow: 0 12px 40px #000a, 0 0 0 1px #ffffff14; }
.gv-close-inner .gv-actions { justify-content: center; margin-top: 0; }
.gv-footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-block: 44px; }
.gv-footer-brand p { margin-top: 10px; color: var(--dim); font-size: .875rem; }
.gv-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px 24px; font-size: .9rem; }
.gv-footer nav a { padding-block: 9px; color: var(--quiet); text-decoration: none; }
.gv-footer nav a:hover { color: var(--ink); }
.gv-footer .gv-studio { color: var(--ink); }

/* ── Guides ── */
.gv-guide { padding-block: 34px 76px; }
.gv-guide .gv-label { color: var(--tone, var(--jade)); }
.gv-guide-heading { max-width: 820px; margin-block: 38px 54px; }
.gv-guide-heading .gv-label { margin-bottom: 18px; }
:is(#giboul-vitrine, .gv-site) .gv-guide-heading h1 { font-size: clamp(2.8rem, 5.4vw, 5.4rem); }
:is(#giboul-vitrine, .gv-site) .gv-guide-heading .gv-intro { max-width: 54ch; margin-top: 22px; }
.gv-guide-grid { display: grid; grid-template-columns: 1fr .62fr; align-items: start; gap: clamp(28px, 7vw, 96px); }
.gv-guide-body section { margin-bottom: 32px; }
:is(#giboul-vitrine, .gv-site) .gv-guide-grid h2 { font-size: clamp(1.85rem, 2.9vw, 2.7rem); line-height: 1.05; }
.gv-guide-body section p { max-width: 64ch; margin-top: 12px; color: var(--quiet); font-size: 1.05rem; line-height: 1.65; }
.gv-guide-product { padding-top: 28px; border-top: 1px solid var(--line); }
.gv-guide-source { color: var(--dim); font-size: .875rem; }
.gv-guide-source a { display: block; margin-top: 2px; color: var(--quiet); text-underline-offset: .22em; }
.gv-example { position: sticky; top: 24px; padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--tone, var(--jade)) 14%, transparent), transparent 70%), #0c0c0c; }
:is(#giboul-vitrine, .gv-site) .gv-example h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.gv-example dl { margin-top: 18px; }
.gv-example dl > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 11px; border-top: 1px solid var(--line); }
.gv-example dt { color: var(--quiet); }
.gv-example dd { text-align: right; }
.gv-example dl > div:last-child dd { color: var(--tone, var(--jade)); font-weight: 600; }
.gv-guide-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── Motion: one arrival, nothing in a loop ── */
@media (prefers-reduced-motion: no-preference) {
  html:has(#giboul-vitrine:not([hidden]), .gv-site) { scroll-behavior: smooth; }
  .gv-hero-art .gv-phone { animation: gv-arrive .95s cubic-bezier(.22,.75,.25,1) both; }
  .gv-hero-copy > * { animation: gv-rise .8s cubic-bezier(.22,.75,.25,1) both; }
  .gv-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .gv-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .gv-hero-copy > :nth-child(4), .gv-hero-copy > :nth-child(5) { animation-delay: .18s; }
  @keyframes gv-arrive { from { opacity: 0; transform: translateY(28px) rotate(3deg); } }
  @keyframes gv-rise { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  :is(:is(#giboul-vitrine, .gv-site), .gv-site) *, :is(:is(#giboul-vitrine, .gv-site), .gv-site) *::before, :is(:is(#giboul-vitrine, .gv-site), .gv-site) *::after { animation: none !important; transition: none !important; }
}

/* ── Smaller screens ── */
@media (max-width: 1090px) {
  .gv-wrap { width: calc(100% - 64px); }
  .gv-nav { gap: 22px; }
}
@media (max-width: 860px) {
  .gv-nav { display: none; }
  .gv-header-inner { display: flex; justify-content: space-between; gap: 12px; }
}
@media (max-width: 760px) {
  .gv-wrap { width: calc(100% - 40px); }
  .gv-header-inner { min-height: 68px; }
  .gv-wordmark { font-size: 2.3rem; }
  .gv-header-actions { gap: 14px; }
  .gv-languages { gap: 10px; }
  .gv-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 36px 48px; }
  :is(#giboul-vitrine, .gv-site) .gv-hero h1 { font-size: clamp(3.9rem, 17vw, 6.5rem); }
  .gv-hero .gv-intro { margin-top: 20px; }
  .gv-actions { margin-top: 22px; }
  .gv-hero-art { min-height: 0; aspect-ratio: .95; }
  .gv-hero-art .gv-phone { width: 58%; left: 21%; top: 14%; }
  .gv-art-caption { inset: 16px auto auto 18px; }
  .gv-section-heading, .gv-tour-grid, .gv-lower :where(.gv-free, .gv-trust, .gv-faq), .gv-guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .gv-tour-art { aspect-ratio: 1.05; }
  .gv-slide .gv-phone { width: 52%; left: 24%; top: 9%; }
  .gv-footer { flex-direction: column; align-items: start; gap: 18px; padding-block: 34px; }
  .gv-footer nav { justify-content: start; gap: 0 18px; }
  .gv-guide-heading { margin-block: 18px 32px; }
  .gv-example { position: static; grid-row: 1; }
}
@media (max-width: 380px) {
  .gv-wrap { width: calc(100% - 32px); }
  .gv-store--small { display: none !important; }
}

body { margin: 0; background: #040404; }

/* ── Legal and support pages: one reading column in the site's voice ── */
.gv-doc { padding-block: 48px 88px; }
.gv-prose { max-width: 68ch; }
.gv-prose > .gv-label { margin-bottom: 16px; }
:is(#giboul-vitrine, .gv-site) .gv-prose h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.gv-prose .gv-intro { margin-top: 18px; }
.gv-prose .gv-meta { margin-top: 14px; color: var(--dim); font-size: .875rem; }
:is(#giboul-vitrine, .gv-site) .gv-prose h2 { margin-top: 52px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.08; }
.gv-prose h3 { margin: 30px 0 0; font: 500 1.05rem/1.4 var(--sans); color: var(--ink); }
.gv-prose p, .gv-prose li { color: var(--quiet); font-size: 1.02rem; line-height: 1.7; }
.gv-prose p { margin: 14px 0 0; }
.gv-prose ul { margin: 14px 0 0; padding-left: 1.2em; }
.gv-prose li + li { margin-top: 6px; }
.gv-prose li::marker { color: var(--dim); }
.gv-prose strong { color: var(--ink); font-weight: 500; }
.gv-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: #ffffff4d; text-underline-offset: .25em; overflow-wrap: anywhere; }
.gv-prose a:hover { text-decoration-color: var(--ink); }
.gv-prose hr { margin: 48px 0 0; border: 0; border-top: 1px solid var(--line); }
.gv-prose table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .95rem; }
.gv-prose th, .gv-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--quiet); }
.gv-prose th { color: var(--ink); font-weight: 500; }
.gv-prose .gv-questions { margin-top: 18px; }
.gv-prose .gv-questions details p { margin-top: 0; }
.gv-contact { margin-top: 56px; padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(90% 80% at 0% 0%, #a1dcca1f, transparent 70%), #0c0c0c; }
:is(#giboul-vitrine, .gv-site) .gv-contact h2 { margin-top: 0; }
.gv-contact .gv-store { margin-top: 20px; }
