:root {
    --ink: #050505;
    --paper: #f4f1e8;
    --muted: #9a9688;
    --line: rgba(255, 212, 0, 0.16);
    --yellow: #ffd400;
    --mint: #ffd400;
    --coral: #ffd400;
    --gold: #ffde59;
    --violet: #c9a227;
    --font: "Ubuntu", system-ui, sans-serif;
    --space: 1.25rem;
    --radius: 1.15rem;
    --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.site::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(70vw 40vw at 0% -10%, rgba(255, 212, 0, 0.14), transparent 60%),
        radial-gradient(50vw 36vw at 100% 0%, rgba(255, 212, 0, 0.08), transparent 55%),
        radial-gradient(40vw 30vw at 80% 100%, rgba(201, 162, 39, 0.1), transparent 55%);
}

.site-shell { position: relative; z-index: 2; }

body.site .container {
    max-width: var(--max);
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: #ffe566; }

h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

.navbar-cal {
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
}

.navbar-cal .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--paper) !important;
    max-width: min(58vw, 16rem);
    margin-right: 1rem;
    white-space: normal;
}

.navbar-cal .navbar-brand img,
.brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border: 1px solid var(--line);
}

.brand-logo-lg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--paper);
}
.brand-tagline {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.15rem;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .brand-tagline { display: none; }
}

.navbar-cal .nav-link {
    color: rgba(243, 239, 230, 0.72) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem !important;
}
.navbar-cal .nav-link:hover { color: var(--yellow) !important; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler-icon { filter: invert(1); }

.btn-mint,
.btn-ghost,
.btn-coral {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.72rem 1.2rem;
    line-height: 1.2;
}

.btn-mint {
    --bs-btn-color: #050505;
    --bs-btn-bg: var(--yellow);
    --bs-btn-border-color: var(--yellow);
    --bs-btn-hover-bg: #ffe566;
    --bs-btn-hover-border-color: #ffe566;
    --bs-btn-hover-color: #050505;
}

.btn-ghost {
    color: var(--paper);
    border: 1px solid var(--line);
    background: transparent;
}
.btn-ghost:hover { background: rgba(255, 212, 0, 0.1); color: var(--yellow); border-color: var(--yellow); }

.btn-coral {
    background: var(--yellow);
    border: 0;
    color: #050505;
}
.btn-coral:hover { background: #ffe566; color: #050505; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--yellow);
}
.kicker::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: currentColor;
}

.hero {
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
}

.hero h1 {
    font-size: clamp(2.15rem, 5.4vw, 4.25rem);
    max-width: 14ch;
    margin: 0;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #c9a227, var(--yellow) 45%, #fff3a8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.08rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 36rem;
    margin: 1.25rem 0 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, auto));
    gap: 1.25rem 2rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    max-width: 36rem;
}
.hero-meta strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero-meta span { color: var(--muted); font-size: 0.8rem; }

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 16rem;
}

.lab-mark {
    width: min(100%, 22rem);
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(255, 212, 0, 0.16));
    animation: float 8s ease-in-out infinite;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 212, 0, 0.2), transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .lab-mark, .hero-visual::before { animation: none; }
}

.marquee {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 0.8rem 0;
}
.marquee-track {
    display: inline-block;
    animation: marquee 32s linear infinite;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.45);
    white-space: nowrap;
}
.marquee-track span { margin: 0 1.1rem; color: var(--yellow); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-follow { padding-top: 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    margin: 0.25rem 0 0;
}

.card-grid,
.folio-grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}
.card-grid { grid-template-columns: 1fr; }
.folio-grid { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .folio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card,
.folio-card,
.post-card,
.product-card,
.course-card,
.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-width: 0;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover,
.folio-card:hover,
.post-card:hover,
.product-card:hover,
.course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 212, 0, 0.42);
    background: rgba(255, 255, 255, 0.045);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.35rem 1.45rem;
    position: relative;
    color: inherit;
}
.service-photo,
.detail-photo,
.page-feature,
.hero-photo {
    width: 100%;
    object-fit: cover;
    background: #14110a;
}
.service-photo {
    aspect-ratio: 16 / 10;
    border-radius: 0.7rem;
    margin: 0 0 1rem;
}
.detail-photo,
.page-feature {
    aspect-ratio: 16 / 8;
    border-radius: 1rem;
    max-height: 22rem;
}
.hero-photo {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    border-radius: 1.25rem;
    object-fit: cover;
}
.service-card .idx {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(243, 239, 230, 0.08);
    line-height: 1;
}
.service-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #050505;
}
.service-card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--paper); }
.service-card p {
    color: var(--muted);
    margin: 0 0 1rem;
    font-size: 0.95rem;
    flex: 1;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.chip {
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--line);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    color: rgba(243, 239, 230, 0.75);
}

