/* Each project sits above a mirrored surface. The two views share one frame. */
.projects {
  background:radial-gradient(ellipse at 86% 20%,#e0e7e5,transparent 48%),linear-gradient(145deg,#eeece6,#f8f6f0 56%,#e8ebea);
}
.project-grid { gap:clamp(24px,3vw,48px); align-items:start; }
.case-card { min-width:0; perspective:1100px; }
.case-stage {
  --studio:radial-gradient(ellipse at 87% 49%,#b5769f 0%,transparent 42%),radial-gradient(ellipse at 14% 82%,#7c4282,transparent 58%),linear-gradient(130deg,#27142c,#643750 58%,#382338);
  position:relative; isolation:isolate; overflow:hidden; border-radius:12px;
  background:var(--studio); box-shadow:0 16px 27px -19px #2b263c85,inset 0 0 0 1px #fff3;
  transform:perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transition:transform .28s ease-out;
}
.case-upshow .case-stage {
  --studio:radial-gradient(ellipse at 86% 32%,#8c83e7 0%,transparent 46%),radial-gradient(ellipse at 18% 80%,#5054a0,transparent 57%),linear-gradient(135deg,#18294a,#3f488f 59%,#504565);
}
.case-track {
  display:flex; aspect-ratio:1.67; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain;
}
.case-track::-webkit-scrollbar,.plans::-webkit-scrollbar { display:none; }
.case-slide {
  position:relative; isolation:isolate; flex:0 0 100%; min-width:0; scroll-snap-align:center;
  padding:0; margin:0; border:0; border-radius:inherit; background:none; cursor:zoom-in;
}
.case-slide:focus-visible { outline-offset:-4px; outline:3px solid #fff3cf; }
.case-slide::before {
  content:""; position:absolute; inset:84% -10% -12%; transform:rotate(-2deg);
  border-top:1px solid #ffffff47;
  background:linear-gradient(180deg,#ffffff1e,transparent 65%);
}
.case-print {
  position:absolute; inset:8% 11% 13% 4.5%; display:grid; grid-template-rows:auto minmax(0,1fr);
  border-radius:6px; background:#201c27;
  box-shadow:0 12px 23px -6px #0e0716a8,0 0 0 1px #ffffff68;
  transform:perspective(950px) rotateY(-5deg) rotateZ(-1.6deg);
  transform-origin:center 85%; transition:transform .65s var(--motion-ease);
}
.case-slide:nth-child(2) .case-print {
  inset:8% 5% 13%; transform:perspective(950px) rotateY(3deg) rotateZ(.9deg);
}
.case-bar {
  position:relative; display:grid; place-items:center; height:clamp(16px,1.65vw,24px);
  border-radius:6px 6px 0 0; background:#1b1924; color:#f3eef7;
  font:500 clamp(8px,.72vw,12px)/1 var(--sans); letter-spacing:.025em;
}
.case-bar i {
  position:absolute; left:3%; width:4px; height:4px; border-radius:50%;
  color:#bdb2c4; background:currentColor; box-shadow:7px 0 currentColor,14px 0 currentColor;
}
.case-main,.case-reflection { display:block; width:100%; height:100%; object-fit:cover; object-position:left top; }
.case-main { border-radius:0 0 5px 5px; }
.case-upshow .case-slide:first-child .case-main,.case-upshow .case-slide:first-child .case-reflection { object-position:left bottom; }
.case-reflection {
  position:absolute; top:calc(100% + 3px); left:0; transform:scaleY(-1); pointer-events:none; opacity:.42;
  mask-image:linear-gradient(to top,#000 0%,#0007 8%,transparent 23%);
}
.case-phone {
  position:absolute; right:3.4%; bottom:6%; width:23%; aspect-ratio:.49;
  overflow:hidden; padding:3px; border-radius:clamp(9px,1.1vw,17px);
  border:1px solid #c8c0ce; background:#17151e;
  box-shadow:2px 6px 15px #0906167a,0 0 0 1px #221f31;
  transform:rotate(3deg); transition:transform .65s var(--motion-ease); pointer-events:none;
}
.case-phone img { display:block; width:100%; height:100%; object-fit:cover; object-position:top; border-radius:inherit; }
.case-description { margin:.4rem 0 0; max-width:48ch; font-size:1rem; line-height:1.5; color:#495a64; }
.case-visit {
  display:inline-flex; align-items:center; gap:.4em; min-height:44px;
  margin-top:.3rem; color:#263b48; font-weight:600; text-decoration:underline;
  text-decoration-thickness:1px; text-underline-offset:.25em;
}
.case-visit:is(:hover,:focus-visible) { text-decoration-thickness:2px; }
.project-detail-view { margin:1.1rem 0; }
.project-detail-view img { display:block; margin:0; width:100%; border-radius:6px; }
.project-detail-view figcaption { display:flex; flex-wrap:wrap; gap:.3rem 1rem; align-items:center; justify-content:space-between; margin:.4rem 0 0; color:#445763; font-size:.94rem; }
.project-detail-view a { display:inline-flex; gap:.4em; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:600px) {
  .project-detail-view picture { display:block; padding:10px; background:#262435; border-radius:8px; }
  .project-detail-view img { width:auto; max-width:100%; max-height:47dvh; margin:auto; }
}
.case-glint {
  pointer-events:none; position:absolute; inset:-30% -42%; opacity:0;
  background:linear-gradient(110deg,transparent 43%,#f3ffff38 50%,transparent 57%);
}
.case-tabs,.plan-switch { display:flex; }
[data-controls][hidden] { display:none; }
.case-tabs {
  position:relative; width:max-content; max-width:100%; margin-top:1rem;
  padding:2px; gap:0; background:#fff8; border:1px solid #afb8bb; border-radius:24px;
}
.case-tabs button {
  min-height:40px; padding:.45rem 1rem; border:0; border-radius:22px;
  background:transparent; color:#465561; font-size:.94rem;
}
.case-tabs button[aria-pressed=true] { background:#2b3c48; color:white; }
.case-sign {
  margin-top:.85rem; display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.case-sign h3 { font:400 clamp(1.85rem,2.4vw,2.8rem)/1.16 var(--serif); letter-spacing:-.05em; margin-top:.15rem; }
.case-open { display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:transparent; color:#344650; font-size:.9rem; }
.case-open i {
  display:grid; place-items:center; width:42px; height:42px; border:1px solid #8e9ba1; border-radius:50%;
  font:400 1.4rem/1 var(--sans); transition:transform .35s,background .25s,color .25s;
}
.case-open:is(:hover,:focus-visible) i { transform:rotate(90deg); background:#263845; color:#fff; }
@keyframes glass-pass {
  0% { opacity:0; transform:translateX(-73%); } 25% { opacity:1; }
  75% { opacity:1; } 100% { opacity:0; transform:translateX(73%); }
}
@keyframes print-arrives {
  from { transform:perspective(850px) rotateY(-15deg) rotateZ(-5deg) translateY(6%); }
}
@media (prefers-reduced-motion:no-preference) {
  .case-card.view-enter .case-glint { animation:glass-pass 1.1s .13s both; }
  .case-card.view-enter .case-slide:first-child .case-print { animation:print-arrives 1s var(--motion-ease); }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .case-slide:hover .case-print { transform:perspective(950px) rotateY(-1deg) rotateZ(0deg) scale(1.015); }
  .case-slide:hover .case-phone { transform:translateY(-3%) rotate(1deg); }
}

/* Three finishes of the same material distinguish the offers. */
.offers {
  position:relative; isolation:isolate; overflow:clip; border:0;
  color:#f7f5ef;
  background:radial-gradient(ellipse at 94% 0%,#3c5057 0%,transparent 46%),
             radial-gradient(ellipse at 0% 85%,#263947 0%,transparent 50%),#14212c;
}
.offers::before {
  content:""; position:absolute; z-index:-1; left:-12%; top:1.5%; width:124%; height:60%;
  border-radius:50%; transform:rotate(-9deg);
  border-top:1px solid #cee4e238; box-shadow:0 -6px 0 -5px #cee4e22b,0 -15px 0 -14px #cee4e226,0 -29px 0 -28px #cee4e21f,0 -50px 0 -49px #cee4e217;
}
.offers .kicker,.offers .section-top>p,.offers .plan-note { color:#c6d4d7; }
.offers h2 em { color:#c9dadd; }
.plan-switch { display:none; }
.plans { gap:clamp(13px,1.8vw,28px); }
.plans article {
  --shell:#eeefea; --face:#465b65; --shine:#cfe0df;
  position:relative; isolation:isolate; overflow:hidden; min-width:0;
  padding:0 clamp(18px,2vw,30px) 25px; border-radius:12px;
  border:1px solid #c8d6d5aa; background:var(--shell); color:#263642;
  box-shadow:0 18px 34px -18px #070d18aa;
}
.plans article.plan-glace { --shell:#e7eeed; --face:#163440; --shine:#83bbc5; background:var(--shell); }
.plans article.plan-champagne { --shell:#f1ebe2; --face:#4f413b; --shine:#d9b795; }
.plans article::before { display:none; }
.plan-face {
  position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center;
  align-self:stretch; min-height:clamp(132px,12vw,165px);
  margin:0 calc(0px - clamp(18px,2vw,30px)) 1.25rem;
  padding:1.25rem clamp(18px,2vw,30px); color:#fffcf6;
  background:radial-gradient(ellipse at 90% 25%,var(--shine) -45%,transparent 61%),var(--face);
}
.plan-face::after {
  content:""; position:absolute; left:10%; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg,transparent,#fffff7bd 65%,transparent);
}
.plan-price { position:relative; z-index:2; }
.plans .plan-price h3 { font-size:clamp(1.35rem,1.8vw,1.8rem); line-height:1.2; text-shadow:0 2px 6px #1019266b; }
.plans .price { width:max-content; font-size:clamp(2.9rem,4vw,4.2rem); margin:.32rem 0 0; line-height:1.05; }
.plans .price span { color:#edf3f4; font-size:.95rem; }
.plan-sculpture {
  position:absolute; right:-3%; width:44%; max-width:180px; top:50%; height:auto;
  transform:translateY(-46%) rotate(-7deg); pointer-events:none;
  filter:drop-shadow(0 11px 8px #11192270);
  mask-image:linear-gradient(90deg,transparent,#000 19%);
}
.plan-glint {
  pointer-events:none; position:absolute; inset:-30% -55%; opacity:0;
  background:linear-gradient(110deg,transparent 43%,#ffffff4d 50%,transparent 57%);
}
.plans p,.plans ul { color:#465660; }
.plans ul { border-color:#bcc5c4; }
.plans .choose { font-weight:550; color:#203944; }
@keyframes metal-turn {
  0% { transform:translateY(-39%) rotate(9deg) scale(.86); }
  68% { transform:translateY(-47%) rotate(-10deg) scale(1.025); }
  100% { transform:translateY(-46%) rotate(-7deg); }
}
@media (prefers-reduced-motion:no-preference) {
  .plan-face.view-enter { animation:none; }
  .plan-face.view-enter .plan-sculpture { animation:metal-turn 1s var(--motion-ease); }
  .plan-face.view-enter .plan-glint { animation:glass-pass 1.15s .07s both; }
}
@media(max-width:940px) and (min-width:741px) {
  .plans article { padding-inline:15px; }
  .plan-face { margin-inline:-15px; padding-inline:15px; }
  .plan-sculpture { width:32%; }
  .case-sign { gap:6px; }
  .case-open span { display:none; }
}
@media(max-width:740px) {
  .project-grid { gap:2.1rem; }
  .case-track { aspect-ratio:1.47; }
  .case-print { inset:8% 12% 13% 3.8%; }
  .case-phone { width:24%; right:3%; }
  .case-sign { margin-top:.75rem; }
  .case-sign h3 { font-size:1.92rem; }
  .case-tabs button,.case-open i { min-height:44px; }
  .case-tabs { margin-top:.7rem; }
  .case-open span { display:none; }
  .offers [data-controls]:not([hidden]) { display:grid; }
  .plan-switch {
    grid-template-columns:1fr .83fr 1.42fr; align-items:stretch; gap:3px;
    border-radius:9px; border:1px solid #8b9b9e91; background:#263744; padding:3px; margin-bottom:14px;
  }
  .plan-switch button {
    display:flex; align-items:center; justify-content:center; flex-direction:column; gap:1px;
    min-width:0; min-height:57px; padding:.3rem .1rem;
    color:#e4ebeb; background:transparent; border:0; border-radius:6px;
  }
  .plan-switch button span { font-size:clamp(.76rem,3.55vw,.98rem); }
  .plan-switch button b { font-size:1rem; }
  .plan-switch button[aria-pressed=true] { background:#e5ebe8; color:#1e303b; }
  .offers .plan-switch button:focus-visible { outline-color:#e6bc81; outline-offset:0; }
  .plans { gap:12px; }
  .offers .carousel-ready .plans {
    display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:100%;
    overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain;
    border-radius:12px;
  }
  .plans article { scroll-snap-align:center; padding-bottom:1.3rem; }
  .plan-face { min-height:132px; margin-bottom:1rem; }
  .plan-price .price { font-size:3.3rem; }
  .plans ul { margin:.6rem 0 .85rem; }
  .plan-sculpture { width:39%; right:0; }
  .plans .choose { min-height:44px; display:inline-flex; align-items:center; padding:0 .2rem; }
}
@media (min-width:370px) and (max-width:740px) {
  .case-open span { display:inline; }
}
@media(max-width:370px) {
  .plan-price h3 { max-width:180px; }
  .plan-sculpture { right:-4%; width:37%; }
  .case-open i { width:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .case-stage { transform:none; }
  .case-card.view-enter,.plan-face.view-enter { animation:none; }
}
@media print {
  .plan-switch,.case-tabs,.case-glint,.plan-glint { display:none!important; }
  .offers .carousel-ready .plans { display:block; overflow:visible; }
  .plans article { break-inside:avoid; margin:8px 0; }
}

.plans .offer-detail {
  align-self:stretch;
  margin:-.5rem 0 1.1rem;
  color:#263d49;
  border-bottom:1px solid #bcc5c4;
}
.offer-detail summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  min-height:46px;
  padding:.5rem 0;
  list-style:none;
  font:570 1rem/1.3 var(--sans);
  cursor:pointer;
}
.offer-detail summary::-webkit-details-marker { display:none; }
.offer-detail summary::after {
  content:"";
  width:8px;
  height:8px;
  flex:0 0 auto;
  margin-inline-end:.4rem;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:rotate(45deg);
  transition:transform .23s ease;
}
.offer-detail[open] summary::after { transform:rotate(225deg); }
.offer-detail summary:focus-visible { outline:2px solid #657f8b; outline-offset:3px; }
.offer-detail dl { margin:.25rem 0 1rem; }
.offer-detail dl > div + div { margin-top:.85rem; }
.offer-detail dt { font-weight:650; line-height:1.35; }
.offer-detail dd { margin:.28rem 0 0; color:#40515c; font-size:1rem; line-height:1.5; }
.plans:has(.offer-detail[open]) { align-items:start; }
@media print { .offer-detail::details-content { content-visibility:visible; } }
