/* Styles for inner pages. Colours, header, footer and forms come from style.css. */

.inner .header { background: rgb(13 11 26 / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-dark); }

/* Page opening */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); padding: 150px 0 clamp(64px, 8vw, 104px); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Small originals are softened on purpose, so they never look accidentally blurry. */
.page-hero-bg.soft { filter: blur(2px); transform: scale(1.03); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(13 11 26 / .96) 0%, rgb(13 11 26 / .86) 50%, rgb(13 11 26 / .56) 100%),
  linear-gradient(0deg, rgb(13 11 26 / .75), transparent 60%); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.1rem); letter-spacing: -.045em; line-height: 1.08; max-width: 17em; margin-bottom: 20px; }
.page-lead { max-width: 58ch; font-size: clamp(1rem, 1.35vw, 1.15rem); color: #d6d2e6; margin-bottom: 30px; }
.page-lead:last-child { margin-bottom: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 28px; font-size: .8rem; color: var(--text-dim); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.has-aside .page-hero-in { display: grid; grid-template-columns: 1.5fr minmax(300px, 350px); gap: clamp(32px, 5vw, 80px); align-items: center; }

/* Sections */
.block { padding-block: clamp(64px, 8vw, 112px); }
.tone-cream { background: var(--cream); color: var(--night); }
.tone-white { background: var(--white); color: var(--night); }
.tone-dark { background: var(--night); color: var(--white); }
.tone-cream + .tone-cream, .tone-white + .tone-white { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); letter-spacing: -.035em; line-height: 1.16; margin-bottom: 20px; }
.block h3 { margin-bottom: 10px; }
.block a:not(.btn):not(.info-card):not(.arrow-link) { text-decoration-color: var(--orange); }
.tone-cream .kicker, .tone-white .kicker { color: var(--orange-deep); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.sec-head h2 { margin-bottom: 0; }
.sec-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.prose { min-width: 0; }
.prose > * + h2 { margin-top: 48px; }
.prose > * + h3 { margin-top: 30px; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose li { color: #3d3952; }
.prose-center { max-width: 780px; margin-inline: auto; }
.overview { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line); }
.tone-white .panel { background: var(--cream); }
.block .panel h2 { font-size: 1.5rem; margin-bottom: 8px; }
.panel h3 { margin-top: 28px; }
.panel h3 + ul.list { display: flex; flex-wrap: wrap; gap: 8px; }
.panel h3 + ul.list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; }
.panel h3 + ul.list li::before { display: none; }

ul.list, ol.list { margin: 0 0 24px; padding: 0; }
.list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
ol.list { counter-reset: item; }
ol.list li { counter-increment: item; }
ol.list li::before { content: counter(item); top: 12px; width: auto; height: auto; background: none; font-weight: 700; color: var(--orange-deep); }
.tone-dark .list li { border-color: var(--line-dark); }
.sec-head + ul.list, .block > .wrap > ul.list { columns: 2; column-gap: 40px; }
.sec-head + ul.list li, .block > .wrap > ul.list li { break-inside: avoid; }

/* Cards */
.cards { display: grid; gap: 16px; margin-bottom: 20px; }
.cards:last-child { margin-bottom: 0; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--night); text-decoration: none; overflow-wrap: anywhere; }
.tone-white .info-card { background: var(--cream); }
.tone-dark .info-card { background: var(--night-2); border-color: var(--line-dark); color: var(--white); }
.info-card h3 { font-size: 1.15rem; }
.info-card p, .info-card li { font-size: .92rem; line-height: 1.65; color: var(--muted); }
.tone-dark .info-card p, .tone-dark .info-card li { color: var(--text-dim); }
.info-card p:last-of-type { margin-bottom: 0; }
.info-card ul { margin-top: 12px; }
.info-card li { padding: 5px 0; border-top: 1px solid var(--line); }
.info-card .num { font-size: 2.2rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--orange); margin-bottom: 20px; }
.is-link { padding-bottom: 76px; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.is-link:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 24px 44px rgb(13 11 26 / .12); }
.go { position: absolute; left: 28px; bottom: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--white); transition: background-color .25s, color .25s; }
.tone-dark .go { background: rgb(255 255 255 / .1); }
.is-link:hover .go { background: var(--orange); color: var(--night); }

