/* =====================================================================
   Atrustos | Home v2 — human-centred, photographic
   Real scenes, full-bleed, one glass card carrying the words.
   ===================================================================== */

/* glass that sits on photography needs a darker tint to stay legible */
.scene-card {
  position: relative; max-width: 560px; padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(14, 16, 30, .62), rgba(8, 9, 20, .55));
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
}
.scene-card h1, .scene-card h2 { margin: 20px 0 16px; }
.scene-card p { color: var(--text-2); margin-bottom: 22px; }
.scene-card .bullets { margin-bottom: 0; }

/* slow drift on every scene */
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

/* ---------- HERO ---------- */
.ph-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.ph-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 40s ease-in-out infinite alternate; }
.ph-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,4,10,.72) 0%, rgba(3,4,10,.25) 55%, rgba(3,4,10,.05) 100%),
    linear-gradient(0deg, rgba(3,4,10,.85) 0%, transparent 35%),
    linear-gradient(180deg, rgba(3,4,10,.55) 0%, transparent 20%); }
.ph-hero__inner { padding-bottom: clamp(32px, 9vh, 96px); }
.ph-hero__card { max-width: 620px; animation: card-in .7s var(--ease) .1s both; }
.ph-hero h1 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -.05em; line-height: .98; }
@keyframes card-in { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.ph-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ph-proof li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.ph-proof svg { width: 15px; height: 15px; color: var(--accent-2); }

/* ---------- framed photos ---------- */
.ph-frame { position: relative; margin: 0; border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ph-frame:hover img { transform: scale(1.04); }
.ph-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(3,4,10,.55), transparent 45%); }
.ph-frame--tall { aspect-ratio: 4 / 5; overflow: visible; }
.ph-frame--tall img { border-radius: var(--r-2xl); }
.ph-frame--tall::after { border-radius: var(--r-2xl); }
.ph-float { position: absolute; left: 18px; bottom: 18px; z-index: 1; padding: 16px 20px; border-radius: var(--r-lg);
  background: rgba(10, 12, 24, .58); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ph-float b { display: block; font-size: 16px; font-weight: 600; }
.ph-float span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; }

/* ---------- scattered ---------- */
.scatter { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.scatter__text h2 { margin: 22px 0 18px; }
.scatter__places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.scatter__places li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 100px; font-size: 14px; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--line); }
.scatter__places svg { width: 15px; height: 15px; color: var(--text-3); }

