/* =====================================================
   ABOUT PAGE – own visual language: pipe renders, lime accents,
   editorial type. Shares tokens / header / footer with styles.css
   ===================================================== */

.page-about { --lime-d: #c9df00; --deep: #16208f; }

/* pipe-render crop helper: <i style="--img:url(...)"> */
.tp i, .who-img i, .talk-art i, .vfloat i {
  position: absolute; inset: 0;
  background: var(--img) no-repeat; background-size: var(--zoom, 230%); background-position: var(--pos, 50% 45%);
  transition: transform 1.4s var(--ease), background-position 1.4s var(--ease);
}

/* ---------- 1. Hero ---------- */
.a-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 60 * var(--s)) 0 calc(70 * var(--s)); background: linear-gradient(180deg, var(--bg) 0%, #dfe6f3 100%); }
.a-hero .wrap { position: relative; z-index: 1; }
.a-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s))),
    repeating-linear-gradient(0deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s)));
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%);
}
.a-title { margin-top: calc(26 * var(--s)); font-weight: 400; font-size: max(calc(104 * var(--s)), 42px); line-height: .8; letter-spacing: -.035em; }
.a-title .line { display: block; overflow: hidden; padding-block: .1em .08em; margin-block: -.1em -.08em; }
.a-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.a-title .line:nth-child(2) > span { animation-delay: .14s; }

.a-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: calc(80 * var(--s)); align-items: end; margin-top: calc(40 * var(--s)); }
.a-lead { font-size: max(calc(30 * var(--s)), 19px); line-height: 1.12; max-width: calc(470 * var(--s)); }

.triptych { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(18 * var(--s)); align-items: end; height: calc(360 * var(--s)); }
.tp { position: relative; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -40px rgba(31,46,184,.45);
  clip-path: inset(100% 0 0 0 round 6px); animation: rise-clip 1.3s var(--ease) forwards; }
.tp i { mix-blend-mode: multiply; }
.tp1 { height: 82%; animation-delay: .35s; }
.tp1 i { --pos: 58% 40%; --zoom: 300%; }
.tp2 { height: 66%; animation-delay: .5s; }
.tp2 i { --pos: 30% 12%; --zoom: 300%; }
.tp3 { height: 100%; animation-delay: .65s; }
.tp3 i { --pos: 62% 32%; --zoom: 260%; }
.triptych:hover .tp i { transform: scale(1.06); }
@keyframes rise-clip { to { clip-path: inset(0 0 0 0 round 6px); } }

