/* ==========================================================================
   Inner pages — Work, About, Contact and the rest. Builds on the tokens in styles.css.
   ========================================================================== */

/* ---------- Shared page hero (stepped display type, like Careers) ---------- */
.p-hero { position: relative; padding: 160px 0 120px; overflow: hidden; }
main > .feature-sec:first-child { padding-top: clamp(130px, 12vw, 170px); } /* pages without a hero open straight on content, so clear the fixed header */
.p-title { position: relative; z-index: 1; margin: 0; font-size: clamp(38px, 6.94vw, 100px); line-height: 1; font-weight: 300; }
.p-title .row { display: block; white-space: nowrap; }
.p-title .row > .line-mask { display: inline-block; }
.p-title .blue { color: var(--blue); }
.p-intro { position: relative; z-index: 1; width: min(438px, calc(100% - 32px)); margin: 75px auto 0; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.p-intro p { margin: 0 0 1em; }

/* Row offsets per page, measured from the Figma frames (1440 wide) */
[data-page="work"] .p-title .r1 { padding-left: 30.5vw; }
[data-page="work"] .p-title .r2 { padding-left: 37.2vw; }
[data-page="work"] .p-title .r3 { padding-left: 44vw; }
[data-page="work"] .p-title .r4 { padding-left: 33vw; }
[data-page="about"] .p-title .r1 { padding-left: 24vw; }
[data-page="about"] .p-title .r2 { padding-left: 36vw; }
[data-page="about"] .p-title .r3 { padding-left: 28vw; }
[data-page="contact"] .p-title .r1 { padding-left: 22vw; }
[data-page="contact"] .p-title .r2 { padding-left: 34vw; }
[data-page="contact"] .p-title .r3 { padding-left: 27vw; }

.sec-head {
  margin: 0 0 40px; font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 3.65vw, 52.6px); line-height: 0.95; letter-spacing: -0.01em;
}
.page-wrap { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 11.1vw, 160px); }

/* ---------- CTA band (shared) ---------- */
.cta-band { padding: 120px 0 60px; text-align: left; }
.cta-band h2 { margin: 24px 0 40px; font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 4.44vw, 64px); line-height: 1.1; }
.cta-band h2 span { color: var(--blue); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); }
.btn.ghost::after { background: #fff; }

/* ---------- About ---------- */
.about-lede { padding: 40px 0 140px; }
.about-lede h2 { margin: 40px 0 0; max-width: 1004px; font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.3vw, 48px); line-height: 1.22; letter-spacing: -0.01em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: 0 0 140px; }
.split.flip > :first-child { order: 2; }
.split h3 { margin: 24px 0 18px; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; text-transform: uppercase; }
.split p { margin: 0 0 1em; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.5; max-width: 520px; }

.ph-img {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(19,64,241,.35), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    #121318;
  border: 1px dashed rgba(255,255,255,.2);
  display: grid; place-items: center; text-align: center;
}
.ph-img .ph-label { position: relative; z-index: 1; font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); line-height: 1.8; }
.ph-img .ph-label b { display: block; font-size: 13px; color: #fff; font-weight: 400; }
.ph-img .ph-inner { position: absolute; inset: -8%; will-change: transform; background: inherit; }
.ph-img.wide { aspect-ratio: 21 / 9; }
.ph-img.tall { aspect-ratio: 3 / 4; }
.ph-img:hover { border-color: rgba(125,152,255,.6); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 140px; }
.pillar { padding: 32px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: border-color .5s, transform .8s var(--ease-out), background .5s; }
.pillar:hover { border-color: rgba(125,152,255,.6); transform: translateY(-6px); background: rgba(19,64,241,.08); }
.pillar .num { font-family: var(--display); font-size: 12px; color: var(--blue); }
.pillar h4 { margin: 40px 0 12px; font-family: var(--display); font-weight: 300; font-size: 32px; text-transform: uppercase; }
.pillar p { margin: 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.5; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 0 140px; }
.team .ph-img { aspect-ratio: 3 / 4; }
.team figure { margin: 0; }
.team figcaption { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.6); }
.team figcaption b { display: block; color: #fff; font-family: var(--display); font-weight: 400; font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding: 0 0 120px; align-items: start; }
.form-card, .ai-card {
  position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 50%), rgba(18,20,30,.4);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.form-card h2, .ai-card h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); text-transform: uppercase; }
