:root {
    --ink: #07110f;
    --ink-2: #0c1917;
    --ink-3: #12211f;
    --surface: #ffffff;
    --paper: #f4f7f4;
    --muted: #66736e;
    --line: rgba(7, 17, 15, 0.12);
    --line-dark: rgba(255, 255, 255, 0.14);
    --brand: #04bc74;
    --brand-2: #15d991;
    --cyan: #66e3ff;
    --coral: #ff7a59;
    --gold: #ffd166;
    --shadow: 0 28px 80px rgba(7, 17, 15, 0.18);
}

* {
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

header[id],
section[id] {
    scroll-margin-top: 88px;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-body {
    overflow-x: hidden;
}

.site-navbar {
    background: rgba(7, 17, 15, 0.66);
    border-bottom: 1px solid var(--line-dark);
    backdrop-filter: blur(18px);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-navbar.is-scrolled {
    background: rgba(7, 17, 15, 0.92);
    border-color: rgba(4, 188, 116, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand-lockup:hover {
    color: #fff;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(4, 188, 116, 0.3));
}

.brand-lockup span {
    display: grid;
    line-height: 1;
}

.brand-lockup strong {
    font-size: 1rem;
    font-weight: 900;
}

.brand-lockup small {
    margin-top: 4px;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(4, 188, 116, 0.22);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    font-weight: 850;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #07110f;
    box-shadow: 0 18px 45px rgba(4, 188, 116, 0.26);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #07110f;
}

.btn-ghost,
.btn-whatsapp {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-ghost:hover,
.btn-whatsapp:hover {
    border-color: rgba(4, 188, 116, 0.65);
    background: rgba(4, 188, 116, 0.12);
    color: #fff;
}

.hero-section {
    position: relative;
    min-height: 100svh;
    min-height: max(760px, 100svh);
    height: auto;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.84) 47%, rgba(0, 0, 0, 0.56) 100%),
        linear-gradient(rgba(4, 188, 116, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 188, 116, 0.055) 1px, transparent 1px),
        url("../img/bg.webp") center right / cover no-repeat,
        #020403;
    background-size: auto, 44px 44px, 44px 44px, cover, auto;
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 42%;
    height: 100%;
    background:
        linear-gradient(130deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.22)),
        repeating-linear-gradient(135deg, transparent 0, transparent 15px, rgba(4, 188, 116, 0.1) 16px, transparent 17px);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.86;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 16px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.hero-gridline {
    position: absolute;
    inset: 92px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(4, 188, 116, 0.44), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content > .row {
    min-height: max(760px, 100svh) !important;
}

.hero-copy {
    padding-top: 72px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.hero-section h1 {
    max-width: 760px;
    margin: 0;
    font-size: 6rem;
    line-height: 0.92;
    font-weight: 950;
}

.hero-lead {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.28rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-metrics {
    display: grid;
    max-width: 760px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 48px;
}

.hero-metrics div {
    position: relative;
    min-height: 118px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-metrics div::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 4px;
    background: var(--brand);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 2.35rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.66);
    font-weight: 700;
}

.developer-stage {
    position: relative;
    display: grid;
    min-height: 650px;
    align-items: end;
}

.developer-photo-frame {
    position: relative;
    z-index: 2;
    justify-self: center;
    width: min(100%, 430px);
    height: 624px;
    margin-bottom: -8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.35);
}

.developer-photo-frame img {
    position: absolute;
    top: 10px;
    right: 14px;
    bottom: auto;
    width: auto;
    height: calc(100% - 10px);
    max-width: none;
}

.code-panel {
    position: absolute;
    z-index: 4;
    display: grid;
    min-width: 176px;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(4, 188, 116, 0.36);
    border-radius: 8px;
    background: rgba(7, 17, 15, 0.78);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
}

.code-panel span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.code-panel strong {
    color: var(--brand);
    font-size: 1rem;
}

.code-panel-top {
    top: 164px;
    left: -38px;
}

.code-panel-bottom {
    right: 0;
    bottom: 82px;
}

.scan-strip {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 62px;
    width: 72%;
    height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        repeating-linear-gradient(90deg, rgba(4, 188, 116, 0.28) 0, rgba(4, 188, 116, 0.28) 2px, transparent 2px, transparent 12px),
        rgba(255, 255, 255, 0.04);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.section-band,
.contact-section {
    padding: 112px 0;
}

.section-band h2,
.contact-section h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 3.45rem;
    font-weight: 920;
    line-height: 1;
}

.section-band p,
.contact-section p {
    color: var(--muted);
    line-height: 1.75;
}

.intro-band {
    background:
        linear-gradient(90deg, rgba(4, 188, 116, 0.11), transparent 32%),
        var(--paper);
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-cloud span,
.project-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(7, 17, 15, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(7, 17, 15, 0.05);
}

.services-band,
.portfolio-band {
    background:
        linear-gradient(rgba(7, 17, 15, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 17, 15, 0.035) 1px, transparent 1px),
        #ffffff;
    background-size: 38px 38px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 286px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 15, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(7, 17, 15, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--brand), var(--cyan), var(--coral));
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 188, 116, 0.45);
}

.service-card i {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--brand);
    font-size: 1.45rem;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.55rem;
    font-weight: 900;
}

.timeline-band {
    background: var(--ink);
    color: #fff;
}

.timeline-band p,
.timeline-band .section-band p {
    color: rgba(255, 255, 255, 0.68);
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.social-button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
}

.social-button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.experience-list {
    display: grid;
    gap: 12px;
}

.experience-item {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.experience-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 84px;
    height: 100%;
    background: repeating-linear-gradient(135deg, rgba(4, 188, 116, 0.2) 0, rgba(4, 188, 116, 0.2) 2px, transparent 2px, transparent 11px);
    opacity: 0.45;
}

.experience-item span {
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.experience-item h3 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 900;
}

.portfolio-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: stretch;
    gap: 34px;
    margin-bottom: 42px;
}

.portfolio-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
}

.portfolio-copy h2 {
    max-width: 680px;
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    max-width: 680px;
    margin-top: 28px;
}

.filter-chip {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(7, 17, 15, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.portfolio-art {
    position: relative;
    min-height: 412px;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 15, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(2, 8, 7, 0.96) 0%, rgba(2, 8, 7, 0.82) 48%, rgba(2, 8, 7, 0.58) 100%),
        url("../img/bg.webp") center right / cover no-repeat,
        #020807;
    box-shadow: 0 26px 70px rgba(7, 17, 15, 0.16);
}

.portfolio-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(4, 188, 116, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 188, 116, 0.06) 1px, transparent 1px),
        linear-gradient(112deg, transparent 0 47%, rgba(4, 188, 116, 0.1) 47% 48%, transparent 48% 100%),
        linear-gradient(156deg, transparent 0 66%, rgba(255, 255, 255, 0.07) 66% 66.4%, transparent 66.4% 100%);
    background-size: 30px 30px, 30px 30px, auto, auto;
}