.seal {
  /* centred on the top edge of the left photo */
  position: absolute; z-index: 2; left: calc((100% - 2 * 18 * var(--s)) / 6); top: 0; translate: -50% -50%;
  width: max(calc(150 * var(--s)), 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
  box-shadow: 0 18px 40px -20px rgba(25,25,60,.45);
  opacity: 0; animation: pop .8s var(--ease) 1.2s forwards;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font-family: "Futurism", sans-serif; font-size: 10.5px; fill: var(--ink); letter-spacing: .02em; }
.app-icon { width: 40%; height: auto; display: block; position: relative; filter: drop-shadow(0 4px 8px rgba(25,25,60,.25)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 2. Pills sentence ---------- */
.pills-sec { padding-top: calc(170 * var(--s)); }
.pills-text { font-size: max(calc(58 * var(--s)), 26px); line-height: 1.18; letter-spacing: -.02em; max-width: calc(1500 * var(--s)); }
.pill {
  display: inline-block; vertical-align: middle; position: relative; overflow: hidden;
  width: 0; height: .82em; margin-inline: .12em; border-radius: 999px;
  background: #fff var(--img) no-repeat; background-size: 260%; background-position: var(--pos, 50% 50%);
  transition: width 1s var(--ease) .35s;
}
.pills-text.in .pill { width: 1.9em; }
.pill-blue::after { content: ""; position: absolute; inset: 0; background: rgba(31,46,184,.45); mix-blend-mode: multiply; }
.pill-lime { background: var(--lime); display: inline-grid; place-items: center; }
.pill-lime svg { width: 70%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Figures ---------- */
.figs { padding-top: calc(150 * var(--s)); }
.figs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f { position: relative; padding: calc(10 * var(--s)) calc(36 * var(--s)) 0 0; display: grid; gap: calc(18 * var(--s)); align-content: start; }
.f + .f { border-right: 1px solid #c4ccdd; margin-right: 0; }
.f:first-child { padding-right: 0; }
.tick { display: none; position: absolute; top: -3px; right: 0; width: calc(56 * var(--s)); min-width: 36px; height: 5px; background: var(--lime); transform-origin: right; transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--d, 0s) + .3s); }
.f + .f .tick { right: -1px; }
.f.in .tick { transform: none; }
.f strong { font-weight: 400; font-size: max(calc(150 * var(--s)), 64px); line-height: .8; letter-spacing: -.045em; color: var(--blue); justify-self: start; }
.f > span { font-size: max(calc(20 * var(--s)), 15px); line-height: 1.15; max-width: calc(300 * var(--s)); min-width: 180px; color: #3b4150; }

/* ---------- 4. Who we are ---------- */
.who { padding-top: calc(190 * var(--s)); }
.who-grid { display: grid; grid-template-columns: calc(380 * var(--s)) minmax(0, 1fr); gap: calc(120 * var(--s)); align-items: stretch; margin-top: calc(34 * var(--s)); }
.who-img { position: relative; overflow: hidden; height: 100%; min-height: calc(420 * var(--s)); border-radius: 6px; background: #fff; }
.who-body { display: flex; flex-direction: column; }
.who-lead { margin-top: -.12em; }
.who-cols { margin-top: auto !important; }
.who-img i { mix-blend-mode: multiply; --zoom: 320%; --pos: 62% 14%; }

.who-grid:hover .who-img i { --pos: 70% 30%; }
.who-lead { font-size: max(calc(38 * var(--s)), 22px); line-height: 1.08; letter-spacing: -.02em; }
.who-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(48 * var(--s)); margin-top: calc(70 * var(--s)); padding-top: calc(30 * var(--s)); border-top: 1px solid #c4ccdd; }
.who-cols p { font-size: max(calc(19 * var(--s)), 15px); line-height: 1.4; color: #3b4150; }

/* ---------- 5. Values (dark editorial index) ---------- */
.vals { position: relative; margin-top: calc(190 * var(--s)); padding: calc(120 * var(--s)) 0 calc(130 * var(--s)); background: var(--deep); color: #fff; overflow: hidden; }
.vals .eyebrow::before { background: #fff; }
.vals-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.vals-note { font-size: max(calc(20 * var(--s)), 15px); color: rgba(255,255,255,.7); max-width: calc(380 * var(--s)); min-width: 220px; }
.vlist { margin-top: calc(70 * var(--s)); }
.vrow {
  position: relative; display: grid; grid-template-columns: calc(110 * var(--s)) minmax(0, 1fr) calc(420 * var(--s));
  align-items: center; gap: calc(30 * var(--s));
  padding-block: calc(42 * var(--s));
  border-top: 1px solid rgba(255,255,255,.2);
  cursor: default;
}
.vrow:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.vnum { font-size: max(calc(18 * var(--s)), 13px); color: var(--lime); letter-spacing: .1em; }
.vrow h3 { font-weight: 400; font-size: max(calc(96 * var(--s)), 40px); line-height: .9; letter-spacing: -.03em; transition: transform .6s var(--ease), color .4s; }
.vrow p { font-size: max(calc(20 * var(--s)), 15px); line-height: 1.3; color: rgba(255,255,255,.75); }
.vpipe { position: absolute; right: 0; bottom: -1px; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease); }
.vrow:hover h3 { transform: translateX(calc(-24 * var(--s))); color: var(--lime); }
.vrow:hover .vpipe { transform: scaleX(1); }

.vfloat {
  position: fixed; z-index: 30; left: 0; top: 0; pointer-events: none;
  width: calc(260 * var(--s)); min-width: 180px; aspect-ratio: 260 / 320;
  border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  opacity: 0; scale: .7; rotate: -4deg;
  transition: opacity .35s var(--ease), scale .45s var(--ease), rotate .6s var(--ease);
}
.vfloat i { mix-blend-mode: multiply; --zoom: 200%; }
.vfloat.on { opacity: 1; scale: 1; rotate: 3deg; }
@media (hover: none) { .vfloat { display: none; } }

/* ---------- 6. Team ---------- */
.crew { padding-top: calc(170 * var(--s)); }
.crew-title { margin-top: calc(30 * var(--s)); font-weight: 400; font-size: max(calc(70 * var(--s)), 32px); line-height: .9; letter-spacing: -.03em; }
.crew-intro { margin-top: calc(24 * var(--s)); max-width: calc(620 * var(--s)); font-size: max(calc(20 * var(--s)), 15px); line-height: 1.3; color: #3b4150; }

/* CEO with photo + the rest of the team by name only */
.crew-layout { margin-top: calc(65 * var(--s)); display: grid; grid-template-columns: calc(560 * var(--s)) minmax(0, 1fr); gap: calc(80 * var(--s)); align-items: stretch; }
.lead-mate { position: relative; }
.lead-mate .mate-ph { aspect-ratio: 560 / 640; }
.lead-tag { position: absolute; right: calc(20 * var(--s)); bottom: calc(20 * var(--s)); background: #fff; border-radius: 5px; padding: calc(18 * var(--s)) calc(24 * var(--s)); display: flex; align-items: center; gap: calc(18 * var(--s)); transition: transform .5s var(--ease); }
.lead-tag h3 { font-weight: 400; font-size: max(calc(34 * var(--s)), 22px); line-height: 1; }
.lead-tag p { font-size: max(calc(15 * var(--s)), 12px); background: var(--lime); padding: 5px 10px; border-radius: 999px; }
.lead-mate:hover .lead-tag { transform: translateY(-8px); }
.crew-list { display: flex; flex-direction: column; justify-content: center; }
.crew-row { position: relative; display: grid; grid-template-columns: calc(80 * var(--s)) minmax(0, 1fr); align-items: center; gap: 16px; padding-block: calc(40 * var(--s)); border-bottom: 1px solid #c4ccdd; }
.cr-num { font-size: max(calc(16 * var(--s)), 12px); color: var(--mute); letter-spacing: .1em; }
.crew-row h3 { font-weight: 400; font-size: max(calc(44 * var(--s)), 24px); line-height: 1; transition: transform .5s var(--ease); }
.crew-row p { margin-top: 8px; font-size: max(calc(18 * var(--s)), 14px); color: #5d6475; }
.cr-pipe { position: absolute; right: 0; bottom: -1px; width: 100%; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.crew-row:hover .cr-pipe { transform: scaleX(1); }
.crew-row:hover h3 { transform: translateX(calc(-14 * var(--s))); }

.mate-ph {
  position: relative; overflow: hidden; aspect-ratio: 384 / 480; border-radius: 6px;
  display: grid; place-items: center; color: #8c94a8; font-size: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(31,46,184,.07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(31,46,184,.07) 39px 40px), #dfe5f0;
}
.mate-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1.2s var(--ease); }
.mate:hover .mate-ph img { filter: none; transform: scale(1.05); }
.mate-tag {
  position: absolute; right: calc(16 * var(--s)); left: calc(16 * var(--s)); bottom: calc(16 * var(--s));
  background: #fff; border-radius: 5px; padding: calc(16 * var(--s)) calc(18 * var(--s));
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.mate-tag h3 { font-weight: 400; font-size: max(calc(26 * var(--s)), 18px); line-height: 1; }
.mate-tag p { font-size: max(calc(15 * var(--s)), 12px); background: var(--lime); color: var(--ink); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.mate:hover .mate-tag { transform: translateY(-8px); box-shadow: 0 16px 30px -18px rgba(31,46,184,.6); }

.partners-slim { padding-top: calc(190 * var(--s)); padding-bottom: calc(150 * var(--s)); }

/* ---------- 7. Talk to us ---------- */
.talk { padding-bottom: calc(150 * var(--s)); padding-top: calc(260 * var(--s)); }
.talk-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: calc(60 * var(--s));
  background: var(--blue); color: #fff; border-radius: 10px;
  padding: calc(90 * var(--s)) calc(90 * var(--s)) calc(90 * var(--s)) calc(60 * var(--s));
}
.eyebrow-lime { color: #fff; }
.eyebrow-lime::before { background: var(--lime); }
.talk h2 { margin-top: calc(30 * var(--s)); font-weight: 400; font-size: max(calc(100 * var(--s)), 40px); line-height: .8; letter-spacing: -.035em; }
.talk-copy > p { margin-top: calc(30 * var(--s)); max-width: calc(480 * var(--s)); font-size: max(calc(22 * var(--s)), 16px); line-height: 1.25; color: rgba(255,255,255,.82); }
.talk-btns { display: flex; flex-wrap: wrap; align-items: center; gap: calc(28 * var(--s)) calc(34 * var(--s)); margin-top: calc(50 * var(--s)); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white::before { background: var(--lime); }
.btn-white:hover { color: var(--ink); }
.talk-link { font-size: max(calc(18 * var(--s)), 15px); color: #fff; text-decoration: underline; text-decoration-color: rgba(225,249,0,.6); text-underline-offset: 5px; transition: color .3s; }
.talk-link:hover { color: var(--lime); }

.talk-art { position: relative; margin-block: calc(-150 * var(--s)) 0; border-radius: 8px; overflow: hidden; background: #fff; min-height: calc(420 * var(--s)); box-shadow: 0 40px 80px -40px rgba(10,15,80,.7); }
.talk-art i { mix-blend-mode: multiply; --zoom: 230%; --pos: 58% 42%; }
.vals-head .eyebrow { font-weight: 400; }
.talk-card:hover .talk-art i { transform: scale(1.05) rotate(-2deg); }
.talk-route { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .4s; }
.talk-card.in .talk-route { stroke-dashoffset: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .a-hero { padding: calc(68px + 40px) 0 64px; }
  .a-title .l2 { padding-inline-start: 0; }
  .a-hero-row { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .a-lead { max-width: none; }
  .triptych { height: 300px; gap: 10px; }
  .seal { left: 4%; top: -40px; }

  .pills-sec, .figs, .who, .crew { padding-top: 80px; }
  .figs-row { grid-template-columns: 1fr; }
  .f, .f:first-child { padding: 24px 0 26px; }
  .f + .f { border-right: 0; }
  .f + .f .tick { right: 0; }
  .f strong { font-size: 72px; }

  .who-grid { grid-template-columns: 1fr; gap: 28px; }
  .who-img { aspect-ratio: 16 / 10; margin-top: 16px; }
  .who-cols { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; padding-top: 20px; }

  .vals { margin-top: 80px; padding: 64px 0 72px; }
  .vals-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .vlist { margin-top: 28px; }
  .vrow { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 14px; padding-block: 22px; }
  .vrow p { grid-column: 2; }
  .vpipe { transform: scaleX(.18); }

  .crew-intro { max-width: none; }
  .crew-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .crew-row { grid-template-columns: 40px minmax(0, 1fr); padding-block: 20px; }
  .who-img { min-height: 220px; }
  .talk { padding-bottom: 72px; padding-top: 30px; }
  .talk-card { grid-template-columns: 1fr; padding: 40px 24px 28px; gap: 32px; }
  .talk-art { margin: 0; min-height: 240px; }
  .talk-copy > p, .crew-intro, .vals-note, .f > span { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .a-title .line > span, .tp { transform: none !important; clip-path: none !important; }
  .a-title em { background-size: 100% .22em !important; }
  .pill { width: 1.9em !important; }
  .tick { transform: none !important; }
  .talk-route { stroke-dashoffset: 0 !important; }
  .seal svg { animation: none !important; }
}

/* ===== Field photos (replace the earlier 3D renders) ===== */
.tp { background: #1c2340; }
.tp img, .who-img img, .talk-art img, .vimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.triptych:hover .tp img { transform: scale(1.05); }
.tp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,20,90,.25), transparent 50%); pointer-events: none; }
.who-img { background: #1c2340; }
.who-grid:hover .who-img img { transform: scale(1.04); }
.who-more { margin-top: calc(30 * var(--s)); padding-top: 0; font-size: max(calc(19 * var(--s)), 15px); line-height: 1.5; color: #3b4150; max-width: calc(725 * var(--s)); } /* same width as the heading above */
.talk-art { background: #1c2340; }
.talk-card:hover .talk-art img { transform: scale(1.05); }

/* values: hover photo follows the cursor; text keeps a little air from the left edge */
.vrow { grid-template-columns: calc(110 * var(--s)) minmax(0, 1fr) calc(420 * var(--s)) calc(90 * var(--s)); }
.vfloat i { --zoom: cover; --pos: 50% 50%; mix-blend-mode: normal; }
@media (max-width: 1100px) {
  .vrow { grid-template-columns: 40px minmax(0, 1fr); }
  .who-more { max-width: none; }
}