:root {
    --bg: #fff7fa;
    --surface: #ffffff;
    --surface-strong: #4b1735;
    --text: #2a1722;
    --muted: #7b6170;
    --muted-strong: #5a3a4a;
    --line: #efd8e4;
    --accent: #c0477a;
    --accent-dark: #8f2458;
    --accent-soft: #fde8f1;
    --warning: #d8a24a;
    --shadow: 0 24px 70px rgba(143, 36, 88, 0.16);
    --radius: 8px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 209, 226, 0.72), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(248, 220, 178, 0.45), transparent 25%),
        linear-gradient(135deg, rgba(192, 71, 122, 0.08), transparent 34%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

body::before {
    background-image:
        linear-gradient(rgba(192, 71, 122, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 71, 122, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    inset: 0;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.58), transparent 66%);
}

body::after {
    background:
        radial-gradient(circle, rgba(192, 71, 122, 0.16) 0 2px, transparent 3px) 0 0 / 78px 78px,
        linear-gradient(90deg, transparent 0 34px, rgba(143, 36, 88, 0.08) 34px 36px, transparent 36px) 0 0 / 156px 156px;
    bottom: 0;
    height: 55vh;
    left: 0;
    opacity: 0.55;
    right: 0;
}

a {
    color: inherit;
}

.bg-ornaments {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.ornament {
    border: 1px solid rgba(192, 71, 122, 0.18);
    position: absolute;
}

.ornament-circuit {
    border-left: 0;
    border-radius: 0 8px 8px 0;
    height: 220px;
    left: -34px;
    top: 26%;
    width: 220px;
}

.ornament-circuit::before,
.ornament-circuit::after,
.ornament-grid::before,
.ornament-node::before,
.ornament-node::after {
    content: "";
    position: absolute;
}

.ornament-circuit::before {
    background: rgba(192, 71, 122, 0.18);
    height: 1px;
    left: 42px;
    top: 70px;
    width: 150px;
}

.ornament-circuit::after {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 74px 55px 0 rgba(216, 162, 74, 0.66), 146px 1px 0 rgba(192, 71, 122, 0.38);
    height: 8px;
    left: 86px;
    top: 66px;
    width: 8px;
}

.ornament-grid {
    background:
        linear-gradient(rgba(143, 36, 88, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 36, 88, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    border-radius: 8px;
    height: 176px;
    right: 5%;
    top: 18%;
    transform: rotate(8deg);
    width: 176px;
}

.ornament-grid::before {
    border: 1px solid rgba(216, 162, 74, 0.34);
    border-radius: 999px;
    height: 58px;
    left: 58px;
    top: 58px;
    width: 58px;
}

.ornament-node {
    border-radius: 999px;
    bottom: 12%;
    height: 120px;
    right: 14%;
    width: 120px;
}

.ornament-node::before {
    background: rgba(192, 71, 122, 0.18);
    height: 1px;
    left: -90px;
    top: 58px;
    width: 90px;
}

.ornament-node::after {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: -96px 0 0 rgba(216, 162, 74, 0.62);
    height: 10px;
    left: 55px;
    top: 55px;
    width: 10px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(239, 216, 228, 0.88);
    background: rgba(255, 247, 250, 0.86);
    backdrop-filter: blur(18px);
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 18px 24px;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--surface-strong);
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

main {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 24px;
}

.hero-section {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 72px);
    padding: 70px 0 54px;
    position: relative;
}

.hero-section::before {
    border: 1px solid rgba(192, 71, 122, 0.16);
    border-radius: 999px;
    content: "";
    height: 420px;
    left: -210px;
    pointer-events: none;
    position: absolute;
    top: 18%;
    width: 420px;
    z-index: -1;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    width: 100%;
}

.hero-copy,
.hero-panel,
.project-content,
.timeline-item > div,
.contact-content {
    min-width: 0;
}

.eyebrow {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.contact-content h2 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    max-width: 880px;
    overflow-wrap: normal;
}

.hero-description {
    color: var(--muted-strong);
    font-size: 1.08rem;
    margin-top: 24px;
    max-width: 760px;
}

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

.btn {
    align-items: center;
    border-radius: var(--radius);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    color: var(--text);
}

.hero-panel {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.10), transparent 36%),
        var(--surface-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #ffffff;
    overflow: hidden;
}

.portrait-frame {
    background: #f6d8e5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    height: 380px;
    overflow: hidden;
    position: relative;
}

.portrait-frame img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center 74%;
    width: 100%;
}

.portrait-frame::after {
    background: linear-gradient(180deg, transparent 52%, rgba(75, 23, 53, 0.72));
    content: "";
    inset: 0;
    position: absolute;
}

.portrait-frame figcaption {
    bottom: 18px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    left: 20px;
    position: absolute;
    right: 20px;
    z-index: 1;
}

.panel-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    font-size: 0.82rem;
    gap: 10px;
    padding: 18px 20px;
}

.status-dot {
    background: #ff9fc6;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(255, 159, 198, 0.16);
    display: inline-block;
    height: 9px;
    width: 9px;
}

