/* Sunset Solutions: homepage sections below the film.
   Rhythm: film (night) → What we create (daylight) → Our work (night) → About (daylight)
   → How we work (daylight) → Let's talk (night finale). Shared scenery lives in daylight.css.
   Only transform and opacity animate. */

/* ---------- What we create: Ordering featured, the rest stacked beside it ---------- */
.create-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 2.6vw, 28px); align-items: stretch; }

.feature {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px;
  background: var(--night); color: var(--ivory);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 50px 90px -46px rgba(176, 23, 79, .8);
  transition: transform 250ms ease-out;
}
.feature.tilting { transition: none; }
.feature::before {   /* the sun rising behind the phone */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 22%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 24, .42), rgba(233, 30, 99, .2) 50%, rgba(233, 30, 99, 0));
}
.feature-tag {
  align-self: flex-start; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(90deg, #E91E63, #FF7A18); color: var(--night);
  font: 500 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
}

/* Decorative order screen (not a real client) */
.feature-art { position: relative; height: 200px; margin: 18px 0 28px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; border-bottom: 1px solid rgba(251, 247, 242, .14); }
.fa-phone {
  width: 168px; height: 184px; padding: 14px 12px 0; display: grid; gap: 9px; align-content: start;
  border: 1px solid rgba(251, 247, 242, .2); border-bottom: 0; border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
}
.fa-bar { justify-self: center; width: 46px; height: 5px; border-radius: 5px; background: rgba(251, 247, 242, .22); margin-bottom: 4px; }
.fa-row { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 9px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.fa-row i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, rgba(233, 30, 99, .75), rgba(255, 122, 24, .75)); }
.fa-row b { height: 7px; border-radius: 7px; background: rgba(251, 247, 242, .28); width: 80%; }
.fa-row:nth-child(3) b { width: 62%; } .fa-row:nth-child(4) b { width: 72%; }
.fa-send { margin-top: 2px; padding: 9px 0; border-radius: 999px; text-align: center; font: 500 .75rem/1 var(--body); color: var(--night); background: linear-gradient(90deg, #E91E63, #FF7A18); }
.fa-note {
  position: absolute; top: 26px; left: calc(50% + 46px); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: #fff; color: var(--night);
  font: 500 .8125rem/1 var(--body); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
  animation: fa-bob 3.2s ease-in-out infinite alternate;
}
.fa-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #E91E63, #FF7A18); }

.feature-body { display: grid; justify-items: start; }
.feature-ic { width: 30px; height: 30px; fill: none; stroke: var(--sun); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--ivory); }
.feature p { margin-top: 10px; color: rgba(251, 247, 242, .76); max-width: 30rem; }
.feature .from { margin-top: 16px; color: rgba(251, 247, 242, .66); }
.feature .from strong { color: var(--ivory); font: 500 1.375rem var(--head); margin: 0 4px; }
.feature .from .usd { color: rgba(251, 247, 242, .6); }
.feature .btn { margin-top: 22px; }

/* The other three services: bright cards with gradient icon badges */
.glow .create-grid .services-grid { grid-template-columns: 1fr; gap: 14px; column-gap: 0; }
.glow .service {
  grid-template-columns: 44px 1fr; gap: 0 18px; padding: 22px 24px; border: 1px solid rgba(233, 30, 99, .12); border-radius: 18px;
  background: rgba(255, 255, 255, .84); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 54px -40px rgba(176, 23, 79, .55);
  transition: transform 250ms ease-out;
}
.glow .service:hover { transform: translateY(-2px); }
.glow .service > svg { width: 44px; height: 44px; padding: 10px; margin-top: 0; border-radius: 12px; background: linear-gradient(135deg, #E91E63, #FF7A18); stroke: var(--night); stroke-width: 1.5; }
.glow .service h3 { font-size: 1.125rem; }
.glow .service p { margin-top: 6px; font-size: .9375rem; }
.glow .service .from { margin-top: 8px; }
.glow .service .from .usd { margin-left: 4px; color: var(--muted); font-size: .875rem; }
.glow .services-more { border-top-color: rgba(233, 30, 99, .18); }

/* ---------- Our work (night) ---------- */
.dark .shots::before { inset: -4% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 122, 24, .30), rgba(233, 30, 99, .15) 55%, rgba(233, 30, 99, 0)); }
.dark .phone { background: #2A2130; border-color: rgba(251, 247, 242, .14); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 36px 60px -30px rgba(0, 0, 0, .8); }
.dark .project .phone.reveal-cover::before { background: #2A2130; }
.dark .project .kind { color: var(--sun); }
.dark .project dt { color: rgba(251, 247, 242, .55); }
.dark .project dd { color: rgba(251, 247, 242, .86); }

/* "Coming next" becomes an invitation with a sunset border */
.dark .next {
  grid-template-columns: auto 1fr auto; gap: 18px 28px; padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px); border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(#211A27, #211A27) padding-box, linear-gradient(90deg, #E91E63, #FF7A18) border-box;
  box-shadow: 0 40px 80px -50px rgba(233, 30, 99, .7);
}
.dark .next h3 em { font-style: normal; color: var(--sun); }
.dark .next p { color: rgba(251, 247, 242, .72); }
.next-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #E91E63, #FF7A18); }
.next-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dot-ping 2.4s ease-out infinite; }

/* Three project cards, each opening its case study on the Our Work page */
.work-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 24px); }
.work-card a {
  display: flex; flex-direction: column; height: 100%; padding: 12px 12px 22px; border-radius: 22px; text-decoration: none; color: var(--ivory);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(251, 247, 242, .12); transition: transform 250ms ease-out;
}
.work-card a:hover { transform: translateY(-4px); border-color: rgba(255, 154, 92, .5); }
.wc-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #FFE3D6; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22, 1, .36, 1); }
.work-card a:hover .wc-img img { transform: scale(1.04); }
.wc-phone { display: flex; justify-content: center; align-items: flex-start; padding-top: 26px; background: radial-gradient(80% 70% at 50% 100%, rgba(255, 122, 24, .55), rgba(233, 30, 99, .3) 50%, #2A2130 100%); }
.wc-phone img { width: 64%; height: auto; aspect-ratio: auto; border-radius: 18px 18px 0 0; border: 5px solid #fff; border-bottom: 0; object-fit: initial; }
.wc-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #E91E63, #FF7A18); border: 3px solid #fff; box-shadow: 0 18px 36px -12px rgba(23, 18, 28, .75); transition: transform 250ms ease-out; }
.wc-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.work-card a:hover .wc-play { transform: scale(1.08); }
.wc-kind { margin: 18px 8px 0; font: 500 .6875rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.wc-title { margin: 6px 8px 0; font: 500 1.375rem/1.2 var(--head); }
.wc-line { margin: 8px 8px 0; color: rgba(251, 247, 242, .72); font-size: .9375rem; }
.wc-more { margin: auto 8px 0; padding-top: 18px; display: inline-flex; align-items: center; gap: .45em; font-weight: 500; font-size: .9375rem; }
.wc-more svg { width: 1em; height: 1em; transition: transform 200ms ease-out; }
.work-card a:hover .wc-more svg { transform: translateX(3px); }
.work-all { margin-top: clamp(28px, 4vw, 40px); display: flex; justify-content: center; }
@media (max-width: 900px) {
  .work-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px;
    margin: 0 calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px))) 0 calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    padding: 4px max(var(--gutter), env(safe-area-inset-left, 0px)) 8px; }
  .work-cards::-webkit-scrollbar { display: none; }
  .work-card { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }
}

