.hero { --hero-edge:max(48px,calc((100vw - var(--width))/2)); position:relative; isolation:isolate; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; min-height:580px; padding:64px 0 48px; }
.hero-photo { position:absolute; z-index:-2; inset:0 auto 0 calc(-1 * var(--hero-edge)); width:calc(64% + var(--hero-edge)); margin:0; overflow:hidden; pointer-events:none; mask-image:linear-gradient(90deg,#000 22%,#000000fa 34%,#000000df 45%,#00000099 57%,#00000047 69%,#00000012 79%,transparent 86%),linear-gradient(180deg,#000 46%,#000000eb 59%,#00000099 71%,#00000040 82%,#0000000d 91%,transparent 97%); mask-composite:intersect; }
.hero-photo img { width:calc(100% + 64px); max-width:none; height:100%; object-fit:cover; object-position:35% top; border:0; border-radius:0; }
.hero::after { content:""; position:absolute; z-index:-1; inset:0 0 0 calc(-1 * var(--hero-edge)); background:linear-gradient(180deg,transparent 8%,#b9e5fa0a 48%,#b9e5fa14 76%,transparent),radial-gradient(ellipse at 30% 30%,#a9e6ff12,transparent 65%); pointer-events:none; }
.hero-copy { grid-column:2; min-width:0; }
.hero-copy h1,.home-about .hero-title { font-size:clamp(27px,2.6vw,38px); font-weight:650; line-height:1.25; letter-spacing:-.025em; }
.hero-copy .eyebrow { color:#102733; margin-bottom:18px; }
.hero-description,.home-about .about-copy>.hero-description { margin-top:22px; font-size:17px; font-weight:400; line-height:1.7; max-width:520px; color:#102733; }
.hero-description + p { margin-top:12px; color:#102733; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:28px; }
.hero-note { display:flex; flex-wrap:wrap; gap:12px 22px; margin-top:22px; font-size:13px; }
.hero-note span { display:flex; align-items:center; gap:7px; }
.hero-note .icon { width:16px; }
.home-services,.home-technologies,.home-projects { --card-depth-motion:300ms cubic-bezier(.22,1,.36,1); }
.home-services {
    --service-edge:#d1f0ff66;
    position:relative;
    isolation:isolate;
    padding:32px 0 0;
}
.home-services .section-heading { gap:32px; margin-bottom:var(--space-heading); }
.home-services .section-heading h2 { max-width:600px; }
.home-services .section-heading>p { max-width:330px; color:var(--text); }
.home-services .service-grid { gap:24px; }
.home-services .service-card {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-width:0;
    padding:30px;
    border:1px solid var(--service-edge);
    border-radius:24px 10px 24px 24px;
    border-top-color:#f1fbffb3;
    background:var(--offer-card-background);
    box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -1px 0 #12394f14,0 2px 5px #12394f29,0 12px 24px #12394f2e,0 24px 44px #12394f1f;
    transition:transform var(--card-depth-motion),border-color var(--card-depth-motion),box-shadow var(--card-depth-motion);
}
.home-services .service-card::before { content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; background:var(--offer-card-highlight); opacity:.3; transition:opacity var(--content-motion); pointer-events:none; }
.home-services .service-card::after { content:""; position:absolute; top:0; left:30px; width:48px; height:2px; background:linear-gradient(90deg,#07568180,#9fe9ff80,transparent); }
.home-services .service-card .icon-box { width:38px; height:38px; margin-bottom:24px; color:var(--blue); filter:none; text-shadow:none; transition:color 280ms ease,filter 280ms ease; }
.home-services .service-card .icon-box .icon { width:31px; height:31px; }
.home-services .service-card .card-kicker { font-size:11px; font-weight:600; letter-spacing:.08em; color:var(--blue); margin-bottom:12px; }
.home-services .service-card h3 { max-width:100%; font-size:24px; line-height:1.25; margin-bottom:16px; }
.home-services .service-card>p:not(.card-kicker) { flex:1; font-size:14px; line-height:1.85; }
.home-services .service-card .card-link { position:relative; margin-top:22px; padding-top:16px; border-top-color:#07568126; font-size:13px; font-weight:600; color:var(--blue); }
.home-services .service-card .card-link::after { content:""; position:absolute; left:0; bottom:-5px; width:132px; height:1px; background:var(--cyan); transform:scaleX(.88); transform-origin:left; opacity:.7; transition:transform var(--content-motion),opacity var(--content-motion); }
.home-services .service-card .card-link .icon { transition:transform var(--content-motion),color var(--content-motion); }
.home-services .service-card:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
@media(hover:hover) {
    .home-services .service-card:hover { transform:translateY(-3px); border-color:#c3f1ffcc; box-shadow:inset 0 1px 0 #ffffffcc,inset 0 -1px 0 #12394f14,0 3px 7px #12394f2e,0 16px 30px #12394f38,0 28px 48px #12394f26; }
    .home-services .service-card:hover::before { opacity:.75; }
    .home-services .service-card:hover .icon-box { color:var(--blue); filter:drop-shadow(0 0 4px #40bde54d); }
}
.home-services .service-card:hover .card-link::after,.home-services .service-card:focus-visible .card-link::after { transform:scaleX(1); opacity:1; }
.home-services .service-card:hover .card-link .icon,.home-services .service-card:focus-visible .card-link .icon { transform:translateX(3px); color:var(--cyan); }
@media(max-width:1000px) {
    .home-services .service-grid { gap:16px; }
    .home-services .service-card { padding:24px; }
    .home-services .service-card h3 { font-size:22px; }
    .home-services .service-card>p:not(.card-kicker) { font-size:13px; }
}
@media(max-width:760px) {
    .home-services { padding-top:28px; }
    .home-services .section-heading { display:block; }
    .home-services .section-heading>p { max-width:100%; margin-top:18px; }
    .home-services .service-grid { grid-template-columns:1fr; gap:18px; }
    .home-services .service-card { padding:26px; }
}
@media(prefers-reduced-motion:reduce) {
    .home-services .service-card,.home-services .service-card::before,.home-services .service-card .icon-box,.home-services .service-card .card-link::after,.home-services .service-card .card-link .icon { transition:none; }
    .home-services .service-card:hover,.home-services .service-card:hover .card-link .icon,.home-services .service-card:focus-visible .card-link .icon { transform:none; }
}
.home-technologies,.home-projects { margin-top:var(--space-section); }
.home-services .section-heading .eyebrow,.home-technologies .section-heading .eyebrow,.home-projects .section-heading .eyebrow { margin-bottom:var(--space-label); }
.home-projects { background:transparent; }
.home-projects .section-heading { align-items:center; gap:24px; margin-bottom:var(--space-heading); }
.home-projects .featured-grid { gap:24px; align-items:stretch; }
.home-projects .featured-project { display:flex; flex-direction:column; min-width:0; padding:6px 6px 0; border:1px solid #8ed9f62e; border-radius:20px; background:linear-gradient(145deg,#213d50,#192f42); color:#edf7fc; box-shadow:inset 0 1px 0 #c3f1ff33,inset 0 -1px 0 #07131e33,0 3px 7px #10273342,0 14px 26px #1027333d,0 26px 48px #10273324; transition:translate var(--card-depth-motion),border-color var(--card-depth-motion),box-shadow var(--card-depth-motion); }
.home-projects + .home-about { margin-block:var(--space-section); }
body:has(.home-about) .site-footer { position:relative; }
body:has(.home-about) .site-footer::before { content:""; position:absolute; inset:-1px 0 auto; height:1px; background:var(--separator-light); pointer-events:none; }
.home-projects .featured-grid>div { min-width:0; }
.home-projects .project-card { display:flex; flex:1; flex-direction:column; min-width:0; }
.home-projects .project-preview { position:relative; padding:0; aspect-ratio:auto; border:0; border-bottom:1px solid #8ed9f61a; border-radius:14px 14px 8px 8px; background:#142b3c; box-shadow:none; }
.project-browser-bar { display:grid; grid-template-columns:28px minmax(0,1fr) 28px; align-items:center; gap:8px; height:30px; padding:0 10px; }
.project-browser-dots { display:flex; gap:5px; flex-shrink:0; }
.project-browser-dots span { width:5px; height:5px; border-radius:50%; background:#7eafc5; }
.project-browser-dots span:nth-child(2) { opacity:.65; }
.project-browser-dots span:nth-child(3) { opacity:.4; }
.project-browser-dots span.is-current { background:#9fe9ff; opacity:1; box-shadow:0 0 0 2px #9fe9ff26; }
.project-browser-address { display:block; min-width:0; padding:2px 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; color:#b8d7e7; font-size:10px; line-height:1.6; letter-spacing:.03em; }
.project-browser-address:hover { color:#d5f5ff; }
.project-browser-address:focus-visible { outline:1px solid #a5e4ff; outline-offset:1px; border-radius:3px; }
.project-browser-bar::after { content:""; width:28px; }
.home-projects .project-preview img { width:100%; height:auto; aspect-ratio:auto; border-radius:3px 3px 9px 9px; transform:none; }
.project-carousel-viewport { position:relative; overflow:hidden; aspect-ratio:5/2; border-radius:3px 3px 9px 9px; touch-action:pan-y pinch-zoom; }
.project-carousel-viewport:focus-visible { outline:2px solid #9fe9ff; outline-offset:-3px; }
.project-carousel-track { display:flex; width:100%; height:100%; transition:transform 320ms cubic-bezier(.22,1,.36,1); }
.project-slide { display:block; flex:0 0 100%; min-width:0; height:100%; }
.home-projects .project-slide img { height:100%; object-fit:cover; object-position:center top; border-radius:0; }
.project-carousel-controls[hidden] { display:none; }
.project-carousel-arrow { position:absolute; top:50%; z-index:1; display:grid; place-items:center; width:34px; height:34px; padding:0; transform:translateY(-50%); border:1px solid var(--button-primary-border); border-radius:10px 4px 10px 4px; background:#102d43d9; color:var(--button-primary-text); box-shadow:0 3px 10px #07131e33; transition:background var(--button-transition),border-color var(--button-transition),box-shadow var(--button-transition); }
.project-carousel-prev { left:10px; }
.project-carousel-next { right:10px; }
.project-carousel-arrow .icon { width:17px; height:17px; }
.project-carousel-prev .icon { transform:rotate(180deg); }
.project-carousel-arrow:hover,.project-carousel-arrow:focus-visible { background:#165477ed; border-color:var(--button-primary-border-hover); box-shadow:var(--button-primary-shadow-hover); }
.home-projects .project-carousel-arrow:focus-visible { outline:none; border-color:#d5f5ff; box-shadow:0 3px 10px #07131e33; }
@media(forced-colors:active) { .home-projects .project-carousel-arrow:focus-visible { border-color:Highlight; } }
.project-carousel-indicators { position:absolute; z-index:1; bottom:8px; left:50%; transform:translateX(-50%); display:flex; flex-wrap:wrap; justify-content:center; max-width:65%; padding:2px 5px; border:1px solid #8cdcf34d; border-radius:10px; background:#102d43d9; }
.project-carousel-indicators button { display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; border-radius:5px; background:transparent; color:#b8d7e7; }
.project-carousel-indicators button::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; transition:background var(--transition),box-shadow var(--transition); }
.project-carousel-indicators button[aria-current="true"],.project-carousel-indicators button:hover { color:#9fe9ff; }
.project-carousel-indicators button[aria-current="true"]::before { box-shadow:0 0 0 3px #9fe9ff26; }
.project-carousel-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.home-projects .featured-project:focus-within { border-color:#9fe9ff66; }
.home-projects .project-caption { position:relative; flex:1; align-items:flex-start; gap:16px; padding:11px 14px 15px; color:#edf7fc; text-decoration:none; border-radius:0 0 14px 14px; transition:color var(--content-motion); }
.home-projects .project-caption>div { min-width:0; }
.home-projects .project-caption .card-kicker { margin-bottom:5px; font-size:11px; line-height:1.6; color:#9acfe1; }
.home-projects .project-caption h3 { font-size:22px; line-height:1.3; color:inherit; }
.home-projects .project-details-link { display:inline-flex; align-items:center; align-self:flex-end; flex-shrink:0; gap:7px; margin-left:auto; color:#9acfe1; font-size:12px; line-height:1.8; white-space:nowrap; transition:color var(--content-motion); }
.home-projects .project-details-link .icon { width:16px; height:16px; transition:transform var(--content-motion); }
.home-projects .project-caption:hover,.home-projects .project-card:has(.project-slide:hover) .project-caption { color:#fff; }
.home-projects .project-caption:hover .project-details-link,.home-projects .project-caption:focus-visible .project-details-link,.home-projects .project-card:has(.project-slide:hover) .project-details-link { color:#d5f5ff; }
.home-projects .project-caption:hover .project-details-link .icon,.home-projects .project-caption:focus-visible .project-details-link .icon,.home-projects .project-card:has(.project-slide:hover) .project-details-link .icon { transform:translate(2px,-2px); }
.home-projects .project-caption::after { content:""; position:absolute; left:14px; right:14px; bottom:9px; height:2px; background:#9fe9ff; transform:scaleX(0); transform-origin:left; transition:transform var(--content-motion); }
.home-projects .project-caption:focus-visible { outline:none; }
.home-projects .project-caption:focus-visible::after { transform:scaleX(1); }
@media(forced-colors:active) { .home-projects .project-caption:focus-visible { outline:2px solid LinkText; outline-offset:-3px; } .home-projects .project-caption:focus-visible::after { display:none; } }
.home-technologies .section-heading { margin-bottom:var(--space-heading); }
.skills-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
/* Each card keeps its natural height; accordion states never resize its neighbour. */
.skill-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:28px 30px; border:1px solid #9fe9ff33; border-top-color:#b8e7fa66; border-radius:22px; background:linear-gradient(145deg,#253641e8,#182b39e0); color:#e7f4fc; box-shadow:inset 0 1px 0 #c3f1ff33,inset 0 -1px 0 #07131e33,0 3px 7px #10273342,0 14px 26px #1027333d,0 26px 48px #10273324; transition:border-color var(--card-depth-motion),box-shadow var(--card-depth-motion); }
.skill-heading { display:flex; align-items:center; gap:18px; }
.skill-heading .icon-box { width:48px; height:48px; color:#9fe9ff; }
.skill-heading .icon-box .icon { width:26px; height:26px; }
.skill-card h3 { font-size:25px; line-height:1.25; }
.skill-card .skill-label { color:#9fe9ff; font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.skill-heading .skill-label { margin-bottom:7px; }
.skill-card .skill-description { margin-top:20px; color:#d5e8f2; font-size:14px; line-height:1.85; }
.skill-technologies { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:18px 0 20px; }
.skill-technologies li { padding:5px 12px; border:1px solid #9fe9ff33; border-radius:7px; background:#9fe9ff0d; color:#e1f5ff; font-size:12px; font-weight:600; }
.skill-highlight { flex:1; padding:16px 20px; border:0; border-left:2px solid #9fe9ff80; border-radius:0 12px 12px 0; background:linear-gradient(120deg,#c3f1ff0d,#c3f1ff05); box-shadow:inset 0 1px 0 #c3f1ff0d,0 3px 10px #1027330d; }
.skill-highlight .skill-label { display:flex; align-items:center; gap:9px; }
.skill-highlight .icon { width:17px; height:17px; }
.skill-highlight h4 { margin:12px 0 8px; font-size:19px; line-height:1.35; font-weight:600; }
.skill-highlight>p:last-child { color:#d5e8f2; font-size:13px; line-height:1.85; }
.skill-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; margin:20px 0; }
.skill-details>div { min-width:0; }
.skill-details dt { color:#e7f4fc; font-size:13px; font-weight:600; }
.skill-details dd { margin:5px 0 0; color:#c3dce9; font-size:13px; line-height:1.7; }
@media(max-width:760px) { .skill-details { grid-template-columns:1fr; gap:16px; } }
.home-technologies .skill-toggle:focus-visible { outline:none; }
.home-technologies .skill-toggle:focus-visible>span { text-decoration:underline; text-decoration-color:#9fe9ff; text-decoration-thickness:2px; text-underline-offset:5px; }
@media(forced-colors:active) { .home-technologies .skill-toggle:focus-visible>span { text-decoration-color:Highlight; } }
.skill-project-separator { width:100%; margin:0; border:0; border-top:1px solid #83d9f333; }
.app-content .skill-project-link { --content-link-hover:#bcefff; --secondary-underline:#9fe9ffb3; position:relative; align-self:flex-start; margin-top:10px; color:#c3dce9; }
.home-technologies .skill-project-link:focus-visible { outline:none; }
.home-technologies .skill-project-link:focus-visible .text-link-label::after { height:2px; background:#9fe9ff; }
@media(forced-colors:active) { .home-technologies .skill-project-link:focus-visible { text-decoration:underline; text-decoration-color:LinkText; } }
.skill-project-link:hover,.skill-project-link:focus-visible { color:#bcefff; }
@media(hover:hover) { .skill-card:hover { border-color:#9fe9ff66; border-top-color:#c3f1ff80; box-shadow:inset 0 1px 0 #c3f1ff47,inset 0 -1px 0 #07131e33,0 4px 9px #1027334d,0 18px 32px #10273347,0 30px 52px #1027332e; } }
@media(max-width:1000px) { .skill-card { padding:26px; } .skill-card h3 { font-size:23px; } }
@media(max-width:760px) { .skills-grid { grid-template-columns:1fr; gap:20px; } }
@media(max-width:400px) { .skill-card { padding:22px; } .skill-heading { gap:12px; } .skill-heading .icon-box { width:42px; height:42px; } .skill-card h3 { font-size:21px; } .skill-highlight { padding:18px; } }
.home-about { --about-edge:max(48px,calc((100vw - var(--width))/2)); position:relative; isolation:isolate; grid-template-columns:1fr 1fr; align-items:center; gap:56px; min-height:580px; margin-bottom:var(--space-section); padding:64px 0 48px; border:0; background:none; box-shadow:none; }
.home-about .about-visual { position:absolute; z-index:-1; inset:0 auto calc(-1 * var(--space-section)) calc(-1 * var(--about-edge)); width:calc(64% + var(--about-edge)); margin:0; overflow:hidden; pointer-events:none; mask-image:linear-gradient(90deg,#000 22%,#000000fa 34%,#000000df 45%,#00000099 57%,#00000047 69%,#00000012 79%,transparent 86%),linear-gradient(180deg,transparent,#00000066 5%,#000000cc 11%,#000000f5 17%,#000 22%,#000 100%); mask-composite:intersect; }
.home-about .about-photo { width:calc(100% + 64px); max-width:none; height:100%; object-fit:cover; object-position:center; border-radius:0; box-shadow:none; }
.home-about::after { content:""; position:absolute; z-index:-1; inset:0 0 calc(-1 * var(--space-section)) calc(-1 * var(--about-edge)); background:linear-gradient(180deg,transparent 8%,#b9e5fa0a 48%,#b9e5fa14 76%,transparent),radial-gradient(ellipse at 30% 30%,#a9e6ff12,transparent 65%); pointer-events:none; }
.home-about .about-copy { grid-column:2; min-width:0; align-self:center; }
.home-about .eyebrow { margin-bottom:18px; color:#102733; }
.home-about h2 { color:var(--text); }
.home-about .about-copy>.hero-description+p { max-width:none; margin-top:12px; font-size:16px; font-weight:400; line-height:1.7; }
@media(max-width:1150px) { .home-about { --about-edge:32px; } }
@media(max-width:1000px) { .home-about { gap:32px; min-height:560px; padding:52px 0 40px; } .home-about .hero-title { font-size:30px; } .home-about .about-copy>.hero-description { font-size:16px; } }
@media(max-width:760px) {
    .home-about { grid-template-columns:1fr; min-height:0; gap:24px; padding:0; }
    .home-about .about-visual { position:relative; inset:auto; grid-column:1; width:calc(100% + var(--about-edge)); height:330px; margin-left:calc(-1 * var(--about-edge)); mask-image:linear-gradient(90deg,#000 72%,#000000d9 84%,#00000066 94%,transparent),linear-gradient(180deg,transparent,#00000066 5%,#000000cc 11%,#000000f5 17%,#000 22%,#000 100%); }
    .home-about .about-copy { grid-column:1; }
    .home-about .about-photo { width:100%; }
}
@media(max-width:680px) { .home-about { --about-edge:20px; } }
@media(max-width:370px) { .home-about { --about-edge:16px; } }
@media(max-width:400px) { .home-about .hero-title { font-size:27px; } }


@media(max-width:1150px) { .hero { --hero-edge:32px; } }
@media(max-width:1000px) { .hero { gap:32px; min-height:560px; padding:52px 0 40px; } .hero-copy h1 { font-size:30px; } .hero-description { font-size:16px; } .hero-actions { gap:14px; } }
@media(max-width:760px) {
    .hero { grid-template-columns:1fr; min-height:0; gap:0; padding:280px 0 24px; }
    .hero-photo { right:0; bottom:auto; width:auto; height:330px; mask-image:linear-gradient(90deg,#000 75%,#000000cc 88%,transparent),linear-gradient(180deg,#000 32%,#000000e6 44%,#00000080 58%,#00000026 71%,#00000008 80%,transparent 87%); }
    .hero-photo img { width:100%; object-position:35% top; }
    .hero::after { background:linear-gradient(180deg,transparent,#b9e5fa0d 65%,transparent),radial-gradient(ellipse at 50% 15%,#a9e6ff0d,transparent 45%); }
    .hero-copy { grid-column:1; }
    .hero-copy h1 { font-size:30px; }
}
@media(max-width:680px) { .hero { --hero-edge:20px; } }
@media(max-width:370px) { .hero { --hero-edge:16px; } }
@media(max-width:400px) { .hero-copy h1 { font-size:27px; } .hero-actions { align-items:stretch; flex-direction:column; } .hero-actions .text-link { justify-content:center; } }
@media(prefers-reduced-motion:reduce) {
    .skill-card,.skill-toggle,.skill-toggle .icon,.skill-card-interactive .skill-panel,.skill-project-link,.app-content .skill-project-link .icon { transition:none; }
    .app-content .skill-project-link:hover .icon,.app-content .skill-project-link:focus-visible .icon { transform:none; }
}
@media(hover:hover) { .home-projects .featured-project:hover { translate:0 -2px; border-color:#9fe9ff59; box-shadow:inset 0 1px 0 #c3f1ff47,inset 0 -1px 0 #07131e33,0 4px 9px #1027334d,0 18px 32px #10273347,0 30px 52px #1027332e; } }
@media(max-width:800px) {
    .home-projects .featured-grid { grid-template-columns:1fr; gap:20px; }
    .home-projects .project-carousel-viewport { aspect-ratio:16/9; }
    .home-projects .project-slide img { object-fit:contain; }
}
@media(max-width:680px) {
    .home-projects .section-heading>.text-link { margin-top:14px; }
}
@media(max-width:420px) { .home-projects .project-caption { flex-wrap:wrap; row-gap:8px; } .home-projects .project-caption>div { flex-basis:100%; } }
@media(prefers-reduced-motion:reduce) { .home-projects .featured-project,.home-projects .project-caption,.home-projects .project-details-link,.home-projects .project-details-link .icon,.home-projects .project-caption::after { transition:none; } .home-projects .featured-project:hover { translate:none; } .home-projects .project-caption:hover .project-details-link .icon,.home-projects .project-caption:focus-visible .project-details-link .icon,.home-projects .project-card:has(.project-slide:hover) .project-details-link .icon { transform:none; } }
