/* De Sousa Corporation — light, framed, editorial-tech. */
@property --s {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

:root {
  --outer: #dde3e6;
  --frame-a: #c5d3d8;
  --frame-b: #eef1f2;
  --ink: #0e0f10;
  --ink-2: #2b2e30;
  --muted: #5d6468;
  --line: rgba(14, 15, 16, 0.12);
  --card-a: #161718;
  --card-b: #55595d;
  --live: #3ddc84;
  --radius-frame: 28px;
  --radius-card: 20px;
  --gutter: clamp(20px, 4vw, 48px);
  --head: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --thin: 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ───────────── Frame ───────────── */
.frame {
  position: relative;
  margin: 14px;
  border-radius: var(--radius-frame);
  background: linear-gradient(180deg, var(--frame-a) 0%, var(--frame-b) 46%, var(--frame-b) 100%);
  overflow: clip; /* clip, pas hidden : garde position: sticky fonctionnel */
  min-height: calc(100vh - 28px);
}
@media (max-width: 640px) {
  .frame { margin: 8px; --radius-frame: 22px; }
}

/* ───────────── Header with notch ───────────── */
.site-head {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 var(--gutter);
}
.site-head nav { display: flex; gap: 26px; padding-top: 22px; }
.site-head nav.right { justify-content: flex-end; align-items: center; }
.site-head nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.site-head nav a:hover { color: var(--ink); }
.notch {
  position: relative;
  width: 300px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.notch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--outer);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  border-radius: 0 0 18px 18px;
}
.notch span {
  position: relative;
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.light { background: #fff; color: var(--ink); }
.pill.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.pill .dot.off { background: transparent; border: 1px solid currentColor; box-shadow: none; }
@media (max-width: 760px) {
  .site-head { grid-template-columns: auto 1fr; }
  .site-head nav.left { display: none; }
  .notch { width: 210px; height: 52px; justify-self: start; margin-left: calc(var(--gutter) * -1); }
  .notch::before { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); border-radius: 0 0 18px 0; }
  .site-head nav.right a:not(.pill) { display: none; }
}

/* ───────────── Type ───────────── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.display em, .thin {
  font-family: var(--thin);
  font-style: normal;
  font-weight: 200;
  letter-spacing: -0.02em;
}
.lede { color: var(--muted); max-width: 34ch; font-size: 15px; line-height: 1.55; margin: 0; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 6vh, 64px) var(--gutter) 0;
  text-align: center;
  overflow: clip;
}
.hero .display { font-size: clamp(40px, 7.4vw, 104px); }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; position: relative; z-index: 3; }
.rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(380px, 52vh, 560px);
  margin-top: 28px;
}
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(210px, 19vw, 290px);
  aspect-ratio: 9 / 19.5;
  transform: translateX(-50%);
  border-radius: clamp(34px, 3.6vw, 48px);
  background: #050505;
  padding: clamp(8px, 0.8vw, 11px);
  box-shadow: 0 40px 80px -30px rgba(14, 15, 16, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(26px, 2.8vw, 38px);
}
.hero-side {
  position: absolute;
  bottom: clamp(28px, 6vh, 56px);
  z-index: 3;
  text-align: left;
}
.hero-side.left { left: 0; display: grid; gap: 12px; }
.hero-side.right { right: 0; }
.mini-card {
  display: block;
  width: clamp(180px, 17vw, 240px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-a);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 50px -24px rgba(14, 15, 16, 0.6);
  transition: transform 0.2s ease;
}
.mini-card:hover { transform: translateY(-3px); }
.mini-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; opacity: 0.92; }
.mini-card div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.corner.tl { top: 8px; left: var(--gutter); }
.corner.tr { top: 8px; right: var(--gutter); }
@media (max-width: 760px) {
  .hero-side.left { display: none; }
  .hero-side.right { right: 0; bottom: 18px; }
  .mini-card { width: 150px; }
  .phone { width: 220px; }
  .corner { display: none; }
}

/* ───────────── Sections ───────────── */
section { position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 60px var(--gutter) 0;
  margin-bottom: 36px;
  position: relative;
  z-index: 4;
}
.section-head .display { font-size: clamp(34px, 5.2vw, 72px); }
.index { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* Giant word + parallax collage */
.collage {
  position: relative;
  height: clamp(560px, 90vh, 860px);
  margin-top: clamp(80px, 14vh, 160px);
}
.giant {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  font-family: var(--thin);
  font-weight: 200;
  font-size: clamp(90px, 19vw, 300px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(14, 15, 16, 0.12);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.shot {
  position: absolute;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  box-shadow: 0 40px 80px -40px rgba(14, 15, 16, 0.55);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.a { left: 7%; top: 18%; width: clamp(110px, 12vw, 180px); aspect-ratio: 9 / 16; z-index: 2; }
.shot.b { left: 50%; top: 4%; width: clamp(200px, 20vw, 300px); aspect-ratio: 9 / 16; margin-left: calc(clamp(200px, 20vw, 300px) / -2); z-index: 1; }
.shot.c { right: 6%; top: 46%; width: clamp(170px, 20vw, 300px); aspect-ratio: 4 / 3; z-index: 2; }
.shot.c img { object-position: top left; }
.collage .note { position: absolute; max-width: 260px; font-size: 14px; color: var(--muted); z-index: 3; }
.collage .note.tr { right: var(--gutter); top: 4%; }
.collage .note.bl { left: var(--gutter); bottom: 4%; }
@media (max-width: 760px) {
  .shot.a { left: 4%; top: 10%; }
  .shot.c { right: 3%; top: 58%; }
  .collage .note.tr { display: none; }
}

/* Product cards */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 var(--gutter);
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(460px, 64vh, 640px);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--card-a) 0%, var(--card-b) 100%);
  isolation: isolate;
  transition: transform 0.25s ease;
}
.product:hover { transform: translateY(-4px); }
.product .media { position: absolute; inset: 0; z-index: -1; }
.product .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: grayscale(0.2); }
.product .media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 16, 0.35) 0%, rgba(14, 15, 16, 0.2) 40%, rgba(14, 15, 16, 0.92) 100%);
}
.product .top, .product .bottom { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product .top .label { color: rgba(255, 255, 255, 0.7); }
.product h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  padding: 0 22px;
}
.product p { margin: 12px 22px 0; max-width: 40ch; color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.product .name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
}