/* Questions */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--night); }
.faq-list summary, .job summary { cursor: pointer; font-weight: 600; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; font-size: 1.02rem; line-height: 1.5; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--white); font-weight: 400; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--ease), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--night); }
.faq-list details p { color: var(--muted); max-width: 68ch; }
.tone-dark .faq-list details, .tone-dark .faq-list details:first-child { border-color: var(--line-dark); }
.tone-dark .faq-list details p { color: var(--text-dim); }

blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); }
blockquote p { font-size: 1.2rem; font-weight: 500; line-height: 1.6; margin: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); color: var(--night); }
th, td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--night); color: var(--white); font-weight: 600; }

/* Articles and case studies */
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: space-between; gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-grid .prose { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 52px); }
.article-grid .prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); scroll-margin-top: 100px; }
.byline { font-size: .84rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.toc, .side-cta { border-radius: 18px; padding: 22px; font-size: .88rem; }
.toc { background: var(--white); max-height: calc(100vh - 400px); overflow-y: auto; }
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc li { border-top: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0; line-height: 1.45; text-decoration: none; }
.toc a:hover { color: var(--orange-deep); }
.side-cta { background: var(--night); color: var(--white); }
.side-cta p { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.side-cta span { display: block; color: var(--text-dim); margin-bottom: 16px; }

/* Article and case study lists */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--night); transition: transform .35s var(--ease), box-shadow .35s; }
.tone-white .story { background: var(--cream); }
.story:hover { transform: translateY(-4px); box-shadow: 0 24px 44px rgb(13 11 26 / .14); }
.story img { width: 100%; height: 210px; object-fit: cover; }
.story > div { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.story p { font-size: .76rem; font-weight: 600; color: var(--orange-deep); margin-bottom: 8px; }
.block .story h2, .story h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.4; margin-bottom: 10px; }
.story h2 a, .story h3 a { text-decoration: none; }
.story h2 a::after, .story h3 a::after { content: ""; position: absolute; inset: 0; }
.story span { font-size: .87rem; line-height: 1.6; color: var(--muted); }
.story small { margin-top: auto; padding-top: 16px; color: var(--muted); }
.block .related-title { margin-bottom: 32px; }

/* Careers application form */
.apply-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.apply-intro { position: sticky; top: 112px; }
.apply-form.full { background: var(--white); }
.apply-form .field input[type="file"] { padding: 10px; border-style: dashed; border-width: 2px; background: var(--cream); cursor: pointer; }
.apply-form input[type="file"]::file-selector-button { margin-right: 14px; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--night); color: var(--white); font: 600 .84rem var(--font); cursor: pointer; }
.apply-form input[type="file"]::file-selector-button:hover { background: var(--orange); color: var(--night); }
.apply-form.tried input:invalid, .apply-form.tried select:invalid { border-color: #b3261e; }
.apply-form .consent input:invalid { outline: none; }
.apply-form.tried .consent input:invalid { outline: 2px solid #b3261e; }
#apply, #open-roles { scroll-margin-top: 76px; }

/* Careers and sitemap */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.job { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.job p { font-size: .93rem; color: var(--muted); }
.job details { margin: 4px 0 20px; border-block: 1px solid var(--line); }
.job summary { padding: 14px 0; font-size: .92rem; }
.job h3, .job h4 { font-size: 1rem; }
.sitemap-grid { columns: 3; column-gap: 40px; }
.sitemap-grid > div { break-inside: avoid; margin-bottom: 36px; }
.block .sitemap-grid h2 { font-size: 1.25rem; margin-bottom: 8px; }
.sitemap-grid li { border-bottom: 1px solid var(--line); }
.sitemap-grid a { display: block; padding: 8px 0; font-size: .9rem; text-decoration: none; }

@media (max-width: 1100px) {
  .cols-3, .cols-4, .stories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-hero { padding-top: 120px; }
  .has-aside .page-hero-in, .sec-head, .split, .overview, .article-grid, .jobs, .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .apply-intro { position: static; }
  .article-side { position: static; }
  .toc { display: none; }
  .sitemap-grid { columns: 2; }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4, .stories { grid-template-columns: minmax(0, 1fr); }
  .sec-head + ul.list, .block > .wrap > ul.list { columns: 1; }
  .sitemap-grid { columns: 1; }
  .info-card { padding: 22px; }
  .is-link { padding-bottom: 72px; }
  .go { left: 22px; }
}
