/* ============================================================
   HOME v2. Emma's layout notes, 4 Nov 2026.
   Loads after site.css and theme-light.css. Uses their tokens.
   ============================================================ */

/* ---------- client and builder banner ---------- */
.v2-clients {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--hair);
  padding: 26px 0 30px;
  overflow: hidden;
}
.v2-clients-label {
  text-align: center;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 18px;
}
.v2-clients-track { display: flex; width: max-content; animation: v2-marquee 38s linear infinite; }
.v2-clients:hover .v2-clients-track { animation-play-state: paused; }
.v2-clients-set { display: flex; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); }
.v2-clients-set span {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); opacity: 0.72; white-space: nowrap;
}
@keyframes v2-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .v2-clients-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .v2-clients-set[aria-hidden] { display: none; }
  .v2-clients-set { flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
}

/* ---------- section shells ---------- */
.v2-weare, .v2-tiles-sec { padding: clamp(64px, 9vw, 130px) var(--pad); }
.v2-tiles-sec + .v2-tiles-sec { padding-top: 0; }
.v2-people { background: var(--bg); }

/* ---------- we are onpoint ---------- */
.v2-weare { background: var(--bg-deep); }
.v2-weare-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.v2-weare .label { margin-bottom: 22px; }
.v2-weare-body .link { margin-top: 24px; display: inline-block; }
.v2-award {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--accent-panel); color: #fff;
  border-radius: 18px; padding: 28px 26px 30px;
}
.v2-award-kicker { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.v2-award strong { font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
.v2-award-year { font-size: 2.6rem; font-weight: 300; line-height: 1; }

/* ---------- section heads ---------- */
.v2-sec-head {
  max-width: var(--wide); margin: 0 auto clamp(30px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 4vw, 60px); align-items: end;
}
.v2-sec-head .label { margin-bottom: 18px; }

/* ---------- tile grids ---------- */
.v2-grid { max-width: var(--wide); margin: 0 auto; display: grid; gap: clamp(12px, 1.4vw, 20px); }
.v2-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-grid-proj { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* flip-to-text tile: photo first, text replaces it on hover, focus or tap */
.v2-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 16px; isolation: isolate;
  background: #1a1c1e; color: #fff; text-decoration: none;
}
.v2-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.v2-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.05) 55%);
  transition: background 0.4s ease;
}
.v2-tile-front, .v2-tile-back { position: absolute; inset: 0; z-index: 1; padding: 24px; display: flex; flex-direction: column; }
.v2-tile-front { justify-content: flex-end; flex-direction: row; align-items: flex-end; gap: 12px; transition: opacity 0.35s ease; }
.v2-tile-title { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 700; line-height: 1.15; flex: 1; }
.v2-tile-plus {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--accent); color: #fff;
}
.v2-tile-back {
  background: var(--accent-panel); opacity: 0; transition: opacity 0.35s ease;
  justify-content: flex-start; gap: 16px;
}
.v2-tile-back .v2-tile-title { flex: 0 0 auto; }
.v2-tile-back ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.v2-tile-back li { font-size: 0.95rem; line-height: 1.4; padding-left: 16px; position: relative; }
.v2-tile-back li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.8; }
.v2-tile-cta { margin-top: auto; font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid currentColor; align-self: flex-start; }
.v2-tile:hover img, .v2-tile:focus-visible img { transform: scale(1.04); }
.v2-tile:hover .v2-tile-back, .v2-tile:focus-visible .v2-tile-back, .v2-tile.is-open .v2-tile-back { opacity: 1; }
.v2-tile:hover .v2-tile-front:not(.v2-team-front),
.v2-tile:focus-visible .v2-tile-front:not(.v2-team-front),
.v2-tile.is-open .v2-tile-front:not(.v2-team-front) { opacity: 0; }

/* leadership tile: names always visible */
.v2-tile-team { background: var(--card); color: var(--text); border: 1px solid var(--hair); }
.v2-tile-team::after { display: none; }
.v2-team-front { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 18px; }
.v2-team-front .v2-tile-title { flex: 0 0 auto; }
.v2-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.v2-team li { display: flex; align-items: center; gap: 12px; }
.v2-team b { display: block; font-size: 0.98rem; }
.v2-team i { display: block; font-style: normal; font-size: 0.82rem; color: var(--grey); }
.v2-mono {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(var(--accent-rgb), 0.14); color: var(--accent-panel);
}

