/* FINOVAS — 2026-10-29 art direction: "quiet authority".
   Documentary photography in one cool grade, square geometry after the sharp-cut wordmark, a wider
   type scale, and one graphic device: the 67° lean of the Λ in FINOVΛS, which cuts every hero
   photograph and carries a Finovas-blue band. No cut-outs, coins, stickers or carousels. */

/* ── Hero: copy on Deep Navy, the photograph cut along the Λ's lean ── */
.ehero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--on-navy-muted); }
.ehero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: clamp(560px, 48vw, 720px); }
.ehero__copy { padding: clamp(64px, 8vw, 112px) clamp(24px, 4vw, 64px) clamp(64px, 8vw, 112px) 0; }
.ehero .breadcrumb { margin-bottom: 22px; }
.ehero__title { margin-top: 0; max-width: 12em; color: var(--white); font-size: var(--fs-display); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.ehero .eyebrow + .ehero__title { margin-top: 20px; }
:lang(th) .ehero__title { line-height: 1.28; letter-spacing: 0; }
:lang(zh) .ehero__title { line-height: 1.2; letter-spacing: 0; }
.ehero__lead { margin-top: 26px; max-width: 34em; color: rgba(255, 255, 255, .8); font-size: var(--fs-lead); line-height: 1.65; }
.ehero__lead p { max-width: none; }
.ehero__lead p + p { margin-top: 12px; }
.ehero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.ehero .hero__proof { margin-top: 28px; }
/* The cut: run = 0.431 × rise of the media box (cqh), the lean of the Λ's leg */
.ehero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 50%; container-type: size; }
.ehero__frame { position: absolute; inset: 0; background: var(--navy-2); clip-path: polygon(18px 0, 100% 0, 100% 100%, calc(43.1cqh + 18px) 100%); }
.ehero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 35%); }
.ehero__leg { position: absolute; inset: 0; background: var(--blue); clip-path: polygon(0 0, 18px 0, calc(43.1cqh + 18px) 100%, 43.1cqh 100%); }
/* One orchestrated entrance; nothing moves after it */
/* First screen (UK 2026-11-11, every hero 2026-11-12): the headline and spacing follow the window's height as well as
   its width, so the buttons stay on the first screen of a laptop (1280×720, 1366×768) and an iPad held sideways.
   editorialHero() adds ehero--long to headlines over about 40 characters (AU's owner copy runs to 67). */
.ehero .eyebrow { color: #A9CCFF; } /* as on the other heroes: blue-ink on navy was 2.9:1 */
.ehero .ehero__title { font-size: clamp(2.25rem, min(1.35rem + 3.6vw, 1.5rem + 5.4vh), 4.6rem); }
.ehero.ehero--long .ehero__title { font-size: clamp(2rem, min(1.1rem + 2.9vw, 1.25rem + 4.4vh), 3.75rem); }
.ehero .ehero__lead { margin-top: clamp(16px, 2.8vh, 26px); }
.ehero .ehero__cta { margin-top: clamp(22px, 4.2vh, 40px); }
.ehero .hero__proof { margin-top: clamp(16px, 2.8vh, 28px); }
@media (min-width: 901px) {
  .ehero .ehero__copy { padding-block: clamp(44px, min(8vw, 9vh), 112px); }
}

@keyframes ehero-in { from { opacity: 0; transform: translateX(32px); } }
.ehero__frame { animation: ehero-in .9s var(--ease) both; }
.ehero__leg { animation: ehero-in .9s var(--ease) .1s both; }

/* ── Country cards: the photograph, then the words on paper ── */
.country-card { position: relative; display: grid; align-content: start; color: var(--text); }
.country-card:hover { color: var(--text); }
.country-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-2); }
.country-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.country-card:hover .country-card__photo { transform: scale(1.03); }
.country-card__body { display: grid; gap: 6px; padding: 22px 0 0; }
.country-card__tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--steel); font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.country-card__tag span { font-size: 1.05rem; line-height: 1; letter-spacing: 0; }
.country-card h3 { color: var(--navy); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); transition: color var(--t-fast); }
.country-card:hover h3 { color: var(--blue-ink); }
.country-card__body p { color: var(--steel); font-size: .95rem; line-height: 1.6; }
.country-card__go {
  justify-self: start; margin-top: 8px; color: var(--blue-ink); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(18, 98, 212, .35);
}
.country-card:hover .country-card__go { text-decoration-color: currentColor; }
.article-aside .country-card__media { aspect-ratio: 16 / 10; }
.article-aside .country-card__body p { display: none; }

