/* Fimex inner pages: the richer layer (12 October 2026).
   The developments' own brands inside the Fimex frame, and the larger picture layouts.
   The bar, the film openings and the footer stay Fimex; the page ground, the dark bands, the
   buttons and the accents take the building's colours (measured off its logo files). */

.brand-vivienne { --bone: #f4f1ec; --paper: #fbf9f6; --night: #2b2b2b; --amber: #bb9b7e; --amber-ink: #80614a; --brand-hi: #ceaa89; --brand-tex: url("brand/vivienne-mark.png"); }
.brand-saareeyaa { --bone: #f6efe4; --paper: #fbf7f0; --night: #4a3727; --amber: #ab8c6c; --amber-ink: #7a5a3c; --brand-hi: #ddad7a; --brand-tex: url("brand/saareeyaa-ground.webp"); }
body { --brand-tex: url("brand/paper.webp"); --brand-hi: #f3a91c; }
.brand-vivienne .site-footer, .brand-saareeyaa .site-footer { background: #151411; }
.brand-vivienne .btn.amber, .brand-saareeyaa .btn.amber { color: #1a1915; }
.brand-vivienne a:hover, .brand-saareeyaa a:hover { text-decoration-color: var(--amber); }
.film__logo { display: block; height: auto; margin-bottom: 0.4rem; }
.film__logo--vivienne { width: clamp(150px, 16vw, 230px); }
.film__logo--saareeyaa { width: clamp(170px, 19vw, 280px); }

/* brand band: the building's own ground, texture and logo, one plain sentence */
.brand-band { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding-block: clamp(72px, 10vw, 150px); isolation: isolate; }
.brand-band::before { content: ""; position: absolute; inset: 0; background: var(--brand-tex) center / cover; opacity: 0.55; z-index: -1; }
/* Vivienne: the V monogram, very large and faint; Saareeyaa: its warm glow */
.brand-vivienne .brand-band::before { background: var(--brand-tex) no-repeat 88% 50% / auto 150%; opacity: 0.07; }
.brand-vivienne .brand-band::after { display: none; }
.brand-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 50%, transparent 0%, var(--night) 100%); opacity: 0.7; z-index: -1; }
.brand-band .wrap { display: grid; justify-items: center; text-align: center; gap: clamp(22px, 3vw, 36px); }
.brand-band img.mark { width: clamp(180px, 22vw, 300px); height: auto; }
.brand-band p { margin: 0; max-width: 34ch; font-family: var(--display); font-weight: 300; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.25; color: var(--on-night); text-wrap: balance; }
.brand-band .rule-hi { width: 64px; height: 1px; background: var(--brand-hi); border: 0; margin: 0; }

/* full-bleed picture with its caption on it */
.bleed { position: relative; margin: 0; overflow: hidden; background: var(--night); }
.bleed img { display: block; width: 100%; height: min(86svh, 62vw); min-height: 340px; object-fit: cover; }
.bleed figcaption { position: absolute; left: var(--gutter); bottom: clamp(16px, 2.4vw, 32px); max-width: 40ch; padding: 10px 14px; background: rgb(21 20 17 / 0.62); color: #f3efe8; font-size: 0.88rem; line-height: 1.45; border-radius: var(--r); backdrop-filter: blur(6px); }
.bleed figcaption strong { font-weight: 500; color: #fff; }

/* two pictures that overlap, and the words beside them */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: clamp(20px, 3vw, 48px) 0; }
.duo .duo-a { grid-column: 1 / span 8; grid-row: 1; margin: 0; }
.duo .duo-b { grid-column: 6 / span 4; grid-row: 1; align-self: end; margin: 0 0 calc(-1 * clamp(40px, 6vw, 96px)); z-index: 1; border: clamp(6px, 0.8vw, 12px) solid var(--bone); border-radius: calc(var(--r) + 2px); box-shadow: 0 24px 60px -30px rgb(20 18 14 / 0.45); background: var(--bone); }
.duo .duo-text { grid-column: 10 / span 3; grid-row: 1; align-self: start; display: grid; gap: 16px; padding-left: clamp(8px, 1.6vw, 24px); }
.duo.flip .duo-a { grid-column: 5 / span 8; }
.duo.flip .duo-b { grid-column: 4 / span 4; }
.duo.flip .duo-text { grid-column: 1 / span 3; padding: 0 clamp(8px, 1.6vw, 24px) 0 0; }
.duo figure { overflow: hidden; }
.duo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.duo .duo-b img { aspect-ratio: 4 / 5; }
.duo figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.duo .duo-b figcaption { padding: 6px 2px 0; }
.duo-section { padding-bottom: clamp(96px, 12vw, 180px); }
.slab .duo .duo-b { border-color: var(--night); background: var(--night); }
.slab .duo figcaption { color: var(--on-night-2); }

/* the homes: one card per apartment type, the plan as the picture */
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.type-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; overflow: hidden; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.type-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9e7e3; }
.type-card div { display: grid; gap: 4px; padding: 14px 16px 16px; }
.type-card h3 { font-size: 1.3rem; }
.type-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.type-card .area { color: var(--amber-ink); font-weight: 500; }
@media (hover: hover) { .type-card:hover { border-color: var(--amber); transform: translateY(-3px); } }

/* rising now: real photographs with the date the camera recorded */
.rising { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.4vw, 20px); }
.rising figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: #23211c; }
.rising figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rising .r-main { grid-row: span 2; min-height: 420px; }
.rising .r-side { aspect-ratio: 3 / 2; }
.rising.single { grid-template-columns: minmax(0, 1fr); }
.rising.single .r-main { grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }
.rising time { position: absolute; left: 12px; top: 12px; padding: 5px 10px; background: rgb(21 20 17 / 0.7); color: #f3efe8; font-size: 0.8rem; font-weight: 500; border-radius: var(--r); letter-spacing: 0.01em; }
.rising figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #f3efe8; font-size: 0.86rem; text-shadow: 0 1px 10px rgb(0 0 0 / 0.8); }
.timeline { display: grid; gap: clamp(36px, 5vw, 64px); }
.timeline article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.timeline .when { position: sticky; top: calc(4.25rem + 18px); display: grid; gap: 6px; }
.timeline .when time { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); font-weight: 300; }
.timeline .when p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.timeline .shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.timeline .shots figure { margin: 0; }
.timeline .shots figure.wide { grid-column: 1 / -1; }
.timeline .shots img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.timeline figcaption { margin-top: 6px; font-size: 0.84rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .duo-a, .duo.flip .duo-a { grid-column: 1; grid-row: 1; }
  .duo .duo-b, .duo.flip .duo-b { grid-column: 1; grid-row: 2; width: 62%; justify-self: end; margin: calc(-1 * clamp(60px, 18vw, 120px)) 0 0; }
  .duo .duo-text, .duo.flip .duo-text { grid-column: 1; grid-row: 3; padding: 0; }
  .duo .duo-a figcaption { padding-right: 40%; }   /* clear of the second picture tucked over the corner */
  .duo-section { padding-bottom: clamp(48px, 8vw, 80px); }
  .rising { grid-template-columns: minmax(0, 1fr); }
  .rising .r-main { min-height: 0; aspect-ratio: 4 / 3; }
  .timeline article { grid-template-columns: minmax(0, 1fr); }
  .timeline .when { position: static; }
  .bleed img { height: 62vw; min-height: 260px; }
  .bleed figcaption { position: static; max-width: none; border-radius: 0; background: var(--night); }
}

/* calm motion: pictures settle into place and words rise once, as they come into view;
   nothing moves for visitors who ask for less motion, or in browsers without view timelines */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bleed img, .duo .duo-a img, .rising .r-main img { animation: fx-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .duo .duo-b { animation: fx-drift linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .brand-band .mark, .brand-band p, .brand-band .rule-hi, .type-card, .timeline article { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
    @keyframes fx-settle { from { transform: scale(1.09); } to { transform: scale(1); } }
    @keyframes fx-drift { from { transform: translateY(48px); } to { transform: translateY(0); } }
    @keyframes fx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}

/* the two buildings side by side, each in its own colours, on the Fimex pages */
.brand-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-pair a { position: relative; display: grid; align-content: end; gap: 14px; min-height: min(78svh, 760px); padding: clamp(24px, 4vw, 56px); color: #f3efe8; text-decoration: none; overflow: hidden; isolation: isolate; }
.brand-pair a > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.brand-pair a::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.brand-pair .bp-viv::after { background: linear-gradient(to top, rgb(43 43 43 / 0.94) 0%, rgb(43 43 43 / 0.55) 45%, rgb(43 43 43 / 0.1) 100%); }
.brand-pair .bp-sry::after { background: linear-gradient(to top, rgb(74 55 39 / 0.95) 0%, rgb(74 55 39 / 0.55) 45%, rgb(74 55 39 / 0.1) 100%); }
.brand-pair .bp-logo { width: clamp(180px, 20vw, 280px); height: auto; }
.brand-pair p { margin: 0; max-width: 36ch; font-size: 1rem; line-height: 1.55; color: #e8e1d6; }
.brand-pair .bp-go { font-size: 0.92rem; font-weight: 500; color: #f3efe8; border-bottom: 1px solid currentColor; justify-self: start; padding-bottom: 2px; }
.brand-pair .bp-viv .bp-go { border-color: #ceaa89; }
.brand-pair .bp-sry .bp-go { border-color: #ddad7a; }
@media (hover: hover) { .brand-pair a:hover > img:first-child { transform: scale(1.04); } }
@media (max-width: 820px) { .brand-pair { grid-template-columns: minmax(0, 1fr); } .brand-pair a { min-height: 72svh; } }
