/* SANCTUAIRE-V1 — pierre, lin, ellipse au scroll */

:root {

  --ink-rgb: 26, 30, 32;

  --bg: #eceae6;

  --ink: #1a1e20;

  --muted: #6b7378;

  --surface: #f4f2ee;

  --line: rgba(var(--ink-rgb), 0.1);

  --accent: #f2b880;

  --accent-ink: #1a1915;

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;

  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(24px, 5vw, 72px);

  --t-xl: clamp(40px, 7.5vw, 108px);

  --t-l: clamp(28px, 3.8vw, 56px);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --orb-scale: 1.15;

  --orb-close: 0;

  --orb-ry: 0.86;

}



html[data-theme="dark"] {

  --ink-rgb: 236, 234, 230;

  --bg: #141618;

  --ink: #eceae6;

  --muted: #8a9296;

  --surface: #1c2022;

  --line: rgba(var(--ink-rgb), 0.12);

  --accent: #7a9a8c;

  --accent-ink: #141618;

}



*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

  background: var(--bg);

  color: var(--ink);

  font-family: var(--sans);

  font-size: 18px;

  line-height: 1.45;

  -webkit-font-smoothing: antialiased;

  overflow-x: clip;

}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ol, ul { list-style: none; }

h1, h2, h3 { font-weight: 400; }

mark { background: none; color: inherit; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }

.skip:focus { left: 12px; }



.si-loader {

  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column;

  align-items: center; justify-content: center; gap: 22px; background: var(--bg);

  transition: clip-path 1s var(--ease-inout); clip-path: inset(0 0 0 0);

}

.si-loader p { font-size: 18px; letter-spacing: -0.02em; }

.si-loader span { width: 80px; height: 1px; background: var(--line); overflow: hidden; }

.si-loader i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }

.si-loader.run i { transform: scaleX(1); }

.si-loader.out { clip-path: inset(0 0 100% 0); }



.scene { position: relative; height: calc(var(--len, 2) * 100vh); }

.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

.rv.in { opacity: 1; transform: none; }



/* —— Ellipse motif (fixed) —— */

.sa-orb-layer {

  position: fixed;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  display: grid;

  place-items: center;

  mix-blend-mode: multiply;

}

html[data-theme="dark"] .sa-orb-layer { mix-blend-mode: soft-light; }

.sa-orb-svg {

  width: min(130vmax, 1100px);

  height: min(130vmax, 1100px);

  transform: scale(var(--orb-scale, 1)) scaleY(var(--orb-ry, 0.86));

  transition: transform 0.08s linear;

  overflow: visible;

}

.sa-orb-ring {

  fill: none;

  stroke: color-mix(in srgb, var(--accent) 55%, var(--ink));

  stroke-width: 1.2;

  vector-effect: non-scaling-stroke;

  opacity: calc(0.25 + (1 - var(--orb-close, 0)) * 0.45);

}

.sa-orb.veil {

  fill: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);

  opacity: var(--orb-close, 0);

  transform-origin: 100px 100px;

  transform: scale(calc(0.15 + var(--orb-close, 0) * 0.85));

  transition: opacity 0.12s linear, transform 0.12s linear;

}



.sa-bar {

  position: fixed; top: 0; left: 0; right: 0; z-index: 100;

  display: flex; align-items: center; justify-content: space-between; gap: 20px;

  padding: 20px var(--gutter);

  transform: translateY(-100%);

  transition: transform .7s var(--ease-out), background .4s;

}

body.is-ready .sa-bar { transform: none; }

body.is-scrolled .sa-bar { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); }

.sa-wordmark { font-size: 17px; font-weight: 450; letter-spacing: -0.02em; }

.sa-nav { display: flex; gap: 32px; }

.sa-cta {

  border: 1px solid var(--line);

  padding: 10px 18px;

  border-radius: 999px;

  transition: background .35s, color .35s, border-color .35s;

}

.sa-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }



#app { position: relative; z-index: 2; }



.sa-hero .sticky {

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  min-height: 100svh;

  padding: 0 var(--gutter) 12vh;

  background: var(--bg);

}

.sa-hero-media {

  position: absolute;

  inset: 18% 15% auto;

  max-height: 42vh;

  overflow: hidden;

  opacity: 0.92;

  z-index: 0;

}