/* ── Reasons and values as typography: a rule, a title, a line (no icons) ── */
.why-list { display: grid; border-top: 1px solid var(--line); }
.why-item--row { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-item--row h3, .why-item h3, .value h3, .perk h3, .th-why__item h3 { color: var(--navy); font-size: 1.12rem; font-weight: 600; }
.why-item--row p { margin-top: 4px; color: var(--steel); }

/* ── The team's videos (Facebook), on Deep Navy ── */
.videos .section-head .lead { color: var(--on-navy-muted); }
.vids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.vid { display: grid; align-content: start; gap: 16px; margin: 0; }
.vid__play, .vid__video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: var(--navy-2); }
.vid__play img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-base); }
.vid__play:hover img { opacity: .82; }
/* Play button: a round, see-through disc (customer review 2026-10-31); solid on hover and focus */
.vid__icon {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; translate: -50% -50%;
  border-radius: 50%; background: rgb(22 119 255 / .62); box-shadow: 0 0 0 1px rgb(255 255 255 / .35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background var(--t-fast);
}
.vid__play:hover .vid__icon, .vid__play:focus-visible .vid__icon { background: rgb(22 119 255 / .92); }
.vid__icon svg { width: 20px; height: 22px; margin-left: 3px; fill: var(--white); }
.vid__video { object-fit: cover; }
.vid figcaption { display: grid; gap: 4px; }
.vid figcaption b { color: var(--white); font-weight: 600; line-height: 1.45; }
.vid figcaption small { color: var(--on-navy-muted); font-size: .86rem; }
.vids__more { margin-top: 40px; }
.text-link--light { color: var(--white); text-decoration-color: rgba(255, 255, 255, .45); }
.text-link--light:hover { color: var(--white); text-decoration-color: var(--white); }

/* ── Photographs are square-cut and unframed ── */
.framed-photo__frame, .th-service__media, .story__main, .bento__item, .blog-card__media, .perks__photo, .careers-cta { border-radius: 0; }

@media (max-width: 1024px) {
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ehero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ehero__copy { padding: 52px 0 44px; }
  .ehero__media { position: relative; left: auto; height: clamp(260px, 74vw, 480px); }
}
@media (max-width: 520px) {
  .vids { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .vid { scroll-snap-align: start; }
  .ehero__cta .btn { width: 100%; }
}

/* Service page: the price sits under the line, white on navy */
.ehero__lead .ehero__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ehero .price-tag { color: var(--white); }
.ehero .price-tag--lg { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -.01em; }
.ehero__price small { color: var(--on-navy-muted); font-size: .9rem; }
.ehero .price-jump { margin-top: 0; }

@media (max-width: 760px) {
  .country-card__media { aspect-ratio: 4 / 3; }
}

/* Thai services (2026-10-29 review: "ฟ้าๆ โล่งๆ"): white paper like the rest, a navy contents bar,
   and each service as a ruled row where the photo runs the full height of its text. */
.th-services-sec .th-jump { gap: 0; padding: 0; margin-bottom: clamp(36px, 4vw, 52px); background: var(--navy); border: 0; }
.th-services-sec .th-jump a { flex: 1 1 auto; padding: 16px 18px; color: rgba(255, 255, 255, .86); font-size: .92rem; text-align: center; border-left: 1px solid var(--navy-3); }
.th-services-sec .th-jump a:first-child { border-left: 0; }
.th-services-sec .th-jump a:hover { color: var(--white); background: var(--navy-2); text-decoration: none; }
.th-services-sec .th-service, .th-services-sec .th-service:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.th-services-sec .th-service:first-child { padding-top: 0; border-top: 0; }
.th-services-sec .th-service__media { aspect-ratio: auto; min-height: 340px; height: 100%; }
.th-services-sec .th-service__content { align-content: center; }
.th-services-sec .tiers, .th-services-sec .tier { border-color: var(--line); }
.th-services-sec .fee-note { border-color: var(--line); }
@media (max-width: 900px) {
  .th-services-sec .th-jump { background: none; border-block: 1px solid var(--line); }
  .th-services-sec .th-jump a { flex: 0 0 auto; padding: 8px 14px 8px 0; color: var(--navy); border: 0; text-align: left; }
  .th-services-sec .th-service, .th-services-sec .th-service:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .th-services-sec .th-service__media { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
}

/* ── Brand (2026-11 brand system, About page): the logo's line and words, then the FINOVAS owl ── */
.brand-sec__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.brand-sec h2 { margin-top: 18px; max-width: 13em; color: var(--white); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em; }
.brand-sec__local { margin-top: 12px; color: #A9CCFF; font-size: var(--fs-lead); font-weight: 600; }
.brand-sec__lead { margin-top: 18px; max-width: 36em; color: var(--on-navy-muted); font-size: var(--fs-lead); }
.brand-words { display: flex; flex-wrap: wrap; margin-top: 36px; border-top: 1px solid var(--navy-3); }
.brand-words li { flex: 1 1 128px; display: grid; align-content: start; gap: 2px; padding: 16px 16px 0 0; }
.brand-words li + li { padding-left: 16px; border-left: 1px solid var(--navy-3); }
.brand-words b { color: var(--white); font-weight: 600; }
.brand-words span { color: var(--on-navy-muted); font-size: .9rem; }
.brand-sec__mark { width: clamp(180px, 22vw, 300px); height: auto; }
.brand-owl {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "hero copy" "hero poses";
  gap: 10px clamp(24px, 4vw, 56px); align-items: end; margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; background: var(--white); color: var(--text);
}
.brand-owl__hero { grid-area: hero; align-self: end; width: clamp(150px, 18vw, 230px); height: auto; }
.brand-owl__copy { grid-area: copy; align-self: start; padding-top: 6px; }
.brand-owl__copy h3 { color: var(--navy); font-size: var(--fs-h3); }
.brand-owl__copy p { margin-top: 8px; max-width: 42em; color: var(--steel); }
.brand-owl__poses { grid-area: poses; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.brand-owl__poses li { display: grid; justify-items: center; gap: 6px; color: var(--navy); font-size: .9rem; font-weight: 600; text-align: center; }
.brand-owl__poses img { width: auto; max-width: 100%; height: 104px; object-fit: contain; }
@media (max-width: 900px) {
  .brand-sec__intro { grid-template-columns: minmax(0, 1fr); }
  .brand-sec__mark { order: -1; width: 132px; }
  .brand-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .brand-words li, .brand-words li + li { padding: 14px 0 0; border-left: 0; }
  .brand-owl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "poses" "hero"; }
  .brand-owl__hero { justify-self: center; width: 150px; }
  .brand-owl__poses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
