:root {
  --bg: #0B0620;
  --bg-alt: #08041A;
  --card: #160D33;
  --border: #2E2257;
  --text: #F5F3FF;
  --muted: #B4AED0;
  --accent: #E6239A;
  --accent-2: #8B2CFF;
  --cyan: #00E0FF;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --display: 'Outfit', 'Poppins', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }

.grad {
  background: linear-gradient(135deg, #FF3FB4, #A855FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font: 600 14px/1.2 'Poppins', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 28px -8px var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px var(--accent); }
.btn--ghost { background: transparent; box-shadow: none; border: 2px solid var(--accent); padding: 13px 28px; }
.btn--small { padding: 10px 20px; font-size: 13px; }
.btn--block { display: block; width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 6, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__name { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.logo__slogan { margin-top: 4px; font-size: 8px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 400; }
.nav a:not(.btn) { padding: 6px 0; white-space: nowrap; }
.nav a:not(.btn) { color: var(--muted); transition: color 0.2s ease; }
.nav a:not(.btn):hover { color: var(--text); }

.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 85% 0%, rgba(230, 35, 154, 0.35), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 224, 255, 0.18), transparent 70%),
    radial-gradient(600px 400px at 50% 50%, rgba(139, 44, 255, 0.22), transparent 70%),
    var(--bg-alt);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 85% 0%, rgba(230, 35, 154, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(8, 4, 26, 0.62), rgba(8, 4, 26, 0.82));
}
.hero__inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; max-width: 980px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.4vw, 60px); font-weight: 800; margin: 0 0 36px; }