.folio-card {
    min-height: 16.5rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: inherit;
}
@media (min-width: 768px) {
    .folio-grid > .folio-card:first-child { grid-column: 1 / -1; min-height: 20rem; }
}

.folio-card .cover {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 25%, rgba(7, 8, 12, 0.92) 100%),
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 40%),
        repeating-linear-gradient(-18deg, rgba(255,255,255,0.035) 0 10px, transparent 10px 20px);
}
.folio-card[data-tone="mint"] .cover { background-color: #1a1608; }
.folio-card[data-tone="coral"] .cover { background-color: #241c06; }
.folio-card[data-tone="violet"] .cover { background-color: #12100a; }
.folio-card .cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.folio-card .body { position: relative; z-index: 1; padding: 1.35rem 1.4rem; width: 100%; }

.folio-detail-row > [class*="col-"] {
    display: flex;
}
.folio-detail-row .folio-card,
.folio-detail-row .panel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 22rem;
}
.folio-detail-row .panel {
    gap: 1.25rem;
}
.folio-card .cat {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--yellow);
    font-weight: 500;
}
.folio-card h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); margin: 0.3rem 0 0.35rem; color: #fff; }
.folio-card p { color: rgba(243, 239, 230, 0.7); margin: 0; font-size: 0.95rem; }

.cta-band {
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 1.4rem;
    background:
        radial-gradient(420px 180px at 92% 0%, rgba(255, 212, 0, 0.28), transparent 60%),
        linear-gradient(135deg, #12110a, #080808);
    border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); max-width: 16ch; margin: 0 0 0.75rem; }