/* ---------- full-bleed scenes ---------- */
.ph-bleed { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-block: 96px; }
.ph-bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 46s ease-in-out infinite alternate; }
.ph-bleed::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(270deg, rgba(3,4,10,.78) 0%, rgba(3,4,10,.25) 60%, rgba(3,4,10,.1) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
.ph-bleed--left::after { background: linear-gradient(90deg, rgba(3,4,10,.8) 0%, rgba(3,4,10,.25) 60%, rgba(3,4,10,.1) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
.ph-bleed__card--right { margin-left: auto; }
.ph-bleed .h2 { font-size: clamp(32px, 4vw, 58px); }

.ph-bleed--cta { min-height: 80vh; text-align: center; }
.ph-bleed--cta::after { background: radial-gradient(60% 70% at 50% 50%, rgba(3,4,10,.35), rgba(3,4,10,.75)),
              linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%); }
.ph-cta { margin-inline: auto; max-width: 640px; }
.ph-cta .glyph { width: 52px; margin: 0 auto 8px; }
.ph-cta h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.05em; }
.ph-cta p { max-width: 460px; margin: 0 auto 28px; }
.ph-credit { position: absolute; right: 18px; bottom: 14px; font-size: 10.5px; color: var(--text-3); }

/* ---------- one place ---------- */
.ph-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ph-split__text h2 { margin: 22px 0 18px; }
.ph-split__text .lead { margin-bottom: 22px; }
.vault-card { position: absolute; right: -28px; bottom: 32px; z-index: 1; width: min(330px, 86%); padding: 18px; border-radius: var(--r-lg);
  background: rgba(10, 12, 24, .62); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.vault-card__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.vault-card__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #b8adff, #6a58ff); }
.vault-card__av svg { width: 18px; height: 18px; }
.vault-card__head b { display: block; font-size: 14.5px; }
.vault-card__head small { display: block; font-size: 10.5px; color: var(--mint); }
.vault-card__list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 9px 2px; font-size: 13px; }
.vault-card__list svg { width: 16px; height: 16px; color: var(--text-2); }
.vault-card__list em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.vault-card__list li.off span:first-of-type, .vault-card__list li.off svg { opacity: .5; }
.vault-card__list li.off em { color: var(--rose); }
.vault-card .switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 100px; background: linear-gradient(180deg, #4ff0b4, #22c48a); box-shadow: 0 0 14px -4px rgba(79,240,180,.7); }
.vault-card .switch::after { content: ""; position: absolute; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.vault-card .switch::after { width: 14px; height: 14px; left: 17px; }
.vault-card .switch.is-off { background: rgba(255,255,255,.14); box-shadow: none; }
.vault-card .switch.is-off::after { left: 3px; }

/* ---------- four solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sol { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); transition: transform .7s var(--ease); }
.sol:hover { transform: translateY(-6px); }
.sol__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sol__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sol:hover .sol__img img { transform: scale(1.05); }
.sol__tag { position: absolute; left: 14px; top: 14px; font-size: 11px; padding: 5px 10px; border-radius: 100px; color: #fff;
  background: rgba(10,12,24,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sol__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.sol__k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.sol h3 { font-size: clamp(21px, 2vw, 26px); margin: 10px 0 10px; }
.sol p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.sol .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust__item { padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.trust__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; background: rgba(255,106,43,.12); color: var(--accent-2); }
.trust__ico svg { width: 21px; height: 21px; }
.trust__item b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.trust__item p { font-size: 14.5px; color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .scatter, .ph-split { grid-template-columns: minmax(0, 1fr); }
  .vault-card { right: 16px; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sol-grid { grid-template-columns: 1fr; }
  .ph-hero__card { padding: 22px; }
  .ph-hero .ph-more, .ph-hero .ph-proof { display: none; }
  .ph-hero .lead { font-size: 15.5px; margin-bottom: 18px; }
  .ph-hero .hero__cta .btn { padding: 13px 18px; font-size: 15px; }
  .ph-hero { align-items: flex-end; }
  .ph-hero::after { background: linear-gradient(0deg, rgba(3,4,10,.9) 0%, rgba(3,4,10,.35) 60%, rgba(3,4,10,.5) 100%); }
  .ph-bleed { min-height: 0; padding-block: 48px; align-items: flex-end; }
  .ph-bleed::after, .ph-bleed--left::after { background: linear-gradient(0deg, rgba(3,4,10,.85) 0%, rgba(3,4,10,.3) 70%),
              linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
  .ph-bleed .scene-card { margin-top: 38vh; }
  .ph-frame--tall { aspect-ratio: 3 / 4; }
  .vault-card { left: 12px; right: 12px; width: auto; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ph-hero__img, .ph-bleed__img { animation: none; } }

/* ---------- full-screen scene inside the blended home ---------- */
.ph-bleed--full { min-height: 100vh; min-height: 100svh; }
.ph-scene__card { max-width: 620px; }
.ph-scene__title { font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -.05em; line-height: .98; }
@media (max-width: 700px) {
  .ph-bleed--full { min-height: 0; }
  .ph-scene__card .ph-more, .ph-scene__card .ph-proof { display: none; }
}

/* the scene as the sheet that slides up over the hero */
.ph-bleed--sheet { z-index: 2; border-radius: var(--r-2xl) var(--r-2xl) 0 0; box-shadow: 0 -50px 120px -20px rgba(0,0,0,.9); }
.ph-bleed--sheet::after { background: linear-gradient(90deg, rgba(3,4,10,.8) 0%, rgba(3,4,10,.25) 60%, rgba(3,4,10,.1) 100%),
              linear-gradient(180deg, transparent 80%, var(--bg) 100%); }
@supports (corner-shape: squircle) { .ph-bleed--sheet { corner-shape: squircle; border-radius: 90px 90px 0 0; } }
@media (max-width: 700px) {
  .ph-bleed--sheet { border-radius: 32px 32px 0 0; }
  .ph-bleed--sheet::after { background: linear-gradient(0deg, rgba(3,4,10,.88) 0%, rgba(3,4,10,.3) 70%), linear-gradient(180deg, transparent 85%, var(--bg) 100%); }
}

/* hero variant: card on the right, subject on the left */
.ph-hero--right .ph-hero__card { margin-left: auto; }
.ph-hero--right::after { background:
    linear-gradient(270deg, rgba(3,4,10,.75) 0%, rgba(3,4,10,.25) 55%, rgba(3,4,10,.05) 100%),
    linear-gradient(0deg, rgba(3,4,10,.85) 0%, transparent 35%),
    linear-gradient(180deg, rgba(3,4,10,.55) 0%, transparent 20%); }
@media (max-width: 700px) {
  .ph-hero--right::after { background: linear-gradient(0deg, rgba(3,4,10,.9) 0%, rgba(3,4,10,.35) 60%, rgba(3,4,10,.5) 100%); }
}
