/* Third chapter: warm photographic service cards. */
#services{--paper-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23887859' filter='url(%23grain)' d='M0 0h180v180H0z' opacity='.48'/%3E%3Cg fill='none' stroke='%238b7044' stroke-width='.45' opacity='.22'%3E%3Cpath d='m12 19 5 2 2 5m39 15 4-3 6 1m51-26 2 5-3 4m27 49 6 3 1 4M19 105l5 3 1 5m48-24 3 5-2 5m30 44 5-2 4 3m-70 15 5-2 3 3m103-34 3 4 5-1'/%3E%3C/g%3E%3C/svg%3E");isolation:isolate}
/* Static texture layers never capture clicks or change chapter geometry. */
#services::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background-image:var(--paper-grain);background-size:180px 180px;opacity:.1;mix-blend-mode:soft-light}
#services .services-card{position:relative;isolation:isolate}
#services .services-card::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--paper-grain),radial-gradient(ellipse at 12% 0%,#fff7dd50,transparent 60%),linear-gradient(115deg,#b68b3420,transparent 30%,#8a682912);background-size:180px 180px,100% 100%,100% 100%;opacity:.65}
#services .services-card::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px #fff1cd70,inset 0 0 18px #9a732b17}
#services .services-picture{filter:saturate(.91) sepia(.06)}
#services-title{color:#f1dfbd;text-shadow:0 1px 0 #bf9a6b20}
html.section-mode main>#services,#services{background:#141310 url('/assets/services/background.png') center/cover no-repeat;color:#f5e6cd;padding:clamp(90px,12vh,135px) 0 clamp(55px,8vh,90px);justify-content:center}
#services>.wrap{width:min(1500px,81%)}
#services .services-heading{padding-left:2%;margin-bottom:clamp(42px,7.5vh,82px)}
#services-title{font-family:var(--display);font-size:clamp(58px,6.1vw,112px);font-weight:900;line-height:1.08;letter-spacing:.011em;white-space:nowrap;margin:0 0 24px}
#services-title span{color:#f65c0a}
#services .services-heading h3{font-size:clamp(20px,1.85vw,32px);line-height:1.5;letter-spacing:.02em;margin-bottom:18px}
#services .services-heading p{font-size:clamp(14px,1.18vw,21px);line-height:1.6;color:#b6b0a3;margin:0}
#services .services-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(26px,2.4vw,46px)}
#services .services-card{min-width:0;padding:12px;border:1px solid #d4c8b1;border-radius:28px;background:linear-gradient(120deg,#f8e7cc,#edd7b7);color:#151510;box-shadow:0 16px 35px #0003;overflow:hidden}
/* Keep the supplied concept imagery intact and use its three photo regions. */
#services .services-picture{width:100%;aspect-ratio:1.88;border-radius:19px;background-image:url('/assets/services/reference.png');background-size:410% auto;background-repeat:no-repeat;background-position-y:57.2%}
#services .services-picture--brand{background-position-x:14.7%}
#services .services-picture--portfolio{background-position-x:50.6%}
#services .services-picture--prototype{background-position-x:86.7%}
#services .services-card-copy{padding:16px 12px 10px;display:flex;flex-direction:column;flex:1}
#services .services-card{display:flex;flex-direction:column}
#services .services-card h3{font-size:clamp(20px,1.85vw,32px);line-height:1.4;margin:0 0 12px;font-weight:800;letter-spacing:0}
#services .services-card p{font-size:clamp(14px,1.1vw,19px);line-height:1.75;margin:0 0 22px}
#services .services-delivery{font-size:clamp(11px,.94vw,16px);line-height:1.65;padding:10px 12px;border-radius:24px;background:#bda17b30;color:#6d6252;margin-top:auto}
#services .services-delivery strong{color:#302c25}
body[data-section="services"] .channel-nav{background:#f4e4c9;color:#171611}
@media(min-width:1000px) and (max-height:780px){html.section-mode main>#services{padding-block:75px 38px}#services .services-heading{margin-bottom:32px}#services-title{font-size:6vw;margin-bottom:16px}#services .services-heading h3{margin-bottom:12px}#services .services-card p{margin-bottom:14px}#services .services-card-copy{padding-top:12px}}
@media(max-width:999px){#services>.wrap{width:calc(100% - 100px)}#services-title{font-size:7vw}#services .services-cards{gap:18px}#services .services-card{padding:9px;border-radius:22px}#services .services-card-copy{padding:14px 5px 8px}#services .services-card h3{font-size:19px}#services .services-card p{font-size:14px}#services .services-delivery{font-size:11px;padding:9px}}
@media(max-width:700px){html.section-mode main>#services{padding:110px 0 100px;background-position:65% top;background-size:auto 100svh;background-color:#141310}#services>.wrap{width:calc(100% - 44px)}#services .services-heading{padding:0;margin-bottom:36px}#services-title{font-size:clamp(29px,7.2vw,50px);white-space:nowrap;letter-spacing:.011em;margin-bottom:22px}#services .services-heading h3{font-size:20px;max-width:300px}#services .services-heading p{font-size:14px;max-width:300px}#services .services-cards{grid-template-columns:1fr;gap:26px}#services .services-card{padding:12px;border-radius:26px}#services .services-picture{border-radius:17px}#services .services-card-copy{padding:18px 10px 10px}#services .services-card h3{font-size:23px}#services .services-card p{font-size:15px}#services .services-delivery{font-size:12px}}

/* Separate atmospheric background, top-right light, and floating content. */
#services { --light-x:87%; --light-y:8%; overflow:hidden; }
#services .services-atmosphere { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
#services > .wrap { position:relative; z-index:1; perspective:1400px; }
#services .services-heading { will-change:transform; }
#services .services-card { will-change:transform; transform-origin:center; }
#services .services-card::after { background:radial-gradient(ellipse at var(--light-x) var(--light-y),#fff8dc78,transparent 70%); box-shadow:inset -1px 2px 1px #fff8dcaa,inset 0 0 18px #9a732b17; }
#services::before { content:''; position:absolute; inset:-5%; z-index:0; pointer-events:none; background:none; }
@media(prefers-reduced-motion:reduce){#services .services-heading,#services .services-card{will-change:auto;transform:none!important}}
@media(pointer:coarse){#services .services-heading,#services .services-card{will-change:auto}}

html.section-mode main>#services.services-effects-ready{background-image:none}
#services .services-depth{position:absolute;inset:-2%;z-index:-1;pointer-events:none;background:#141310 url('/assets/services/background.png') center/cover no-repeat;transform:scale(1.045);will-change:transform}
@media(pointer:coarse){#services .services-depth{will-change:auto;background-position:65% top}}

/* Relight the existing photo pixels, aligned with its baked wall/table light. */
#services .services-depth::after { content:''; position:absolute; inset:0; pointer-events:none; background:inherit; mix-blend-mode:screen; opacity:var(--photo-light-strength,.1); -webkit-mask-image:radial-gradient(ellipse 24% 29% at var(--photo-light-x,80%) var(--photo-light-y,18%),#000 12%,transparent 100%),radial-gradient(ellipse 27% 6% at 70% 35%,#0009,transparent 100%); mask-image:radial-gradient(ellipse 24% 29% at var(--photo-light-x,80%) var(--photo-light-y,18%),#000 12%,transparent 100%),radial-gradient(ellipse 27% 6% at 70% 35%,#0009,transparent 100%); }

/* Match WORK's static CRT silhouette without changing the live effects layer. */
#services{--services-cabinet:clamp(20px,2.1vw,54px)}
#services::before{inset:var(--services-cabinet);z-index:4;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22feather%22%20filterUnits%3D%22userSpaceOnUse%22%20x%3D%22-60%22%20y%3D%22-60%22%20width%3D%221120%22%20height%3D%221120%22%3E%3CfeGaussianBlur%20stdDeviation%3D%227%2012%22%2F%3E%3C%2Ffilter%3E%3Cmask%20id%3D%22cabinet%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%221000%22%20height%3D%221000%22%3E%3Crect%20width%3D%221000%22%20height%3D%221000%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M60%2025Q500%20-25%20940%2025C978%2027%20988%2060%20990%20120Q1008%20500%20990%20880C988%20950%20978%20977%20940%20980Q500%201020%2060%20980C22%20977%2012%20950%2010%20880Q-8%20500%2010%20120C12%2060%2022%2027%2060%2025Z%22%20transform%3D%22translate(14%2024)%20scale(.972%20.952)%22%20filter%3D%22url(%23feather)%22%20fill%3D%22black%22%2F%3E%3C%2Fmask%3E%3CradialGradient%20id%3D%22corner-fade%22%20gradientUnits%3D%22userSpaceOnUse%22%20cx%3D%22940%22%20cy%3D%2220%22%20r%3D%22230%22%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3Cmask%20id%3D%22corner%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%221000%22%20height%3D%221000%22%3E%3Crect%20width%3D%221000%22%20height%3D%221000%22%20fill%3D%22url(%23corner-fade)%22%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M0%200H1000V1000H0Z%20M60%2025Q500%20-25%20940%2025C978%2027%20988%2060%20990%20120Q1008%20500%20990%20880C988%20950%20978%20977%20940%20980Q500%201020%2060%20980C22%20977%2012%20950%2010%20880Q-8%20500%2010%20120C12%2060%2022%2027%2060%2025Z%22%20fill%3D%22%23050505%22%20fill-rule%3D%22evenodd%22%2F%3E%3Cg%20mask%3D%22url(%23corner)%22%3E%3Crect%20width%3D%221000%22%20height%3D%221000%22%20fill%3D%22%23050505%22%20mask%3D%22url(%23cabinet)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;box-shadow:0 0 0 60px #050505}
#services .site-logo{left:calc(5.5vw + var(--services-cabinet) * .89);top:calc(8% + var(--services-cabinet) * .84)}
body[data-section="services"] .channel-nav{right:calc(clamp(20px,2.1vw,54px) + 20px)}
@media(min-width:701px){
 html.section-mode main>#services{padding-top:clamp(110px,14vh,155px)}
 #services .services-heading{padding-left:7%}
}
@media(min-width:1000px) and (max-height:780px){
 #services-title{font-size:5.5vw}
 #services .services-heading{margin-bottom:24px}
 #services .services-picture{aspect-ratio:2.15}
}
@media(max-width:580px){
 #services{--services-cabinet:10px}
 #services .site-logo{left:22px;top:22px}
 #services>.wrap{width:calc(100% - 72px);margin-inline:auto}
 body[data-section="services"] .channel-nav{right:16px}
}


/* Same glass rim, edge falloff and inset shadows as the WORK screen. */
#services{--services-glass-wear:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22edge%22%3E%3Cstop%20offset%3D%22.58%22%20stop-color%3D%22black%22%2F%3E%3Cstop%20offset%3D%22.84%22%20stop-color%3D%22white%22%2F%3E%3C%2FradialGradient%3E%3Cmask%20id%3D%22wear%22%3E%3Crect%20width%3D%221000%22%20height%3D%221000%22%20fill%3D%22url(%23edge)%22%2F%3E%3C%2Fmask%3E%3Cfilter%20id%3D%22dust%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.82%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%22soft%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2214%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20mask%3D%22url(%23wear)%22%3E%3Crect%20width%3D%221000%22%20height%3D%221000%22%20filter%3D%22url(%23dust)%22%20opacity%3D%22.095%22%2F%3E%3Cg%20fill%3D%22%23170f08%22%20opacity%3D%22.13%22%20filter%3D%22url(%23soft)%22%3E%3Cellipse%20cx%3D%2280%22%20cy%3D%22810%22%20rx%3D%2260%22%20ry%3D%22120%22%2F%3E%3Cellipse%20cx%3D%22920%22%20cy%3D%22230%22%20rx%3D%2245%22%20ry%3D%2295%22%2F%3E%3Cellipse%20cx%3D%22540%22%20cy%3D%2222%22%20rx%3D%22150%22%20ry%3D%2218%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e9d9b8%22%20stroke-opacity%3D%22.15%22%20stroke-width%3D%22.55%22%20stroke-linecap%3D%22round%22%20vector-effect%3D%22non-scaling-stroke%22%3E%3Cpath%20d%3D%22m37%20228%202%2024-1%2017m13%20459-2%2033m30%20126%207%2018%202%209M182%2035l29-2%2016%201m498%200%2023%202%2011-1m180%20198%202%2016-2%2020m23%20354-1%2032m-80%20279-18%203-24-1M244%20968l20%202%209-1%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e9d9b8%22%20opacity%3D%22.15%22%3E%3Ccircle%20cx%3D%2252%22%20cy%3D%22409%22%20r%3D%22.8%22%2F%3E%3Ccircle%20cx%3D%22137%22%20cy%3D%2249%22%20r%3D%22.65%22%2F%3E%3Ccircle%20cx%3D%22843%22%20cy%3D%2244%22%20r%3D%22.8%22%2F%3E%3Ccircle%20cx%3D%22946%22%20cy%3D%22712%22%20r%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%22728%22%20cy%3D%22966%22%20r%3D%22.65%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
#services::after{inset:var(--services-cabinet);z-index:3;pointer-events:none;border-radius:5% / 9%;clip-path:url(#work-glass-clip);opacity:1;mix-blend-mode:normal;background:var(--services-glass-wear) center/100% 100% no-repeat,url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22rim%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23dbe9db%22%20stop-opacity%3D%22.18%22%2F%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22%23c2d7c7%22%20stop-opacity%3D%22.09%22%2F%3E%3Cstop%20offset%3D%22.75%22%20stop-color%3D%22%238a9c91%22%20stop-opacity%3D%22.04%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d1dfd3%22%20stop-opacity%3D%22.05%22%2F%3E%3C%2FlinearGradient%3E%3Cpath%20id%3D%22edge%22%20d%3D%22M60%2025Q500%20-25%20940%2025C978%2027%20988%2060%20990%20120Q1008%20500%20990%20880C988%20950%20978%20977%20940%20980Q500%201020%2060%20980C22%20977%2012%20950%2010%20880Q-8%20500%2010%20120C12%2060%2022%2027%2060%2025Z%22%2F%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22url(%23rim)%22%3E%3Cuse%20href%3D%22%23edge%22%20stroke-width%3D%2212%22%20opacity%3D%22.06%22%2F%3E%3Cuse%20href%3D%22%23edge%22%20stroke-width%3D%224%22%20opacity%3D%22.10%22%2F%3E%3Cuse%20href%3D%22%23edge%22%20stroke-width%3D%22.65%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/100% 100% no-repeat,radial-gradient(ellipse 76% 19% at 48% -7%,#e6f2df16 0%,#cbdccc0c 65%,transparent 100%),radial-gradient(ellipse 8% 88% at -2% 42%,#b7c9ba0d,transparent 100%),linear-gradient(145deg,#efffe309,transparent 29%,transparent 72%,#b9d4bc04),radial-gradient(ellipse at 50% 48%,transparent 38%,#0003 69%,#000b 96%,#000e 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23887859' filter='url(%23grain)' d='M0 0h180v180H0z' opacity='.048'/%3E%3Cg fill='none' stroke='%238b7044' stroke-width='.45' opacity='.022'%3E%3Cpath d='m12 19 5 2 2 5m39 15 4-3 6 1m51-26 2 5-3 4m27 49 6 3 1 4M19 105l5 3 1 5m48-24 3 5-2 5m30 44 5-2 4 3m-70 15 5-2 3 3m103-34 3 4 5-1'/%3E%3C/g%3E%3C/svg%3E") center/180px 180px;box-shadow:inset 0 3px 8px #d2e1cd14,inset 0 -7px 16px #000a,inset 7px 0 15px #0006,inset -7px 0 15px #0006,inset 18px 0 34px #0008,inset -18px 0 34px #0008,inset 0 15px 28px #0009,inset 0 -15px 28px #0009}
@media(max-width:580px){#services::after{border-radius:24px}}
