/* Inner pages, group A (B2): About, Offices, Team, Opportunities, Contact, Privacy policy, Terms. Same tokens, type roles and
   motion attributes as the home page; measured values in dna/DETAILS.md, dna/TYPE.md. Shared parts (statement, stat cells, the arc and
   the world map, the footer) are parts.css. The side panel is panel.css. Units are the template's: vw on the 2400 canvas above 1100px,
   min(Xvw, Ypx) at or below it. */

/* ---------------------------------------------------------------- the inner hero: the stacked indented headline, one paragraph bottom right */
.ihero { position: relative; padding: calc(var(--head-h) + 6vw) 0 5vw; }
.ihero__row { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 22vw; align-items: end; gap: 3vw; padding: 0 5vw; }
.ihero .display { padding-top: .12em; padding-bottom: .1em; }
.ihero .display.--long { font-size: 9vw; }
.ihero .line { will-change: transform; }
.ihero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25vw; padding-bottom: .8vw; }
.ihero__text:empty { display: none; }
@media (max-width: 1100px) {
  .ihero { padding: calc(var(--head-h) + min(10vw, 40px)) 0 min(10vw, 40px); }
  .ihero__row { grid-template-columns: 1fr; gap: min(8vw, 32px); padding: 0 var(--pad-x); }
  .ihero .display.--long { font-size: min(13.4vw, 53px); }
  .ihero__text { gap: min(4vw, 16px); padding: 0 0 0 5vw; max-width: min(86vw, 340px); }
}

/* ---------------------------------------------------------------- shared small pieces */
a.oline { display: inline-block; min-height: 24px; line-height: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(11, 35, 64, .45); transition: text-decoration-color .4s var(--p2-out); }
a.oline:hover { text-decoration-color: var(--navy); }
@media (max-width: 1100px) { a.oline { min-height: 28px; line-height: 28px; } }