.sa-hero-media img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  filter: grayscale(0.06) contrast(1.04) saturate(0.95);

  transform: scale(1.04);

}

.sa-hero-copy {

  position: relative;

  z-index: 2;

  max-width: 20ch;

  margin-left: auto;

  margin-right: clamp(0px, 8vw, 120px);

  padding-top: 28vh;

}

.sa-title {

  font-size: var(--t-xl);

  line-height: 0.98;

  letter-spacing: -0.045em;

  margin: 24px 0 20px;

}

.sa-title span { display: block; }

.sa-title em {
  font-style: normal;
  color: color-mix(in srgb, var(--accent) 72%, #1c1612 28%);
}

body:not(.static) .sa-title span {

  opacity: 0;

  transform: translateY(28%);

  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);

}

body.is-ready .sa-title span { opacity: 1; transform: none; }

body.is-ready .sa-title span:nth-child(2) { transition-delay: .12s; }

.sa-pos { color: var(--muted); max-width: 26ch; font-size: 16px; }



.sa-manifesto .sticky {

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0 var(--gutter);

  background: transparent;

}

.sa-man-text {

  font-size: clamp(26px, 3.8vw, 48px);

  letter-spacing: -0.035em;

  line-height: 1.22;

  max-width: 14ch;

  text-align: center;

}

.sa-mark { color: var(--accent); }



.sa-proof {

  padding: 20vh var(--gutter) 14vh;

  background: var(--surface);

}

.sa-head { margin-bottom: 56px; max-width: 36ch; }

.sa-head .mono { margin-bottom: 12px; }

.sa-h2 { font-size: var(--t-l); letter-spacing: -0.04em; margin: 8px 0 16px; }

.sa-sub { color: var(--muted); max-width: 34ch; margin-bottom: 12px; }

.sa-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: clamp(20px, 3vw, 36px);

}

.sa-card-img {

  overflow: hidden;

  aspect-ratio: 4/5;

  background: var(--bg);

}

.sa-card:nth-child(3n) .sa-card-img { aspect-ratio: 5/4; }

.sa-card-img img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  filter: grayscale(0.2);

  transition: transform 1.2s var(--ease-out), filter .6s;

}

.sa-card:hover img { transform: scale(1.03); filter: grayscale(0); }

.sa-card figcaption {

  display: flex;

  justify-content: space-between;

  gap: 12px;

  padding: 14px 0 0;

  font-size: 14px;

}

.sa-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 20px; }

.sa-big { grid-column: span 2; }

.sa-tall { grid-row: span 2; }

.sa-tile { background: var(--bg); border: 1px solid var(--line); }

.sa-tile-img { aspect-ratio: 3/2; overflow: hidden; }

.sa-tall .sa-tile-img { aspect-ratio: 3/4; height: calc(100% - 72px); }

.sa-tile-img img { width: 100%; height: 100%; object-fit: cover; }

.sa-tile figcaption { padding: 14px; display: flex; flex-direction: column; gap: 6px; }



.sa-motto .sticky {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 0 var(--gutter);

  background: var(--bg);

}

.sa-words { display: grid; gap: 40px; margin-top: 48px; max-width: 28rem; }

.sa-mw { opacity: 0.18; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }

.sa-mw.on { opacity: 1; transform: none; }

.sa-mw-word { font-size: clamp(36px, 5.5vw, 72px); letter-spacing: -0.045em; line-height: 1; }

.sa-mw-hint { margin-top: 10px; max-width: 32ch; line-height: 1.5; }



.sa-intro { padding: 18vh var(--gutter) 8vh; }

.sa-intro-line { font-size: var(--t-l); letter-spacing: -0.04em; margin-bottom: 40px; max-width: 14ch; }

.sa-accent { color: var(--accent); }

.sa-band { overflow: hidden; max-height: 38vh; opacity: 0.85; }

.sa-band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); }



.sa-steps .sticky {

  padding: 14vh var(--gutter);

  background: var(--surface);

  display: flex;

  flex-direction: column;

  justify-content: center;

}

.sa-step-list { position: relative; min-height: 32vh; max-width: 26rem; }

.sa-step {

  position: absolute;

  inset: 0 auto auto 0;

  opacity: 0;

  visibility: hidden;

  max-width: 26rem;

}