/* ---------- project tiles ---------- */
.v2-proj {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.v2-proj:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(var(--text-rgb), 0.45); }
.v2-proj img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.v2-proj-body { padding: 18px 20px 20px; }
.v2-proj-body h3 { margin: 0 0 4px; font-size: 1.08rem; }
.v2-proj-body p { margin: 0; font-size: 0.85rem; color: var(--grey); }
.v2-proj-ph {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, var(--bg) 14px 28px);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey);
}

.v2-newwork {
  max-width: var(--wide); margin: 0 auto clamp(18px, 2vw, 26px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.v2-newwork-label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-panel); margin-right: 8px;
}
.v2-newwork-job {
  font-size: 0.88rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hair);
}

/* ---------- credentials in colour ---------- */
.v2-creds { background: var(--accent-panel); color: #fff; }
.v2-creds .label { color: #fff; }
.v2-creds .creds-row { border-top-color: rgba(255,255,255,0.25); }
.v2-creds .cred-logo {
  filter: none; opacity: 1; mix-blend-mode: normal;
  background: #fff; border-radius: 12px; padding: 8px;
}
.v2-creds .cred-mark { color: #fff; }
.v2-creds .cred-award { font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .v2-weare-inner { grid-template-columns: 1fr 1fr; }
  .v2-weare-inner > div:first-child { grid-column: 1 / -1; }
  .v2-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-grid-3, .v2-grid-proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .v2-weare-inner, .v2-sec-head { grid-template-columns: 1fr; }
  .v2-grid-3, .v2-grid-proj { grid-template-columns: 1fr; }
  .v2-grid-4 { grid-template-columns: 1fr; }
  .v2-tile { aspect-ratio: 4 / 3; }
  .v2-tile-team { aspect-ratio: auto; }
  .v2-team-front { position: static; }
  .v2-creds .creds-marks { flex-wrap: wrap; }
  .v2-creds .cred-mark { white-space: normal; }
}

/* ---------- project pages: bigger photos, summary not dot points ---------- */
.pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pj-grid img { border-radius: 12px; filter: none; }
.pj-summary { font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.65; max-width: 62ch; margin-bottom: 22px; }
@media (max-width: 700px) { .pj-grid { grid-template-columns: 1fr; } }
.pj-grid img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .pj-grid img:last-child:nth-child(odd) { aspect-ratio: 4 / 3; } }

/* ---------- 5 Nov: hero buttons ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; position: relative; z-index: 2; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  color: #fff; border: 1.5px solid rgba(255,255,255,0.75); background: rgba(0,0,0,0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-btn:hover { background: rgba(0,0,0,0.45); transform: translateY(-1px); }
.hero-btn-main { background: var(--accent); border-color: var(--accent); }
.hero-btn-main:hover { background: var(--accent-panel); border-color: var(--accent-panel); }

/* ---------- 5 Nov: sticky call bar on phones ---------- */
.v2-callbar { display: none; }
@media (max-width: 700px) {
  .v2-callbar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246,247,245,0.96); border-top: 1px solid var(--hair);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .v2-callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  }
  .v2-callbar-call { background: var(--accent); color: #fff; }
  .v2-callbar-quote { background: var(--card); color: var(--text); border: 1px solid var(--hair); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- 5 Nov: leadership tile fills its space ---------- */
.v2-team-front { justify-content: flex-start; }
.v2-team { gap: clamp(14px, 2.2vw, 26px); margin-top: 6px; }
.v2-team b { font-size: 1.05rem; }
.v2-team i { font-size: 0.86rem; }
.v2-mono { width: 48px; height: 48px; font-size: 0.85rem; }
.v2-team-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 0.9rem; color: var(--grey); }
.v2-team-foot b { color: var(--text); }

/* ---------- 5 Nov: easier-to-read body text ---------- */
.body-copy { color: #45494D; font-weight: 400; }
.v2-creds .body-copy { color: rgba(255,255,255,0.9); }
@media (min-width: 701px) { #people .v2-tile { aspect-ratio: 5 / 5.4; } }

/* Readability pass 5 Nov 2026: phone text 12px minimum, button and green text contrast */
.hero-btn-main, .v2-callbar-call { color: var(--accent-ink); }
.footer-col h3 { font-family: var(--font); }
@media (max-width: 700px) {
  .v2-clients-label, .label, .v2-award-kicker, .v2-newwork-label, .lrow-kicker,
  .footer-col h3 { font-size: 0.75rem; letter-spacing: 0.16em; }
  .stmt em, .mline em { color: var(--accent-text); }
}