/* Pinned stage with double marquee */
.pin { height: 320vh; }
.pin .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fond opaque : le mode de fusion « difference » a besoin d'une couleur sur laquelle s'appliquer. */
  background: var(--frame-b);
}
.pin .row {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font-family: var(--thin);
  font-weight: 200;
  font-size: clamp(64px, 11vw, 170px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0.5;
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}
.pin .row.r1 { top: 50%; transform: translateY(-100%); margin-top: -18vh; }
.pin .row.r2 { top: 50%; margin-top: 18vh; }
.pin .card {
  position: relative;
  width: clamp(260px, 26vw, 360px);
  height: min(60vh, 480px);
  border-radius: var(--radius-card);
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 50px 90px -40px rgba(14, 15, 16, 0.6);
}
.pin .slide {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, #6a6e72 0%, var(--card-a) 70%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.pin .slide.on { clip-path: inset(0 0 0 0); }
.pin .slide:first-child { clip-path: inset(0 0 0 0); }
.pin .slide .label { color: rgba(255, 255, 255, 0.65); }
.pin .slide h3 { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 4.6vw, 64px); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; margin: 0; }
.pin .slide p { margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.pin .slide .slide-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pin .slide .big-index { font-family: var(--thin); font-weight: 200; font-size: 64px; line-height: 0.8; color: rgba(255, 255, 255, 0.22); }
.pin .progress { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 4; }
.pin .progress i { width: 26px; height: 2px; background: rgba(14, 15, 16, 0.18); transition: background 0.3s; }
.pin .progress i.on { background: var(--ink); }

/* About + contact */
.about {
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(60px, 10vh, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.about .display { font-size: clamp(40px, 6vw, 88px); }
.about p { color: var(--muted); max-width: 46ch; margin: 0 0 8px; }
.contact {
  padding: 0 var(--gutter) clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.contact .label { display: block; padding-top: 28px; }
.mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(30px, 6.6vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s ease;
  word-break: break-all;
}
.mail:hover { background-size: 100% 2px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ───────────── Long-form (legal + support) ───────────── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(60px, 10vh, 120px);
}
.doc .display { font-size: clamp(40px, 6vw, 76px); margin: 14px 0 18px; }
.doc h2 { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 10px; }
.doc h3 { font-family: var(--head); font-weight: 700; font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc .lead { font-size: 20px; color: var(--ink); }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 16px 0; }
.doc dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.doc dd { margin: 0; }
.doc details { border-top: 1px solid var(--line); padding: 4px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--head); font-weight: 700; font-size: 18px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; font-family: var(--mono); font-weight: 400; font-size: 18px; transition: transform 0.2s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.steps div { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.steps b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 8px; }
.steps span { font-family: var(--head); font-weight: 800; font-size: 18px; line-height: 1.15; }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 12px; }
}

/* ───────────── Motion (only when JS is on) ───────────── */
.js [data-blinds] {
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0, #000 var(--s), transparent var(--s), transparent 36px);
  mask-image: repeating-linear-gradient(180deg, #000 0, #000 var(--s), transparent var(--s), transparent 36px);
  transition: --s 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-blinds].in { --s: 37px; }
.js [data-blinds].done { -webkit-mask-image: none; mask-image: none; }

.js [data-rise] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js [data-rise] .l { display: inline-block; transform: translateY(105%); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i) * 22ms); }
.js [data-rise].in .l { transform: translateY(0); }

.js [data-fade] { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0ms); }
.js [data-fade].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-blinds] { -webkit-mask-image: none; mask-image: none; }
  .js [data-rise] .l, .js [data-fade] { transform: none; opacity: 1; transition: none; }
  .pin { height: auto; }
  .pin .stage { position: relative; height: auto; padding: 80px 0; flex-direction: column; gap: 14px; }
  .pin .row { display: none; }
  .pin .card { aspect-ratio: auto; min-height: 320px; }
  .pin .slide { position: relative; clip-path: none; transition: none; }
  .pin .progress { display: none; }
}

