:root {
    --bg: #f3eadf;
    --bg-soft: #fbf6ef;
    --surface: rgba(255, 250, 243, 0.76);
    --surface-strong: rgba(255, 252, 247, 0.96);
    --surface-deep: #232a34;
    --text: #1f2430;
    --muted: #625f59;
    --line: rgba(70, 57, 33, 0.14);
    --line-strong: rgba(70, 57, 33, 0.24);
    --accent: #b48b51;
    --accent-strong: #8b6533;
    --accent-soft: rgba(180, 139, 81, 0.14);
    --shadow-soft: 0 18px 45px rgba(40, 30, 18, 0.08);
    --shadow-strong: 0 28px 80px rgba(35, 26, 16, 0.16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: min(1180px, calc(100% - 32px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 32%),
        radial-gradient(circle at top right, rgba(180, 139, 81, 0.18), transparent 26%),
        linear-gradient(135deg, #f4ecdf 0%, #efe3d5 48%, #f7f1e9 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    color: #fff;
    background: var(--surface-deep);
}

.page-shell {
    position: relative;
    overflow: clip;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.page-shell::before {
    top: 120px;
    right: -140px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(180, 139, 81, 0.22), transparent 70%);
}

.page-shell::after {
    top: 50%;
    left: -180px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(46, 61, 78, 0.12), transparent 68%);
}

.noise-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("noise.png");
    background-repeat: repeat;
    background-size: 240px 240px;
    mix-blend-mode: multiply;
}

.site-header,
main,
.site-footer,
.whatsapp-floating {
    position: relative;
    z-index: 1;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 22px;
    border: 1px solid rgba(74, 61, 40, 0.12);
    border-radius: 26px;
    background: rgba(250, 244, 235, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(50, 38, 20, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .header-inner {
    border-color: rgba(74, 61, 40, 0.2);
    box-shadow: 0 18px 45px rgba(50, 38, 20, 0.12);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-mark {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #1f2733 0%, #384253 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(31, 39, 51, 0.28);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.logo-stack {
    display: grid;
    gap: 2px;
}

.logo-kicker {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.logo-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(74, 61, 40, 0.14);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.72);
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--surface-deep);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
    transform: translateY(7px);
}

.main-nav.is-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

.main-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.main-nav.is-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(31, 36, 48, 0.78);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--surface-deep);
    transform: translateY(-1px);
}

.hero-section {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(74, 61, 40, 0.12);
    background: rgba(255, 251, 246, 0.62);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2 {
    margin: 16px 0 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.93;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-lead {
    max-width: 40rem;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #1d1a15;
    background: linear-gradient(135deg, #d4b078 0%, #b88748 100%);
    box-shadow: 0 18px 36px rgba(180, 139, 81, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 22px 42px rgba(180, 139, 81, 0.35);
}

.btn-secondary {
    color: var(--surface-deep);
    border-color: rgba(74, 61, 40, 0.14);
    background: rgba(255, 252, 247, 0.74);
}

.btn-secondary:hover {
    border-color: rgba(74, 61, 40, 0.22);
    box-shadow: var(--shadow-soft);
}

.btn-full {
    width: 100%;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 32px 0 0;
}

.mini-card,
.value-card,
.panel,
.work-card,
.contact-item {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.mini-card {
    display: grid;
    gap: 8px;
    padding: 18px 18px 20px;
    border-radius: 22px;
}

.mini-card strong {
    font-size: 0.98rem;
}

.mini-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hero-stage {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 32px 0;
}

.hero-backdrop {
    position: absolute;
    inset: 70px 28px 50px 70px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(160deg, rgba(31, 39, 51, 0.08), rgba(180, 139, 81, 0.18)),
        rgba(255, 250, 242, 0.74);
    border: 1px solid rgba(74, 61, 40, 0.1);
}

.hero-portrait {
    position: relative;
    z-index: 2;
    width: min(100%, 470px);
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(74, 61, 40, 0.12);
    border-radius: 34px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-strong);
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(21, 25, 33, 0.18));
}

.hero-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.hero-floating {
    position: absolute;
    z-index: 3;
    max-width: 250px;
    padding: 18px 20px;
    border: 1px solid rgba(74, 61, 40, 0.14);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.9);
    box-shadow: 0 20px 40px rgba(30, 25, 18, 0.12);
    backdrop-filter: blur(14px);
}

.hero-floating-top {
    top: 28px;
    left: 0;
    animation: float-card 5.5s ease-in-out infinite;
}

.hero-floating-bottom {
    right: 0;
    bottom: 22px;
    animation: float-card 6.4s ease-in-out infinite reverse;
}

.floating-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-floating strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.value-card {
    padding: 22px 20px 24px;
    border-radius: 26px;
}

.value-card span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.value-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.value-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.section-heading {
    max-width: 46rem;
}

.section-heading.centered {
    margin: 0 auto;
    text-align: center;
}

.section-heading h2,
.contact-panel h2 {
    font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.section-heading p,
.contact-panel p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
    gap: 18px;
    margin-top: 28px;
    align-items: start;
}

.panel {
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.about-copy p:first-child {
    margin-top: 0;
}

.about-copy p + p {
    margin-top: 18px;
}

.principles {
    display: grid;
    gap: 16px;
}

.principle-card {
    padding-top: 22px;
}

.principle-card small {
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.principle-card h3 {
    margin: 12px 0 0;
    font-size: 1.18rem;
}

.principle-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.section-alt {
    position: relative;
}

.section-alt::before {
    content: "";
    position: absolute;
    inset: 40px 0;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(255, 249, 241, 0.22));
    border-top: 1px solid rgba(74, 61, 40, 0.08);
    border-bottom: 1px solid rgba(74, 61, 40, 0.08);
}

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

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.work-card {
    overflow: hidden;
    border-radius: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 52px rgba(30, 25, 18, 0.15);
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
}

.work-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(15, 20, 28, 0.18) 100%);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 20px 20px 24px;
}

.work-number {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.work-content h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.work-content p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.resume-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    margin-top: 28px;
    align-items: start;
}

.resume-story {
    display: grid;
    gap: 22px;
}

.resume-story p {
    margin: 0;
    color: var(--text);
}

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

.skill-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(74, 61, 40, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--surface-deep);
    font-size: 0.88rem;
    font-weight: 700;
}

.timeline {
    position: relative;
    display: grid;
    gap: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 82px;
    width: 1px;
    background: linear-gradient(180deg, rgba(180, 139, 81, 0.38), rgba(35, 42, 52, 0.12));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 77px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg-soft);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(180, 139, 81, 0.12);
}