.post-card,
.product-card,
.course-card { display: flex; flex-direction: column; }
.post-card a, .product-card a, .course-card { color: inherit; }
.post-card img,
.product-card img,
.course-card img,
.course-cover {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    background: #14161c;
}
.course-cover {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 212, 0, 0.22), transparent 45%),
        repeating-linear-gradient(-18deg, rgba(255, 212, 0, 0.06) 0 10px, transparent 10px 20px),
        #12100a;
}
.course-cover[data-topic="web-design"] { background-color: #1a1608; }
.course-cover[data-topic="web-development"] { background-color: #14120a; }
.course-cover[data-topic="mobile"] { background-color: #1c1806; }
.course-cover[data-topic="ai"] { background-color: #0e0c08; }
.post-card .card-body,
.product-card .card-body,
.course-card .card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card h3,
.product-card h3,
.course-card h3 {
    font-size: 1.08rem;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: var(--paper);
}
.post-card h3 a,
.product-card h3 a { color: var(--paper); }
.post-meta { color: var(--muted); font-size: 0.82rem; }

.page-hero {
    padding: clamp(2.4rem, 6vw, 4rem) 0 1.6rem;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); margin: 0; max-width: 18ch; }

.measure { max-width: 40rem; }

.content-body { color: rgba(243, 239, 230, 0.9); overflow-wrap: anywhere; }
.content-body > *:first-child { margin-top: 0; }
.content-body img { border-radius: 0.85rem; margin: 1.2rem 0; }
.content-body pre {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #0b0b0b;
}
.content-body pre code {
    background: transparent;
    padding: 0;
    display: block;
    font-size: 0.86rem;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #e8e6dc;
    white-space: pre;
}
.content-body :not(pre) > code {
    background: rgba(255, 212, 0, 0.12);
    color: var(--yellow);
    padding: 0.12em 0.38em;
    border-radius: 0.3rem;
    font-size: 0.88em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.content-body a { text-decoration: underline; text-underline-offset: 3px; }
.content-body h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.content-body ul { padding-left: 1.15rem; margin: 0.4rem 0 1rem; }
.content-body li { margin: 0.25rem 0; }

.form-control,
.form-control:focus {
    background: #101218;
    border: 1px solid var(--line);
    color: var(--paper);
    border-radius: 0.7rem;
    padding: 0.78rem 0.9rem;
    box-shadow: none;
}
.form-control:focus {
    border-color: var(--yellow);
}
.form-label { color: rgba(243, 239, 230, 0.7); font-size: 0.82rem; font-weight: 500; }
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-map {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    min-height: 22rem;
    width: 100%;
    background: #12100a;
}
@media (min-width: 992px) {
    .contact-map { min-height: 100%; }
}
.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.alert-success { background: rgba(255, 212, 0, 0.12); border: 1px solid rgba(255, 212, 0, 0.35); color: var(--yellow); }
.alert-danger { background: rgba(255, 212, 0, 0.08); border: 1px solid rgba(255, 80, 80, 0.35); color: #ffc2b4; }

.pagination { justify-content: center; gap: 0.25rem; margin-top: 2rem; }
.pagination .page-link {
    background: transparent;
    border-color: var(--line);
    color: var(--paper);
    border-radius: 0.55rem;
}
.pagination .page-item.active .page-link {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #050505;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.site-footer .row > [class*="col-"] {
    min-width: 0;
}
.site-footer h6 {
    color: var(--paper);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 0;
}
.site-footer ul {
    padding-left: 0;
    margin-bottom: 0;
}
.site-footer a { color: rgba(243, 239, 230, 0.68); }
.site-footer a:hover { color: var(--yellow); }

.social-links {
    display: grid;
    grid-template-columns: repeat(5, 2.4rem);
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
    max-width: 100%;
}
.social-links li {
    margin: 0;
    padding: 0;
    width: 2.4rem;
    height: 2.4rem;
}
.social-links a {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--paper);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.03);
}
.social-links a:hover {
    color: #050505;
    background: var(--yellow);
    border-color: var(--yellow);
}

.meta-table { display: grid; gap: 0.8rem; }
.meta-table div { border-top: 1px solid var(--line); padding-top: 0.65rem; }
.meta-table small {
    color: var(--muted);
    display: block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
}

.detail-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    color: #050505;
    margin-bottom: 1rem;
}

.panel { padding: 1.35rem; }

.section-lead {
    color: var(--muted);
    margin: 0.4rem 0 0;
    max-width: 36rem;
    font-size: 0.95rem;
}

.course-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #05060a;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.course-player iframe,
.course-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}
.lesson-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    color: var(--paper);
    border: 1px solid transparent;
}
.lesson-list a:hover,
.lesson-list a.is-active {
    background: rgba(255, 212, 0, 0.1);
    border-color: rgba(255, 212, 0, 0.38);
    color: #fff;
}
.lesson-index {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--yellow);
    font-weight: 500;
    padding-top: 0.15rem;
}

@media (max-width: 767.98px) {
    .hero-visual { min-height: 12rem; }
    .lab-mark { width: min(70%, 16rem); }
}

.whatsapp-float {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 40;
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    text-decoration: none;
}
.whatsapp-float:hover {
    color: #fff;
    background: #1ebe5d;
    transform: translateY(-2px);
}
.whatsapp-float i { line-height: 1; }

.yt-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .section#youtube .yt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.panel .yt-grid { grid-template-columns: 1fr; }
.yt-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    min-width: 0;
}
.yt-card:hover {
    border-color: rgba(255, 212, 0, 0.42);
    color: inherit;
}
.yt-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    background: #12100a;
}
.yt-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
}
.yt-card-body p {
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--paper);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--accent);
    color: #050505;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
}
.skip-link:focus {
    top: 0.75rem;
}
.seo-crumbs {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.seo-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.seo-crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: rgba(243, 239, 230, 0.35);
}
.seo-crumbs a { color: var(--muted); }
.seo-crumbs [aria-current="page"] { color: var(--paper); }