.form-card > p, .ai-card > p { margin: 0 0 28px; color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.45; }

.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); margin-bottom: 28px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; padding: 12px 22px; text-align: center; cursor: pointer; font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; transition: color .4s; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--blue); transition: transform .6s var(--ease-out); box-shadow: 0 6px 20px rgba(19,64,241,.45); }
.seg[data-mode="careers"] .thumb { transform: translateX(100%); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: rgba(255,255,255,.7); }
.field label i { font-style: normal; color: rgba(255,255,255,.4); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 14px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); outline: 0;
  transition: border-color .3s, box-shadow .4s, background .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #15161c; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(125,152,255,.9); box-shadow: 0 0 0 4px rgba(19,64,241,.22); background: rgba(255,255,255,.07); }
.field .err { min-height: 16px; font-size: 12px; color: #ff8a8a; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .4s var(--ease-out); }
.field.invalid input, .field.invalid textarea { border-color: rgba(255,120,120,.8); }
.field.invalid .err { opacity: 1; transform: none; }
.field.careers-only { display: none; }
.form-card[data-mode="careers"] .field.careers-only { display: flex; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Human check: press-and-hold */
.human { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hold {
  position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none;
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); font-size: 14px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hold .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid currentColor; display: grid; place-items: center; }
.hold .box svg { opacity: 0; transform: scale(.4); transition: .4s var(--ease-out); }
.hold:active { transform: scale(.98); }
.hold.done { border-color: #3ddc84; background: rgba(61,220,132,.12); cursor: default; }
.hold.done::before { opacity: 0; }
.hold.done .box { background: #3ddc84; border-color: #3ddc84; color: #0b0b0b; }
.hold.done .box svg { opacity: 1; transform: none; }
.human small { color: rgba(255,255,255,.5); font-size: 12px; }
.human.invalid .hold { border-color: rgba(255,120,120,.8); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.submit-row { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.submit-row small { color: rgba(255,255,255,.45); font-size: 12px; max-width: 320px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.sent { display: none; text-align: left; padding: 20px 0; }
.sent .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 40px rgba(19,64,241,.6); animation: pop .8s var(--ease-out); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.sent h2 { margin-top: 28px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .sent { display: block; }

.ai-card { overflow: hidden; }
.ai-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(19,64,241,.55), transparent 65%); filter: blur(20px); pointer-events: none; animation: orb 9s ease-in-out infinite alternate; }
.ai-card > * { position: relative; }
.ai-card .orb-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); box-shadow: 0 0 30px rgba(19,64,241,.7); margin-bottom: 24px; }
.ai-card .orb-av img { width: 16px; filter: brightness(10); }
.ai-prompts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.ai-prompts button { text-align: left; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: 15px; transition: background .3s, border-color .3s, transform .5s var(--ease-out); }
.ai-prompts button:hover { background: rgba(19,64,241,.35); border-color: rgba(125,152,255,.8); transform: translateX(6px); }
.ai-prompts button::after { content: " →"; opacity: .5; }

.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 140px; }
.visit .ph-img { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.visit h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; }
.visit p { margin: 0; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .p-title .row { padding-left: 0 !important; text-align: center; }
  .split, .contact-grid, .pillars, .visit { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .team { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
}

/* ---------- Case study (light page, from Figma "apo-work-fabcorp") ---------- */
.case { background: #fff; color: #000; padding: 150px 0 160px; }
.case-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 8.9vw, 128px); }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 72px; }
.case-back, .case-close { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: #000; }
.case-back svg { width: 22px; height: 22px; transform: rotate(-135deg); transition: transform .6s var(--ease-out); }
.case-back:hover svg { transform: rotate(-135deg) translate(4px, -4px); }
.case-close { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); transition: transform .6s var(--ease-out), background .3s; }
.case-close:hover { transform: rotate(90deg); background: #000; color: #fff; }
.case-head { margin-bottom: 10px; }
.case-head .kicker { margin: 0 0 8px; font-size: 24px; line-height: 1.4; letter-spacing: -0.04em; }
.case-head h1 { margin: 0 0 32px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.17vw, 60px); line-height: 1.2; letter-spacing: -0.05em; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.case-tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.2); font-size: 13px; }

.case-stack { display: flex; flex-direction: column; gap: 10px; }
.cg { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 1188 / 784; }
.cg .span2 { grid-row: 1 / 3; }
.cg2 .span2 { grid-column: 2; }
.shot { position: relative; overflow: hidden; border-radius: 8px; background: #e9ecf3; isolation: isolate; }
.shot img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.shot.full { aspect-ratio: 1188 / 784; }
.shot.wide { aspect-ratio: 1188 / 388; }
.shot.banner { aspect-ratio: 1188 / 561; }
.shot.bordered { border: 1px solid #efefef; }
.case-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 44px); margin: 0 0 clamp(60px, 7vw, 100px); }
.case-intro p { margin: 0; max-width: 571px; font-size: 16px; line-height: 1.4; letter-spacing: -0.04em; }
.case-intro p.lead { max-width: 548px; font-weight: 600; font-size: clamp(20px, 1.67vw, 24px); }
/* FAB: tiles are exported at their exact Figma framing, so show them 1:1 with no zoom */
.case-exact .shot img { inset: 0; height: 100%; }
.case-solution { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 44px); margin-top: clamp(80px, 9vw, 140px); }
.case-solution .label { margin: 0 0 8px; font-size: 16px; line-height: 1.4; letter-spacing: -0.06em; }
.case-solution h2 { max-width: 531px; margin: 0; font-weight: 600; font-size: clamp(30px, 2.92vw, 42px); line-height: 1.2; letter-spacing: -0.045em; }
.case-solution p:not(.label) { max-width: 501px; margin: 0 0 11px; font-size: 16px; line-height: 1.4; letter-spacing: -0.06em; }
.case-solution p.lead { max-width: 401px; font-weight: 600; }
.case-solution > div:last-child { padding-top: 46px; }
.cg3 { grid-template-rows: repeat(3, 1fr); aspect-ratio: 1188 / 1180; }
.cg3 .c1r3 { grid-column: 1; grid-row: 3; }
.case-solution + .case-stack { margin-top: clamp(60px, 7vw, 100px); }
.shot.blue { background: var(--blue); display: grid; place-items: center; }
.shot.blue img.mark { position: static; width: 64px; height: auto; filter: brightness(10); opacity: .9; }
.stat { background: #0149e4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 38px) clamp(20px, 3vw, 37px) clamp(20px, 3vw, 38px) clamp(20px, 2.1vw, 25px); }
.stat .fig { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: clamp(54px, 6.94vw, 100px); line-height: 1; letter-spacing: -0.03em; }
.stat .fig img { position: static; inset: auto; width: .9em; height: auto; filter: invert(1); transition: none; } /* opt out of .shot img */
.stat p { margin: 18px 0 0 18px; font-size: clamp(16px, 1.67vw, 24px); line-height: 1.4; letter-spacing: -0.04em; }

.case-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 6vw, 100px); row-gap: 90px; margin-top: 140px; }
.case-copy .challenge { grid-column: 1; max-width: 490px; }
.case-copy .solution { grid-column: 2; max-width: 540px; }
.case-copy p { margin: 0 0 1em; font-size: clamp(18px, 1.67vw, 24px); line-height: 1.4; letter-spacing: -0.04em; }
.case-copy p.lead { font-weight: 600; }
.case-copy .label { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.04em; }
.case-copy h2 { margin: 0 0 40px; font-weight: 600; font-size: clamp(36px, 4.17vw, 60px); line-height: 1.2; letter-spacing: -0.035em; }

