/* Luma Cleaning — case study page (own design, separate from the portfolio) */
:root {
  --bg: #E9E9EB;
  --ink: #1C1C1E;
  --ink-2: #4A4A4F;
  --green: #D5F0AE;
  --green-deep: #1E4B2A;
  --blue: #C4DDE6;
  --grey: #C9C9CC;
  --white: #F5F5F6;
  --radius: 32px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; /* big thin headings */
  --text: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; /* paragraphs, menu, buttons */
  --leaf: #86C474;
  --leaf-light: #A9D69B;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; font-weight: 200; color: var(--ink-2); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.h2 { font-family: var(--font); font-size: clamp(36px, 4.4vw, 58px); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; }

/* little bar that links back to the portfolio */
.case-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; min-height: 62px; padding: 10px clamp(16px, 4vw, 40px); background: #0A0A0B; color: #4F6DE4; font: 700 16px/1.3 'Syne', system-ui, sans-serif; letter-spacing: .02em; }
.case-bar p { margin: 0; }
.case-bar a { color: #fff; text-decoration: none; }
.case-bar p a { color: #fff; }
.case-bar p a:hover { color: #B5CBFF; }
.case-bar a[href*="#works"] { padding: 10px 20px; border-radius: 12px; background: #2443B8; color: #fff; transition: filter .25s, transform .25s, box-shadow .25s; }
.case-bar a[href*="#works"]:hover { filter: brightness(1.2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(36, 67, 184, .5); }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(233, 233, 235, .86); backdrop-filter: blur(10px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 112px; }
.header__logo img { width: clamp(110px, 10vw, 140px); height: auto; }
.nav { display: flex; gap: clamp(22px, 3vw, 40px); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; content: ""; }
.burger span { top: 21px; } .burger span::before { top: -7px; left: 0; } .burger span::after { top: 7px; left: 0; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.pill { display: inline-block; padding: 14px 40px; border-radius: 99px; background: rgba(255,255,255,.85); color: var(--ink); border: 1px solid rgba(0,0,0,.08); font: 500 15px/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, transform .3s; }
.pill:hover { background: #fff; transform: translateY(-2px); }
/* same soft green as the footer */
.pill--dark { background: var(--green); color: var(--green-deep); border-color: rgba(30,75,42,.12); padding: 16px 48px; font-weight: 600; }
.pill--dark:hover { background: var(--leaf-light); }

/* hero */
.hero { padding-top: 12px; }
.hero__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: clamp(520px, 74vh, 760px); display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__glass { position: relative; margin-left: clamp(16px, 5vw, 64px); padding: 56px clamp(24px, 3.4vw, 56px); max-width: 600px; text-align: center; border-radius: 28px; background: rgba(228, 228, 230, .22); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fadeUp 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero__title { font-family: var(--font); font-size: clamp(50px, 7.4vw, 100px); line-height: 1; font-weight: 300; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title em { display: block; color: var(--ink); font-weight: 200; }
.hero__sub { margin: 26px 0 30px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* about (green band with wave) */
.about { margin-top: 90px; }
.about__wave { display: block; width: 100%; height: 90px; fill: var(--green); }
.about__band { background: var(--green); padding: 30px 0 100px; margin-top: -1px; }
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__copy p { margin-top: 26px; max-width: 540px; font-size: 18px; color: var(--ink-2); }
.about__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* what we do */
.services { padding: 110px 0 40px; }
/* text and photo sit together in the middle of the page; on scroll they glide toward each other */
.svc { display: flex; justify-content: center; align-items: center; gap: clamp(48px, 8vw, 160px); margin-top: clamp(90px, 10vw, 150px); }
.svc__photo { flex: none; width: clamp(300px, 22vw, 440px); aspect-ratio: 3 / 4; border-radius: 48px; overflow: hidden; }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc--flip .svc__photo { order: 2; }
.svc__copy { min-width: 0; }
.svc__name { font-family: var(--font); font-size: clamp(46px, 4.4vw, 88px); font-weight: 300; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.svc__name em { font-weight: 200; color: var(--ink); }
.svc ul { margin: clamp(20px, 2vw, 34px) 0 0; padding-left: 1.3em; list-style: disc; font-family: var(--font); font-weight: 300; font-size: clamp(18px, 1.25vw, 24px); letter-spacing: .06em; line-height: 2.5; }
.svc li::marker { font-size: .8em; }

/* why choose us */
.why { padding: 110px 0 40px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.why__card { padding: 32px 26px 36px; border-radius: 24px; transition: transform .35s, box-shadow .35s; }
.why__card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.why__card--white { background: var(--white); }
.why__card--grey { background: var(--grey); }
.why__card--green { background: var(--green); }
.why__card--blue { background: var(--blue); }
.why__card svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why__card h3 { margin-top: 18px; font-family: var(--font); font-size: 22px; font-weight: 400; text-transform: uppercase; line-height: 1.35; }
.why__card p { margin-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; color: var(--ink-2); }

/* reviews */
.reviews { padding: 110px 0 40px; position: relative; }
.reviews__arrows { display: flex; justify-content: flex-end; gap: 6px; margin-top: 20px; }
.reviews__arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; transition: background .25s; }
.reviews__arrows button:hover:not(:disabled) { background: #fff; }
.reviews__arrows button:disabled { opacity: .3; cursor: default; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 50px 4px 10px; scrollbar-width: none; max-width: 1080px; margin-inline: auto; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { position: relative; margin: 0; padding: 50px 24px 30px; border-radius: 26px; text-align: center; scroll-snap-align: start; }
.review--white { background: var(--white); }
.review--blue { background: var(--blue); }
.review--green { background: var(--green); }
.review__avatar { position: absolute; top: -32px; left: 50%; translate: -50% 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--bg); font-size: 15px; font-weight: 500; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.7; }
.review figcaption { margin-top: 24px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.review small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }

/* faq */
.faq { padding: 110px 0 40px; }
.faq__list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq details { background: var(--white); border-radius: 24px; padding: 28px 32px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 16px; font-size: 17px; color: var(--ink-2); }

/* get in touch */
.touch { margin-top: 110px; background: linear-gradient(to bottom, var(--bg) 45%, var(--green) 45%); padding-bottom: 90px; }
.touch__card { position: relative; max-width: 980px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; min-height: 500px; display: grid; place-items: center; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.08); }
.touch__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.touch__copy { position: relative; padding: 60px 30px; max-width: 600px; }
.touch__copy p { margin-top: 28px; font-size: 18px; }
/* phone: thin green underline only when you point at it */
.touch__phone { display: inline-block; margin-top: 30px; font-family: var(--font); font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color .25s; }
.touch__phone:hover, .touch__phone:focus-visible { text-decoration-color: var(--leaf); }

/* quote */
.quote { padding: 100px 0 100px; }
.quote__sub { text-align: center; margin-top: 12px; font-size: 17px; letter-spacing: .06em; color: var(--ink-2); }
.quote__form { max-width: 780px; margin: 40px auto 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.quote__form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.quote__form input, .quote__form select, .quote__form textarea { font: 400 17px var(--text); color: var(--ink); background: var(--white); border: 1px solid transparent; border-radius: 16px; padding: 14px 18px; text-transform: none; letter-spacing: 0; }
.quote__form :is(input, select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; }
.quote__form textarea { min-height: 130px; resize: vertical; }
.quote__form :is(input, select, textarea):focus { outline: none; border-color: var(--leaf); }
.quote__full { grid-column: 1 / -1; }
.quote__form .pill { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.quote__ok { grid-column: 1 / -1; text-align: center; font-size: 16px; }

/* footer */
.footer { background: var(--green); padding: 70px 0 30px; font-size: 16px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(30,75,42,.25); }
.footer__top img { width: 130px; }
.footer__top p { margin-top: 10px; color: var(--ink-2); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 16px 90px; text-align: center; font-size: 16px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 14px; }

/* scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js .reveal--up { transform: translateY(40px); }
  .js .why__card.reveal { transform: translateY(70px); transition-duration: 1.4s; }
  .js .reveal--zoom { transform: scale(.94); }
  .js .reveal--from-right { transform: translateX(80px); }
  .js .reveal--from-left { transform: translateX(-80px); }
  /* photo appears "out of nowhere" */
  .js .reveal--appear { transform: scale(.6); filter: blur(12px); transition-property: opacity, transform, filter; }
  /* What We Do rows: photo and text start apart and glide together */
  .js .svc .reveal { transition-duration: 1.3s; }
  .js .svc .svc__photo.reveal--appear { transform: translateX(var(--dx)) scale(.7); }
  .js .svc .svc__photo.reveal--unfold { transform: translateX(var(--dx)); }
  .js .svc .reveal--from-right { transform: translateX(160px); }
  .js .svc .reveal--from-left { transform: translateX(-160px); }
  .svc { --dx: -160px; }
  .svc--flip { --dx: 160px; }
  .js .svc .reveal.reveal.is-in { opacity: 1; transform: none; filter: none; }
  /* the rounded frame is only for photos that unfold from the middle; text and cards must never be clipped */
  .js .svc .reveal--unfold.reveal.is-in { clip-path: inset(0 0 0 0 round 48px); }
  /* photo unfolds from the middle */
  .js .reveal--unfold { opacity: 1; clip-path: inset(50% 50% 50% 50% round 48px); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  .js .reveal--unfold.is-in { clip-path: inset(0 0 0 0 round 48px); }
  .js .reveal--appear img, .js .reveal--unfold img { transform: scale(1.15); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in img { transform: none; }
}

/* responsive */
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .reviews__track { grid-auto-columns: 78%; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 112px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); padding: 10px 24px 24px; transform: translateY(-120%); visibility: hidden; transition: transform .4s, visibility .4s; z-index: -1; box-shadow: 0 20px 30px rgba(0,0,0,.06); }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .menu-open .nav { transform: none; visibility: visible; }
  .hero__card { align-items: flex-end; }
  .hero__glass { margin: 16px; max-width: none; padding: 30px 20px; }
  .about__inner { grid-template-columns: 1fr; gap: 34px; }
  .svc { flex-direction: column; gap: 30px; margin-top: 70px; --dx: 0px; }
  .svc--flip { --dx: 0px; }
  .svc__photo { width: min(360px, 100%); }
  .svc__name { white-space: normal; }
  .svc--flip .svc__photo { order: 0; }
  .svc__copy { text-align: center; }
  .svc ul { display: inline-block; text-align: left; }
  .why__grid { grid-template-columns: 1fr; }
  .quote__form { grid-template-columns: minmax(0,1fr); }
  .footer__links { gap: 12px 40px; }
  .js .reveal--from-right, .js .reveal--from-left, .js .svc .reveal--from-right, .js .svc .reveal--from-left { transform: translateY(40px); }
}

/* the "Concept project" bar stays on top; the site menu below it hides while you scroll down
   and comes back when you scroll up or move the mouse to the top of the screen */
.case-bar { position: sticky; top: 0; z-index: 40; }
.header { top: var(--bar-h, 52px); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.header.is-hidden { transform: translateY(-100%); }
@media (max-width: 760px) {
  .case-bar { min-height: 52px; padding: 6px 12px; font-size: 12px; flex-wrap: nowrap; gap: 10px; }
  .case-bar p, .case-bar a { white-space: nowrap; }
  .case-bar a[href*="#works"] { padding: 8px 12px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }

/* ---------- demo chat ---------- */
.chat { position: fixed; right: clamp(12px, 2.4vw, 28px); bottom: calc(clamp(12px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--text); }
.chat__launcher { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--green-deep); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 34px rgba(30,75,42,.35); transition: transform .3s; }
.chat__launcher:hover { transform: scale(1.06); }
.chat__launcher svg { width: 28px; height: 28px; fill: var(--green); }
.chat__launcher:focus-visible, .chat__close:focus-visible, .chat__replay:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.chat__panel { width: min(380px, calc(100vw - 24px)); max-height: min(560px, 72vh, calc(100vh - 110px)); max-height: min(560px, 72svh, calc(100svh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(28,28,30,.22); transform-origin: 100% 100%; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s linear .45s; }
.chat[data-state="closed"] .chat__panel { opacity: 0; transform: translateY(16px) scale(.9); visibility: hidden; pointer-events: none; }
.chat[data-state="open"] .chat__panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--green); }
.chat__head img { width: 44px; height: auto; flex: none; }
.chat__who { flex: 1; min-width: 0; }
.chat__name { font-weight: 600; font-size: 16px; color: var(--green-deep); }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #3FA34D; }
.chat__demo { flex: none; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(30,75,42,.35); color: var(--green-deep); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.chat__close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); color: var(--green-deep); font-size: 22px; line-height: 1; cursor: pointer; }
.chat__log { flex: 1; min-height: 300px; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFAFA; scroll-behavior: smooth; }
.chat__msg { max-width: 82%; margin: 0; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: msgIn .35s cubic-bezier(.2,.8,.2,1) both; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid #E6E6E8; border-bottom-left-radius: 6px; }
.chat__msg--you { align-self: flex-end; background: var(--green-deep); color: #fff; border-bottom-right-radius: 6px; }
.chat__msg--note { align-self: center; max-width: none; padding: 6px 14px; background: var(--green); color: var(--green-deep); font-size: 13px; font-weight: 500; border-radius: 99px; }
.chat__msg--note::before { content: "✓ "; }
.chat__msg--typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid #E6E6E8; border-bottom-left-radius: 6px; }
.chat__msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #9A9A9F; animation: dot 1s infinite ease-in-out; }
.chat__msg--typing span:nth-child(2) { animation-delay: .15s; } .chat__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #EEE; }
.chat__input { flex: 1; margin: 0; padding: 11px 14px; border-radius: 99px; background: #F2F2F3; color: #8A8A90; font-size: 14px; }
.chat__replay { flex: none; padding: 9px 14px; border: 0; border-radius: 99px; background: var(--green); color: var(--green-deep); font: 600 13px var(--text); cursor: pointer; }
.chat__replay:hover { background: var(--leaf-light); }
@media (prefers-reduced-motion: reduce) { .chat__panel, .chat__msg { transition: none; animation: none; } }
.chat__hint { display: none; margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--green-deep); font-size: 14px; font-weight: 500; box-shadow: 0 10px 26px rgba(28,28,30,.15); animation: msgIn .4s both; }
.chat--hint .chat__hint { display: block; }
.chat--hint .chat__launcher { animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 0%, 100% { box-shadow: 0 14px 34px rgba(30,75,42,.35), 0 0 0 0 rgba(134,196,116,.6); } 50% { box-shadow: 0 14px 34px rgba(30,75,42,.35), 0 0 0 14px rgba(134,196,116,0); } }

/* a little breathing room so letters are never clipped while text slides in */
.about__copy, .svc__copy { padding-inline: .15em; margin-inline: -.15em; }

/* short screens (phone or tablet turned sideways): the chat window always fits, messages scroll inside */
@media (max-height: 640px) {
  .chat__log { min-height: 0; }
  .chat__head { padding-block: 10px; }
  .chat__foot { padding-block: 8px; }
}

/* the chat's invisible box must not block taps on the page underneath */
.chat { pointer-events: none; }
.chat__launcher, .chat__hint, .chat[data-state="open"] .chat__panel { pointer-events: auto; }

/* ---------- phone fine-tuning ---------- */
@media (max-width: 760px) {
  /* first screen: whole palm leaf visible, glass card under the photo, slightly overlapping */
  /* frosted glass on top of the photo; the photo is shifted so the palm leaf shows above the glass */
  .hero__card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 600px; overflow: hidden; border-radius: 24px; }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
  .hero__glass { margin: 14px; padding: 28px 18px 30px; background: rgba(232, 232, 234, .28); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border: 1px solid rgba(255,255,255,.4); }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }

  /* What We Do: the text rises clearly too */
  .js .svc .reveal--from-right, .js .svc .reveal--from-left { transform: translateY(70px); }

  /* reviews: one under another, all fully visible */
  .reviews__track { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 52px; overflow: visible; padding-top: 44px; }

  /* Get in Touch: whole photo (sponges included) on top, text below */
  /* text and phone on the foam photo; sponges stay visible in the bottom corner */
  .touch__card { display: flex; align-items: flex-start; justify-content: center; min-height: 560px; }
  .touch__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 100%; }
  .touch__copy { padding: 40px 22px 200px; }

  /* footer: compact and centered */
  .footer { padding: 44px 0 22px; }
  .footer__top { flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-bottom: 28px; }
  .footer__top img { margin-inline: auto; width: 110px; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; width: 100%; max-width: 320px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
}

@media (max-width: 400px) { .case-bar__long { display: none; } }

/* ---------- phone turned sideways (low screen): everything a size smaller ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .case-bar, .header { position: relative; top: 0; }
  .case-bar { min-height: 48px; font-size: 14px; }
  .case-bar a[href*="#works"] { padding: 7px 14px; }
  .header__inner { height: 76px; }
  .header__logo img { width: 96px; }

  /* first screen fits the screen */
  .hero__card { min-height: calc(100svh - 24px); }
  .hero__glass { padding: 22px 28px; max-width: 440px; }
  .hero__title { font-size: 42px; }
  .hero__sub { margin: 12px 0 16px; font-size: 15px; line-height: 1.5; }

  .about { margin-top: 48px; }
  .about__wave { height: 50px; }
  .about__band { padding: 16px 0 48px; }
  .about__inner { gap: 32px; }
  .about__copy p { margin-top: 14px; font-size: 15px; }

  /* What We Do: smaller photo and text so each service fits on the screen */
  .svc { margin-top: 48px; gap: 48px; }
  .svc__photo { width: 210px; border-radius: 28px; }
  .svc__name { font-size: 40px; }
  .svc ul { margin-top: 12px; font-size: 15px; line-height: 2; }

  .why, .reviews, .faq { padding: 56px 0 24px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .why__card { padding: 22px 20px 24px; }
  .faq__list { margin-top: 24px; }
  .faq details { padding: 18px 22px; }
  .faq summary { font-size: 16px; }

  /* Get in Touch: fits on the screen, text and phone on the foam photo */
  .touch { margin-top: 56px; padding-bottom: 48px; }
  .touch__card { min-height: 0; height: calc(100svh - 40px); max-height: 340px; }
  .touch__bg { object-position: 50% 80%; }
  .touch__copy { padding: 24px 28px; max-width: 520px; }
  .touch__copy p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .touch__phone { margin-top: 12px; font-size: 30px; }

  .quote { padding: 56px 0; }
  .quote__form { margin-top: 24px; gap: 12px; }
  .quote__form textarea { min-height: 90px; }

  /* demo chat: the window opens to the LEFT of the round button, so it can use the full height */
  .chat { flex-direction: row; align-items: flex-end; }
  .chat__panel { max-height: calc(100svh - 24px - env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 110px)); }
  .chat__log { min-height: 0; }
  .chat__head { padding-block: 8px; }
  .chat__head img { width: 34px; }
  .chat__foot { padding-block: 8px; }
}

/* ==========================================================================
   First screen (v26): the palm leaf is always shown well
   ========================================================================== */
/* phones held upright: the photo sits at the top, scaled so the WHOLE leaf and towel fit the width;
   the frosted glass sits on the lower part of the photo */
@media (max-width: 599px) and (orientation: portrait) {
  .hero__card { background: #DDDAD3; min-height: 640px; }
  .hero__img {
    inset: auto; top: 0; left: -95.5%; width: 208.5%; height: auto; max-width: none; object-fit: fill;
    transform-origin: 69% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
}

/* phones turned sideways, tablets, laptops up to 1366px: the card has the photo's own shape,
   so nothing is cut off; the glass is smaller and sits on the left, the leaf shows on the right */
@media (min-width: 600px) and (max-width: 1366px), (orientation: landscape) and (max-height: 520px) {
  .hero__card { container-type: inline-size; min-height: 0; height: auto; aspect-ratio: 1376 / 768; flex-direction: row; align-items: center; justify-content: flex-start; }
  .hero__img { object-position: 50% 50%; }
  .hero__glass { width: 42%; max-width: none; margin: 0 0 0 3.5%; padding: 4.2cqw 3cqw; border-radius: clamp(16px, 2.2cqw, 28px); }
  .hero__title { font-size: 6.4cqw; }
  .hero__sub { margin: 1.8cqw 0 2.4cqw; font-size: clamp(12px, 1.45cqw, 19px); line-height: 1.5; }
}

/* reviews on phones turned sideways and mid-size tablets: all three side by side, no sideways scrolling */
@media (min-width: 761px) and (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
  .reviews__track { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow: visible; }
  .review { padding: 44px 16px 22px; border-radius: 20px; }
  .review blockquote { font-size: 14px; line-height: 1.55; }
}

/* ==========================================================================
   v28 — Luma on phones held upright
   ========================================================================== */
/* the top bars scroll away with the page straight away */
@media (max-width: 760px) { .case-bar, .header { position: relative; top: 0; } }

/* first screen: the photo fills the whole card, the whole leaf shows at the top,
   a lighter, see-through glass at the bottom */
@media (max-width: 599px) and (orientation: portrait) {
  .hero__card { min-height: 520px; background: #DDDAD3; }
  .hero__img {
    inset: auto; top: 0; left: 50%; width: auto; height: 100%; max-width: none; object-fit: fill;
    translate: -69.8% 0; transform-origin: 69.8% 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__glass { margin: 14px; padding: 18px 16px 20px; background: rgba(240, 240, 242, .14); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-color: rgba(255, 255, 255, .6); }
  .hero__title { font-size: 40px; }
  .hero__sub { margin: 10px 0 14px; font-size: 14px; }
}

/* v29 — phones held upright: the glass sits in the middle of the photo */
@media (max-width: 599px) and (orientation: portrait) {
  .hero__card { justify-content: center; }
}

/* v30 — phones: in "Why Choose Us" each card comes in as soon as it reaches the screen (no waiting) */
@media (max-width: 760px) {
  .js .why__card.reveal { transition-delay: 0s; }
}
