.portfolio.code-page{--code-accent:#285492;--code-muted:#64675f;min-height:100svh}.code-page-content{margin-inline:clamp(44px,6.5vw,140px)}.code-intro{grid-template-columns:1.1fr 1fr;align-items:end;gap:32px;padding:64px 0 46px;display:grid}.code-intro h1{letter-spacing:-.07em;margin:16px 0 0;font-size:clamp(68px,8vw,132px);font-weight:400;line-height:.95}.code-intro-note{padding:0 0 3px}.code-intro-note p{letter-spacing:-.025em;margin:0 0 22px;font-size:clamp(18px,2vw,29px);line-height:1.35}.code-intro-note>span{color:var(--code-muted);font:10px/1.5 var(--type-mono);align-items:center;gap:9px;display:flex}.code-intro-note i{background:var(--code-accent);width:6px;height:6px}.code-category-bar{border-block:1px solid #292a272e;justify-content:space-between;align-items:center;gap:20px;padding-block:18px;display:flex}.code-category-bar nav{align-items:center;gap:clamp(20px,3vw,52px);padding-bottom:9px;display:flex;position:relative}.code-category-bar .rolling-squares{height:4px;color:var(--code-accent)}.code-category-bar .rolling-squares i{flex:0 0 4px;width:4px;height:4px}.code-category-bar button{min-height:44px;color:var(--code-muted);font:12px/1.5 var(--type-mono);cursor:pointer;background:0 0;align-items:baseline;gap:9px;padding:10px 0;display:flex}.code-category-bar button[aria-pressed=true]{color:var(--code-accent)}.code-category-bar button small{opacity:.7;font-size:9px}.code-category-count{color:var(--code-muted);font:10px var(--type-mono);white-space:nowrap}:is(.code-page button:focus-visible,.code-page a:focus-visible,.code-page summary:focus-visible,.code-page pre:focus-visible){outline:2px solid var(--code-accent);outline-offset:5px}.code-study{border-bottom:1px solid #292a272e;padding-block:44px 52px;scroll-margin-top:110px}.code-study-header{grid-template-columns:36px minmax(0,1fr) auto;align-items:start;gap:18px;display:grid}.code-study-number{font:11px/1.5 var(--type-mono);color:var(--code-accent);padding-top:3px}.code-study-kicker{color:var(--code-muted);font:9px/1.5 var(--type-mono);margin:0 0 12px}.code-study-header h2{letter-spacing:-.045em;margin:0;font-size:clamp(27px,3vw,46px);font-weight:400;line-height:1.12}.code-ai-label{color:var(--code-accent);font:10px/1.5 var(--type-mono);white-space:nowrap;padding-top:3px}.code-study-body{min-width:0;margin:28px 0 0 54px}.code-study-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px;display:grid}.code-study-card{min-width:0}.code-study-card .code-study-header{grid-template-columns:24px minmax(0,1fr);gap:12px}.code-study-card .code-ai-label{grid-column:2}.code-study-card .code-study-header h2{font-size:clamp(25px,2.7vw,39px)}.code-study-card .code-study-body{margin-left:36px}.code-card-preview{aspect-ratio:16/9;background:#d3cfc5;justify-content:center;align-items:center;padding:12px;display:flex;position:relative}.code-card-preview img{object-fit:contain;width:calc(100% - 24px);height:calc(100% - 24px);display:block;position:absolute;inset:12px}.code-card-arrow{color:var(--code-accent);position:absolute;bottom:10px;right:12px}.code-card-pending{text-align:center;font:11px/1.8 var(--type-mono);color:var(--code-muted)}.code-card-pending small{font-size:8px}.code-card-summary{margin:18px 0 12px;font-size:17px;line-height:1.5}.code-linked-preview{background:#1b2939;display:block;position:relative}.code-linked-preview img{object-fit:contain;width:100%;height:auto;max-height:560px;display:block}.code-linked-preview>span{color:#ede8dd;position:absolute;bottom:16px;right:18px}.code-study-link{min-height:44px;color:var(--code-accent);font:10px/1.5 var(--type-mono);border-bottom:1px solid #292a2744;align-content:center;display:inline-block}.code-capture{min-width:0;margin:0}.code-capture-frame{aspect-ratio:16/9;background:#292a2705;border:1px solid #292a2726;display:block;position:relative}.code-capture-result .code-capture-frame{aspect-ratio:2}.code-capture-frame img{object-fit:contain;width:100%;height:100%;display:block}.code-capture-pending{color:var(--code-muted);font:10px/1.5 var(--type-mono);flex-direction:column;justify-content:center;align-items:center;gap:10px;display:flex}.code-capture-pending small{color:var(--code-accent);letter-spacing:.08em;font-size:8px}.code-capture figcaption{color:var(--code-muted);font:9px/1.5 var(--type-mono);justify-content:space-between;gap:12px;padding-block:10px;display:flex}.code-capture figcaption>span:first-child{color:var(--code-accent)}.code-capture-enlarge{color:var(--code-accent);position:absolute;bottom:12px;right:12px}.code-result-summary{letter-spacing:-.025em;max-width:780px;margin:20px 0 32px;font-size:clamp(19px,2vw,28px);line-height:1.35}.code-process-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,80px);margin-bottom:28px;display:grid}.code-study-explanation{max-width:670px;margin:0 0 26px;font-size:15px;line-height:1.6}.code-study-credits{color:var(--code-muted);font:9px/1.7 var(--type-mono);flex-wrap:wrap;gap:8px 24px;margin:14px 0 0;display:flex}.code-study-credits a{text-underline-offset:3px;text-decoration:underline}.code-workflow{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.code-workflow li{font:11px/1.5 var(--type-mono);grid-template-columns:28px 1fr;gap:4px 12px;padding:11px 0;display:grid}.code-workflow small{color:var(--code-accent);font-size:9px}.code-workflow i{color:#292a274b;grid-column:2;padding-top:7px;font-style:normal}.code-study-specs{grid-template-columns:1fr 1fr;gap:24px;padding-bottom:28px;display:grid}.code-study-details{border-top:1px solid #292a2738}.code-study-details>summary{min-height:60px;color:var(--code-accent);font:10px/1.5 var(--type-mono);cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:12px 2px;list-style:none;display:flex}.code-study-details>summary::-webkit-details-marker{display:none}.code-study-details>summary i{font-size:19px;font-style:normal}.code-study-details[open]>summary i{transform:rotate(45deg)}.code-study-specs h3{font:10px/1.5 var(--type-mono);color:var(--code-accent);margin:0 0 14px}.code-study-specs dl,.code-study-specs dl>div{margin:0}.code-study-specs dl>div+div{margin-top:16px}.code-study-specs dt{font:10px/1.5 var(--type-mono);overflow-wrap:anywhere;margin-bottom:5px}.code-study-specs dd{color:var(--code-muted);margin:0;font-size:12px;line-height:1.65}.code-requirement{color:var(--code-muted);font:9px/1.7 var(--type-mono);border-top:1px solid #292a271a;grid-column:1/-1;margin:0;padding-top:15px}.code-source{border-block:1px solid #292a2738}.code-source>summary{min-height:60px;color:var(--code-accent);font:10px/1.5 var(--type-mono);cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:12px 2px;list-style:none;display:flex}.code-source>summary::-webkit-details-marker{display:none}.code-source>summary>span:last-child{color:var(--code-muted);white-space:nowrap;align-items:center;gap:22px;font-size:9px;display:flex}.code-source summary i{color:var(--code-accent);font-size:19px;font-style:normal}.code-source-body{color:#e9e3d7;background:#25324f}.code-source-toolbar{font:10px/1.5 var(--type-mono);border-bottom:1px solid #ede8dd26;justify-content:space-between;align-items:center;gap:14px;padding:8px 20px;display:flex}.code-source-toolbar>span{overflow-wrap:anywhere;min-width:0}.code-source-toolbar button{color:#b9d3f7;min-height:44px;font:10px var(--type-mono);cursor:pointer;background:0 0;flex-shrink:0}.code-copy-status{font:10px/1.5 var(--type-mono);margin:0;padding-inline:20px}.code-copy-status:empty{display:none}.code-source pre{max-height:560px;font:11px/1.75 var(--type-mono);tab-size:4;white-space:pre;margin:0;padding:22px 20px 28px 0;overflow:auto}.code-source pre code{font:inherit;min-width:max-content;display:block}.code-source-line{min-height:1.75em;display:flex}.code-line-number{-webkit-user-select:none;user-select:none;text-align:right;color:#b8bfd080;flex:0 0 62px;padding-right:20px}.code-token-comment{color:#b0c0af}.code-token-string{color:#e3c48b}.code-token-keyword{color:#c5b2e6}.code-token-number{color:#9acfc9}.code-empty{min-height:420px;padding:80px 54px 100px}.code-empty h2{letter-spacing:-.04em;margin:20px 0 16px;font-size:36px;font-weight:400}.code-empty p{max-width:440px;color:var(--code-muted);font-size:16px;line-height:1.7}.code-empty button{font:10px var(--type-mono);color:var(--code-accent);cursor:pointer;background:0 0;margin-top:22px;padding-block:14px}.code-page>.portfolio-footer{margin-top:50px}@media (max-width:760px){.code-study-cards{grid-template-columns:minmax(0,1fr)}.code-study-card .code-study-body{margin-left:0}.code-page-content{margin-inline:36px}.code-intro{grid-template-columns:1fr;gap:24px;padding:42px 0 28px}.code-intro h1{font-size:76px}.code-intro-note p{margin-bottom:16px;font-size:19px}.code-category-bar{gap:0;padding-block:10px}.code-category-bar nav{gap:20px}.code-category-bar button{gap:5px;font-size:10px}.code-category-bar button small{font-size:8px}.code-category-count{display:none}.code-study{padding-block:34px 38px}.code-study-header{grid-template-columns:22px minmax(0,1fr);gap:10px}.code-study-header h2{font-size:29px}.code-study-kicker{margin-bottom:10px;font-size:8px}.code-ai-label{grid-column:2;padding-top:0;font-size:9px}.code-study-body{margin:22px 0 0}.code-capture-result .code-capture-frame{aspect-ratio:16/10}.code-capture figcaption{flex-direction:column;gap:3px;font-size:8px}.code-capture-pending{font-size:9px}.code-result-summary{margin:16px 0 24px;font-size:20px}.code-process-row{grid-template-columns:1fr;gap:10px;margin-bottom:22px}.code-study-explanation{font-size:14px;line-height:1.65}.code-workflow li{padding-block:6px;font-size:10px}.code-study-specs{gap:20px 18px}.code-study-specs dd{font-size:12px}.code-study-details>summary{font-size:9px}.code-source>summary{gap:8px;font-size:9px}.code-source>summary>span:last-child{gap:13px;font-size:8px}.code-source-toolbar{padding-inline:12px;font-size:9px}.code-source-toolbar button{font-size:9px}.code-source pre{max-height:58svh;font-size:10px}.code-line-number{flex-basis:43px;padding-right:12px}.code-empty{padding:48px 0 70px}.code-empty h2{font-size:29px}}@media (max-width:360px){.code-page-content{margin-inline:30px}.code-category-bar nav{gap:13px}.code-category-bar button{font-size:9px}.code-study-specs{grid-template-columns:1fr}}
