/* Precision: company, contact and project editorial pages. */
.p-editorial { --ed-dark: #102b40; --ed-line: #dce5ec; --ed-muted: #657b8c; }
.p-editorial h1,.p-editorial h2,.p-editorial h3 { font-family: Manrope,Inter,sans-serif; letter-spacing: -.045em; font-weight: 600; line-height: 1.15; }
.p-editorial h1 { font-size: clamp(34px,4.5vw,66px); margin: 20px 0 24px; }
.p-editorial h1 em { font-style: normal; color: #8ab7d8; }
.p-editorial h2 { font-size: clamp(26px,2.7vw,38px); margin: 0 0 22px; }
.p-editorial h3 { font-size: 24px; margin: 0 0 16px; }
.p-editorial p { line-height: 1.8; }
.p-ed-hero { display: grid; grid-template-columns: minmax(0,1fr); border-radius: 20px; background: var(--ed-dark); color: #f1f6fa; overflow: hidden; box-shadow: 0 22px 64px #102b4014; }
.p-ed-hero > div:first-child { padding: 34px 26px; }
.p-ed-hero .p-eyebrow { color: #a8c2d5; }
.p-ed-hero p { max-width: 560px; color: #b5cbdc; margin-bottom: 30px; font-size: 16px; }
.p-contact-orbit { min-height: 260px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 50%,#2b5675,#102b40 75%); perspective: 600px; }
.p-contact-orbit strong { font-size: 68px; font-weight: 650; letter-spacing: -.07em; line-height: 1; z-index: 1; }
.p-contact-orbit strong span { display: block; font: 10px 'JetBrains Mono',monospace; letter-spacing: .35em; text-align: center; margin-top: 20px; color: #a2c3dc; }
.p-contact-orbit i { position: absolute; bottom: 25px; right: 25px; font: 10px 'JetBrains Mono',monospace; color: #8ab7d8; }
.p-orbit-ring { position: absolute; width: 230px; height: 230px; border: 1px solid #9ac4df45; border-radius: 50%; transform: rotateX(50deg) rotateY(-25deg); }
.p-orbit-ring::after { content: ''; position: absolute; left: 20px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); box-shadow: 0 0 20px var(--p-accent); }
.p-orbit-ring-two { width: 310px; height: 310px; transform: rotateX(-30deg) rotateY(40deg); border-color: #9ac4df22; }
.p-contact-channels { display: grid; gap: 1px; background: var(--ed-line); border: 1px solid var(--ed-line); border-radius: 14px; overflow: hidden; margin: 28px 0 50px; }
.p-contact-channels > a { display: flex; flex-direction: column; gap: 12px; background: #fff; padding: 28px; color: var(--ed-dark); transition: background .25s; min-width: 0; }
.p-contact-channels > a:hover { background: #f0f5f8; }
.p-contact-channels strong { font-size: 22px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.p-contact-channels .p-eyebrow { margin: 0; }
.p-contact-channels > a > span:last-child { font-size: 12px; color: var(--ed-muted); }
.p-contact-layout { display: grid; gap: 26px; align-items: start; }
.p-ed-form { background: #f3f6f8; border: 1px solid var(--ed-line); border-radius: 18px; padding: 28px 22px; scroll-margin-top: 24px; }
.p-topic-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.p-topic-options button { border: 1px solid #cddbe5; background: #fff; color: #496171; padding: 10px 14px; min-height: 44px; border-radius: 7px; font-size: 12px; transition: background .2s,color .2s; }
.p-topic-options button.active { background: var(--ed-dark); color: #fff; border-color: var(--ed-dark); }
.p-honeypot { position: absolute; left: -10000px; height: 1px; overflow: hidden; }
.p-ed-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; min-width: 0; }
.p-ed-field label { font-size: 13px; font-weight: 600; }
.p-ed-field input,.p-ed-field textarea,.p-project-search input { width: 100%; min-width: 0; padding: 14px 16px; font: inherit; font-size: 16px; border: 1px solid #c9d8e2; background: #fff; color: #172e40; border-radius: 7px; }
.p-ed-field textarea { resize: vertical; }
.p-ed-field > span { color: #a22525; font-size: 13px; }
.p-field-pair { display: grid; gap: 0 20px; }
.p-form-note { font-size: 12px; color: var(--ed-muted); margin: -6px 0 24px; }
.p-form-success { padding: 30px 0; }
.p-form-success > span { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #d8ece2; color: #25644a; margin-bottom: 25px; font-size: 26px; }
.p-form-success p { color: var(--ed-muted); }
.p-contact-aside { display: grid; gap: 24px; min-width: 0; }
.p-address-card { background: var(--ed-dark); color: #fff; border-radius: 18px; padding: 30px; }
.p-address-card .p-eyebrow { color: #9bb8cd; }
.p-address-card h2 { font-size: 27px; line-height: 1.35; }
.p-address-card p { color: #bdd1df; font-size: 14px; }
.p-address-card .p-button { background: #ffffff0a; border-color: #ffffff40; }
.p-legal-card { padding: 26px; border: 1px solid var(--ed-line); border-radius: 18px; }
.p-legal-card h2 { font-size: 24px; }
.p-legal-card dl > div { border-bottom: 1px solid var(--ed-line); padding: 14px 0; }
.p-legal-card dt { font-size: 11px; color: var(--ed-muted); margin-bottom: 5px; font-weight: 400; }
.p-legal-card dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.p-legal-card p { font-size: 14px; color: var(--ed-muted); }
.p-about-mark { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 290px; background: linear-gradient(135deg,#203e56,#142e43); border-left: 1px solid #ffffff10; overflow: hidden; }
.p-about-mark > span,.p-about-mark > div { font: 11px/1.7 'JetBrains Mono',monospace; letter-spacing: .1em; color: #9db8cc; }
.p-about-mark strong { font-size: clamp(90px,11vw,160px); line-height: 1; letter-spacing: -.09em; font-weight: 600; white-space: nowrap; }
.p-about-mark strong span { color: var(--p-accent); font-weight: 400; }
.p-ed-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--ed-line); border-radius: 14px; margin-top: 28px; overflow: hidden; }
.p-ed-stats > div { padding: 25px; border-right: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); }
.p-ed-stats strong { font-size: clamp(30px,4vw,52px); letter-spacing: -.06em; font-weight: 600; color: var(--p-brand); display: block; }
.p-ed-stats span { color: var(--ed-muted); font-size: 13px; }
.p-about-story { display: grid; gap: 24px; }
.p-ed-prose { color: #425b6d; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.p-ed-prose p { margin-bottom: 22px; }
.p-ed-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.p-ed-prose table { display: block; overflow: auto; max-width: 100%; }
.p-ed-prose h2,.p-ed-prose h3 { color: var(--ed-dark); margin-top: 32px; }
.p-ed-prose ul,.p-ed-prose ol { padding-left: 24px; margin-bottom: 24px; }
.p-process { padding: 26px; border-radius: 18px; background: #f0f5f8; border: 1px solid var(--ed-line); }
.p-process-counter { font: 12px 'JetBrains Mono',monospace; color: var(--ed-muted); }
.p-process-grid { display: grid; gap: 25px; }
.p-process-tabs { display: flex; flex-direction: column; }
.p-process-tabs button { display: flex; align-items: center; gap: 16px; background: transparent; border: 0; border-bottom: 1px solid #d5e0e8; padding: 20px 0; text-align: left; font-size: 15px; min-height: 64px; color: var(--ed-muted); }
.p-process-tabs button > span { font: 10px 'JetBrains Mono',monospace; }
.p-process-tabs button b { margin-left: auto; font-size: 20px; font-weight: 400; }
.p-process-tabs button.active { color: var(--p-brand); border-bottom-color: var(--p-brand); }
.p-process-panels { display: grid; padding: 32px; border-radius: 12px; background: var(--ed-dark); color: #fff; }
/* Stack panels in one grid cell: every card contributes to the stable height. */
.p-process-panels > article { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.p-process-panels > article.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .p-process-panels > article { transition: none; } }
.p-process-panels h3 { font-size: 26px; margin-top: 22px; }
.p-process-panels p { font-size: 15px; color: #b5cddd; margin: 0; }
.p-process-number { font: 50px 'JetBrains Mono',monospace; color: #7596af; }
.p-mission { max-width: 900px; border-left: 3px solid var(--p-accent); padding: 12px 0 12px 30px; }
.p-values { display: grid; gap: 20px; }
.p-values:empty { display: none; }
.p-values article { border-top: 1px solid var(--ed-line); padding: 25px 0; }
.p-values p { color: var(--ed-muted); font-size: 15px; }
.p-ed-disclosure { border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); margin-top: 34px; }
.p-ed-disclosure summary { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; cursor: pointer; font-size: 20px; list-style: none; }
.p-ed-disclosure summary span { font-size: 26px; transition: transform .2s; }
.p-ed-disclosure[open] summary span { transform: rotate(45deg); }
.p-ed-disclosure p { color: var(--ed-muted); }
.p-ed-tags { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.p-ed-tags span { border: 1px solid var(--ed-line); border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.p-ed-end { padding: 50px 26px; text-align: center; margin-top: 50px; background: #edf3f7; border-radius: 18px; }
.p-ed-end p { color: var(--ed-muted); }
.p-projects-intro { display: grid; gap: 16px; border-bottom: 1px solid var(--ed-line); padding: 16px 0 38px; margin-bottom: 30px; }
.p-projects-intro h1 { margin-bottom: 0; }
.p-projects-intro h1 em { color: var(--p-brand); }
.p-projects-intro p { color: var(--ed-muted); max-width: 430px; }
.p-projects-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 30px; font-size: 12px; color: var(--ed-muted); }
.p-project-search { width: 100%; position: relative; }
.p-project-search > span { position: absolute; right: 12px; top: 15px; background: #fff; }
.p-layout-switch { display: flex; margin-left: auto; padding: 4px; border: 1px solid var(--ed-line); border-radius: 8px; }
.p-layout-switch button { min-height: 44px; padding: 8px 16px; background: transparent; border: 0; border-radius: 5px; font-size: 12px; color: var(--ed-muted); }
.p-layout-switch button.active { background: var(--ed-dark); color: #fff; }
.p-case-grid { display: grid; gap: 35px 25px; }
.p-case { min-width: 0; }
.p-case-image { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1.55; background: #e9eff3; }
.p-case-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.p-case-placeholder { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 30px; color: #8ba6b9; background: linear-gradient(135deg,#e9eff3,#d6e2eb); }
.p-case-placeholder > span { font-size: 74px; letter-spacing: -.08em; opacity: .45; }
.p-case-placeholder i { font: 10px 'JetBrains Mono',monospace; letter-spacing: .1em; }
.p-case-open { position: absolute; bottom: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ed-dark); font-size: 25px; transition: background .25s,transform .25s; }
.p-case-body { padding: 22px 0; }
.p-case-meta { display: flex; justify-content: space-between; gap: 16px; font: 10px 'JetBrains Mono',monospace; color: var(--ed-muted); margin-bottom: 16px; }
.p-case-body h2 { font-size: 25px; margin-bottom: 14px; }
.p-case-body h2 a { color: var(--ed-dark); }
.p-case-body p { font-size: 14px; color: var(--ed-muted); }
.p-case-empty { grid-column: 1/-1; background: #f0f5f8; border-radius: 18px; padding: 40px 28px; }
.p-project-heading { max-width: 1100px; padding: 16px 0 36px; }
.p-project-heading h1 { font-size: clamp(32px,4.2vw,58px); }
.p-project-heading > p { max-width: 800px; font-size: 18px; color: var(--ed-muted); }
.p-case-gallery { border-radius: 18px; overflow: hidden; background: #eaf0f4; }
.p-case-gallery-stage { position: relative; height: 300px; background: #102b40; }
.p-case-gallery-stage > img { width: 100%; height: 100%; object-fit: contain; }
.p-case-expand { position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; border: 1px solid #ffffff50; border-radius: 8px; background: #102b40b0; color: #fff; font-size: 25px!important; }
.p-case-gallery-arrows { display: flex; align-items: center; gap: 16px; position: absolute; bottom: 20px; left: 20px; padding: 4px; border-radius: 8px; color: #fff; background: #102b40db; }
.p-case-gallery-arrows button { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; font-size: 20px; }
.p-case-gallery-arrows span { font: 11px 'JetBrains Mono',monospace; }
.p-case-thumbs { display: flex; gap: 10px; padding: 16px; overflow: auto; }
.p-case-thumbs button { width: 70px; height: 54px; flex-shrink: 0; border: 2px solid transparent; padding: 0; opacity: .6; border-radius: 6px; overflow: hidden; background: #fff; }
.p-case-thumbs button.active { border-color: var(--p-brand); opacity: 1; }
.p-case-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-case-gallery.expanded { position: fixed; inset: 12px; z-index: 1000; }
.p-case-gallery.expanded .p-case-gallery-stage { height: calc(100dvh - 115px); }
.p-project-story { display: grid; gap: 35px; margin-top: 45px; }
.p-project-story aside { align-self: start; border-top: 2px solid var(--p-brand); padding-top: 24px; }
.p-project-story aside nav { display: flex; flex-direction: column; margin-bottom: 22px; }
.p-project-story aside nav a { min-height: 44px; padding: 10px 0; color: var(--ed-muted); font-size: 14px; }
.p-project-story section,.p-project-detail section[id] { scroll-margin-top: 25px; min-width: 0; }
.p-project-videos { display: grid; gap: 20px; }
.p-project-videos video { width: 100%; border-radius: 12px; background: #102b40; }
.p-project-videos figcaption { color: var(--ed-muted); font-size: 12px; padding: 12px 0; }
.p-project-back { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--ed-line); padding-top: 30px; margin-top: 50px; }
.p-project-back a { font-size: 14px; color: var(--p-brand); min-height: 44px; }
@media(min-width:760px) {
    .p-ed-hero { grid-template-columns: 1.4fr 1fr; }
    .p-ed-hero > div:first-child { padding: 45px; }
    .p-contact-channels { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
    .p-contact-layout { grid-template-columns: 1.3fr 1fr; gap: 35px; }
    .p-ed-form { padding: 35px; }
    .p-field-pair { grid-template-columns: 1fr 1fr; }
    .p-contact-orbit { min-height: 400px; }
    .p-about-mark { padding: 40px; }
    .p-ed-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .p-about-story { grid-template-columns: .9fr 1.1fr; gap: 60px; }
    .p-process { padding: 38px; }
    .p-process-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; }
    .p-process-panels { padding: 40px; }
    .p-values { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; }
    .p-projects-intro { grid-template-columns: 1.3fr .8fr; align-items: end; }
    .p-project-search { width: min(50%,500px); }
    .p-case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .p-case-grid:not(.is-list) .p-case:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 1.3fr 1fr; background: #edf3f7; border-radius: 18px; overflow: hidden; }
    .p-case-grid:not(.is-list) .p-case:first-child .p-case-image { border-radius: 0; aspect-ratio: auto; min-height: 340px; }
    .p-case-grid:not(.is-list) .p-case:first-child .p-case-body { padding: 40px; align-self: center; }
    .p-case-grid.is-list { grid-template-columns: 1fr; }
    .p-case-grid.is-list .p-case { display: grid; grid-template-columns: 300px 1fr; gap: 30px; border-bottom: 1px solid var(--ed-line); padding-bottom: 25px; }
    .p-case-grid.is-list .p-case-image { aspect-ratio: 1.6; }
    .p-case-grid.is-list .p-case-body { padding: 0; }
    .p-case-gallery-stage { height: 570px; }
    .p-project-story { grid-template-columns: 260px minmax(0,1fr); gap: 65px; }
    .p-project-story aside { position: sticky; top: 24px; }
    .p-project-videos { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(min-width:1200px) {
    .p-ed-hero > div:first-child { padding: 60px; }
    .p-contact-layout { gap: 60px; }
    .p-contact-aside { position: sticky; top: 24px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
    .p-case:hover .p-case-image > img { transform: scale(1.045); }
    .p-case:hover .p-case-open { background: var(--p-accent); transform: rotate(45deg); }
    .p-contact-orbit:hover .p-orbit-ring { transform: rotateX(25deg) rotateY(30deg); }
    .p-contact-orbit:hover .p-orbit-ring-two { transform: rotateX(-50deg) rotateY(-15deg); }
    .p-orbit-ring { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
}
@media(prefers-reduced-motion:reduce) {
    .p-editorial *,.p-editorial *::before,.p-editorial *::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; }
}
.p-ed-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.p-case-grid.is-list .p-case { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; border-bottom: 1px solid var(--ed-line); padding-bottom: 20px; }
.p-case-grid.is-list .p-case-image { aspect-ratio: 1; }
.p-case-grid.is-list .p-case-body { padding: 0; }
.p-case-grid.is-list .p-case-body h2 { font-size: 20px; }
.p-case-grid.is-list .p-case-body > p { display: none; }
.p-case-grid.is-list .p-case-meta { flex-wrap: wrap; gap: 8px; }
@media(min-width:760px) {
    .p-case-grid.is-list .p-case { grid-template-columns: 300px minmax(0,1fr); gap: 30px; }
    .p-case-grid.is-list .p-case-image { aspect-ratio: 1.6; }
    .p-case-grid.is-list .p-case-body h2 { font-size: 25px; }
    .p-case-grid.is-list .p-case-body > p { display: block; }
}
.p-editorial .p-tile h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