.sa-step h3 { font-size: clamp(32px, 4.5vw, 58px); letter-spacing: -0.04em; margin: 10px 0 14px; }

.sa-step p { color: var(--muted); max-width: 30ch; font-size: 16px; }

.sa-step-rail { height: 1px; background: var(--line); margin-top: 56px; max-width: 12rem; overflow: hidden; }

.sa-step-rail i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.sa-step-cta {

  display: inline-flex;

  margin-top: 28px;

  padding: 12px 20px;

  border-radius: 999px;

  border: 1px solid var(--line);

  opacity: 0;

  pointer-events: none;

}



.sa-quote {

  padding: 18vh var(--gutter);

  border-top: 1px solid var(--line);

  background: var(--bg);

}

.sa-q { font-size: clamp(24px, 3.2vw, 42px); letter-spacing: -0.035em; max-width: 18ch; margin-bottom: 32px; line-height: 1.2; }

.sa-sign { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: baseline; }

.sa-fig { font-size: clamp(40px, 5.5vw, 76px); letter-spacing: -0.04em; color: var(--accent); line-height: 1; }

.sa-fig-unit { font-size: .32em; color: var(--muted); margin-left: .12em; }



.sa-obj .sticky {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 0 var(--gutter);

  min-height: 100svh;

}

.sa-obj-list { display: grid; gap: 20px; margin-bottom: 40px; max-width: 28rem; }

.sa-obj-list li { font-size: clamp(20px, 2.8vw, 34px); letter-spacing: -0.03em; opacity: 0; transform: translateY(10px); }

.sa-finale { font-size: clamp(26px, 3.6vw, 48px); letter-spacing: -0.035em; opacity: 0; max-width: 16ch; }

.sa-pill {

  display: inline-block;

  padding: .06em .4em;

  background: var(--accent);

  color: var(--accent-ink);

  border-radius: 999px;

  font-size: 0.92em;

}



.sa-footer {

  padding: 16vh var(--gutter) 48px;

  border-top: 1px solid var(--line);

  background: var(--surface);

}

.sa-mail {

  display: inline-block;

  margin: 18px 0;

  font-size: clamp(26px, 4.5vw, 56px);

  letter-spacing: -0.04em;

  border-bottom: 1px solid var(--line);

  transition: border-color .35s, color .35s;

}

.sa-mail:hover { border-color: var(--accent); color: var(--accent); }

.sa-book {

  display: inline-flex;

  margin: 24px 0 40px;

  padding: 12px 20px;

  border-radius: 999px;

  background: var(--accent);

  color: var(--accent-ink);

}

.sa-giant {

  font-size: clamp(32px, 8vw, 100px);

  letter-spacing: -0.05em;

  color: color-mix(in srgb, var(--ink) 10%, transparent);

  margin: 8vh 0;

  white-space: nowrap;

  overflow: hidden;

}

.sa-bottom {

  display: flex;

  flex-wrap: wrap;

  gap: 14px 32px;

  justify-content: space-between;

  border-top: 1px solid var(--line);

  padding-top: 24px;

}

.sa-bottom a { margin-right: 14px; }



@media (max-width: 960px) {

  .sa-nav { display: none; }

  .sa-hero-copy { margin-right: 0; max-width: none; }

  .sa-hero-media { inset: 12% 8% auto; max-height: 36vh; }

  .sa-grid, .sa-bento { grid-template-columns: 1fr 1fr; }

  .sa-big, .sa-tall { grid-column: span 1; grid-row: span 1; }

}

@media (max-width: 520px) {

  .sa-grid, .sa-bento { grid-template-columns: 1fr; }

}



body.static .sa-orb-svg { transform: scale(1) scaleY(0.86); }

body.static .sa-orb.veil { opacity: 0.35; transform: scale(0.6); }

body.static .sa-mw, body.static .sa-obj-list li, body.static .sa-finale, body.static .sa-step-cta { opacity: 1; transform: none; pointer-events: auto; }

body.static .sa-step { position: relative; opacity: 1; visibility: visible; margin-bottom: 28px; }

body.static .sa-step-rail i { transform: none; }

body.static .sa-orb-layer { mix-blend-mode: normal; }


