/* Meet the team (our-team.php). Site plan: opener = a strip of four tall portraits rising in turn with paper name tags;
   set piece = "Life outside the office", a draggable photo strip with inertia and a counter.
   Backgrounds: white opener → blush profiles → ink life strip → white letters → crimson CTA → wine footer. */

/* ---------- Opener ---------- */
.th { position: relative; background: var(--paper); padding: calc(var(--head-h) + clamp(24px, 4vh, 48px)) 0 clamp(56px, 8vh, 84px); overflow: clip; }
.th__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(117,21,35,.07) 31px, rgba(117,21,35,.07) 32px); animation: th-drift 20s linear infinite; }
.th__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(14px, 3.2vw, 52px); width: 1px; background: rgba(163,24,62,.38); }
@keyframes th-drift { to { background-position: 0 32px; } }
.th .wrap { position: relative; }
.th__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(30px, 5vw, 90px); align-items: end; margin-bottom: clamp(26px, 4.4vh, 44px); }
.th__title { font-size: clamp(2.5rem, min(4.8vw, 8.6vh), 4.8rem); line-height: 1.02; }
.th__lede { color: var(--ink); margin-bottom: 18px; }
.th__strip { display: grid; grid-template-columns: repeat(4, minmax(0, .74fr)) minmax(0, 1.15fr); gap: clamp(14px, 1.8vw, 28px); align-items: end; }
.tp { position: relative; margin: 0; }
.tp--1, .tp--3 { transform: translateY(-28px); }
.tp__frame { position: relative; height: min(44vh, 420px); overflow: hidden; background: var(--blush); box-shadow: 16px 16px 0 rgba(117,21,35,.1); }
.tp__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.motion .tp__frame img { animation: breathe 12s ease-in-out infinite alternate; }
.tp--1 .tp__frame img { animation-delay: -4s; } .tp--2 .tp__frame img { animation-delay: -8s; } .tp--3 .tp__frame img { animation-delay: -10s; }
.tag { position: absolute; left: 12px; bottom: -30px; z-index: 2; display: grid; padding: 10px 14px 10px 30px; background: #FFFDF8; border-left: 3px solid var(--crimson); box-shadow: 0 12px 26px rgba(34,9,15,.18); transform: rotate(-3deg); transform-origin: 20px 0; max-width: calc(100% - 4px); }
.tag__hole { position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--claret); background: var(--paper); }
.tag b { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.tag small { font-size: .88rem; color: var(--ink-soft); line-height: 1.3; }
.th__facts { margin: 0 0 0 clamp(6px, 1.4vw, 24px); align-self: center; border-top: 2px solid var(--ink); }
.th__facts > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.th__facts dt { font-weight: 600; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.03em; color: var(--claret); margin-bottom: 4px; }
.th__facts dd { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.motion:not(.motion-fail) [data-th-in] { opacity: 0; }
.motion:not(.motion-fail) [data-tp] { clip-path: inset(100% 0 0 0); }
@media (max-width: 1100px) { .th__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .th__facts { grid-column: 1 / -1; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; } }
@media (max-width: 900px) { .th__head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .th__title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .th .btn-row .btn { flex: 1 1 100%; }
  .th__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 66px 12px; }
  .tp--1, .tp--3 { transform: translateY(-16px); }
  .tp__frame { height: 190px; box-shadow: 6px 6px 0 rgba(117,21,35,.1); }
  .tag { left: 4px; right: 4px; bottom: -46px; padding: 6px 6px 6px 20px; transform: rotate(-2deg); }
  .tag__hole { left: 6px; width: 8px; height: 8px; margin-top: -4px; }
  .tag b { font-size: .86rem; }
  .tag small { font-size: .74rem; }
  .th__facts { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .th__facts > div { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; }
  .th__facts dt { font-size: 1.6rem; min-width: 5.4em; }
}

/* ---------- Profiles: a sticky photo stage beside the three of us ---------- */
.tprof { overflow: clip; }
.tprof__h2 { margin-bottom: clamp(10px, 2vh, 24px); }
.tprof__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.tprof__stage { position: sticky; top: calc(var(--head-h) + 30px); align-self: start; height: min(70vh, 640px); padding: 18px 0 0 18px; }
.tprof__ring { position: absolute; left: -6%; top: -3%; width: 104%; height: 104%; overflow: visible; pointer-events: none; }
.tprof__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 5 10; animation: dash-turn 34s linear infinite; opacity: .55; }
.tprof__frames { position: relative; height: calc(100% - 18px); aspect-ratio: 3 / 4; max-width: 100%; box-shadow: 22px 22px 0 rgba(117,21,35,.12); background: var(--wine); }
.tprof__ph { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 100% 0); }
.tprof__ph.is-on { clip-path: inset(0 0 0% 0); }
.tprof__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.motion .tprof__ph.is-on img { animation: breathe 12s ease-in-out infinite alternate; }
.tprof__count { position: absolute; right: -10px; bottom: 26px; z-index: 2; margin: 0; padding: 8px 14px; background: var(--paper); border-left: 3px solid var(--crimson); font-weight: 600; box-shadow: 0 12px 26px rgba(34,9,15,.14); }
.tprof__count b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--crimson); margin-right: 3px; }
.pf { min-height: min(72vh, 640px); display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .32; transition: opacity .6s var(--ease); }
.pf.is-on, .no-js .pf, .rm .pf, .motion-fail .pf { opacity: 1; }
.pf__ph { display: none; }
.pf__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 6px; }
.pf__role { font-weight: 700; color: var(--claret); margin-bottom: 12px; }
.pf__letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pf__letters span { padding: 3px 10px; border: 1.5px solid var(--claret); color: var(--claret); font-weight: 700; font-size: .9rem; letter-spacing: .04em; background: #fff; }
.pf__p { color: var(--ink-soft); font-size: 1.08rem; }
.pf__does { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; padding-top: 16px; border-top: 1px dashed rgba(117,21,35,.3); }
.pf__does span { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--claret); margin-right: 6px; }
.pf__does b { padding: 5px 12px; background: #fff; border-left: 3px solid var(--highlight); font-weight: 600; font-size: .95rem; box-shadow: 0 6px 14px rgba(34,9,15,.06); }
.pf__p--lead { font-family: var(--serif); color: var(--ink); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.4; }
@media (max-width: 900px) {
  .tprof__grid { grid-template-columns: minmax(0, 1fr); }
  .tprof__stage { display: none; }
  .pf { min-height: 0; opacity: 1; padding: 26px 0; border-top: 2px solid var(--ink); }
  .pf__ph { display: block; margin: 0 0 18px; width: min(70%, 300px); }
  .pf__ph .frame { aspect-ratio: 3 / 4; }
  .pf__ph .frame img { object-position: 50% 25%; }
}

/* ---------- Life outside the office: draggable strip ---------- */
.life { position: relative; background: var(--ink-blue); color: var(--on-dark); overflow: clip; padding-block: clamp(64px, 8vw, 110px) clamp(56px, 7vw, 90px); }
.life__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.04) 35px, rgba(255,255,255,.04) 36px); animation: life-drift 22s linear infinite; }
@keyframes life-drift { to { background-position: 0 36px; } }
.life h2 { color: #fff; margin-bottom: 14px; }
.life__head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(26px, 4vh, 44px); }
.life__head .lede { margin: 0; }
.life__nav { display: flex; align-items: center; gap: 14px; }
.life__btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.55); border-radius: var(--btn-r); background: transparent; color: #fff; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.life__btn:hover { background: #fff; color: var(--ink-blue); border-color: #fff; }
.life__btn svg { width: 20px; }
.life__count { margin: 0; min-width: 4.6em; text-align: center; font-weight: 600; color: var(--on-dark-soft); }
.life__count b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--highlight); }
.life__view { position: relative; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.life__view::-webkit-scrollbar { display: none; }
.life__view:focus-visible { outline-offset: -3px; }
.life__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding: 4px max(var(--gutter), calc((100vw - 1320px) / 2)) 6px; }
.lph { flex: none; scroll-snap-align: start; }
.lph figure { margin: 0; }
.lph__frame { position: relative; height: min(54vh, 470px); width: calc(min(54vh, 470px) * var(--ar)); overflow: hidden; background: #0B141E; }
.lph__frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lph:nth-child(odd) .lph__frame { transform: translateY(14px); }
.lph figcaption { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; font-weight: 600; color: var(--on-dark); }
.lph:nth-child(odd) figcaption { padding-top: 26px; }
.lph figcaption span { font-family: var(--serif); color: var(--highlight); font-size: 1.1rem; }
.js .life.is-drag .life__view { overflow: hidden; scroll-snap-type: none; cursor: grab; }
.js .life.is-drag .life__view:active { cursor: grabbing; }
.life__cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 104px; height: 66px; margin: -33px 0 0 -52px; border: 2.5px solid var(--highlight); outline: 1px solid var(--highlight); outline-offset: -7px; border-radius: 50%; display: grid; place-items: center; color: var(--highlight); font-family: var(--serif); font-size: 1.15rem; pointer-events: none; opacity: 0; transform: scale(.4) rotate(-10deg); background: rgba(19,32,47,.55); }
.life__rule { position: relative; height: 3px; margin-top: clamp(26px, 4vh, 40px); background: rgba(255,255,255,.14); }
.life__rule span { position: absolute; inset: 0; background: var(--crimson); transform-origin: left; transform: scaleX(.1); }
@media (max-width: 700px) { .lph__frame { height: 330px; width: min(calc(330px * var(--ar)), 100vw - 48px); } .life__nav { width: 100%; justify-content: space-between; } }

