/* hero.css (M147): the Beauty hero (four pictures, glass lens) and the Beauty closing, shared by the desks. Colours come from each desk. */
.hero, .fin { --white: #FFFDF9; --ease: cubic-bezier(.2, .7, .2, 1); }
/* 1. hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-still, .hero-gl, .hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { object-fit: cover; }
.hero-gl { opacity: 0; transition: opacity .6s ease; }
.gl-on .hero-gl { opacity: 1; }
.hero-veil { background: radial-gradient(ellipse at 50% 48%, rgba(31, 26, 23, .34), rgba(31, 26, 23, .12) 60%), linear-gradient(to bottom, rgba(31, 26, 23, .38), rgba(31, 26, 23, 0) 22%, rgba(31, 26, 23, 0) 62%, rgba(31, 26, 23, .55)); }
.hero-copy { position: absolute; inset: var(--top-h) var(--pad) 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(12px, 2vh, 22px); }
.hero-eyebrow { text-wrap: balance; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.hero-title { font-size: clamp(3.2rem, 1rem + 9.4vw, 9.5rem); font-weight: 500; line-height: .92; letter-spacing: -.025em; text-shadow: 0 2px 40px rgba(31, 26, 23, .35); }
.hero-title .l { display: inline-block; white-space: pre; opacity: 0; transform: translateY(.35em); filter: blur(10px); transition: opacity .7s ease, transform .9s var(--ease), filter .9s ease; }
.hero-title.on .l { opacity: 1; transform: none; filter: none; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-desc { max-width: 34rem; font-size: clamp(1rem, .9rem + .4vw, 1.1875rem); line-height: 1.45; text-shadow: 0 1px 18px rgba(31, 26, 23, .5); transition: opacity .5s ease, transform .7s var(--ease); }
.hero-desc.out { opacity: 0; transform: translateY(8px); }
.hero-copy .pill { margin-top: 6px; }
.hero-n { position: absolute; top: 50%; translate: 0 -50%; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: .9; }
.hero-n-a { left: var(--pad); }
.hero-n-b { right: var(--pad); }
.hero-nav { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(18px, 3.4vh, 34px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 22px); }
.hero-nav button { padding: 0 0 6px; border: 0; background: none; color: inherit; text-align: left; opacity: .62; transition: opacity .3s ease; }
.hero-nav button[aria-selected="true"], .hero-nav button:hover { opacity: 1; }
.hero-nav i { display: block; height: 2px; margin-bottom: 10px; background: rgba(255, 253, 249, .32); overflow: hidden; }
.hero-nav b { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero-nav span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-nav span em { font-style: normal; opacity: .65; margin-right: 8px; }
@media (max-width: 640px) {
  .hero-n { display: none; }
  .hero-eyebrow { font-size: .6875rem; letter-spacing: .14em; }
  .hero-nav span { font-size: .625rem; letter-spacing: .1em; }
  .hero-nav span em { display: none; }
}
.hero { background: #0B0B0B; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero .btn-ghost { color: #FFFDF9; border-color: rgba(255, 253, 249, .6); }

.fin { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100svh; padding: clamp(84px, 10vw, 150px) var(--pad) 0; background: var(--fin-bg); color: var(--fin-ink); }
.fin-pic { position: absolute; top: 0; right: 0; z-index: -1; width: 66vw; height: 100%; object-fit: cover; object-position: 46% 40%; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 46%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 46%); transform-origin: 70% 40%; animation: fin-drift 26s ease-in-out infinite alternate; }
@keyframes fin-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.fin-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); max-width: min(60vw, 1020px); }
.fin-join h2 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); line-height: .95; color: var(--fin-ink); }
.fin-join p { margin-top: 16px; max-width: 26rem; color: color-mix(in srgb, var(--fin-ink) 80%, transparent); }
.fin-form { display: flex; gap: 8px; max-width: 30rem; margin-top: 26px; padding: 6px; border: 1px solid color-mix(in srgb, var(--fin-ink) 40%, transparent); border-radius: 999px; transition: border-color .25s ease; }
.fin-form:focus-within { border-color: var(--fin-ink); }
.fin-form input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: none; color: inherit; font: inherit; }
.fin-form input::placeholder { color: color-mix(in srgb, var(--fin-ink) 62%, transparent); }
.fin-form input:focus { outline: none; }
.fin-form button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--fin-ink); color: var(--fin-bg); font: 600 .9375rem/1.2 var(--sans); cursor: pointer; transition: background .25s ease; }
.fin-form button:hover { background: var(--white); }
.fin-form button .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.fin-form button:hover .ico { transform: translateX(3px); }
.fin-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid color-mix(in srgb, var(--fin-ink) 25%, transparent); }
.fin-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: .9375rem; }
.fin-cols h3 { margin-bottom: 4px; font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--fin-ink) 60%, transparent); }
.fin-cols a { color: var(--fin-ink); text-decoration: none; }
.fin-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fin-legal { grid-column: 1 / -1; margin-top: 8px; font-size: .8125rem; line-height: 1.55; color: color-mix(in srgb, var(--fin-ink) 66%, transparent); }
.fin-legal b { font-weight: 600; color: var(--fin-ink); }
.fin-word { position: relative; margin: clamp(28px, 4vw, 60px) 0 0; padding-bottom: .12em; font-family: var(--serif); font-size: max(4rem, 25vw); font-weight: 600; line-height: .82; letter-spacing: -.04em; text-align: center; white-space: nowrap; color: var(--fin-ink); user-select: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fin-word { background-image: var(--fin-word-img); background-size: 100% auto; background-position: 50% 50%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: fin-word 22s ease-in-out infinite alternate; }
}
@keyframes fin-word { from { background-position: 40% 46%; background-size: 100% auto; } to { background-position: 60% 56%; background-size: 110% auto; } }
@media (max-width: 900px) {
  .fin-top { grid-template-columns: minmax(0, 1fr); max-width: none; }   /* 23.11: plain 1fr grew past a 360px screen and clipped the form */
  .fin-cols { padding: 22px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--fin-ink) 25%, transparent); }
  .fin-pic { top: auto; bottom: 0; width: 100%; height: 52%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%); mask-image: linear-gradient(to bottom, transparent, #000 50%); }
}
@media (max-width: 560px) {
  .fin-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fin-form button { color: var(--fin-bg); }
.fin-cols a:hover { color: var(--fin-ac, var(--fin-ink)); }
@media (prefers-reduced-motion: reduce) { .hero-title .l { opacity: 1; transform: none; filter: none; transition: none; } .fin-pic, .fin-word { animation: none; } }
/* desks: the photo behind the closing fades out before the giant name, so the name reads */
.au .fin-pic, .el .fin-pic, .tl .fin-pic { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 40%, #000 64%), linear-gradient(to bottom, #000 40%, rgba(0,0,0,.25) 78%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 40%, #000 64%), linear-gradient(to bottom, #000 40%, rgba(0,0,0,.25) 78%); -webkit-mask-composite: source-in; mask-composite: intersect; }
/* 23.11: desk closing links and company line sit over the photo's edge; a soft shadow in the closing colour keeps them readable */
.au .fin-cols, .el .fin-cols, .tl .fin-cols { text-shadow: 0 0 14px var(--fin-bg), 0 1px 3px var(--fin-bg); }