.next-case { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .case { padding-top: 120px; }
  .cg { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .cg > * { aspect-ratio: 4 / 3; grid-row: auto !important; grid-column: auto !important; }
  .cg .span2 { aspect-ratio: 3 / 4; }
  .case-copy { grid-template-columns: 1fr; margin-top: 80px; row-gap: 60px; }
  .case-copy .solution { grid-column: 1; }
  .case-intro { grid-template-columns: 1fr; row-gap: 24px; }
  .case-exact .cg > * { aspect-ratio: 590 / 388; }
  .case-exact .cg .span2 { aspect-ratio: 590 / 784; }
  .case-solution { grid-template-columns: 1fr; row-gap: 24px; }
  .case-solution > div:last-child { padding-top: 0; }
}

/* ---------- Case study: full-bleed hero variant (Teyaseer) ---------- */
.case-hero { position: relative; height: min(976px, 100svh); min-height: 560px; overflow: hidden; background: #0b0b0b; color: #fff; }
.case-hero > img, .case-hero > video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,11,.55), transparent 28%, transparent 55%, rgba(11,11,11,.85)); pointer-events: none; }
.case-hero .case-wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 130px; padding-bottom: clamp(32px, 6vw, 80px); }
.case-hero .case-top { margin: 0; }
.case-hero .case-back, .case-hero .case-close { color: #fff; }
.case-hero .case-close { border-color: rgba(255,255,255,.35); }
.case-hero .case-close:hover { background: #fff; color: #000; }
.case-hero .case-head h1 { margin-bottom: 0; }
.case-hero .case-tags { margin: 24px 0 0; }
.case-hero .case-tags span { border-color: rgba(255,255,255,.4); color: #fff; }
.case.after-hero { padding-top: clamp(80px, 9vw, 130px); }

.case-block { max-width: 1115px; margin: 0 0 80px; }
.case-block .label, .case-split .label { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.04em; }
.case-block h2, .case-split h2 { margin: 0 0 40px; font-weight: 600; font-size: clamp(34px, 4.17vw, 60px); line-height: 1.2; letter-spacing: -0.035em; }
.case-block p, .case-split p { margin: 0 0 1em; font-size: clamp(18px, 1.67vw, 24px); line-height: 1.4; letter-spacing: -0.04em; }
.case-block p.lead, .case-split p.lead { font-weight: 600; }

.case-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; margin: 100px 0; }
.case-split .stack { display: flex; flex-direction: column; gap: 12px; }
.shot.web { aspect-ratio: 546 / 353; }
.gold-bar { height: 118px; border-radius: 8px; background: #c29b40; }
.shot.cream { background: #fff1d0; }
.shot.calc { aspect-ratio: 591 / 967; border: 1px solid rgba(194,155,64,.2); background: #fff; }
.shot.calc img { object-position: top; }
.shot.phones { aspect-ratio: 1115 / 827; }
.case-stack + .case-split, .case-split + .case-stack { margin-top: 100px; }

@media (max-width: 900px) {
  .case-hero { height: 88svh; }
  .case-hero .case-wrap { padding-top: 110px; }
  .case-split { grid-template-columns: 1fr; margin: 60px 0; }
  .case-block { margin-bottom: 50px; }
  .gold-bar { height: 64px; }
}

/* ---------- About: value, philosophy, lenses, methodology, offering, founders ---------- */
.about-lede h2 { margin: 28px 0 48px; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.value-grid p { margin: 0; color: rgba(255,255,255,.75); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.value-grid .value-lead { color: #fff; font-family: var(--display); font-weight: 300; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.01em; }

.philosophy { padding: 120px 0 140px; }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: 48px; }
.philo-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.02em; }
.philo-title .blue { color: var(--blue); }
.philo-copy p { margin: 0 0 1.2em; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; }
.philo-copy .philo-tag { margin: 0; color: #4767ff; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; }

.lenses-sec { padding: 60px 0 140px; }
.sec-head.big { font-weight: 600; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; margin-top: 24px; }
.lenses { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 40px); margin-top: 72px; }
.lens h4 { margin: 32px 0 16px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; font-weight: 600; }
.lens p { margin: 0; color: rgba(255,255,255,.8); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; }
.lens-orb { width: min(100%, 220px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c);
  font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff;
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.lens:hover .lens-orb { transform: scale(1.06) translateY(-6px); box-shadow: 0 24px 60px -10px var(--c); }
.lens.meaning { --c: #d3d0c4; } .lens.behaviour { --c: #ee6d52; } .lens.interaction { --c: #e83e74; } .lens.intelligence { --c: #2243e8; }
.lens.meaning .lens-orb span { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.15); }

.method { padding: 60px 0 140px; }
.method .sec-head { max-width: 1200px; margin-top: 24px; font-weight: 600; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.15; }
.method-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: 60px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.step h4 { margin: 14px 0 10px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.step p { margin: 0; font-size: 18px; line-height: 1.45; color: rgba(255,255,255,.85); max-width: 400px; }
.step-pill, .offer-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-family: var(--display); font-weight: 600; text-transform: uppercase; color: #fff; }
.step-pill { min-width: 180px; padding: 12px 24px; font-size: 15px; }
.step.pause .step-pill { background: #ef7a45; } .step.pivot .step-pill { background: #e83e74; } .step.play .step-pill { background: #2243e8; }
.cycle svg { width: 100%; height: auto; overflow: visible; }
.cycle .ring { fill: none; stroke-width: 2; stroke-dasharray: 10 6 2 6; animation: circulate 40s linear infinite; }
.cycle .ring-pivot { animation-duration: 55s; animation-direction: reverse; }
.cycle .ring-play { animation-duration: 70s; }
@keyframes circulate { to { stroke-dashoffset: -480; } }
.cycle .flows path, .cycle .launch { stroke-dasharray: 420; }
.cycle text { font-family: var(--display); font-weight: 600; font-size: 26px; text-anchor: middle; letter-spacing: .02em; }

.offering { padding: 60px 0 140px; }
.offer-intro { max-width: 1100px; margin: 24px 0 72px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); }
.offer-pill { width: 100%; max-width: 360px; padding: 18px 24px; background: var(--blue); font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.01em; transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.offer:hover .offer-pill { transform: translateY(-4px); box-shadow: 0 18px 50px -12px rgba(19,64,241,.8); }
.offer h4 { margin: 32px 0 40px; min-height: 3.6em; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.4; }
.offer ul { list-style: none; margin: 0; padding: 0; }
.offer li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 18px; line-height: 1.35; color: rgba(255,255,255,.85); transition: color .3s, padding-left .5s var(--ease-out); }
.offer li:hover { color: #fff; padding-left: 8px; }

.founders { padding: 60px 0 0; }
.stat-200 { margin-top: 32px; font-family: var(--display); font-weight: 600; font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--blue); }
.stat-200 small { display: block; margin-top: 10px; font-family: var(--text); font-weight: 400; font-size: 15px; color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .value-grid, .philo-grid, .method-grid, .offers { grid-template-columns: 1fr; }
  .lenses { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .lens-orb { width: 140px; font-size: 14px; }
  .offer h4 { min-height: 0; margin-bottom: 20px; }
  .offers { gap: 56px; }
  .philosophy, .lenses-sec, .method, .offering { padding-bottom: 90px; }
  .cycle text { font-size: 44px; } /* SVG units: keeps labels legible when the diagram shrinks */
}

/* ---------- Teyaseer v2 additions ---------- */
.case-hero .case-head h1 { line-height: 1.05; }
.case-hero .case-head h1 .line-mask { display: block; padding-bottom: .14em; margin-bottom: -.14em; } /* room for descenders at the tight line-height */
.case-block.wide-copy { margin-top: 80px; }
.stat-split { align-items: end; }
.big-stat { font-weight: 600; font-size: clamp(72px, 8.33vw, 120px); line-height: 1.1; letter-spacing: -0.03em; }
.case-split.pair { align-items: center; margin: 60px 0; }
.case-split.pair .shot.web { aspect-ratio: 546 / 353; }
.shot.still img { inset: 0; height: 100%; } /* screenshots with text near the edge: no drift, no crop */
.case-stack.narrow { margin-top: 100px; }
.solution-tile { display: flex; align-items: center; padding: clamp(24px, 4vw, 64px); }
.solution-tile h2 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.17vw, 60px); line-height: 1.2; letter-spacing: -0.035em; color: #000; }
.solution-tile .label { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.04em; color: #000; }
.case-lead-xl { max-width: 748px; margin: 100px 0 60px; font-weight: 600; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.4; letter-spacing: -0.04em; }

/* Configurator strip: the product's own tab bar, scrolling as a ticker */
.cfg-strip { position: relative; overflow: hidden; height: 128px; border-top: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6; background: #fff; }
.cfg-strip::before, .cfg-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 1; pointer-events: none; }
.cfg-strip::before { left: 0; background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)); }
.cfg-strip::after { right: 0; background: linear-gradient(to left, #fff 30%, rgba(255,255,255,0)); }
.cfg-track { display: flex; width: max-content; height: 100%; animation: cfg-scroll 38s linear infinite; }
.cfg-strip:hover .cfg-track { animation-play-state: paused; }
@keyframes cfg-scroll { to { transform: translateX(-50%); } }
.cfg-tab { flex: none; width: 210px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; border-right: 1px solid #d6d6d6; font-family: "Poppins", var(--text); font-size: 16px; color: #1d1d1d; text-align: center; transition: background .4s; }
.cfg-tab span { opacity: .6; }
.cfg-tab b { font-weight: 600; }
.cfg-tab:hover { background: #fff8e8; }
@media (prefers-reduced-motion: reduce) { .cfg-track { animation: none; } }

@media (max-width: 900px) {
  .cfg-strip { height: 96px; }
  .cfg-tab { width: 160px; font-size: 14px; }
  .case-split.pair { margin: 40px 0; }
  .case-lead-xl { margin: 60px 0 40px; }
  .solution-tile { aspect-ratio: 4 / 3; }
}

/* ---------- Products / Playground / Perspectives / Culture / Work stories ---------- */
.feature-sec { padding: clamp(80px, 9vw, 130px) 0 0; }
.feature-sec .split { padding-bottom: 0; }
.sec-intro { max-width: 640px; margin: 0 0 48px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.5; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid figure { margin: 0; }
.card-grid figcaption { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.6); }
.card-grid figcaption b { display: block; color: #fff; font-family: var(--display); font-weight: 400; font-size: 14px; }
.career-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.career-card { padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.career-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; transition: transform .8s var(--ease-out); }
.career-card:hover img { transform: translateY(-6px); }
.career-card span { display: block; margin-top: 12px; font-family: var(--display); font-size: 14px; }
#careers + .cta-band, .feature-sec + .cta-band { padding-top: clamp(100px, 10vw, 140px); }

@media (max-width: 900px) {
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .career-paths { grid-template-columns: 1fr 1fr; }
  .feature-sec .split { grid-template-columns: 1fr; }
  .feature-sec .split.flip > :first-child { order: 0; }
}

/* ---------- Work overview (Figma "02. Work", node 1031:3433) ---------- */
/* Eyebrow, side CTA, contact and footer come from home2.css; the Approach block from methodology.css */
[data-page="work"] .side-cta { mix-blend-mode: normal; color: #8b8b8b; gap: 3px; }
[data-page="work"] .side-cta .tail { color: var(--blue); }
[data-page="work"] .side-cta .tail b { background: currentColor; }

/* Hero: three lines and the intro, left-aligned on the Our Work edge (.page-wrap's) and kept short so the
   projects start on the first screen, as on About us; Figma's centred 120px lines needed a scroll */
.w-hero {
  min-height: 0; overflow-x: clip; overflow-y: visible;
  padding: clamp(110px, 11.1vw, 160px) calc(max(0px, (100% - 1440px) / 2) + clamp(16px, 11.1vw, 160px)) clamp(32px, 2.78vw, 40px);
}
.w-hero .hero-title { font-size: clamp(30px, 4.86vw, 70px); line-height: 1; letter-spacing: -0.01em; text-align: left; }
.w-hero .hero-title .row { transform: none; }
.w-intro { position: relative; z-index: 2; max-width: 620px; margin: clamp(20px, 2.22vw, 32px) 0 0; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
/* The starfield runs 300px past the short hero (behind the Our Work heading) and fades out */
.w-hero > .starfield {
  bottom: auto; height: calc(100% + 300px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent);
}

/* Section heads shared by Our Work and Approach */
.w-head { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.65vw, 52.6px); line-height: .95; letter-spacing: -0.01em; }
.w-sub { max-width: 663px; margin: 16px 0 0; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; opacity: .4; }

/* Our work: two-up grid of 549 x 366 thumbnails */
.w-work { padding: clamp(64px, 6.94vw, 100px) 0 clamp(100px, 13.9vw, 200px); overflow: hidden; } /* a short top so it shows under the hero */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 20px; margin-top: 48px; }
.proj { display: block; color: #fff; }
.proj-media { position: relative; display: block; aspect-ratio: 549 / 366; border-radius: 10px; overflow: hidden; background: #151515; isolation: isolate; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a.proj:hover .proj-media img, a.proj:focus-visible .proj-media img { transform: scale(1.04); }
.proj-copy { display: flex; flex-direction: column; gap: 4px; min-height: 72px; margin-top: 15.5px; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; } /* holds the tag row open on cards without tags, so rows keep an even rhythm */
.proj-client { font-size: 14px; opacity: .4; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.proj-tags span { padding: 4px 10px; border: 1px solid #fff; border-radius: 900px; font-size: 12px; line-height: 1.2; }
/* Tiles without a case study yet: the cursor turns into a grey "Coming soon" circle (main.js);
   touch screens have no cursor, so they get a small badge on the image instead */
.proj.is-soon { cursor: default; }
@media (hover: none) {
  .proj.is-soon .proj-media::after {
    content: "Coming soon"; position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 900px;
    background: rgba(60,60,60,.85); color: #fff; font-size: 12px; line-height: 1.2; letter-spacing: -0.01em;
  }
}

/* Case pages' "Get in touch": copy centred in the 940px frame, links along the bottom */
.w-contact { min-height: 940px; padding: 74px 0 60px; display: flex; flex-direction: column; overflow: hidden; }
.w-contact .page-wrap { width: 100%; margin: auto; }
.w-contact h2 { margin: 46px 0 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 4.44vw, 64px); line-height: 1; letter-spacing: -0.01em; }
.w-contact h2 .line-mask { padding-bottom: .1em; margin-bottom: -.1em; } /* room for descenders under the reveal mask */
.w-contact h2 .dim a { color: #383838; transition: color .5s var(--ease-out); }
.w-contact h2 .dim a:hover { color: #fff; }

@media (min-width: 901px) { .w-contact h2 .line-mask { white-space: nowrap; } }
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; gap: 40px; }
  .w-contact { min-height: 0; padding-top: 140px; }
  .w-contact .page-wrap { margin: 0 0 120px; }
}

/* Phones (Figma mobile "02. Work", 1726:19382): everything on the 24px gutter; a 48px title
   179px from the top with the 20px intro 24px under it; one column of 345 × 230 projects, 32px apart */
@media (max-width: 600px) {
  .page-wrap { padding: 0 var(--gutter); }
  .w-hero { padding: 179px var(--gutter) 90px; }
  .w-hero .hero-title { font-size: 48px; }
  .w-hero .hero-title .row { white-space: normal; } /* BIG / THINKING / TO REAL / WORLD / IMPACT */
  .w-intro { margin-top: 24px; font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: .05em; }
  .w-head { line-height: 1.2; }
  .w-work { padding: 80px 0; }
  .proj-grid { gap: 32px; }
  .proj-media { border-radius: 6.33px; }
}