/* ---------- In their words (daylight) ---------- */
.glow-words {
  --sec-bg: linear-gradient(160deg, #FFE9DC 0%, #FFE1E6 100%);
  --sec-light: radial-gradient(40% 44% at 90% 8%, rgba(255, 138, 60, .42), transparent 70%), radial-gradient(36% 44% at 8% 90%, rgba(233, 30, 99, .24), transparent 70%);
}
/* One wide panel per client: the quote on the left, the signature block on the right. */
.cw-grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.cw-card {
  position: relative; margin: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 25%, 272px);
  gap: clamp(24px, 3.4vw, 48px); align-items: stretch;
  padding: clamp(24px, 3.2vw, 40px); border-radius: 22px;
  background: rgba(255, 255, 255, .93); border: 1px solid rgba(233, 30, 99, .12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 54px -40px rgba(176, 23, 79, .55);
}
.cw-card blockquote { margin: 0; align-self: start; }
.cw-quote { min-width: 0; }
.cw-card blockquote p {
  max-width: 60ch;
  font-size: clamp(1.0625rem, .5vw + .9rem, 1.25rem); line-height: 1.62;
  color: var(--text); text-wrap: pretty;
}
.cw-card blockquote p + p { margin-top: .85em; }
.cw-more { margin-top: 4px; }
.cw-more[hidden] { display: none; }
.cw-more svg { width: .8em; height: .8em; transition: transform 220ms var(--ease); }
.cw-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.cw-card.is-collapsed { overflow-anchor: none; }
.cw-card.is-collapsed .cw-quote blockquote {
  max-height: 17em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 68%, transparent);
  mask-image: linear-gradient(#000 68%, transparent);
}
.cw-foot {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid rgba(233, 30, 99, .16);
}
.cw-top { display: flex; align-items: center; gap: 12px; }
.cw-av {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #E91E63, #FF7A18); color: var(--night);
  font: 500 .9375rem/1 var(--head); letter-spacing: .02em;
}
.cw-top b { display: block; font: 500 .9375rem/1.3 var(--head); }
.cw-top div span { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.cw-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cw-card .link { font-size: .9375rem; }
@media (min-width: 861px) {
  .cw-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 860px) {
  .cw-card { grid-template-columns: 1fr; gap: 18px; }
  .cw-foot {
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(233, 30, 99, .16);
  }
  .cw-links { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
}
@media (min-width: 861px) { .cw-more { display: none !important; } }

/* ---------- About (daylight) ---------- */
.glow .about-body p:first-child { color: var(--text); }
.about .values { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(8px, 2vw, 24px); }
.glow .values li {
  padding: 26px 24px; border: 1px solid rgba(233, 30, 99, .12); border-radius: 18px; background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 54px -40px rgba(176, 23, 79, .55);
}
.glow .values strong { margin: 18px 0 6px; font: 500 1.125rem/1.3 var(--head); }
.v-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #E91E63, #FF7A18); }
.v-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--night); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- How we work (daylight) ---------- */
.deposit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: fit-content; max-width: 100%;
  margin-top: clamp(28px, 4vw, 44px); padding: 14px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(233, 30, 99, .16); box-shadow: 0 20px 40px -32px rgba(176, 23, 79, .55);
}
.deposit strong { font-weight: 500; }
.ac-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #E91E63, #FF7A18); box-shadow: 0 0 0 4px rgba(233, 30, 99, .14); }

/* ---------- Let's talk (night finale) ---------- */
.section.dark.finale::after {   /* the sun sets behind the form, instead of along the bottom edge */
  bottom: auto; top: 58%; left: 72%; width: min(1000px, 160vw); height: auto; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 154, 92, .36), rgba(233, 30, 99, .16) 50%, rgba(233, 30, 99, 0));
}
.dark .contact-details li { border-top-color: rgba(251, 247, 242, .12); }
.dark .contact-details span { color: rgba(251, 247, 242, .55); }
.dark .contact-details a { color: var(--ivory); }
.dark .form { border-color: transparent; box-shadow: 0 50px 100px -50px rgba(233, 30, 99, .65); }

@keyframes fa-bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes dot-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
  .create-grid { grid-template-columns: 1fr; }
  .about .values { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .dark .next { grid-template-columns: auto 1fr; align-items: start; }
  .next-dot { margin-top: 8px; }
  .dark .next .btn { grid-column: 1 / -1; justify-self: start; }
  .section.dark.finale::after { left: 50%; top: 70%; }
}
@media (max-width: 560px) {
  .feature-art { height: 176px; }
  .fa-phone { width: 150px; }
  .fa-note { left: auto; right: 4px; }
  .glow .service { grid-template-columns: 40px 1fr; padding: 20px 18px; }
  .glow .service > svg { width: 40px; height: 40px; padding: 9px; }
  .deposit { border-radius: 18px; align-items: flex-start; }
  .deposit .ac-dot { margin-top: 5px; }
}
