html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:sans-serif}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{vertical-align:baseline;display:inline-block}audio:not([controls]){height:0;display:none}[hidden],template{display:none}a{background-color:#0000}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box}html{height:100%}body{color:#333;background-color:#fff;min-height:100%;margin:0;font-family:Arial,sans-serif;font-size:14px;line-height:20px}img{vertical-align:middle;max-width:100%;display:inline-block}h1,h2,h3,h4,h5,h6{margin-bottom:10px;font-weight:700}h1{margin-top:20px;font-size:38px;line-height:44px}h2{margin-top:20px;font-size:32px;line-height:36px}h3{margin-top:20px;font-size:24px;line-height:30px}h4{margin-top:10px;font-size:18px;line-height:24px}h5{margin-top:10px;font-size:14px;line-height:20px}h6{margin-top:10px;font-size:12px;line-height:18px}p{margin-top:0;margin-bottom:10px}blockquote{border-left:5px solid #e2e2e2;margin:0 0 10px;padding:10px 20px;font-size:18px;line-height:22px}figure{margin:0 0 10px}figcaption{text-align:center;margin-top:5px}ul,ol{margin-top:0;margin-bottom:10px;padding-left:40px}.list-unstyled{padding-left:0;list-style:none}fieldset{border:0;margin:0;padding:0}button,[type=button],[type=reset]{cursor:pointer;-webkit-appearance:button;border:0}.form-success{text-align:center;background-color:#ddd;padding:20px;display:none}.form-error{background-color:#ffdede;margin-top:10px;padding:10px;display:none}label{margin-bottom:5px;font-weight:700;display:block}.input{color:#333;vertical-align:middle;background-color:#fff;border:1px solid #ccc;width:100%;height:38px;margin-bottom:10px;padding:8px 12px;font-size:14px;line-height:1.42857;display:block}.input::placeholder{color:#999}.input:focus{border-color:#3898ec;outline:0}.input[disabled],.input[readonly],fieldset[disabled] .input{cursor:not-allowed}.input[disabled],.input[readonly],fieldset[disabled] .input{background-color:#eee}.form-label{cursor:pointer;margin-bottom:0;font-weight:400;display:inline-block}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@font-face{font-family:Sfmono;src:url(../fonts/SFMono-Bold.woff2)format('woff2');font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Sfmono;src:url(../fonts/SFMono-Regular.woff2)format('woff2');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Sfmono;src:url(../fonts/SFMono-Light.woff2)format('woff2');font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Sfmono;src:url(../fonts/SFMono-Heavy.woff2)format('woff2');font-weight:900;font-style:normal;font-display:swap}:root{--magenta:#f0f;--lime:#0f0;--white:white;--black:black}.block-container{max-width:940px;margin-left:auto;margin-right:auto;display:block}.checkbox{margin-bottom:5px;padding-left:20px;display:block}.checkbox:before{content:" ";grid-area:1/1/2/2;display:table}.checkbox:after{content:" ";clear:both;grid-area:1/1/2/2;display:table}.checkbox-input{float:left;margin:4px 0 0 -20px;line-height:normal}@media screen and (max-width:991px){.block-container{max-width:728px}}@media screen and (max-width:767px){.block-container{max-width:none}}body{color:#1a1b1f;font-family:Montserrat,sans-serif;font-size:16px;font-weight:400;line-height:28px}h1{margin-top:20px;margin-bottom:15px;margin-right:20px;font-size:44px;font-weight:400;line-height:62px}h2{margin-top:10px;margin-bottom:10px;font-size:36px;font-weight:400;line-height:50px}h3{margin-top:10px;margin-bottom:10px;font-size:30px;font-weight:400;line-height:46px}h4{margin-top:10px;margin-bottom:10px;font-size:24px;font-weight:400;line-height:38px}h5{margin-top:10px;margin-bottom:10px;font-size:20px;font-weight:500;line-height:34px}h6{margin-top:10px;margin-bottom:10px;font-size:16px;font-weight:500;line-height:28px}p{margin-bottom:10px}a{color:#1a1b1f;text-decoration:underline;transition:opacity .2s;display:block}a:hover{color:#32343a}a:active{color:#43464d}ul{margin-top:20px;margin-bottom:20px;padding-left:40px;list-style-type:disc}li{margin-bottom:10px}img{flex-flow:row;display:inline-flex}label{letter-spacing:1px;text-transform:uppercase;margin-bottom:10px;font-size:12px;font-weight:500;line-height:20px}blockquote{border-left:5px solid #e2e2e2;margin-top:25px;margin-bottom:25px;padding:15px 30px;font-size:20px;line-height:34px}figure{margin-top:25px;padding-bottom:20px}figcaption{opacity:.6;text-align:center;margin-top:5px;font-size:14px;line-height:26px}.form{margin-top:0%;margin-left:0%;margin-right:0%}.checkbox-label{color:#818181;-webkit-text-stroke-color:#000;margin-bottom:15px;margin-left:5px;font-family:Sfmono,sans-serif;font-size:9px;font-weight:300;line-height:12px}.code-block{color:#fff;background-color:#000;border-radius:0 0 4px 4px;max-width:100%;margin:0 0% 20px;padding:2% 5%;font-family:Sfmono,sans-serif;font-size:14px;line-height:20px}.body{background-color:#cacaca;border:1px #0d0d0d;margin-bottom:0%;margin-left:18%;margin-right:18%;font-family:Sfmono,sans-serif}.neon-pink{color:#f0f;-webkit-text-stroke-color:var(--magenta)}.golden-yellow{color:gold}.bright-green{color:#0f0;-webkit-text-stroke-color:var(--lime)}.grid{grid-column-gap:15px;grid-row-gap:15px;grid-template:"Area-1 Area-2 Area-3 Area-4"/1fr 1fr 1fr 1fr;grid-auto-flow:column;place-content:stretch}.description{margin-bottom:25px}.terminal-header{background-color:#2c2c2c;border-radius:4px 4px 0 0;max-width:100%;height:24px;margin-top:20px;margin-left:0%;margin-right:0%}.header-container{margin:0}.button-primary{color:#fff;letter-spacing:2px;text-transform:uppercase;background-color:#1a1b1f;border-radius:4px;padding:12px 25px;font-family:Sfmono,sans-serif;font-size:14px;font-weight:900;line-height:20px;transition:all .2s;text-decoration:none}.button-primary:hover{color:#fff;background-color:#32343a}.button-primary:active{background-color:#43464d}.header{max-width:none;margin-left:0%;margin-right:0%}.header-bar{z-index:5;background-color:#0000;width:1030px;max-width:100%;margin-left:auto;margin-right:auto;padding:15px 20px}.header-bar.shadow-three{width:100%;max-width:100%;margin-bottom:0;margin-left:0;margin-right:0%;padding:20px 0 0}.navbar-wrap{justify-content:space-between;align-items:center;width:100%;max-width:100%;display:flex}.nav-menu{justify-content:space-between;align-items:center;margin-top:0;margin-bottom:0;padding-left:0;list-style-type:none;display:flex}.language-tag{color:#ccc;margin-left:10px;font-family:Sfmono,sans-serif;font-size:12px}.form-block{margin-bottom:0}.form-field{border-style:none none none solid;border-width:0 1px 1px;border-color:black black #000 var(--lime);color:#fff;background-color:#000;margin-top:10px;margin-bottom:0;padding:0 10px;font-size:14px;line-height:20px}.checkbox-field{margin-top:20px;margin-bottom:10px}.submit-button{background-color:var(--magenta);border-radius:2px;padding:8px 10px;font-size:13px;font-weight:700}.page-body{background-color:#cacaca;margin-left:20%;margin-right:20%}.contact-form-header{color:var(--lime);margin-right:0;font-size:36px}.error-message{background-color:#b94c4c;border-radius:2px}.success-message{background-color:#48974b;border-radius:3px}.container{width:100%;max-width:940px;margin-left:auto;margin-right:auto}@media screen and (max-width:991px){.heading-jumbo{font-size:56px;line-height:70px}.code-block{max-width:100%}.body{margin-left:5%;margin-right:5%}.terminal-header{max-width:100%}.header-container{max-width:728px}.nav-menu-wrap{background-color:#0000}.nav-menu{background-color:#fff;border-radius:50px;flex-wrap:wrap;justify-content:space-around;align-items:center;margin-top:10px;padding:20px;display:flex;box-shadow:0 8px 50px #0000000d}.container{max-width:728px}}@media screen and (max-width:767px){.heading-jumbo{font-size:50px;line-height:64px}._404-wrap{padding:30px}.code-block{max-width:100%}.code-paragraph{font-size:12px}.terminal-header,.header-bar{max-width:100%}.navbar-brander{padding-left:0}.nav-menu{border-radius:20px;flex-direction:column;padding-bottom:30px}.footer-dark{padding-left:15px;padding-right:15px}}@media screen and (max-width:479px){.heading-jumbo{font-size:36px;line-height:48px}.code-block{margin-left:0%;margin-right:0%}.code-paragraph{font-size:12px}.grid{grid-column-gap:30px;grid-row-gap:30px;grid-template:"Area-1 Area-2""Area-3 Area-4"/1fr 1fr}.header-container{max-width:none}.nav-menu{flex-direction:column}.container{max-width:none}}#w-node-_24a34828-62af-6a68-4d44-39c5b8bc0975-b8b8aeb6{grid-area:Area-2}#w-node-_5eb0f731-99e4-3856-2979-c74091ba4919-b8b8aeb6,#w-node-_2c1d65e6-a9b8-0f32-6b71-022fa40fe364-b8b8aeb6,#w-node-b0ce2586-2ca7-3ebf-ac4b-6a5a48b075bf-b8b8aeb6,#w-node-b4840db3-6ca2-5e14-848f-b4a0f0ac7231-f0ac722b,#w-node-b4840db3-6ca2-5e14-848f-b4a0f0ac723a-f0ac722b,#w-node-b4840db3-6ca2-5e14-848f-b4a0f0ac7245-f0ac722b{grid-area:span 1/span 1/span 1/span 1}
/* === Hero (terminal-session aesthetic) === */
.hero {
    max-width: 880px;
    margin: 24px auto 32px;
    padding: 36px 44px 44px;
    background-color: #1a1b1f;
    background-image:
        radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, gold 0%, #d600ff 50%, #0f0 100%);
    opacity: 0.75;
}
.hero-inner {
    position: relative;
    z-index: 1;
}
.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 22px;
}
.hero-meta-path { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta-branch {
    color: gold;
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 3px;
    padding: 1px 7px;
    font-size: 11px;
}
.hero-meta-dim { color: #6b7280; }
.hero-cmd {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #a6b1bf;
    margin-bottom: 12px;
}
.hero-prompt {
    color: #0f0;
    margin-right: 10px;
    font-weight: 700;
}
.hero-cmd-text { color: #fff; }
.hero-heading {
    font-family: Sfmono, monospace;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 16px;
    color: #fff;
}
.hero-cursor {
    display: inline-block;
    width: 14px;
    height: 0.85em;
    background: #0f0;
    margin-left: 8px;
    vertical-align: -0.08em;
    box-shadow: 0 0 8px rgba(0,255,0,0.6);
    animation: hero-blink 1s steps(2, end) infinite;
}
@keyframes hero-blink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.hero-tagline {
    font-family: Sfmono, monospace;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    color: #a6b1bf;
    max-width: 720px;
    margin: 0 0 24px;
}
.hero-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: Sfmono, monospace;
    font-size: 12px;
}
.hero-tags li {
    color: #d4d8df;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 5px 11px;
    margin: 0;
    transition: border-color 0.15s, background 0.15s;
}
.hero-tags li:hover {
    border-color: rgba(214,0,255,0.5);
    background: rgba(214,0,255,0.08);
}
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Sfmono, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.hero-cta-primary {
    background: #d600ff;
    color: #fff;
    border: 1px solid #d600ff;
    box-shadow: 0 0 0 1px rgba(214,0,255,0.25), 0 8px 24px -10px rgba(214,0,255,0.5);
}
.hero-cta-primary:hover { background: #b800dc; border-color: #b800dc; color: #fff; }
.hero-cta-primary:active { transform: translateY(1px); }
.hero-cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}
.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.hero-cta-arrow { transition: transform 0.15s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(3px); }

@media (max-width: 700px) {
    .hero { padding: 28px 24px 32px; }
    .hero-heading { font-size: 38px; }
    .hero-tagline { font-size: 16px; }
    .hero-meta { font-size: 11px; }
    .hero-cta { width: 100%; justify-content: center; }
    .hero-ctas { width: 100%; }
}

/* === Section heading + intro (used in Projects section) === */
.section-heading {
    font-family: Sfmono, monospace;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    padding: 0 20px;
}
.section-intro {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #a6b1bf;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 0 20px;
}

/* === Projects grid === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    padding: 12px 0;
}
.project-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.project-name {
    font-family: Sfmono, monospace;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.project-url {
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.project-description {
    font-family: Sfmono, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #fff;
    margin-bottom: 16px;
    flex-grow: 1;
}
.project-cta {
    font-family: Sfmono, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #d600ff;
    letter-spacing: 0.5px;
}

/* === Refined section presentation (drops pseudo-code wrappers) === */
.section-paragraph {
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 24px;
    padding: 0 20px;
}
.person-name {
    font-family: Sfmono, monospace;
    font-size: 16px;
    margin: 0 0 16px;
    padding: 0 12px;
}
.capability-list {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: 12px 32px;
    margin: 0;
    padding: 4px 20px 12px;
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.6;
}
.capability-list dt {
    font-weight: 700;
}
.capability-list dd {
    color: #fff;
    margin: 0;
    text-wrap: pretty;
}
@media (max-width: 600px) {
    .capability-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .capability-list dt {
        margin-top: 12px;
    }
    .capability-list dt:first-child {
        margin-top: 0;
    }
}
.contact-link {
    text-decoration: none;
}
.contact-link:hover span {
    text-decoration: underline;
}

/* === Header nav links === */
.nav-link {
    font-family: Sfmono, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #1a1b1f;
    text-decoration: none;
    padding: 12px 18px;
    letter-spacing: 0.5px;
    transition: color 0.15s;
}
.nav-link:hover {
    color: #d600ff;
}
.nav-link[aria-current="page"] {
    color: #d600ff;
}

/* === Insights pages === */
.insights-list,
.insights-post {
    max-width: 880px;
    margin: 0 auto 80px;
}
.insights-meta {
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    margin: 0 0 8px;
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.insights-title {
    font-family: Sfmono, monospace;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 32px;
    padding: 0 12px;
    letter-spacing: -0.5px;
}
.insights-body {
    padding: 0 12px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.75;
}
.insights-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 16px;
}
.insights-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 12px;
}
.insights-body p { margin: 0 0 18px; }
.insights-body a { color: #d600ff; display: inline; }
.insights-body a:hover { text-decoration: underline; }
.insights-body li a { display: inline; }
.insights-body ul, .insights-body ol {
    margin: 0 0 18px 0;
    padding-left: 28px;
}
.insights-body li { margin-bottom: 8px; }
.insights-body strong { color: #fff; font-weight: 700; }
.insights-body em { color: #a6b1bf; font-style: italic; }
.insights-body hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 32px 0;
}
.insights-back {
    margin: 40px 12px 0;
}
.insights-back a {
    color: #d600ff;
    text-decoration: none;
    font-family: Sfmono, monospace;
    font-size: 14px;
}
.insights-back a:hover { text-decoration: underline; }

.insights-item {
    padding: 24px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.insights-item:last-child { border-bottom: 0; }
.insights-item-title {
    font-family: Sfmono, monospace;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
}
.insights-item-title a {
    color: #fff;
    text-decoration: none;
}
.insights-item-title a:hover { color: #d600ff; }
.insights-excerpt {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #a6b1bf;
    line-height: 1.6;
    margin: 0;
}

/* === Contact page prelude (Calendly CTA) === */
.contact-prelude {
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 24px 28px;
    background-color: #1a1b1f;
    border-radius: 12px;
    color: #fff;
}
.contact-prelude-heading {
    font-family: Sfmono, monospace;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}
.contact-prelude-text {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #a6b1bf;
    margin: 0 0 20px;
}
.cta-book {
    display: inline-block;
    padding: 14px 28px;
    background-color: #d600ff;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background-color 0.15s;
}
.cta-book:hover {
    background-color: #b300d6;
}

/* === Lead-qualification fields === */
.form-group {
    margin-bottom: 16px;
}
.form-field-label {
    display: block;
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-optional {
    color: rgba(255,255,255,0.4);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}
.form-select,
.form-textarea {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
    box-sizing: border-box;
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a6b1bf' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 36px;
}
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d600ff;
}
.form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}

/* === Newsletter signup === */
.newsletter {
    max-width: 880px;
    margin: 40px auto 0;
    padding: 28px 32px;
    background-color: #1a1b1f;
    border-radius: 12px;
    color: #fff;
}
.newsletter-heading {
    font-family: Sfmono, monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}
.newsletter-text {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    margin: 0 0 16px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    flex: 1 1 240px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
    box-sizing: border-box;
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #d600ff;
}
.newsletter-form button {
    background-color: #d600ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-family: Sfmono, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.newsletter-form button:hover { background-color: #b300d6; }
.newsletter-status {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    margin: 12px 0 0;
    min-height: 16px;
}
.newsletter-status.success { color: #b8e986; }
.newsletter-status.error { color: #ff5c5c; }

/* === Resources page === */
.resources-page {
    padding: 20px 12px;
}
.resources-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.resources-tier {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.resources-tier-badge {
    font-family: Sfmono, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.resources-tier-title {
    font-family: Sfmono, monospace;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.resources-tier-price {
    font-family: Sfmono, monospace;
    margin: 0 0 16px;
}
.resources-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.resources-price-cadence {
    font-size: 14px;
    color: #a6b1bf;
    margin-left: 4px;
}
.resources-tier-summary {
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
    margin: 0 0 16px;
}
.resources-tier-features {
    font-family: Sfmono, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 24px;
    padding-left: 20px;
    flex-grow: 1;
}
.resources-tier-features li {
    margin-bottom: 6px;
}
.resources-tier .cta-book[disabled] {
    background-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    cursor: not-allowed;
    border: 1px dashed rgba(255,255,255,0.3);
}
.resources-tier-fineprint {
    font-family: Sfmono, monospace;
    font-size: 11px;
    color: #a6b1bf;
    margin: 12px 0 0;
    text-align: center;
}
.resources-tier-featured {
    border-color: gold;
    background-color: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 1px gold;
}
.projects-callout {
    margin: 4px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.6;
}
/* Live demo previews (faux-browser screenshot thumbnail) */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    justify-content: start;
    padding: 12px 0;
}
.demo-card {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 640px) {
    .demos-grid { grid-template-columns: 1fr; }
    .demo-card { max-width: 420px; }
}
.demo-browser {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.demo-browser:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}
.demo-browser-bar {
    height: 30px;
    background: #e9e9ee;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}
.demo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c2c2cc;
}
.demo-urlbar {
    margin-left: 8px;
    flex: 1;
    background: #fff;
    border-radius: 4px;
    font-family: Sfmono, monospace;
    font-size: 11px;
    color: #6b7280;
    padding: 3px 10px;
}
.demo-shot {
    display: block;
    width: 100%;
    height: auto;
}
.demo-meta {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #fff;
}
.demo-name {
    display: block;
}
.demo-where {
    display: block;
    font-size: 13px;
    color: #cdd5df;
    margin-top: 2px;
}
.demo-status {
    display: block;
    font-size: 12px;
    color: #a6b1bf;
    margin-top: 2px;
}
.demo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.demo-actions .cta-book {
    padding: 12px 22px;
    width: 100%;
    text-align: center;
}
.cta-claim {
    background-color: gold;
    color: #0d0d0f;
}
.cta-claim:hover {
    background-color: #e6b81f;
}
.cta-ghost {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.cta-ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.demo-talk {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    margin: 2px 0 0;
}
.resources-notify {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 32px;
    background-color: #1a1b1f;
    border-radius: 12px;
}
.resources-notify-heading {
    font-family: Sfmono, monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.resources-notify-text {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    margin: 0 0 16px;
    line-height: 1.55;
}

/* === Width alignment fix ===
   Constrain header + body block-containers to match the hero's 1030px max-width.
   This eliminates the "header wider than body" visual mismatch where the logo
   and nav extended beyond the dark panels below them. */
.header-bar,
.header-bar.shadow-three,
.block-container.terminal-header,
.block-container.code-block {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

/* === Site footer (richer replacement for the minimal copyright bar) === */
.site-footer {
    background-color: #1a1b1f;
    color: #fff;
    margin-top: 48px;
    padding: 48px 0 0;
    /* Break out of <body class="body">'s 18%/5% horizontal margins
       so the footer band spans the full viewport like a real footer. */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.site-footer-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 48px;
}
.site-footer-col {
    font-family: Sfmono, monospace;
    font-size: 14px;
    color: #a6b1bf;
    line-height: 1.6;
}
.site-footer-brandname {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}
.site-footer-tagline {
    margin: 0;
    color: #a6b1bf;
    font-size: 13px;
    line-height: 1.55;
    max-width: 32ch;
}
.site-footer-coltitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 12px;
}
.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer-links li {
    margin-bottom: 6px;
}
.site-footer-links a {
    color: #fff;
    text-decoration: none;
}
.site-footer-links a:hover { color: #d600ff; }
.site-footer-links a:hover span { text-decoration: underline; }
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 32px;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer-copyright {
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    margin: 0;
}
/* Discreet admin link in the copyright row. Same muted color as the rest
   of the line by default; magenta brand accent + underline on hover. */
.site-footer-copyright-sep {
    color: rgba(255,255,255,0.18);
    margin: 0 4px;
}
.site-footer-admin-link {
    display: inline;  /* override the global Webflow-base `a{display:block}` so the copyright row stays on one line */
    color: #a6b1bf;
    text-decoration: none;
    transition: color 0.12s ease;
}
.site-footer-admin-link:hover,
.site-footer-admin-link:focus {
    color: #d600ff;
    text-decoration: underline;
}
.site-footer-social {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-social li { margin: 0; }
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a6b1bf;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.site-footer-social a:hover {
    color: #d600ff;
    background: rgba(214, 0, 255, 0.08);
}
.site-footer-social a:focus-visible {
    outline: 2px solid #d600ff;
    outline-offset: 2px;
}

/* === 404 page === */
.error-segfault {
    color: #ff4d6d;
    font-weight: 400;
}
.error-trace {
    margin-top: 24px;
}
@media (max-width: 700px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 28px;
    }
}

/* === Header restyle — dark full-viewport bar, IDE-flavored nav === */
.header {
    background-color: #1a1b1f;
    /* Break out of <body class="body">'s horizontal margins to span full viewport (same trick as footer) */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Hairline divider below */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}
/* Override the earlier .header rule (max-width:none, margin:0 0%) cleanly */
.header-bar,
.header-bar.shadow-three {
    background-color: transparent;
    max-width: 880px;
    margin: 0 auto;
    padding: 8px 32px;
    width: auto;
}
.navbar-wrap {
    align-items: center;
}
/* Reduce logo size slightly to fit comfortably in the smaller bar */
.navbar-brander img {
    max-width: 180px;
    height: auto;
}
/* IDE-style nav links: slash prefix, monospace, no buttons */
.nav-link {
    display: inline-flex;
    align-items: center;
    font-family: Sfmono, monospace;
    font-size: 13px;
    font-weight: 400;
    color: #a6b1bf;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: #fff; background-color: rgba(255,255,255,0.04); }
.nav-link[aria-current="page"] { color: #d600ff; }
.nav-slash { color: #4a4f5a; margin-right: 1px; }
.nav-link:hover .nav-slash { color: #d600ff; }

/* CONTACT primary button gains an arrow */
.nav-menu .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 10px 16px;
    background-color: #d600ff;
    color: #fff;
    border-radius: 4px;
}
.nav-menu .button-primary:hover { background-color: #b300d6; }
.button-arrow {
    font-size: 14px;
    transition: transform 0.15s;
}
.nav-menu .button-primary:hover .button-arrow {
    transform: translateX(2px);
}

/* Small "system status" indicator on far right */
.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    font-family: Sfmono, monospace;
    font-size: 11px;
    color: #a6b1bf;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b8e986;
    box-shadow: 0 0 0 0 rgba(184, 233, 134, 0.7);
    animation: status-pulse 2s ease-out infinite;
}
@keyframes status-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(184, 233, 134, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(184, 233, 134, 0); }
    100% { box-shadow: 0 0 0 0   rgba(184, 233, 134, 0); }
}

/* Hide status indicator on narrow viewports to keep nav clean */
@media (max-width: 700px) {
    .nav-status { display: none; }
    .nav-link { padding: 6px 8px; }
}

/* === Terminal-window chrome: traffic-light dots + filename-style label === */
.block-container.terminal-header {
    background-color: #2a2a2a;
    border-radius: 8px 8px 0 0;
    padding: 10px 16px 10px 80px;
    position: relative;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* The three macOS-style traffic lights on the left */
.block-container.terminal-header::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow:
        20px 0 0 0 #ffbd2e,
        40px 0 0 0 #27c93f,
        /* Subtle inner shadow for depth */
        inset 0 1px 1px rgba(0,0,0,0.2);
}
/* Filename label (was tiny "json" / "ruby"; now larger and more present) */
.language-tag {
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    letter-spacing: 0;
    text-transform: none;
}
/* Make the body of the code-block sit flush against the terminal-header
   (no rounded top corners, no gap) */
.block-container.code-block {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}
/* Add a tiny gap between consecutive [terminal-header + code-block] pairs */
.block-container.terminal-header + .block-container.code-block {
    margin-bottom: 24px;
}
/* And restore breathing room between separate sections */
.block-container.code-block + .block-container.terminal-header {
    margin-top: 24px;
}

/* === Refinements: window title + nav spacing === */

/* Center the filename label in the title bar (was floating awkwardly left-of-center) */
.block-container.terminal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Reset the left padding override; the absolute-positioned dots don't need it */
    padding: 10px 16px;
    min-height: 32px;
}
.language-tag {
    /* Centered + vertically aligned with the dots */
    text-align: center;
}

/* Nav: separate ONLINE status from CONTACT button with more space + a thin divider */
.nav-status {
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
/* Slightly more breathing room between nav links too */
.nav-menu > li + li {
    margin-left: 4px;
}

/* === Nav spacing: even rhythm between items, clearer break before status === */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;        /* uniform spacing between all nav items */
    margin: 0;
    padding: 0;
}
/* Remove the old margin-based gap (was 4px and inconsistent) */
.nav-menu > li + li {
    margin-left: 0;
}
/* Tighten the link padding so the visible link feels like the link, not a big hit area */
.nav-link {
    padding: 6px 4px;
}
/* Bigger break before the status indicator to signal "this is a different category" */
.nav-status {
    margin-left: 16px;
    padding-left: 24px;
}

/* === People section: JSON-style code block (kept for fallback) === */
.json-block {
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.75;
    color: #fff;
    margin: 0;
    padding: 12px;
    white-space: pre-wrap;
    overflow-x: auto;
}
.json-block code { font-family: inherit; }
.json-punct { color: #a6b1bf; }

/* === People section: YAML-style profile block === */
.yaml-block {
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.75;
    color: #e8eaf0;
    margin: 0;
    padding: 12px 20px;
    white-space: pre-wrap;
    overflow-x: auto;
}
.yaml-block code { font-family: inherit; }
.yaml-punct   { color: #6b7280; }
.yaml-comment { color: #6b7280; font-style: italic; }
.yaml-literal { color: #0f0; font-weight: 700; }

/* Visually hidden — preserved for screen readers + SEO but not displayed */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Copy-to-clipboard buttons === */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: #a6b1bf;
    padding: 2px 8px;
    margin-left: 10px;
    font-family: Sfmono, monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    min-width: 28px;
    min-height: 22px;
    vertical-align: middle;
}
.copy-btn:hover { color: #d600ff; border-color: rgba(214,0,255,0.5); background-color: rgba(214,0,255,0.05); }
.copy-btn:focus-visible { outline: 2px solid #d600ff; outline-offset: 2px; }
.copy-btn.copied { color: #b8e986; border-color: rgba(184,233,134,0.6); }

/* === Contact section CTA + response time === */
.contact-cta {
    margin: 28px 20px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-cta .cta-book {
    margin: 0;
}
.contact-cta-note {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    margin: 0;
}
.contact-cta-inline {
    color: #d600ff;
    display: inline;
    text-decoration: none;
    border-bottom: 1px solid rgba(214,0,255,0.4);
}
.contact-cta-inline:hover {
    color: #d600ff;
    border-bottom-color: #d600ff;
}

/* === Ruby-styled Contact block (contact.rb) === */
.ruby-block {
    font-family: Sfmono, monospace;
    font-size: 14px;
    line-height: 1.85;
    color: #fff;
    margin: 0;
    padding: 12px 20px;
    white-space: pre-wrap;
    overflow-x: auto;
}
.ruby-kw     { color: #d600ff; font-weight: 700; }
.ruby-const  { color: #fff; }
.ruby-op     { color: #6b7280; }
.ruby-block a.ruby-strlink {
    display: inline;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s;
}
.ruby-block a.ruby-strlink:hover {
    color: inherit;
    border-bottom-color: rgba(0,255,0,0.5);
}
/* === Admin (/admin/) === */
/* Subnav sits on the page's light gray bg, so wrap in its own dark strip
   so the light text colors read properly. Same dark surface treatment as
   the terminal blocks. */
.admin-subnav {
    max-width: 880px;
    margin: 0 auto 16px;
    padding: 4px 12px;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    font-family: Sfmono, monospace;
    font-size: 13px;
    background: #1a1b1f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
}
.admin-subnav-link {
    display: inline-block;
    padding: 8px 14px;
    color: #a6b1bf;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.admin-subnav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.admin-subnav-link:focus-visible {
    outline: 2px solid #d600ff;
    outline-offset: 2px;
}
.admin-subnav-current {
    color: #fff;
    background: rgba(214, 0, 255, 0.15);
    box-shadow: inset 0 -2px 0 #d600ff;
}
.admin-subnav-current:hover {
    color: #fff;
    background: rgba(214, 0, 255, 0.18);
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 16px 20px 24px;
}
.admin-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 16px;
    font-family: Sfmono, monospace;
}
.admin-stat-label {
    font-size: 11px;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.1;
}
.admin-stat-sub {
    font-size: 12px;
    color: #a6b1bf;
    margin: 0;
}
.admin-h3 {
    margin-top: 28px !important;
    font-size: 18px !important;
}
.admin-build-status {
    list-style: none;
    padding: 0 20px;
    margin: 12px 0 0;
    font-family: Sfmono, monospace;
    font-size: 13px;
    line-height: 1.85;
    color: #d4d8df;
}
.admin-build-status li { margin-bottom: 4px; }

/* M8: dashboard widgets */
.admin-aging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 12px 20px 16px;
}
.admin-aging-cell {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid rgba(255,255,255,0.12);
    padding: 12px 14px;
    font-family: Sfmono, monospace;
}
.admin-aging-cell:nth-child(1) { border-left-color: #0f0; }
.admin-aging-cell:nth-child(2) { border-left-color: #ffcc00; }
.admin-aging-cell:nth-child(3) { border-left-color: #ff4d6d; }
.admin-aging-cell:nth-child(4) { border-left-color: #d600ff; }
.admin-aging-label {
    font-size: 11px;
    color: #a6b1bf;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}
.admin-aging-value {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}
.admin-activity-block {
    max-height: 480px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.7;
    margin: 12px 20px;
}
.admin-h3-sep {
    margin-top: 32px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* M14: Unified calendar timeline */
.cal-bucket-header {
    margin: 16px 20px 4px;
    font-family: Sfmono, monospace;
    font-size: 11px;
    color: #a6b1bf;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 4px;
}
.cal-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    font-family: Sfmono, monospace;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s ease;
}
.cal-event:hover { background: rgba(255,255,255,0.025); }
.cal-event-date {
    width: 130px;
    font-size: 11px;
    color: #a6b1bf;
    flex-shrink: 0;
}
.cal-event-icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.cal-event-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-event-meta {
    color: #a6b1bf;
    font-size: 12px;
}
.cal-event-amount {
    color: #ffcc00;
    font-size: 12px;
    flex-shrink: 0;
}

/* Invoice creation form (admin/invoices/new/) */
.inv-step {
    margin: 24px 20px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.inv-step:last-child { border-bottom: 0; }
.inv-select {
    width: 100%;
    max-width: 600px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
}
.inv-select:focus { outline: none; border-color: #d600ff; }
.inv-new-client {
    margin-top: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 4px;
}
.inv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.inv-grid-2 label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    font-weight: 400;
}
.inv-grid-2 input,
.inv-grid-2 select {
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.inv-grid-2 input:focus, .inv-grid-2 select:focus { outline: none; border-color: #d600ff; }
.inv-block-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0;
    font-family: Sfmono, monospace;
    font-size: 12px;
    color: #a6b1bf;
    text-transform: none;
    letter-spacing: 0;
}
.inv-block-label textarea {
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
}
.inv-block-label textarea:focus { outline: none; border-color: #d600ff; }
.inv-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #d4d8df;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.inv-lines {
    width: 100%;
    border-collapse: collapse;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.inv-lines th {
    text-align: left;
    padding: 8px 12px 4px;
    color: #a6b1bf;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.inv-lines td { padding: 6px 12px; }
.inv-lines td:nth-child(1) { width: 70%; }
.inv-lines td:nth-child(2) { width: 25%; }
.inv-lines td:nth-child(3) { width: 5%; }
.inv-lines input {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.inv-lines input:focus { outline: none; border-color: #d600ff; }
.inv-rm-line {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: #ff4d6d;
    width: 28px; height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.inv-rm-line:hover { border-color: #ff4d6d; background: rgba(255,77,109,0.08); }
.inv-add-line {
    margin: 12px 12px 0;
    padding: 8px 14px;
    background: transparent;
    color: #d600ff;
    border: 1px dashed rgba(214,0,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.inv-add-line:hover {
    border-color: #d600ff;
    background: rgba(214,0,255,0.05);
}
.inv-preview {
    margin: 12px 0 16px;
    min-height: 80px;
}
.inv-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px;
    font-family: Sfmono, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
}
.inv-btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
}
.inv-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Invoice list table */
.inv-list {
    width: calc(100% - 40px);
    margin: 0 20px 16px;
    border-collapse: collapse;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.inv-list thead th {
    text-align: left;
    padding: 8px 12px;
    color: #a6b1bf;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    font-weight: 700;
}
.inv-list thead th.num { text-align: right; }
.inv-list tbody td {
    padding: 10px 12px;
    color: #d4d8df;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}
.inv-list tbody td.num { text-align: right; color: #fff; font-weight: 700; }
.inv-list tbody tr:hover { background: rgba(255,255,255,0.02); }
.inv-list-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: #a6b1bf;
}
.inv-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.inv-status-draft     { background: rgba(166,177,191,0.15); color: #a6b1bf; }
.inv-status-open      { background: rgba(255,215,0,0.15); color: gold; }
.inv-status-paid      { background: rgba(0,255,0,0.1); color: #0f0; }
.inv-status-void      { background: rgba(166,177,191,0.1); color: #6b7280; text-decoration: line-through; }
.inv-status-overdue   { background: rgba(255,77,109,0.15); color: #ff4d6d; }
.inv-row-link {
    color: #d600ff;
    text-decoration: none;
    display: inline;
    font-size: 12px;
}
.inv-row-link:hover { text-decoration: underline; }
.inv-list tbody tr.is-clickable { cursor: pointer; }
.inv-list tbody tr.is-clickable:hover { background: rgba(214, 0, 255, 0.05); }

/* Filter tabs (list page) */
.inv-filter-tabs {
    display: flex;
    gap: 2px;
    margin: 0 20px 16px;
    flex-wrap: wrap;
    font-family: Sfmono, monospace;
}
.inv-filter-tab {
    padding: 6px 12px;
    background: transparent;
    color: #a6b1bf;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    cursor: pointer;
    font-family: Sfmono, monospace;
    font-size: 12px;
}
.inv-filter-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.inv-filter-tab.active {
    color: #fff;
    border-color: rgba(214,0,255,0.6);
    background: rgba(214, 0, 255, 0.12);
}
.inv-filter-count {
    margin-left: 6px;
    opacity: 0.7;
    font-size: 11px;
}

/* Detail page */
.inv-loading {
    padding: 40px 20px;
    text-align: center;
    color: #a6b1bf;
    font-family: Sfmono, monospace;
}
.inv-error-msg { color: #ff4d6d; text-align: left; }
.inv-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin: 8px 0 24px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.inv-summary-col {
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    font-family: Sfmono, monospace;
}
.inv-summary-label {
    color: #a6b1bf;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.inv-summary-value {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.inv-lineitems tfoot td {
    border-top: 2px solid rgba(255,255,255,0.18);
    padding-top: 12px;
    font-size: 14px;
}
.inv-lineitems tfoot td.golden-yellow { font-weight: 700; }
.inv-total-row td { padding-top: 14px; }
.inv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 20px 0;
}
.inv-btn-danger {
    color: #ff4d6d !important;
    border-color: rgba(255,77,109,0.3) !important;
}
.inv-btn-danger:hover {
    background: rgba(255,77,109,0.08) !important;
    border-color: #ff4d6d !important;
}

/* Playbook page (admin/playbook/) */
.playbook-toc {
    margin: 0 0 24px 0;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.playbook-toc summary {
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}
.playbook-toc summary:hover { color: #d600ff; }
.playbook-toc ol {
    margin: 10px 0 0 24px;
    padding: 0;
}
.playbook-toc ol li { margin: 4px 0; }
.playbook-toc ol li a {
    color: #cdd6e4;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.18);
}
.playbook-toc ol li a:hover { color: #0f0; border-bottom-color: #0f0; }

.playbook-arch {
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
}
.playbook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: Sfmono, monospace;
    font-size: 13px;
}
.playbook-table th,
.playbook-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
}
.playbook-table th {
    color: #a6b1bf;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-color: rgba(255,255,255,0.18);
}
.playbook-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.playbook-table code {
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 3px;
    color: #d600ff;
    font-size: 12px;
}

/* === Bill Pay (/pay/) === */
.pay-form {
    margin: 16px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: Sfmono, monospace;
}
.pay-canceled-banner {
    margin: 0 20px 20px;
    padding: 12px 16px;
    background: rgba(255, 77, 109, 0.08);
    border-left: 3px solid #ff4d6d;
    border-radius: 0 4px 4px 0;
    font-family: Sfmono, monospace;
    font-size: 14px;
}
.pay-canceled-banner p { margin: 0; color: #ffd0d8; }
.pay-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pay-label {
    font-family: Sfmono, monospace;
    font-size: 13px;
    color: #a6b1bf;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    font-weight: 400;
}
.pay-form input[type="text"],
.pay-form input[type="email"],
.pay-form input[type="number"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-family: Sfmono, monospace;
    font-size: 14px;
    box-sizing: border-box;
}
.pay-form input:focus {
    outline: none;
    border-color: #d600ff;
}
/* Amount field gets a $ prefix + USD suffix via flex */
.pay-amount-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0 12px;
}
.pay-amount-wrap:focus-within {
    border-color: #d600ff;
}
.pay-amount-currency {
    color: #0f0;
    font-weight: 700;
    margin-right: 6px;
    font-size: 18px;
}
.pay-amount-suffix {
    color: #a6b1bf;
    font-size: 12px;
    margin-left: 6px;
}
.pay-form input#pay-amount {
    background: transparent;
    border: 0;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}
.pay-form input#pay-amount:focus { outline: none; }
/* Hide native spinner buttons on Chrome/Safari for the amount input */
.pay-form input#pay-amount::-webkit-outer-spin-button,
.pay-form input#pay-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pay-submit {
    align-self: flex-start;
    margin-top: 8px;
}
.pay-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.pay-status {
    margin: 0;
    font-size: 13px;
    font-family: Sfmono, monospace;
    min-height: 18px;
}
.pay-status.error { color: #ff4d6d; }
.pay-disclaimer {
    margin: 8px 0 0;
    color: #a6b1bf;
    font-size: 12px;
    font-family: Sfmono, monospace;
    line-height: 1.6;
}
.pay-alt {
    margin: 32px 20px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: Sfmono, monospace;
}
.pay-alt-heading {
    font-size: 13px;
    margin: 0 0 8px;
    color: #a6b1bf;
}
.pay-alt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #d4d8df;
    font-size: 13px;
    line-height: 1.7;
}
.pay-alt-list li { margin-bottom: 8px; }
.pay-alt-list a { color: #d600ff; display: inline; text-decoration: underline; }

/* Receipt block — slightly more breathing room than the Contact ruby block */
.receipt-block {
    margin-top: 18px;
}

.ruby-block .copy-btn {
    margin-left: 6px;
    padding: 0 7px;
    min-height: 20px;
    min-width: 24px;
    font-size: 11px;
    vertical-align: 1px;
}