/* ───────────── Abstract visuals (no product screenshots) ───────────── */
.monolith {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(210px, 19vw, 290px);
  aspect-ratio: 9 / 19.5;
  transform: translateX(-50%);
  border-radius: clamp(26px, 2.6vw, 36px);
  background: radial-gradient(90% 60% at 50% 35%, #6c7176 0%, #2a2c2e 55%, #121314 100%);
  box-shadow: 0 50px 90px -30px rgba(14, 15, 16, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  z-index: 2;
}
.monolith svg, .shot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mono-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.mono-tag.tl { top: 16px; left: 18px; }
.mono-tag.br { bottom: 16px; right: 18px; }
.shot { background: radial-gradient(100% 70% at 50% 20%, #6a6e72 0%, #26282a 60%, #151617 100%); }
.shot-num {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--thin);
  font-weight: 200;
  font-size: clamp(90px, 10vw, 160px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}
.mini-card .spark { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; background: linear-gradient(180deg, #2a2c2e, #151617); }
.product .media svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .monolith { width: 200px; } }

/* Sans étiquettes : la pastille de statut reste seule en haut à droite, l'index en haut à droite des cartes. */
.product .top { justify-content: flex-end; }
.pin .slide .slide-top { justify-content: flex-start; margin-bottom: 14px; }
.contact .mail { margin-top: 0; padding-top: 32px; }

/* Hero sans visuel : titre centré verticalement. */
.hero { justify-content: center; padding-bottom: clamp(40px, 8vh, 90px); }
.hero-sub { position: relative; z-index: 3; margin: 26px auto 0; max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.section-head { padding-top: clamp(40px, 8vh, 100px); }