.profile-card {
    padding: 28px 24px 22px;
}

.profile-label {
    color: var(--warning);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.profile-card h2 {
    font-size: 1.6rem;
    line-height: 1.16;
    margin-bottom: 14px;
}

.profile-card p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

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

.metrics-grid div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
}

.metrics-grid div:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics-grid strong,
.metrics-grid span {
    display: block;
}

.metrics-grid strong {
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

.metrics-grid span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    margin-top: 8px;
}

.section {
    padding: 92px 0;
}

.section-tinted {
    background: rgba(255, 241, 247, 0.66);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
    padding-right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.section-heading {
    display: grid;
    gap: 24px;
    grid-template-columns: 230px minmax(0, 1fr);
    margin-bottom: 44px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    max-width: 880px;
}

.about-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-grid p,
.project-content p,
.timeline-item p,
.contact-content p {
    color: var(--muted-strong);
}

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

.strengths article,
.expertise-card,
.project-card,
.timeline-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.strengths article {
    padding: 24px;
}

.strengths span,
.project-number {
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.strengths h3,
.expertise-card h3,
.project-content h3,
.timeline-item h3 {
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 10px 0;
}

.strengths p {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.expertise-card {
    background: var(--surface);
    min-height: 100%;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.expertise-card::after,
.project-card::after {
    background:
        linear-gradient(90deg, rgba(192, 71, 122, 0.10) 1px, transparent 1px),
        linear-gradient(rgba(192, 71, 122, 0.10) 1px, transparent 1px);
    background-size: 18px 18px;
    content: "";
    inset: auto -30px -42px auto;
    height: 118px;
    opacity: 0.38;
    pointer-events: none;
    position: absolute;
    transform: rotate(-8deg);
    width: 160px;
}

.card-icon,
.project-icon {
    align-items: center;
    background: linear-gradient(145deg, #fff6fa, #f8d6e6);
    border: 1px solid rgba(192, 71, 122, 0.20);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(143, 36, 88, 0.10);
    color: var(--accent-dark);
    display: inline-flex;
    justify-content: center;
}

.card-icon {
    height: 54px;
    margin-bottom: 18px;
    width: 54px;
}

.project-icon {
    float: right;
    height: 48px;
    margin-left: 18px;
    width: 48px;
}

.card-icon svg,
.project-icon svg {
    height: 28px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 28px;
}

.card-icon rect,
.card-icon path,
.card-icon circle,
.project-icon rect,
.project-icon path,
.project-icon circle {
    fill: none;
}

.expertise-card ul {
    color: var(--muted-strong);
    display: grid;
    gap: 12px;
    list-style: none;
    margin-top: 18px;
}

.expertise-card li {
    padding-left: 20px;
    position: relative;
}

.expertise-card li::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 7px;
}

.projects-list {
    display: grid;
    gap: 18px;
}

.project-card {
    display: grid;
    gap: 28px;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.expertise-card:hover,
.project-card:hover {
    border-color: rgba(192, 71, 122, 0.34);
    box-shadow: 0 18px 44px rgba(143, 36, 88, 0.10);
    transform: translateY(-2px);
}

.project-number {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 6px;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.project-type,
.timeline-date,
.company {
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.55rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-row span {
    background: #fff0f6;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 11px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    background: var(--surface);
    display: grid;
    gap: 34px;
    grid-template-columns: 320px minmax(0, 1fr);
    padding: 32px;
}

.company {
    margin-bottom: 8px;
}

.company a {
    text-decoration: none;
}

.company a:hover {
    text-decoration: underline;
}

.contact-section {
    padding-bottom: 110px;
}

.contact-content {
    background:
        linear-gradient(135deg, rgba(255, 199, 222, 0.18), transparent 38%),
        var(--surface-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #ffffff;
    padding: clamp(32px, 6vw, 64px);
}

.contact-content .eyebrow {
    color: var(--warning);
}

.contact-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    max-width: 920px;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 18px;
    max-width: 680px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.contact-links a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    color: #ffffff;
    font-weight: 800;
    min-height: 46px;
    padding: 10px 16px;
    text-decoration: none;
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 26px 24px 36px;
}

.site-footer a {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .ornament-grid,
    .ornament-node,
    .hero-section::before {
        display: none;
    }

    .ornament-circuit {
        opacity: 0.38;
        top: 34%;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding-top: 56px;
    }

    .hero-grid,
    .section-heading,
    .about-grid,
    .strengths,
    .expertise-grid,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 8px;
    }
}

@media (max-width: 620px) {
    main,
    .nav-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-copy h1 {
        font-size: 2.05rem;
        line-height: 1.14;
        max-width: 100%;
    }

    .hero-grid {
        gap: 28px;
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-copy,
    .hero-actions,
    .hero-panel {
        max-width: 354px;
    }

    .portrait-frame {
        height: 330px;
    }

    .section {
        padding: 68px 0;
    }

    .section-tinted {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .project-icon {
        float: none;
        margin: 0 0 14px;
    }

    .hero-actions,
    .contact-links,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .contact-links a {
        width: 100%;
    }
}
