@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --cream: #F6F1E6;
    --ink: #18160F;
    --olive: #5C6B3C;
    --olive-dark: #3A431F;
    --stat-bg: #EFE6D0;
    --burnt: #B5502E;
    --mustard: #D9A23B;
    --muted: #7A7364;
    --line: #E1D8C1;
    --radius: 16px;
    --fraunces: 'Fraunces', serif;
    --jakarta: 'Plus Jakarta Sans', sans-serif;
    --jetbrains: 'JetBrains Mono', monospace;
    --bg: var(--cream);
    --text: var(--ink);
    --surface: var(--stat-bg);
    --panel: var(--ink);
    --panel-text: var(--cream);
}

html[data-theme="dark"] {
    --bg: #141309;
    --text: #F2EEDD;
    --surface: #211E12;
    --panel: #292614;
    --panel-text: #F2EEDD;
    --line: #332F1E;
    --muted: #A39C86;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--jakarta);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 44px;
}

.serif {
    font-family: var(--fraunces);
}

.mono {
    font-family: var(--jetbrains);
}

.eyebrow-cap {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 24px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
}

.btn-ink {
    background: var(--text);
    color: var(--bg);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-ink:hover {
    color: var(--cream);
    background-color: var(--olive-dark);
}

.btn-outline {
    border: 1.5px solid var(--text);
    background: none;
    color: var(--text);
}

.btn-outline.on-dark {
    border-color: var(--cream);
    color: var(--cream);
}




/* NAVBAR */
.topnav {
    border-bottom: 1px solid var(--line);
}

.topnav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.topnav .links {
    list-style: none;
    display: flex;
    gap: 26px;
}

.topnav .links a {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.topnav .links a:hover {
    color: var(--olive);
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    margin-left: 22px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--olive);
    color: var(--olive);
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
}

.theme-toggle .moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .moon {
    display: block;
}



.lang-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    background: none;
    cursor: pointer;
    margin-left: 12px;
    font-family: var(--jakarta);
}

.lang-toggle:hover {
    border-color: var(--olive);
}

.lang-toggle .flag {
    display: flex;
    align-items: center;
    width: 19px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-toggle .flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-toggle .code {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    text-transform: uppercase;
}



/*HERO*/
.hero {
    padding: 56px 0 0;
    position: relative;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.hero-top .eyebrow-cap {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    flex: 1;
}

.hero-stage {
    position: relative;
    min-height: 520px;
}

.headline {
    font-family: var(--fraunces);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(80px, 14vw, 190px);
    line-height: 0.82;
    margin: 0;
    position: relative;
    z-index: 2;
}

.headline .h-solid {
    color: var(--text);
    display: block;
}

.headline .h-outline {
    position: absolute;
    right: 2px;
    top: 80%;
    color: transparent;
    -webkit-text-stroke: 0.75px var(--text);
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

.hero-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(circle at 60% 25%, #7a5b3f, #211a10 78%);
}

.hero-photo .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(246, 241, 230, 0.35);
}

.hero-photo .placeholder svg {
    width: 110px;
    height: 110px;
}

.location-tag {
    position: absolute;
    right: 0;
    top: 492px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: right;
}

.location-tag svg {
    width: 14px;
    height: 14px;
    color: var(--burnt);
}

.hero-copy {
    max-width: 520px;
    margin-top: 26px;
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.3;
    margin: 0 0 6px;
}

.hero-copy h2 em {
    font-style: italic;
    color: var(--olive);
}

.hero-copy .rule {
    width: 40px;
    height: 2px;
    background: var(--text);
    margin: 16px 0;
}

.hero-copy p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 400px;
    margin: 0 0 26px;
}

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



/*STATS STRIP*/
.stat-strip {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px 34px;
    display: flex;
    align-items: center;
    margin: 110px 0 90px;
}

.stat-strip .item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.stat-strip .ico {
    width: 34px;
    height: 34px;
    color: var(--text);
    flex: none;
}

.stat-strip .num {
    font-family: var(--fraunces);
    font-weight: 700;
    font-size: 20px;
}

.stat-strip .lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-strip .sep {
    width: 1px;
    height: 36px;
    background: var(--line);
    margin: 0 20px;
}







/*ABOUT*/
.about {
    padding-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-grid h3 {
    font-family: var(--fraunces);
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 34px);
    margin: 10px 0 16px;
    line-height: 1.2;
}

.about-grid p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 420px;
}

.skill-group {
    margin-bottom: 26px;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--olive);
    margin: 0 0 14px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chips span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.skill-chips span:hover {
    border-color: var(--olive);
    color: var(--olive);
}




/*WORK*/
.works-services {
    padding-bottom: 100px;
}

.ws-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 26px;
}

.section-head a {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-thumb {
    height: 190px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    transition: box-shadow 0.2s ease;
}

.work-thumb .num {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--jetbrains);
    font-size: 11px;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 5px;
}