/* ---------------------------------------------------------------- About: the 2009 numeral band (the template's timeline device) */
.era { position: relative; height: 46vw; margin-top: 1vw; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.era__box { position: absolute; left: 50%; top: 50%; width: 30vw; height: 21vw; transform: translate(-50%, -50%); background: var(--stone); overflow: hidden; clip-path: inset(35%); }
.era__box img { width: 100%; height: 100%; object-fit: cover; }
.era__num { position: relative; z-index: 2; margin: 0; display: flex; justify-content: center; font-size: 40vw; line-height: 1; letter-spacing: -.02em; color: var(--navy); mix-blend-mode: multiply; pointer-events: none; }
.era__d { display: block; }
.no-motion .era__box { clip-path: none; }
@media (max-width: 1100px) {
  .era { height: min(62vw, 245px); }
  .era__box { width: 60vw; height: 42vw; }
  .era__num { font-size: min(44vw, 174px); }
}

/* About: history, vision, values, the two links */
.history { padding: 8vw 0 6vw; }
.history__grid { display: grid; grid-template-columns: 14vw minmax(0, 1fr); gap: 3vw; align-items: start; }
.history__eye { padding-top: .5vw; }
.history__body { display: flex; flex-direction: column; gap: 2.5vw; max-width: 56vw; }
.history__cfaw { color: var(--quiet); }
.vision__tail { margin-top: 3vw; color: var(--quiet); }
.values { padding: 0 0 8vw; }
.values__eye { margin-bottom: 2.5vw; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.vcell { min-height: 28vw; padding: 1.667vw; display: flex; flex-direction: column; justify-content: space-between; gap: 3vw; border: 1px solid var(--hair); }
.vcell + .vcell { border-left: 0; }
.vcell__w { color: var(--navy); }
.vcell__p { max-width: 24vw; }
.jumps { padding: 0 0 10vw; }
.jumps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .833vw; }
.jump { display: flex; flex-direction: column; background: var(--stone); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; transition: background-color .4s var(--p2-out); }
.jump:hover, .jump:focus-visible { background: #dde3eb; }
.jump__media { display: grid; height: 18vw; overflow: hidden; }
.jump__media img { width: 100%; height: 100%; max-width: none; transition: transform 4s var(--expo-out); }
.jump:hover .jump__media img { transform: scale(1.03); }
.jump__media--team { grid-template-columns: repeat(3, minmax(0, 1fr)); background: linear-gradient(-90deg, #e3e8ef, #e8ecf2); }
.jump__media--team img { object-fit: contain; object-position: center bottom; filter: grayscale(1); }
.jump__media--cities { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.jump__media--cities img { object-fit: cover; }
.jump__cap { display: flex; flex-direction: column; gap: 1.2vw; padding: 1.667vw; }
.why { padding: 0 0 6vw; }
.why__body { display: flex; flex-direction: column; gap: 1.4vw; max-width: 56vw; }
.why__h { margin-bottom: .6vw; }
.why__more { padding-top: .6vw; }
.why__side { display: flex; flex-direction: column; gap: 2vw; }
.why__ph { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.why__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jump__more { position: relative; align-self: flex-start; padding-bottom: .25vw; font-weight: 500; }
.jump__more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform-origin: right; transition: transform .6s var(--expo-out); }
.jump:hover .jump__more::after, .jump:focus-visible .jump__more::after { transform: scaleX(.35); }
.ocard__city, .ofcol__city, .legal__h, .tgroup__n .title { letter-spacing: -.02em; }
.tgroup__n { display: flex; align-items: baseline; gap: .6vw; margin-top: 2vw; }
.tgroup__n .title { color: var(--navy); }
@media (max-width: 1100px) {
  .history { padding: min(16vw, 63px) 0 min(10vw, 40px); }
  .history__grid { grid-template-columns: 1fr; gap: min(5vw, 20px); }
  .history__body { gap: min(6vw, 24px); max-width: none; }
  .vision__tail { margin-top: min(6vw, 24px); }
  .values { padding-bottom: min(16vw, 63px); }
  .values__eye { margin-bottom: min(5vw, 20px); }
  .values__grid { grid-template-columns: 1fr; }
  .vcell { min-height: min(70vw, 276px); padding: min(5vw, 19.8px); gap: min(10vw, 40px); }
  .vcell + .vcell { border-left: 1px solid var(--hair); border-top: 0; }
  .vcell__p { max-width: none; }
  .jumps { padding-bottom: min(20vw, 79px); }
  .jumps__grid { grid-template-columns: 1fr; gap: min(3.4vw, 13px); }
  .jump__media { height: min(52vw, 205px); }
  .jump__cap { gap: min(4vw, 16px); padding: min(5vw, 19.8px); }
  .why { padding-bottom: min(10vw, 40px); }
  .why__body { gap: min(4vw, 16px); max-width: none; }
  .why__h { margin-bottom: min(2vw, 8px); }
  .why__more { padding-top: min(2vw, 8px); }
  .why__side { gap: min(4vw, 16px); }
  .why__ph { width: min(60vw, 240px); }
  .jump__more { padding-bottom: 3px; }
  .tgroup__n { margin-top: min(3vw, 12px); gap: min(2vw, 8px); }
  .ofig__v { font-size: min(5.6vw, 22px); }
}

/* ---------------------------------------------------------------- Offices: five cards */
.ocards { padding: 0 0 10vw; }
.ocards__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3.333vw .833vw; }
.ocard { grid-column: span 2; display: flex; flex-direction: column; gap: 1.25vw; }
.ocard--0, .ocard--1 { grid-column: span 3; }      /* fix wave 2 (m3): the first two large, the other three in a row of three */
.ocard__ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.ocard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 4s var(--expo-out); }
.ocard:hover .ocard__ph img { transform: scale(1.04); }
.ocard__body { display: flex; flex-direction: column; gap: .6vw; padding-top: .4vw; }
.ocard__addr { font-style: normal; color: var(--quiet); max-width: 28vw; }
.ocard__city { margin-bottom: .4vw; }
@media (max-width: 1100px) {
  .ocards { padding-bottom: min(20vw, 79px); }
  .ocards__grid { grid-template-columns: 1fr; gap: min(10vw, 40px); }
  .ocard, .ocard--3, .ocard--4 { grid-column: auto; gap: min(4vw, 16px); }
  .ocard__body { gap: min(2vw, 8px); }
  .ocard__addr { max-width: none; }
}

/* ---------------------------------------------------------------- Team: five groups, a portrait card each (the template's team grid) */
.tgroup { padding: 0 0 6vw; }
.tgroup__grid { display: grid; grid-template-columns: 20vw minmax(0, 1fr); gap: 1.667vw; }
.tgroup__head { position: sticky; top: 8vw; align-self: start; padding-top: .6vw; }
.tgroup__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw .9vw; }
.tcard { display: block; position: relative; }
.tcard__ph { display: block; position: relative; aspect-ratio: 1 / 1.18; overflow: hidden; background: linear-gradient(-90deg, #e3e8ef, #e8ecf2); }
.tcard__ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(-90deg, #d6dce6, #eef1f6); opacity: 0; transition: opacity .4s var(--p2-out); }
.tcard:hover .tcard__ph::before, .tcard:focus-visible .tcard__ph::before { opacity: 1; }
.tcard__img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: grayscale(1); }
.tcard__cap { display: flex; flex-direction: column; gap: .3vw; padding-top: 1.1vw; }
.tcard__cap .name { font-size: 1.25vw; font-weight: 500; line-height: 1.25; }
.tcard__cap .role { font-size: 1vw; color: var(--quiet); line-height: 1.2; }
@media (max-width: 1100px) {
  .tgroup { padding-bottom: min(14vw, 55px); }
  .tgroup__grid { grid-template-columns: 1fr; gap: min(6vw, 24px); }
  .tgroup__head { position: static; padding-top: 0; }
  .tgroup__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(7vw, 28px) min(3.4vw, 13px); }
  .tcard__cap { gap: 2px; padding-top: min(3vw, 12px); }
  .tcard__cap .name { font-size: min(4.2vw, 16.6px); }
  .tcard__cap .role { font-size: min(3.6vw, 14px); }
}

/* ---------------------------------------------------------------- Opportunities: the portfolio grid (hairline cells, no gap) */
.opps { padding: 0 0 10vw; }
.opps__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.ocell { display: flex; flex-direction: column; justify-content: space-between; gap: 4vw; min-height: 25vw; padding: 1.667vw; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transition: background-color .4s var(--p2-out); }
.ocell:hover, .ocell:focus-visible { background: var(--stone); }
.ocell__figs { display: flex; flex-wrap: wrap; gap: .7vw 1.667vw; }
.ofig { display: flex; flex-direction: column; gap: .25vw; }
.ofig__k { color: var(--quiet); }
.ofig__v { font-size: 1.667vw; line-height: 1.1; letter-spacing: -.02em; }
.ocell__foot { display: flex; flex-direction: column; gap: .9vw; }
.ocell__name .lead { font-size: .75vw; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--accent); vertical-align: .55em; white-space: nowrap; }
.ocell__text { color: var(--quiet); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) {
  .opps { padding-bottom: min(20vw, 79px); }
  .opps__grid { grid-template-columns: 1fr; }
  .ocell { min-height: min(58vw, 230px); gap: min(8vw, 32px); padding: min(5vw, 19.8px); }
  .ocell__figs { gap: min(2vw, 8px) min(6vw, 24px); }
  .ofig { gap: 2px; }
  .ocell__foot { gap: min(3vw, 12px); }
  .ocell__name .lead { font-size: min(3.056vw, 12.13px); }
}

/* ---------------------------------------------------------------- Contact */
.ihero--contact { min-height: 42vw; padding-bottom: 6vw; }
.ihero--contact .ihero__row { grid-template-columns: minmax(0, 1fr); }
.ihero--contact .ihero__text { max-width: 28vw; margin-top: 4vw; padding-bottom: 0; }
.ihero__pic { position: absolute; right: 0; top: calc(var(--head-h) + 1vw); width: 50vw; height: 35vw; z-index: 1; overflow: hidden; background: var(--stone); clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%); }
.ihero__pic img { width: 100%; height: 100%; object-fit: cover; }
.ofcols { padding: 2vw 0 6vw; }
.ofcols__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2vw; }
.ofcol { display: flex; flex-direction: column; gap: .6vw; padding-top: 1.25vw; border-top: 1px solid var(--hair); }
.ofcol__city { margin-bottom: .5vw; }
.ofcol__addr { font-style: normal; color: var(--quiet); }
.cform { padding: 4vw 0 10vw; }
.cform__grid { display: grid; grid-template-columns: 24vw minmax(0, 1fr); gap: 6vw; align-items: start; }
.cform__side { display: flex; flex-direction: column; gap: .8vw; }
.cform__in { margin-top: 2.5vw; }
.contact-form { display: flex; flex-direction: column; max-width: 52vw; }
.field { display: flex; flex-direction: column; gap: .3vw; margin-bottom: 1.667vw; }
.field label { font-size: 1vw; font-weight: 500; line-height: 1.2; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.25vw; line-height: 1.3; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid var(--quiet); border-radius: 0; padding: .6vw 0; min-height: max(2.917vw, 44px); }
.field textarea { min-height: 9vw; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); opacity: 1; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--navy); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--err); }
.field__err { margin: 0; font-size: max(.917vw, 14px); line-height: 1.3; color: var(--err); }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .8vw; }
.check__in { appearance: none; -webkit-appearance: none; flex: none; width: max(1.667vw, 24px); height: max(1.667vw, 24px); margin: .1vw 0 0; padding: 0; min-height: 0; border: 1px solid var(--navy); border-radius: 0; background: transparent; cursor: pointer; }
.check__in:checked { background: var(--navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.4 5.6 10.4 11.5 3.8' fill='none' stroke='%23f5f2ec' stroke-width='1.6'/></svg>") center / 70% no-repeat; }
.check__in[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.check__l { flex: 1 1 0; min-width: 0; font-size: max(.917vw, 14px); font-weight: 400; line-height: 1.35; }
.check__l a { display: inline-block; min-height: 24px; line-height: 24px; text-decoration: underline; text-underline-offset: .2em; }
.field--check .field__err { flex: 1 0 100%; padding-left: calc(max(1.667vw, 24px) + .8vw); }
.field--check input[type="hidden"] { display: none; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: max(3.333vw, 48px); padding: 0 2.5vw; background: var(--navy); color: var(--ivory); font-size: max(.917vw, 14px); font-weight: 500; letter-spacing: -.01em; transition: background-color .8s var(--expo-out), opacity .4s; }
.btn:hover { background: rgba(11, 35, 64, .94); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.form-note { margin-top: 1.25vw; color: var(--quiet); max-width: 36vw; }
.form-noscript { margin: 0 0 1.25vw; color: var(--quiet); }
@media (max-width: 1100px) {
  .ihero--contact { min-height: 0; padding-bottom: min(8vw, 32px); }
  .ihero--contact .ihero__text { max-width: min(86vw, 340px); margin-top: min(6vw, 24px); }
  .ihero__pic { position: relative; right: auto; top: auto; width: calc(100% - var(--pad-x)); height: min(62vw, 245px); margin: min(8vw, 32px) 0 0 auto; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
  .ofcols { padding: min(8vw, 32px) 0 min(14vw, 55px); }
  .ofcols__grid { grid-template-columns: 1fr; gap: min(8vw, 32px); }
  .ofcol { gap: min(2vw, 8px); padding-top: min(4vw, 16px); }
  .ofcol__city { margin-bottom: min(2vw, 8px); }
  .cform { padding: min(8vw, 32px) 0 min(20vw, 79px); }
  .cform__grid { grid-template-columns: 1fr; gap: min(14vw, 55px); }
  .cform__side { gap: min(3vw, 12px); }
  .cform__in { margin-top: min(8vw, 32px); }
  .contact-form { max-width: none; }
  .field { gap: min(1.5vw, 6px); margin-bottom: min(6vw, 24px); }
  .field label { font-size: min(3.889vw, 15.435px); }
  .field input, .field textarea { font-size: max(16px, 4.2vw); padding: min(2vw, 8px) 0; }
  .field textarea { min-height: min(38vw, 150px); }
  .field--check { gap: min(3vw, 12px); }
  .check__l { font-size: min(3.889vw, 15.435px); }
  .field--check .field__err { padding-left: calc(24px + min(3vw, 12px)); }
  .btn { width: 100%; font-size: min(3.889vw, 15.435px); padding: 0 min(6vw, 24px); }
  .form-note { max-width: none; margin-top: min(5vw, 20px); }
}

/* ---------------------------------------------------------------- Privacy policy and Terms: their text, set for reading */
.legal { padding: 1vw 0 10vw; }
.legal__upd { margin-bottom: 2.5vw; }
.legal__h { margin: 4vw 0 1.25vw; }
.legal__h:first-child, .legal__upd + .legal__h { margin-top: 0; }
.legal .text { line-height: 1.5; letter-spacing: -.01em; }
.legal__p { margin: 0 0 1.1vw; }
.legal__ul { list-style: disc; margin: 0 0 1.5vw; padding-left: 1.6vw; }
.legal__ul li { margin-bottom: .5vw; }
.legal__addr { font-style: normal; margin: 0 0 1.5vw; }
.legal__tablewrap { overflow-x: auto; margin: 0 0 1.5vw; }
.legal__table { width: 100%; border-collapse: collapse; line-height: 1.45; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 1vw 1.5vw 1vw 0; border-top: 1px solid var(--hair); font-weight: 400; }
.legal__table thead th { font-weight: 500; color: var(--quiet); }
.legal__table tbody th { font-weight: 500; width: 28%; }
@media (max-width: 1100px) {
  .legal { padding-bottom: min(20vw, 79px); }
  .legal__upd { margin-bottom: min(8vw, 32px); }
  .legal__h { margin: min(12vw, 47px) 0 min(4vw, 16px); }
  .legal__p { margin-bottom: min(4vw, 16px); }
  .legal__ul { padding-left: min(5.5vw, 22px); margin-bottom: min(5vw, 20px); }
  .legal__ul li { margin-bottom: min(2vw, 8px); }
  .legal__table th, .legal__table td { padding: min(3vw, 12px) min(4vw, 16px) min(3vw, 12px) 0; }
}