/* ---------- What the letters mean ---------- */
.tlet { overflow: clip; }
.tlet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(30px, 4vw, 52px); }
.lt { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.lt__stamp { width: 190px; height: 116px; margin: 6px 0 22px 6px; display: grid; place-items: center; border: 3px solid var(--crimson); outline: 1.5px solid var(--crimson); outline-offset: -10px; border-radius: 50%; color: var(--crimson); transform: rotate(-8deg); background: radial-gradient(closest-side, rgba(163,24,62,.06), transparent); }
.lt:nth-child(2) .lt__stamp { transform: rotate(5deg); }
.lt__stamp span { font-family: var(--serif); font-size: 2.3rem; line-height: 1; letter-spacing: .04em; }
.lt h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lt abbr { text-decoration: none; color: var(--claret); }
.lt p { margin: 0; color: var(--ink-soft); }
.tlet__also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--rule); font-weight: 600; }
.motion:not(.motion-fail) [data-lt-stamp] { opacity: 0; }
@media (max-width: 900px) { .tlet__grid { grid-template-columns: minmax(0, 1fr); } .tlet__also { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lt__stamp { width: 160px; height: 98px; } .lt__stamp span { font-size: 2rem; } }
@media (max-width: 480px) { .tlet__also { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA ---------- */
.tcta { overflow: clip; padding-block: clamp(64px, 8vw, 110px); }
.tcta__oval { position: absolute; left: -16vw; top: -40%; width: 70vw; height: 140%; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 0 0 40px rgba(255,255,255,.035), inset 0 0 0 80px rgba(255,255,255,.025); animation: wobble 24s ease-in-out infinite alternate; pointer-events: none; }
.tcta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.tcta h2 { color: #fff; margin-bottom: 18px; }
.tcta__copy > p { font-size: clamp(1.08rem, 1.25vw, 1.2rem); color: #FBE3E8; margin-bottom: 28px; }
.tcta__next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.tcta__next a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 16px; background: rgba(255,255,255,.1); border-left: 3px solid var(--highlight); color: #fff; font-weight: 700; text-decoration: none; transition: background .3s, transform .35s var(--ease); }
.tcta__next a:hover { background: rgba(255,255,255,.2); transform: translateX(6px); }
.tcta__next svg { width: 18px; flex: none; }
.tcta__photo { position: relative; margin: 0; padding: 0 18px 18px 0; }
.tcta__photo::before { content: ''; position: absolute; inset: 18px 0 0 18px; border: 1.5px solid rgba(255,255,255,.55); pointer-events: none; }
.tcta__photo .frame { aspect-ratio: 16 / 10; max-height: var(--media-cap); }
.tcta__photo .frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 30% 50%; }
.motion .tcta__photo .frame { animation: tc-breathe 9s ease-in-out infinite alternate; }
@keyframes tc-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
.tcta__photo .cap { left: -16px; bottom: 40px; border-left: 3px solid var(--highlight); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
@media (max-width: 900px) { .tcta__grid { grid-template-columns: minmax(0, 1fr); } .tcta__next { grid-template-columns: minmax(0, 1fr); } .tcta__photo .cap { left: 0; } }