.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(31, 39, 51, 0.92);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin: 0;
    font-size: 1.08rem;
}

.timeline-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.contact-panel,
.contact-cta {
    height: 100%;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.contact-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
}

.contact-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(31, 39, 51, 0.95), rgba(56, 66, 83, 0.95));
    color: #fff;
    font-size: 1.1rem;
}

.contact-item h3,
.contact-cta h3 {
    margin: 0;
    font-size: 1.12rem;
}

.contact-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.contact-cta {
    display: grid;
    align-content: start;
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(180, 139, 81, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(248, 241, 232, 0.9));
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(180, 139, 81, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-cta p {
    margin: 0;
    color: var(--muted);
}

.micro-note {
    color: var(--surface-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.whatsapp-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #1fb55d 0%, #0f9146 100%);
    box-shadow: 0 22px 40px rgba(15, 145, 70, 0.32);
    font-size: 1.7rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 44px rgba(15, 145, 70, 0.4);
}

.site-footer {
    padding: 0 0 26px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(74, 61, 40, 0.12);
    border-radius: 24px;
    background: rgba(250, 244, 235, 0.72);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner p {
    margin: 0;
}

.back-top {
    font-weight: 800;
    color: var(--surface-deep);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease var(--reveal-delay, 0ms),
        transform 0.7s ease var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1100px) {
    .hero-layout,
    .about-grid,
    .resume-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: auto;
        padding: 44px 0 12px;
    }

    .hero-backdrop {
        inset: 60px 24px 40px 48px;
    }

    .hero-portrait {
        width: min(100%, 520px);
    }

    .value-grid,
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        padding-top: 12px;
    }

    .header-inner {
        padding: 14px 16px;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 1.35rem;
    }

    .logo-text {
        font-size: 1.45rem;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: min(320px, calc(100vw - 32px));
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid rgba(74, 61, 40, 0.14);
        border-radius: 22px;
        background: rgba(255, 251, 246, 0.96);
        box-shadow: 0 20px 45px rgba(35, 27, 18, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .main-nav.is-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        justify-content: flex-start;
        min-height: 48px;
        padding: 0 14px;
    }

    .hero-copy h1 {
        max-width: 12ch;
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-points,
    .value-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-floating {
        max-width: 220px;
        padding: 16px 18px;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 42px;
    }

    .timeline-item::before {
        left: 18px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .header-inner,
    .footer-inner,
    .panel,
    .work-content,
    .value-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-actions,
    .skill-pills {
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .hero-stage {
        padding-top: 56px;
    }

    .hero-backdrop {
        inset: 42px 12px 32px 26px;
    }

    .hero-floating {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-width: none;
        margin-top: 14px;
        animation: none;
    }

    .hero-stage {
        display: grid;
        justify-items: stretch;
    }

    .hero-portrait {
        width: 100%;
    }

    .contact-item {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