.work-thumb.t1 {
    background-image: url("media/portfolio1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.work-thumb.t2 {
    background: url("media/montra1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.work-thumb.t3 {
    background: url("media/graphPage.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.work-thumb.t4 {
    background: url("media/casacais1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.work-thumb .view-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: var(--jetbrains);
    font-size: 10.5px;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.work-card:hover {
    transform: translateY(-3px);
}

.work-card:hover .work-thumb {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.work-card:hover .view-hint {
    opacity: 1;
    transform: translateY(0);
}

.work-card h3 {
    font-family: var(--fraunces);
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.work-card p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.svc-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--olive);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.svc-ico svg {
    width: 16px;
    height: 16px;
}

.services-list h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.services-list p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}

.and-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}




/*PROCESS*/
.process {
    padding-bottom: 100px;
}

.process-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: start;
}

.proc-step {
    position: relative;
}

.proc-step .idx {
    font-family: var(--fraunces);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 10px;
}

.proc-step h5 {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}

.proc-step p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.proc-arrow {
    position: absolute;
    top: 12px;
    right: -24px;
    color: var(--muted);
    font-size: 16px;
}







/*FORM*/
.contact {
    padding-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-copy h3 {
    font-family: var(--fraunces);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 38px);
    margin: 10px 0 16px;
}

.contact-copy p {
    color: var(--muted);
    max-width: 340px;
    margin-bottom: 22px;
    font-size: 14.5px;
}

.contact-copy .email {
    font-family: var(--fraunces);
    font-style: italic;
    font-size: 20px;
    border-bottom: 2px solid var(--olive);
    padding-bottom: 3px;
    display: inline-block;
}

.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    font-family: var(--jakarta);
    font-size: 13.5px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--olive);
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.submit-btn {
    width: 100%;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background-color 0.35s ease;
}

.submit-btn:hover {
    background-color: var(--olive-dark);
}

.form-note {
    color: var(--muted);
    font-size: 11px;
    margin-top: 10px;
}

.success-box {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.success-box.show {
    display: block;
}

.success-box .check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--olive);
    color: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}





/*BANNER*/
.cta-banner {
    background: var(--olive-dark);
    border-radius: var(--radius);
    color: var(--cream);
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 44px 100px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-left svg {
    width: 26px;
    height: 26px;
    color: var(--mustard);
    flex: none;
}

.cta-banner h4 {
    font-family: var(--fraunces);
    font-weight: 500;
    font-size: 20px;
    margin: 0;
}

.cta-banner h4 em {
    font-style: italic;
    color: var(--mustard);
}

.cta-mid {
    font-size: 12.5px;
    color: #C9CBB5;
    max-width: 820px;
}



/*FOOTER*/
footer {
    padding: 0 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fraunces);
    font-weight: 700;
    font-size: 13px;
}

.footer-brand .name {
    font-size: 13px;
    font-weight: 700;
}

.footer-brand .role {
    font-size: 11px;
    color: var(--muted);
}

.footer-contact {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.footer-social a:hover {
    background-color: var(--olive-dark);
    border-color: var(--olive-dark);
}

html[data-theme="light"] .footer-social a:hover {
    color: var(--cream);
}

.footer-social svg {
    width: 14px;
    height: 14px;
}

.zaask-badge {
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.zaask-badge img {
    display: block;
    max-width: 110px;
    height: auto;
}

.copyright-line {
    text-align: center;
    font-family: var(--jetbrains);
    font-size: 11px;
    color: var(--muted);
    margin-top: 20px;
}

.copyright-line kbd {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 7px;
    color: var(--ink);
}






/* ===== PROJECT MODAL ===== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.project-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 9, 5, 0.72);
    backdrop-filter: blur(2px);
}

.modal-box {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    border-color: var(--olive);
    color: var(--olive);
}

.modal-gallery {
    position: relative;
    height: 340px;
    background: var(--ink);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    transition: background 0.2s ease;
}

.gallery-nav.prev {
    left: 14px;
}

.gallery-nav.next {
    right: 14px;
}

.gallery-nav:hover {
    background: #fff;
}

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.gallery-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-dots span.active {
    background: #fff;
}

.modal-info {
    padding: 30px 34px;
}

.modal-info h3 {
    font-family: var(--fraunces);
    font-size: 24px;
    margin: 0 0 10px;
}

.modal-info .modal-desc {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 20px;
}

.modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tools span {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
}

.modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.modal-open {
    overflow: hidden;
}





@media (max-width:900px) {
    .topnav .links a {
        display: none;
    }

    .theme-toggle {
        margin-left: auto;
    }

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

    .hero-photo {
        position: static;
        width: 100%;
        height: 260px;
        margin-top: 24px;
    }

    .headline {
        font-size: clamp(48px, 15vw, 80px);
    }

    .headline .h-outline {
        position: static;
        display: block;
        font-size: 0.5em;
        margin-top: 6px;
        text-align: right;
        -webkit-text-stroke: 0.6px var(--text);
    }

    .location-tag {
        display: none;
    }

    .hero-copy {
        margin-top: 22px;
    }

    .stat-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stat-strip .sep {
        display: none;
    }

    .about-grid,
    .ws-grid,
    .contact-grid,
    .testi-grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .process-row {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .proc-arrow {
        display: none;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 20px 40px;
    }

    .modal-gallery {
        height: 220px;
    }

    .modal-info {
        padding: 22px;
    }
}

@media (max-width:480px) {
    .wrap {
        padding: 0 24px;
    }

    .hero-photo {
        height: 200px;
    }

    .cta-banner {
        padding: 26px;
    }
}