/* Hero intro: animated brand name, with words typed and erased below it */
.intro { margin-bottom: 48px; }
.intro__word {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3em; /* keeps the height when the word is fully erased */
  margin-top: 14px;
  color: var(--cyan);
  font: 800 clamp(24px, 3.6vw, 40px)/1.3 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 224, 255, 0.55);
  animation: fadeUp 0.6s 0.6s ease-out both;
}
.intro__caret {
  flex: none;
  width: 0.12em;
  height: 1em;
  margin-left: 0.12em;
  background: currentColor;
  box-shadow: 0 0 12px var(--cyan);
  animation: caret 1s steps(1) infinite;
}
.intro__name {
  font: 900 clamp(40px, 11vw, 120px)/1 var(--display);
  letter-spacing: -0.04em;
  animation: brandIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro__name .grad { animation: glow 3s 1.1s ease-in-out infinite alternate; }

@keyframes brandIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(10px); letter-spacing: 0.06em; }
  to { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.04em; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes glow {
  from { filter: drop-shadow(0 0 8px rgba(230, 35, 154, 0.35)); }
  to { filter: drop-shadow(0 0 24px rgba(139, 44, 255, 0.8)); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero__text { max-width: 640px; margin: 0 auto 36px; font-size: clamp(16px, 2vw, 19px); color: #D9D4EC; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.pill {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #FF6FC4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Universe shortcuts */
.chips { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.chips__row { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.chips a {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}
.chips a:hover { border-color: var(--accent); }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; margin-bottom: 14px; }
.section__head p:last-child:not(.eyebrow) { color: var(--muted); }
.eyebrow { margin-bottom: 12px; color: #FF6FC4; font-size: 12px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; }
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

/* Experience blocks */
.exp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.exp--flip .exp__text { order: 2; }
.exp__num {
  display: block;
  margin-bottom: 10px;
  font: 900 52px/1 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c1);
}
.exp h3 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.exp__tagline { margin-bottom: 16px; font: 700 20px/1.3 var(--display); color: var(--c1); filter: brightness(1.25); }
.exp__text > p:not(.exp__tagline) { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 4px 14px; border: 1px solid var(--c1); border-radius: 999px; font-size: 12px; font-weight: 500; }

.exp__media { display: grid; gap: 14px; min-width: 0; }
.exp__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 24px 50px -28px var(--c1);
}
.exp__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.exp__photo:hover img { transform: scale(1.04); }
.exp__photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(8, 4, 26, 0.72);
  color: #D9D4EC;
  font-size: 11px;
  font-weight: 400;
}

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  font: 700 14px/1.15 var(--display);
  transition: transform 0.2s ease;
}
.tiles li:hover { transform: translateY(-2px); }
.tiles li span { font-size: 20px; line-height: 1; }
.tiles .tiles__more { background: none; border: 2px dashed rgba(255, 255, 255, 0.25); color: var(--muted); font-size: 12px; font-weight: 600; }
.tiles .tiles__more span { font-size: 18px; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.points li span {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 17px;
}

/* Cards */
.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.card__icon { display: block; margin-bottom: 14px; font-size: 32px; line-height: 1; }
.card h3 { margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; }
.subhead { margin: 64px 0 24px; font-size: 26px; font-weight: 800; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--gradient);
  font: 800 18px/1 var(--display);
}
.steps h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.faq[open] { border-color: var(--accent); }
.faq summary { padding: 18px 22px; font-weight: 500; cursor: pointer; }
.faq p { padding: 0 22px 18px; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { background: linear-gradient(135deg, #B5127A, #6A1FD0); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { margin-bottom: 16px; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.contact__list { display: grid; gap: 10px; margin-top: 28px; font-weight: 400; }
.contact__list li { display: flex; gap: 12px; }
.contact__list a { text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; gap: 14px; padding: 28px; border-radius: 22px; background: var(--bg); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: 400 15px/1.4 'Poppins', Arial, sans-serif;
}
.form ::placeholder { color: #8A83A8; }
.form textarea { resize: vertical; }
.form__note { color: var(--muted); font-size: 12px; text-align: center; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer__grid ul { display: grid; gap: 6px; }
.footer__grid a:hover { color: var(--text); }
.footer__grid .logo__name { color: var(--text); }
.footer__slogan { margin: 4px 0 12px; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__title { margin-bottom: 12px; color: var(--text); font: 700 15px/1.2 var(--display); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer__row a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Multi-page components ---------- */

.nav a[aria-current="page"] { color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); }

.section--tight { padding: 64px 0; }
.link-arrow { display: inline-flex; gap: 6px; color: #FF6FC4; font-weight: 500; }
.link-arrow:hover { color: var(--text); }
.btn--light { background: #fff; color: #6A1FD0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.hero__actions--left { justify-content: flex-start; margin-top: 28px; }

/* Inner page header */
.page-hero {
  background:
    radial-gradient(600px 360px at 85% 0%, rgba(230, 35, 154, 0.3), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(0, 224, 255, 0.14), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { padding-top: 80px; padding-bottom: 72px; max-width: 860px; text-align: center; }
.page-hero h1 { margin-bottom: 18px; font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; }
.page-hero__text { max-width: 640px; margin: 0 auto; color: #D9D4EC; font-size: clamp(15px, 2vw, 18px); }

/* Home: key facts strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.strip__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.strip strong { display: block; color: var(--text); font: 800 22px/1.2 var(--display); }

/* Home: about + vision */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text h2 { margin-bottom: 18px; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.about__text p:not(.eyebrow) { margin-bottom: 22px; color: var(--muted); font-size: 16px; }
.about__photo { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 60px -30px var(--accent); }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vision { padding: 88px 0; background: linear-gradient(135deg, rgba(230, 35, 154, 0.16), rgba(139, 44, 255, 0.16)), var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vision__inner { text-align: center; }
.vision blockquote { margin: 0; font: 700 clamp(22px, 3.2vw, 34px)/1.35 var(--display); letter-spacing: -0.01em; }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* A product left alone on the last row becomes a wide card instead of an orphan */
.pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
.pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__img { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; }
.pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__body { justify-content: center; padding: 32px 36px; }
.pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__more { margin-top: 12px; }
.pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--c1); box-shadow: 0 24px 48px -24px var(--c1); }
.pcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 13, 51, 0.9)); }
.pcard__num { position: absolute; left: 16px; bottom: 10px; z-index: 1; font: 900 34px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px #fff; }
.pcard__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.pcard h3 { font-size: 22px; font-weight: 800; }
.pcard__tag { color: var(--c1); font: 700 15px/1.3 var(--display); filter: brightness(1.25); }
.pcard__body > p:not(.pcard__tag) { color: var(--muted); font-size: 14px; }
.pcard__more { margin-top: auto; padding-top: 10px; color: var(--text); font-size: 14px; font-weight: 500; }

/* Use case cards */
.ugrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ucard { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); transition: border-color 0.2s ease, transform 0.2s ease; }
.ucard:hover { border-color: var(--accent); transform: translateY(-4px); }
.ucard__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--gradient); font-size: 26px; }
.ucard h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.ucard p { color: var(--muted); font-size: 14px; }

/* Partner + CTA bands */
.partner__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 48px; border: 1px solid var(--border); border-radius: 26px; background: radial-gradient(500px 300px at 100% 0%, rgba(0, 224, 255, 0.14), transparent 70%), var(--card); }
.partner h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.partner p:not(.eyebrow) { margin-bottom: 24px; color: var(--muted); }
.partner__list { display: grid; gap: 10px; }
.partner__list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font-weight: 500; }
.partner__list li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--gradient); font-size: 12px; }
.cta-band { background: linear-gradient(135deg, #B5127A, #6A1FD0); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* Product detail page */
.phero { padding: 36px 0 72px; background: radial-gradient(700px 420px at 90% 10%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%), var(--bg-alt); border-bottom: 1px solid var(--border); }
.crumbs { margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--text); }
.phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phero h1 { margin-bottom: 8px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.phero__text { margin-bottom: 12px; color: var(--muted); }
.phero__photo { box-shadow: 0 30px 60px -28px var(--c1); }
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.pdetail__block h2 { margin-bottom: 18px; font-size: 24px; font-weight: 800; }
.pdetail__block:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.formules { display: grid; gap: 12px; }
.formule { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.formule h3 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.formule p { color: var(--muted); font-size: 14px; }
.formule a { color: #FF6FC4; text-decoration: underline; text-underline-offset: 3px; }

/* Product / use case chips */
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--c1, var(--border)); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; transition: background 0.2s ease; }
.pchips a:hover { background: color-mix(in srgb, var(--c1, var(--accent)) 25%, var(--card)); }
.pchips--cases a { border-color: var(--border); padding: 9px 16px; font-size: 14px; }

/* Use cases page */
.case { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.case:first-child { border-top: 0; padding-top: 0; }
.case__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; background: var(--gradient); font-size: 32px; }
.case h2 { margin-bottom: 10px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.case__short { color: #FF6FC4; font: 700 18px/1.35 var(--display); }
.case__body > p:first-child { color: var(--muted); font-size: 16px; }
.checks { display: grid; gap: 8px; margin: 20px 0 24px; }
.checks li { display: flex; gap: 10px; font-weight: 500; }
.checks li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.case__label { margin: 16px 0 10px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.chips a[href^="#"] { scroll-margin-top: 0; }

/* Rental page */
.ctx { display: flex; flex-direction: column; }
.ctx .case__label { margin-top: auto; padding-top: 16px; }
.rentgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rent { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.rent__img { display: block; min-height: 100%; }
.rent__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rent__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.rent h3 { font-size: 20px; font-weight: 800; }
.rent h3 a:hover { color: var(--c1); }
.rent p { color: var(--muted); font-size: 14px; }
.rent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; }
.steps:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Customisation page */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card--big { padding: 32px; }
.card--big h3 { font-size: 22px; }
.card--big p { font-size: 15px; }

/* Past projects (home, shown once the list in content.mjs is filled) */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.rcard { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.rcard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rcard__body { padding: 18px 20px 22px; }
.rcard h3 { margin-bottom: 4px; font-size: 20px; font-weight: 800; }
.rcard__place { margin-bottom: 8px; color: #FF6FC4; font-size: 13px; font-weight: 500; }
.rcard p:not(.rcard__place) { color: var(--muted); font-size: 14px; }

/* Contact page form selects */
.form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: 400 15px/1.4 'Poppins', Arial, sans-serif;
}

/* Photo credits page */
.credits { padding: 72px 0 96px; }
.credits h1 { margin-bottom: 14px; font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.credits__intro { margin-bottom: 32px; color: var(--muted); }
.credits__list { display: grid; gap: 12px; }
.credits__list li { padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-size: 14px; overflow-wrap: anywhere; }
.credits__list strong { display: block; font-weight: 600; }
.credits__list a { text-decoration: underline; text-underline-offset: 3px; }

/* Scroll reveal: only hides content once JS has confirmed it can show it again */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cards--4, .footer__grid, .ugrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp, .contact__grid, .about, .phero__grid, .pdetail, .case, .partner__inner, .rentgrid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .exp--flip .exp__text { order: 0; }
  .steps, .steps:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) { grid-column: auto; flex-direction: column; }
  .pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__body { padding: 18px 20px 22px; }
  .pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(3n+1) .pcard__more { margin-top: auto; }
  .pgrid:not(.pgrid--3) > .pcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .strip__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .partner__inner { padding: 32px; }
}

@media (max-width: 1080px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 8px 0; color: var(--text); }
  .nav a[aria-current="page"] { box-shadow: none; color: #FF6FC4; }
  .nav .btn { margin-top: 8px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero__inner { padding-top: 64px; padding-bottom: 64px; }
  .hero__actions .btn { width: 100%; }
  .cards--4 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li { font-size: 13px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .pill { letter-spacing: 0.06em; font-size: 11px; }
  .section--tight { padding: 48px 0; }
  .page-hero__inner { padding-top: 56px; padding-bottom: 48px; }
  .pgrid, .ugrid, .pgrid--3, .cards--2, .footer__grid, .steps, .steps:has(> li:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
  .rent { grid-template-columns: minmax(0, 1fr); }
  .strip strong { font-size: 18px; }
  .rent__img { aspect-ratio: 16 / 10; }
  .partner__inner { padding: 24px; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tiles li, .exp__photo img, .pcard, .pcard__img img, .ucard { transition: none; }
  .exp__photo:hover img, .pcard:hover, .pcard:hover .pcard__img img, .ucard:hover { transform: none; }
  .intro__name, .intro__name .grad, .intro__word, .intro__caret { animation: none; }
}
