/* Homepage art direction: real CODES imagery, native stacked service cards, restrained motion. */
.home-page { background: #090b0d; }
.site-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #090b0d; pointer-events: none; animation: intro-exit .7s cubic-bezier(.7,0,.2,1) 1.3s both; }
.intro-lockup { display: grid; justify-items: center; gap: 26px; transform: translateY(-2vh); }
.intro-wordmark { display: block; width: clamp(190px, 20vw, 260px); height: auto; animation: intro-logo .55s cubic-bezier(.16,1,.3,1) .06s both; }
.intro-lockup i { width: 88px; height: 2px; background: var(--red); transform-origin: left; animation: intro-line .9s cubic-bezier(.2,.8,.2,1) .14s both; }
.home-page .header { animation: intro-content .55s cubic-bezier(.16,1,.3,1) 1.4s backwards; }
.mast-copy > * { animation: intro-content .55s cubic-bezier(.16,1,.3,1) both; }
.mast-copy > :nth-child(1) { animation-delay: 1.4s; }
.mast-copy > :nth-child(2) { animation-delay: 1.47s; }
.mast-copy > :nth-child(3) { animation-delay: 1.54s; }
.mast-copy > :nth-child(4) { animation-delay: 1.61s; }
.mast-copy > :nth-child(5) { animation-delay: 1.68s; }
@keyframes intro-logo { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-exit { 0% { opacity: 1; visibility: visible; } 99% { visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes intro-content { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.home-page .header { background: #090b0df2; }
.mast { position: relative; isolation: isolate; min-height: 850px; height: 100svh; max-height: 1060px; padding: calc(var(--header) + 37px) var(--gutter) 25px; overflow: hidden; background: #090b0d; }
.mast-air { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.mast-schematic { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .25; transform: translateX(16vw) scale(1.08); }
.mast-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); align-items: center; gap: 48px; height: calc(100% - 47px); }
.mast-copy { position: relative; z-index: 2; padding-bottom: 10px; }
.mast-eyebrow,.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0; color: #f06b72; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; line-height: 1.3; }
.mast-eyebrow span,.eyebrow i { display: block; width: 28px; height: 2px; flex: none; background: var(--red); }
.mast h1 { margin-top: 33px; font: 500 clamp(58px, 5.45vw, 87px)/1.03 Barlow, Arial, sans-serif; letter-spacing: -.054em; text-transform: none; }
.mast h1 span,.mast h1 em { display: block; white-space: nowrap; }
.mast h1 em { color: var(--red); }
.mast-lead { max-width: 600px; margin-top: 35px; color: #c8cbc9; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.mast-actions { display: flex; gap: 10px; margin-top: 37px; }
.action-primary,.action-secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 57px; padding: 0 20px; font-size: 14px; font-weight: 700; }
.action-primary { background: var(--red); color: #fff; transition: background .25s; }
.action-primary:hover { background: #cb172c; }
.action-secondary { border: 1px solid #858b88; color: #fff; transition: border-color .25s, background .25s; }
.action-secondary:hover { border-color: #fff; background: #ffffff0c; }
.action-primary svg { flex: none; width: 18px; height: 18px; }
.action-secondary span { font-size: 20px; font-weight: 400; }
.mast-licences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 515px; margin-top: 42px; border: 1px solid #4e5553; }
.mast-licences div { padding: 14px 16px 12px; border-right: 1px solid #4e5553; }
.mast-licences div:last-child { border-right: 0; }
.mast-licences strong { display: block; font: 700 23px/.95 'Barlow Condensed', Impact, sans-serif; letter-spacing: .025em; }
.mast-licences small { display: block; margin-top: 5px; color: #aeb6b2; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.mast-system-index { position: relative; display: grid; align-content: center; gap: 0; justify-self: end; width: min(100%, 235px); border-left: 1px solid #65716c72; animation: intro-content .8s cubic-bezier(.16,1,.3,1) 1.8s both; }
.mast-system-index span { display: flex; gap: 28px; align-items: center; padding: 23px 0 23px 20px; border-bottom: 1px solid #65716c72; color: #f2636d; font: 600 11px/1 Barlow, Arial, sans-serif; letter-spacing: .12em; }
.mast-system-index span:last-child { border-bottom: 0; }
.mast-system-index b { color: #d7ded9; font: 500 14px/1 Barlow, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.mast-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #424946; padding-top: 15px; color: #adb5b0; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.mast-foot a { display: inline-flex; gap: 20px; }
.mast-foot a span { color: var(--red); font-size: 16px; line-height: .75; }

.disciplines { background: #0b0e10; border-top: 1px solid #303737; }
.section-intro { display: grid; grid-template-columns: .55fr 1fr .6fr; gap: 40px; align-items: end; padding: 80px var(--gutter) 67px; }
.section-intro > .eyebrow { align-self: start; padding-top: 6px; }
.section-intro h2,.work-heading h2 { font-size: clamp(70px, 7.5vw, 116px); line-height: .86; }
.section-intro h2 em,.work-heading h2 em { color: var(--red); }
.section-intro > p:last-child { max-width: 240px; color: #aeb5b1; font-size: 15px; line-height: 1.6; }
/* Native sticky cards: each real system rises over, scales and shades its predecessor. */
.service-flow { position: relative; padding: 0 var(--gutter) 52px; }
.service-stage { --stack-top: calc(var(--header) + 22px); --stack-step: 12px; position: relative; display: grid; gap: 34px; max-width: 1260px; margin: 0 auto; padding-bottom: 12px; }
.service-panel { --stack-scale: 1; --stack-shade: 0; position: sticky; top: calc(var(--stack-top) + var(--i) * var(--stack-step)); z-index: calc(1 + var(--i)); display: grid; grid-template-columns: 1.06fr 1fr; min-height: 510px; height: min(560px, calc(100svh - var(--header) - 120px)); border: 1px solid #373c44; border-radius: 20px; background: linear-gradient(125deg, #161b23, #0f1218); box-shadow: 0 25px 70px -30px #000d; overflow: hidden; isolation: isolate; transform: scale(var(--stack-scale)); transform-origin: 50% 0; }
.service-panel:after { content: ''; position: absolute; z-index: 5; inset: 0; background: #05070b; opacity: var(--stack-shade); pointer-events: none; }
.service-panel.is-in-stack { will-change: transform; }
.service-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 3.5vw, 54px); min-width: 0; }
.service-kicker { display: block; padding-top: 2px; color: #f26371; font-size: 12px; font-weight: 700; letter-spacing: .15em; line-height: 1.4; }
.service-icon { position: absolute; top: 32px; right: 30px; width: 46px; height: 46px; padding: 8px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff03; fill: none; stroke: #ed5362; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-icon path,.service-icon circle { stroke-dasharray: 220; stroke-dashoffset: 0; }
.motion-stack .service-icon path,.motion-stack .service-icon circle { stroke-dashoffset: 220; }
.motion-stack .service-panel.in-view .service-icon path,.motion-stack .service-panel.in-view .service-icon circle { animation: service-icon-draw 1.2s cubic-bezier(.18,.75,.22,1) forwards; }
@keyframes service-icon-draw { to { stroke-dashoffset: 0; } }
.service-copy h3 { max-width: 420px; margin-top: 34px; font: 500 clamp(32px, 3.25vw, 49px)/1.08 Barlow, Arial, sans-serif; letter-spacing: -.035em; text-transform: none; }
.service-copy p { max-width: 390px; margin-top: 20px; color: #afb5bf; font-size: 17px; line-height: 1.55; }
.included-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 25px 0 0; list-style: none; }
.included-chips li { padding: 8px 11px; border: 1px solid #50535e; border-radius: 30px; color: #d0d3da; font-size: 11px; line-height: 1; letter-spacing: .015em; transition: color .25s, border-color .25s, background .25s; }
.included-chips li:hover { color: #fff; border-color: var(--red); background: #ed23362b; }
.service-copy a { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; margin-top: 21px; border-bottom: 2px solid var(--red); font-size: 15px; font-weight: 500; }
.service-copy a svg { width: 17px; height: 17px; color: var(--red); transition: transform .25s; }
.service-copy a:hover svg { transform: translate(3px, -3px); }
.service-credit { display: block; max-width: 330px; margin-top: 22px; color: #858e9a; font-size: 10px; line-height: 1.4; }
.service-photo { position: relative; width: 100%; height: 100%; overflow: hidden; background: #1b2027; border-right: 1px solid #ffffff12; }
.service-photo img { object-fit: cover; object-position: var(--photo-focus, 50% 50%); transition: scale .55s cubic-bezier(.2,.7,.2,1); }
.service-panel[data-service="0"] { --photo-focus: 50% 44%; }
.service-panel[data-service="1"] { --photo-focus: 50% 50%; }
.service-panel[data-service="2"] { --photo-focus: 50% 58%; }
.service-panel[data-service="3"] { --photo-focus: 55% 36%; }
.service-panel[data-service="4"] { --photo-focus: 50% 50%; }
.service-panel[data-service="5"] { --photo-focus: 50% 50%; }
.service-photo:after { content: ''; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(transparent, #06090d99); pointer-events: none; }
.photo-index { position: absolute; left: 18px; bottom: 18px; z-index: 1; max-width: 65%; color: #fff; font-size: 9px; line-height: 1.4; letter-spacing: .06em; }
.service-photo-expand { position: absolute; z-index: 3; right: 12px; bottom: 9px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: #080b10a3; color: #fff; font-size: 11px; backdrop-filter: blur(8px); }
.service-photo-expand svg { width: 12px; height: 12px; margin-left: 5px; }
.service-photo-expand:hover { background: #ed2336; }
@media (hover: hover) and (pointer: fine) {
 .service-panel:before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--panel-x, 70%) var(--panel-y, 50%), #ed233629, transparent 72%); opacity: 0; transition: opacity .35s; }
 .service-panel:hover:before { opacity: 1; }
 .service-photo:before { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 50%), #ed23362b, transparent 72%); opacity: 0; transition: opacity .35s; }
 .service-panel:hover .service-photo:before { opacity: 1; }
 .service-panel:hover .service-photo img { scale: 1.022; }
}
.capability-close { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 8px var(--gutter) 55px; color: #aeb5bf; font-size: 15px; }
.capability-close a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; border-bottom: 1px solid #5e6671; color: #f1f0eb; }
.capability-close svg { width: 17px; height: 17px; color: var(--red); }
@media (max-width: 900px) and (min-width: 601px) {
 .service-panel { grid-template-columns: 1fr 1fr; }
 .service-copy { padding: 26px; }
 .service-copy h3 { font-size: 34px; }
 .service-copy p { font-size: 15px; }
 .service-icon { top: 25px; right: 22px; width: 38px; height: 38px; }
 .included-chips { gap: 5px; }
 .included-chips li { padding: 7px 8px; font-size: 10px; }
 .photo-index { max-width: 52%; }
}
@media (max-width: 600px) {
 .service-flow { padding: 0 20px 34px; }
 .service-stage { --stack-top: calc(var(--header) + 15px); --stack-step: 10px; gap: 26px; padding-bottom: 6px; }
 .service-panel { display: flex; flex-direction: column; height: auto; min-height: 0; border-radius: 18px; }
 .service-photo { height: clamp(142px, 23svh, 202px); flex: none; border-right: 0; border-bottom: 1px solid #ffffff12; }
 .service-panel[data-service="2"] { --photo-focus: 50% 65%; }
 .service-panel[data-service="3"] { --photo-focus: 50% 33%; }
 .service-panel[data-service="4"] { --photo-focus: 50% 42%; }
 .photo-index { left: 14px; bottom: 15px; max-width: 58%; font-size: 8px; }
 .service-photo-expand { right: 8px; bottom: 3px; padding: 0 10px; font-size: 10px; }
 .service-copy { display: block; min-height: 319px; padding: 25px 23px 25px; }
 .service-kicker { font-size: 11px; }
 .service-icon { top: 17px; right: 21px; width: 38px; height: 38px; padding: 8px; border-radius: 11px; }
 .service-copy h3 { margin-top: 22px; max-width: 300px; font-size: clamp(28px, 7.7vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
 .service-copy p { max-width: 320px; margin-top: 15px; font-size: 15px; line-height: 1.5; }
 .included-chips { gap: 6px; margin-top: 20px; }
 .included-chips li { padding: 7px 9px; font-size: 10px; }
 .service-copy a { min-height: 44px; margin-top: 13px; font-size: 14px; }
 .service-credit { margin-top: 15px; font-size: 9px; }
 .capability-close { padding: 5px 22px 37px; font-size: 13px; }
}
/* Short phone windows need room above the contact bar as well as the sticky header. */
@media (max-width: 600px) and (max-height: 740px) {
 .service-stage { --stack-top: calc(var(--header) + 8px); --stack-step: 5px; }
 .service-photo { height: 145px; }
 .service-copy { min-height: 0; padding: 19px 21px; }
 .service-copy h3 { margin-top: 17px; font-size: 28px; }
 .service-copy p { margin-top: 12px; font-size: 14px; }
 .included-chips { margin-top: 14px; }
 .service-credit { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce), (max-height: 570px) {
 .service-panel { position: relative; top: auto; transform: none !important; }
 .service-panel:after { opacity: 0 !important; }
 .service-icon path,.service-icon circle { stroke-dashoffset: 0 !important; animation: none !important; }
 .service-photo img { scale: 1 !important; transition: none; }
}

.work { background: var(--paper); color: #151918; }
.work-inner { padding: 90px var(--gutter) 105px; }
.work-heading { display: grid; grid-template-columns: .55fr 1fr .6fr; gap: 40px; align-items: end; margin-bottom: 57px; }
.work-heading > .eyebrow { align-self: start; padding-top: 5px; color: #a01f2c; }
.work-heading h2 em { color: #737b75; }
.work-heading > p:last-child { max-width: 250px; color: #5c665f; font-size: 15px; line-height: 1.6; }
.work-feature,.work-item { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.work-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 5vw; align-items: end; padding: 0 0 34px; border-bottom: 1px solid #adb6ae; }
.work-image { display: block; overflow: hidden; background: #bbc1b9; }
.work-image img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-pending { clip-path: inset(0 0 100% 0); transition: clip-path .85s cubic-bezier(.2,.7,.2,1); }
.reveal-pending.in-view { clip-path: inset(0 0 0 0); }
.project-open:hover .work-image img { transform: scale(1.035); }
.work-feature .work-image { aspect-ratio: 1.5; }
.work-feature-copy { display: grid; align-content: end; padding-bottom: 10px; }
.work-count,.work-item-copy > span { color: #767f76; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.work-feature-copy strong { display: block; margin: 35px 0 43px; font: 700 clamp(65px, 6.1vw, 100px)/.87 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.work-feature-copy > span:last-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 235px; min-height: 44px; border-bottom: 1px solid #687168; font-size: 12px; font-weight: 700; }
.work-feature-copy svg,.work-item-copy svg { color: var(--red); width: 18px; height: 18px; }
.work-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 38px; }
.work-item .work-image { aspect-ratio: 1.7; }
.work-item-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding-top: 20px; }
.work-item-copy > span { grid-column: 1 / -1; }
.work-item-copy strong { font: 700 clamp(36px, 3.5vw, 57px)/.92 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; }

.career-note { display: flex; align-items: center; gap: 5vw; padding: 42px var(--gutter); background: #131719; border-top: 2px solid var(--red); }
.career-note .eyebrow { min-width: 19%; }
.career-note p { font: 700 48px/.86 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; }
.career-note p strong { color: #89928c; font-weight: 700; }
.career-note a { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 48px; margin-left: auto; border-bottom: 1px solid #7c8580; font-size: 13px; font-weight: 700; white-space: nowrap; }
.career-note a svg { color: var(--red); width: 18px; height: 18px; }
.finale { padding: 65px var(--gutter) 75px; background: #090b0d; }
.finale-top { display: flex; justify-content: space-between; gap: 20px; color: #949f98; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.finale-main { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 6vw; margin-top: 65px; }
.finale h2 { font-size: clamp(115px, 13vw, 205px); line-height: .81; }
.finale-actions { display: grid; gap: 0; }
.finale-actions .action-primary { width: 100%; margin-bottom: 14px; }
.finale-actions > a:not(.action-primary) { display: flex; align-items: center; justify-content: space-between; min-height: 59px; border-bottom: 1px solid #505a52; font-size: 17px; overflow-wrap: anywhere; }
.finale-actions > a:last-child { color: #aeb7b0; font-size: 13px; }
.finale-actions svg { color: var(--red); width: 18px; height: 18px; }
.finale-actions .action-primary svg { color: #fff; }

@media (max-width: 1050px) and (min-width: 601px) {
 .mast { min-height: 730px; }
 .mast-inner { gap: 25px; grid-template-columns: minmax(0, 1fr) minmax(140px, .35fr); }
 .mast h1 { font-size: clamp(47px, 5.4vw, 65px); }
 .work-feature-copy strong { font-size: 6vw; }
}
@media (max-width: 600px) {
 .mast { height: auto; min-height: 0; max-height: none; padding: calc(var(--header) + 35px) 0 0; }
 .mast-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: auto; }
 .mast-schematic { opacity: .19; transform: translateX(70px); }
 .mast-system-index { display: none; }
 .mast-copy { padding: clamp(100px, 16svh, 145px) 22px 0; }
 .mast-eyebrow { font-size: 10px; letter-spacing: .145em; }
 .mast h1 { margin-top: 30px; font-size: clamp(39px, 10.75vw, 48px); line-height: 1.08; letter-spacing: -.048em; }
 .mast-lead { max-width: 330px; margin-top: 38px; font-size: 16px; line-height: 1.52; }
 .mast-actions { display: grid; gap: 10px; margin-top: 42px; }
 .mast-actions a { min-height: 56px; justify-content: center; position: relative; font-size: 14px; }
 .mast-actions a svg,.mast-actions a span { position: absolute; right: 17px; }
 .mast-licences { margin-top: 53px; max-width: none; }
 .mast-licences div { padding: 12px 9px 11px; }
 .mast-licences strong { font-size: 18px; }
 .mast-licences small { font-size: 8px; letter-spacing: .08em; }
 .mast-foot { display: none; }
 .section-intro { display: block; padding: 60px 22px 39px; }
 .section-intro .eyebrow { margin-bottom: 27px; }
 .section-intro h2,.work-heading h2 { font-size: clamp(61px, 16vw, 76px); }
 .section-intro > p:last-child { max-width: 315px; margin-top: 20px; font-size: 14px; }
 .work-inner { padding: 62px 22px 69px; }
 .work-heading { display: block; margin-bottom: 34px; }
 .work-heading .eyebrow { margin-bottom: 27px; }
 .work-heading > p:last-child { margin-top: 20px; max-width: 310px; font-size: 14px; }
 .work-feature { display: block; padding-bottom: 32px; }
 .work-feature .work-image { aspect-ratio: 1.33; }
 .work-feature-copy { padding: 19px 0 0; }
 .work-feature-copy strong { margin: 14px 0 20px; font-size: clamp(56px, 14.8vw, 76px); }
 .work-pair { display: grid; grid-template-columns: 1fr; gap: 31px; margin-top: 31px; }
 .work-item .work-image { aspect-ratio: 1.6; }
 .work-item-copy strong { font-size: 40px; }
 .career-note { display: block; padding: 34px 22px 42px; }
 .career-note .eyebrow { margin-bottom: 23px; }
 .career-note p { font-size: 52px; }
 .career-note a { width: fit-content; margin: 22px 0 0; }
 .finale { padding: 47px 22px 56px; }
 .finale-top > span:last-child { display: none; }
 .finale-main { display: block; margin-top: 40px; }
 .finale h2 { font-size: clamp(93px, 24vw, 125px); }
 .finale-actions { margin-top: 40px; }
}
@media (max-width: 360px) {
 .mast h1 { font-size: 38px; }
 .mast-lead { margin-top: 25px; }
 .mast-actions { margin-top: 25px; }
 .mast-licences { margin-top: 30px; }
 .mast-licences strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 .site-intro { display: none; }
 .home-page .header,.mast-copy > *,.mast-system-index { animation: none; }
 .reveal-pending { clip-path: none; transition: none; }
 .work-image img { transition: none; }
}
