/*
  AGUA Real Estate — motion layer: AG-04 "Three Doors" (homepage) and the
  AG-03 film section (about page). CSS only.
  To remove: delete the <link> to this file; the homepage cards fall back to a
  plain grid and the film to a plain video.
*/

/* ── AG-04  Three Doors ────────────────────────────────────────────── */
.duo-grid.doors{ grid-template-columns:repeat(3,1fr); }
.doors .door-tag{ display:none; }
.doors .door-no{ position:absolute; z-index:2; top:1.6rem; left:1.7rem; color:#fff; font-size:.66rem; font-weight:500; letter-spacing:.3em; }
@media (max-width:900px){ .duo-grid.doors{ grid-template-columns:1fr; } }

/* pointer devices on wide screens: the three plates stand side by side and the one you move towards opens */
@media (hover:hover) and (min-width:901px){
  .duo-grid.doors{ display:flex; gap:.9rem; }
  .doors .duo-card{ flex:1 1 0; min-width:0; min-height:560px; transition:flex-grow .9s cubic-bezier(.22,1,.36,1), opacity .9s ease, transform .9s cubic-bezier(.22,1.2,.36,1); }
  .doors .duo-card:hover, .doors .duo-card:focus-visible,
  .doors:not(:hover):not(:focus-within) .duo-card:first-child{ flex-grow:3.2; }
  .doors .duo-card::after{ transition:background-color .7s ease; background:linear-gradient(180deg,rgba(15,13,11,.25),rgba(15,13,11,.7)); }
  /* the text block keeps its own width, so nothing re-wraps while a door slides */
  .doors .duo-card .duo-body{ position:absolute; left:0; bottom:0; width:min(33rem,52vw); opacity:0; transform:translateY(14px);
    transition:opacity .35s ease, transform .6s cubic-bezier(.22,1,.36,1); pointer-events:none; }
  .doors .duo-card:hover .duo-body, .doors .duo-card:focus-visible .duo-body,
  .doors:not(:hover):not(:focus-within) .duo-card:first-child .duo-body{ opacity:1; transform:none; transition-delay:.3s; }
  .doors .door-tag{ display:block; position:absolute; z-index:2; left:1.7rem; bottom:1.8rem; color:#fff; white-space:nowrap;
    font-size:.66rem; font-weight:500; letter-spacing:.34em; text-transform:uppercase;
    writing-mode:vertical-rl; transform:rotate(180deg); transition:opacity .3s ease; }
  .doors .duo-card:hover .door-tag, .doors .duo-card:focus-visible .door-tag,
  .doors:not(:hover):not(:focus-within) .duo-card:first-child .door-tag{ opacity:0; }
  .doors .duo-card:focus-visible{ outline:2px solid var(--sea); outline-offset:4px; }
}
@media (prefers-reduced-motion:reduce){
  .doors .duo-card, .doors .duo-card .duo-body, .doors .door-tag, .doors .duo-card::after{ transition:none !important; }
}

/* ── AG-03  the film, on the about page ────────────────────────────── */
.film{ padding:0 0 7rem; text-align:center; }
.film .eyebrow{ margin-bottom:1.6rem; }
.film video{ display:block; width:100%; max-width:1080px; margin:0 auto; aspect-ratio:16 / 9; border-radius:14px; background:var(--ink); }
@media (max-width:760px){ .film{ padding-bottom:5rem; } .film video{ border-radius:10px; } }