.portfolio-art::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 118px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(4, 188, 116, 0.14) 100%),
        repeating-linear-gradient(90deg, rgba(4, 188, 116, 0.45) 0, rgba(4, 188, 116, 0.45) 2px, transparent 2px, transparent 14px),
        rgba(4, 188, 116, 0.08);
    clip-path: polygon(0 42%, 100% 12%, 100% 100%, 0 100%);
}

.portfolio-art-grid {
    position: absolute;
    right: 96px;
    bottom: 76px;
    z-index: 1;
    width: 48%;
    height: 112px;
    border: 1px solid rgba(4, 188, 116, 0.22);
    background:
        linear-gradient(135deg, rgba(4, 188, 116, 0.16), transparent 58%),
        repeating-linear-gradient(90deg, rgba(4, 188, 116, 0.28) 0, rgba(4, 188, 116, 0.28) 2px, transparent 2px, transparent 14px),
        rgba(255, 255, 255, 0.03);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    opacity: 0.82;
}

.portfolio-console {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 3;
    display: grid;
    width: min(230px, calc(100% - 56px));
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(4, 188, 116, 0.28);
    border-radius: 8px;
    background: rgba(1, 7, 6, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.console-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.console-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.console-dots span:first-child {
    background: var(--brand);
}

.portfolio-console code {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.portfolio-console code::before {
    content: ">";
    margin-right: 8px;
    color: var(--brand);
}

.portfolio-art img {
    position: absolute;
    right: 36px;
    bottom: 0;
    z-index: 2;
    width: auto;
    height: calc(100% - 20px);
    max-width: none;
    filter: drop-shadow(-22px 20px 34px rgba(0, 0, 0, 0.36));
}

.portfolio-art-count,
.portfolio-art-chip {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(4, 188, 116, 0.42);
    border-radius: 8px;
    background: rgba(3, 10, 8, 0.78);
    color: #fff;
    backdrop-filter: blur(14px);
}

.portfolio-art-count {
    left: 28px;
    bottom: 28px;
    display: flex;
    min-width: 164px;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
}

.portfolio-art-count strong {
    color: var(--brand);
    font-size: 2rem;
    line-height: 1;
}

.portfolio-art-count span,
.portfolio-art-chip {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-art-count span {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.68);
}

.portfolio-art-chip {
    right: 28px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--brand);
}

.project-card {
    overflow: hidden;
    border: 1px solid rgba(7, 17, 15, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(7, 17, 15, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(4, 188, 116, 0.42);
    box-shadow: var(--shadow);
}

.project-visual {
    position: relative;
    height: 246px;
    overflow: hidden;
    background: #07110f;
}

.project-visual img,
.project-fallback {
    width: 100%;
    height: 100%;
}

.project-visual img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-card:hover .project-visual img {
    transform: scale(1.05);
}

.project-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 15, 0.08), rgba(7, 17, 15, 0.72));
}

.project-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(135deg, #07110f, #194039 52%, #1f5a49);
    background-size: 28px 28px, 28px 28px, auto;
}

.project-fallback span {
    color: #fff;
    font-size: 4rem;
    font-weight: 950;
}

.project-topline {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-topline span,
.project-topline strong {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-topline strong {
    background: var(--brand);
}

.project-body {
    display: flex;
    min-height: 268px;
    flex-direction: column;
    padding: 24px;
}

.project-body h3 {
    margin-bottom: 10px;
    font-size: 1.38rem;
    font-weight: 920;
}

.project-body p {
    color: var(--muted);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.project-tags span {
    min-height: 28px;
    padding: 5px 10px;
    background: #edf8f1;
    color: #1d5035;
    font-size: 0.78rem;
    box-shadow: none;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.project-link:hover {
    color: #167a4c;
}

.portfolio-load-more {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.load-more-projects {
    min-width: 214px;
    box-shadow: 0 18px 42px rgba(4, 188, 116, 0.2);
}

.load-more-projects[hidden] {
    display: none !important;
}

.contact-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        var(--ink);
    background-size: 44px 44px;
    color: #fff;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.58), rgba(4, 188, 116, 0.08));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-actions {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.contact-actions a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.contact-actions i {
    color: var(--brand);
}

.contact-form {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.contact-form .form-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 850;
}

.contact-form .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050b0a;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.toast-notice {
    position: fixed;
    z-index: 1080;
    top: 88px;
    right: 16px;
    max-width: min(420px, calc(100vw - 32px));
}

.install-banner {
    margin-top: 74px;
}

@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 5rem;
    }

    .developer-photo-frame {
        height: 574px;
    }
}

@media (min-width: 992px) and (max-height: 720px) {
    .hero-section {
        min-height: 100svh;
    }

    .hero-content > .row {
        min-height: 100svh !important;
        padding-top: 4.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .hero-copy {
        padding-top: 38px;
    }

    .hero-section h1 {
        font-size: 4.65rem;
    }

    .hero-lead {
        margin-top: 18px;
        font-size: 1.1rem;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-metrics {
        margin-top: 30px;
    }

    .hero-metrics div {
        min-height: 102px;
        padding: 15px;
    }

    .hero-metrics strong {
        font-size: 2rem;
    }

    .developer-stage {
        min-height: 560px;
    }

    .developer-photo-frame {
        height: 552px;
        margin-bottom: -6px;
    }

    .developer-photo-frame img {
        top: 8px;
        right: 24px;
        height: calc(100% - 8px);
    }

    .code-panel-top {
        top: 140px;
    }
}

@media (max-width: 991.98px) {
    .site-navbar {
        background: rgba(7, 17, 15, 0.95);
    }

    .hero-copy {
        padding-top: 104px;
    }

    .hero-section h1 {
        font-size: 4.4rem;
    }

    .developer-stage {
        min-height: 560px;
    }

    .developer-photo-frame {
        height: 534px;
    }

    .hero-metrics,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-heading {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .filter-toolbar {
        justify-content: flex-start;
    }

    .portfolio-copy {
        min-height: auto;
    }

    .portfolio-art {
        width: 100%;
        min-height: 390px;
    }

    .portfolio-art img {
        right: 32px;
        height: calc(100% - 18px);
    }

    .section-band,
    .contact-section {
        padding: 82px 0;
    }

    .section-band h2,
    .contact-section h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 575.98px) {
    .site-body .row {
        --bs-gutter-x: 0;
    }

    .site-navbar .container {
        min-height: 72px;
        gap: 8px;
    }

    .brand-lockup {
        max-width: calc(100vw - 104px);
        gap: 9px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
    }

    .brand-lockup span {
        min-width: 0;
    }

    .brand-lockup strong {
        max-width: 160px;
        overflow: hidden;
        font-size: 0.88rem;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-lockup small {
        margin-top: 3px;
        font-size: 0.66rem;
        line-height: 1;
    }

    .navbar-toggler {
        width: 52px;
        height: 46px;
        flex: 0 0 auto;
        padding: 0;
        border-color: rgba(4, 188, 116, 0.38);
        border-radius: 8px;
    }

    .hero-section {
        height: auto;
        min-height: auto;
    }

    .hero-content > .row {
        min-height: auto !important;
    }

    .hero-section h1 {
        font-size: 3.3rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 34px;
    }

    .hero-metrics div {
        min-height: 92px;
        padding: 12px 10px;
    }

    .hero-metrics strong {
        font-size: 1.7rem;
    }

    .hero-metrics span {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .developer-stage {
        min-height: 474px;
        padding-top: 18px;
    }

    .developer-photo-frame {
        width: 100%;
        height: 430px;
        margin-bottom: -18px;
    }

    .developer-photo-frame img {
        top: 8px;
        right: 50%;
        height: calc(100% - 8px);
        transform: translateX(50%);
    }

    .code-panel {
        display: grid;
        min-width: 142px;
        padding: 11px 13px;
        background: rgba(3, 10, 8, 0.82);
    }

    .code-panel span {
        font-size: 0.66rem;
    }

    .code-panel strong {
        font-size: 0.86rem;
    }

    .code-panel-top {
        top: 34px;
        left: 10px;
    }

    .code-panel-bottom {
        right: 10px;
        bottom: 34px;
        max-width: calc(100% - 20px);
    }

    .scan-strip {
        right: 0;
        bottom: 74px;
        width: 100%;
        height: 78px;
    }

    .section-band h2,
    .contact-section h2 {
        font-size: 2.2rem;
    }

    .contact-form,
    .service-card {
        padding: 22px;
    }

    .portfolio-heading {
        gap: 24px;
    }

    .portfolio-art {
        min-height: 330px;
    }

    .portfolio-art img {
        right: -4px;
        bottom: 0;
        height: calc(100% - 22px);
    }

    .portfolio-console {
        top: 16px;
        left: 16px;
        width: 176px;
        gap: 7px;
        padding: 13px;
    }

    .portfolio-console code {
        font-size: 0.72rem;
    }

    .portfolio-art-count {
        left: 16px;
        bottom: 16px;
        min-width: 120px;
        gap: 8px;
        padding: 10px;
    }

    .portfolio-art-count strong {
        font-size: 1.5rem;
    }

    .portfolio-art-count span {
        font-size: 0.66rem;
    }

    .portfolio-art-chip {
        right: 16px;
        bottom: 16px;
        min-height: 38px;
        padding: 9px 12px;
    }

    .project-body {
        min-height: auto;
    }
}

.admin-body,
.login-body,
.install-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(7, 17, 15, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 17, 15, 0.035) 1px, transparent 1px),
        #f6f8f6;
    background-size: 36px 36px;
}

.admin-navbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.admin-navbar .nav-link {
    color: var(--ink);
}

.admin-navbar .brand-lockup,
.admin-navbar .brand-lockup:hover {
    color: var(--ink);
}

.admin-main {
    padding: 34px 0 56px;
}

.admin-kicker {
    color: #167a4c;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-title {
    margin: 4px 0 0;
    font-size: 3rem;
    font-weight: 950;
}

.metric-card,
.admin-filter-panel,
.admin-table-wrap,
.form-section,
.login-panel,
.install-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(7, 17, 15, 0.07);
}

.metric-card {
    padding: 24px;
}

.admin-filter-panel {
    padding: 22px;
}

.form-section {
    padding: 26px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-weight: 850;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2.4rem;
    line-height: 1;
}

.admin-table-wrap {
    overflow: hidden;
}

.admin-list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-list-summary strong {
    color: var(--ink);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.admin-table-wrap .table > :not(caption) > * > * {
    padding: 16px;
}

.admin-thumb {
    display: inline-flex;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--cyan), var(--coral));
    color: #07110f;
    font-weight: 950;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-url {
    max-width: 340px;
}

.admin-pagination {
    margin-top: 24px;
}

.admin-pagination .page-link {
    border-color: var(--line);
    color: var(--ink);
    font-weight: 850;
}

.admin-pagination .page-item.active .page-link {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--ink);
}

.form-section h2 {
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 950;
}

.image-preview {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.login-wrap,
.install-wrap {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-panel,
.install-card {
    width: min(100%, 480px);
    padding: 34px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 26px;
    color: var(--ink);
    font-weight: 950;
}

.login-panel h1,
.install-card h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 950;
}

.login-panel p,
.install-card p {
    color: var(--muted);
}

.install-config {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.install-config div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.install-config dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.install-config dd {
    margin: 4px 0 0;
    font-weight: 850;
}
