/* Alternative version: changes on top of site.css and ask.css */

/* 1. The showreel plays behind the ask page, so the first screen is already the work */
.ask-reel { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0E1015 url(../media/reel.jpg) center / cover no-repeat; }
.ask-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ask-reel::after {
  content: ""; position: absolute; inset: 0; transition: background .6s var(--ease);
  background:
    radial-gradient(ellipse 70% 60% at 50% 52%, rgba(10, 12, 16, .62), rgba(10, 12, 16, .28) 70%),
    linear-gradient(to bottom, rgba(10, 12, 16, .45), rgba(10, 12, 16, 0) 30%, rgba(10, 12, 16, .55));
}
body:has(.ask.started) .ask-reel::after { background: rgba(10, 12, 16, .86); }
body:has(.ask-reel) .ask-top, body:has(.ask-reel) .ask { position: relative; z-index: 1; }
body:has(.ask-reel) .ask-intro h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
body:has(.ask-reel) .ask-intro p { color: rgba(242, 244, 248, .82); }
body:has(.ask-reel) .chip { background: rgba(14, 16, 21, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(242, 244, 248, .85); }

/* 2. Say what the work is, on phones too: a second line inside the name pill */
.r-short { display: none; }
.ask-top .brand strong { font-weight: 400; letter-spacing: .1em; }
@media (max-width: 820px) {
  .brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 44px; padding: 0 18px; line-height: 1.1; }
  .brand i { display: none; }
  .brand strong { font-size: 11px; }
  .brand .r-short { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: .14em; }
  .ask-top .dim { display: none; }
}

/* 4. The way into the portfolio, clearly a button */
.explore {
  margin-top: 28px; padding: 12px 22px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(14, 16, 21, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: .16em; transition: border-color .2s, background .2s;
}
.explore:hover { border-color: var(--shirt); background: rgba(115, 182, 247, .12); }
.ask.started .explore { margin-top: 16px; }

/* 5. The way into the agency years, under Client work */
.adlife-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, .12); color: var(--text); text-decoration: none;
  font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 144; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em;
}
.adlife-teaser i { font-style: normal; font-family: var(--sans); color: var(--shirt); transition: transform .3s var(--ease); }
.adlife-teaser:hover span { color: var(--shirt); }
.adlife-teaser:hover i { transform: translateX(6px); }

/* 6. A face on the About page */
.about.has-portrait { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.portrait { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1F3F6B; }
.portrait img, .portrait video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.portrait video { object-position: 50% 42%; }
@media (max-width: 1100px) {
  .about.has-portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .about.has-portrait .col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .about.has-portrait .col:last-child ul { margin-bottom: 0; }
  .about.has-portrait .col:last-child h2 { grid-row: 1; }
}
@media (max-width: 820px) {
  .about.has-portrait { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 5; max-height: 70svh; }
  .about.has-portrait .col:last-child { display: block; }
  .about.has-portrait .col:last-child ul { margin-bottom: 26px; }
  .about.has-portrait .col:last-child ul:last-child { margin-bottom: 0; }
}


/* Version 3: one pager, the ask bar centred on the showreel, no switching titles */
body:has(.hero) .window { min-height: 0; display: block; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero > .feature { grid-area: 1 / 1; }
.hero .feature .title, .hero .ticks { display: none; }
.hero .ask-inline { display: contents; }
.hero .ask-box {
  grid-area: 1 / 1; align-self: end; justify-self: center; margin-bottom: clamp(44px, 6vw, 72px); z-index: 3; width: min(640px, calc(100% - 2 * var(--pad)));
  background: rgba(14, 16, 21, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero .ask-box textarea::placeholder { color: rgba(242, 244, 248, .78); }
.hero .thread { grid-row: 2; margin: 28px var(--pad) 0; }
.hero .thread:empty { display: none; }
