:root {
    color-scheme: dark;
    --bg-default: #0d1117;
    --bg-subtle: #161b22;
    --bg-muted: #21262d;
    --bg-elevated: #1c2128;
    --border-default: #30363d;
    --border-muted: #21262d;
    --text-default: #e6edf3;
    --text-muted: #8b949e;
    --text-subtle: #6e7681;
    --accent: #58a6ff;
    --accent-strong: #1f6feb;
    --accent-soft: rgba(56, 139, 253, 0.15);
    --success: #3fb950;
    --success-strong: #238636;
    --success-soft: rgba(46, 160, 67, 0.16);
    --danger: #f85149;
    --danger-soft: rgba(248, 81, 73, 0.14);
    --shadow-large: 0 28px 80px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.18);
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 18px;
    --radius-xl: 26px;
    --container: 1180px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 5%, rgba(56, 139, 253, 0.10), transparent 26rem),
        radial-gradient(circle at 92% 28%, rgba(188, 140, 255, 0.07), transparent 30rem),
        var(--bg-default);
    color: var(--text-default);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(48, 54, 61, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 54, 61, 0.13) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    content: "";
    pointer-events: none;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    pointer-events: none;
}

::selection {
    background: rgba(56, 139, 253, 0.35);
    color: #ffffff;
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
figure,
blockquote {
    margin-top: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 14px;
    transform: translateY(-150%);
    border: 1px solid var(--accent);
    border-radius: var(--radius-small);
    background: var(--bg-elevated);
    color: var(--text-default);
    font-weight: 700;

&:focus {
    transform: translateY(0);
}
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

.section-muted {
    border-block: 1px solid rgba(48, 54, 61, 0.75);
    background: rgba(22, 27, 34, 0.58);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 52px;

&.centered {
    margin-inline: auto;
    text-align: center;
}
}

.section-heading h2,
.disfra-header h2,
.contact-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.disfra-header > div > p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

&::before {
    width: 24px;
    height: 1px;
    background: var(--accent);
    content: "";
}
}

.lead {
    color: var(--text-default);
    font-size: clamp(1.16rem, 2vw, 1.42rem);
    line-height: 1.55;
}

.profilContainer {
    align-items: center !important;
}

#portrait {
    border-radius: 0.5rem;
    box-shadow: 1px 1px 1px 1px #333;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 650;
    line-height: 1;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;

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

&:active {
    transform: translateY(0);
}
}

.button-primary {
    border-color: rgba(46, 160, 67, 0.9);
    background: var(--success-strong);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(35, 134, 54, 0.22), inset 0 1px rgba(255, 255, 255, 0.12);

&:hover {
    background: #2ea043;
    box-shadow: 0 12px 30px rgba(35, 134, 54, 0.3), inset 0 1px rgba(255, 255, 255, 0.14);
}
}

.button-secondary {
    border-color: var(--border-default);
    background: rgba(33, 38, 45, 0.68);
    color: var(--text-default);

&:hover {
    border-color: var(--text-subtle);
    background: var(--bg-muted);
}
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;

&.is-scrolled {
    border-color: rgba(48, 54, 61, 0.85);
    background: rgba(13, 17, 23, 0.84);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: linear-gradient(145deg, var(--bg-muted), var(--bg-subtle));
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: -0.03em;

& span {
    color: var(--text-muted);
}
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;

& a {
    padding: 9px 11px;
    border-radius: var(--radius-small);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 150ms ease, background-color 150ms ease;
}

& a:hover,
& a.is-active {
    background: rgba(33, 38, 45, 0.72);
    color: var(--text-default);
}

& .nav-contact {
    margin-left: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-muted);
    color: var(--text-default);
}
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-small);
    background: var(--bg-subtle);
    cursor: pointer;

& span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--text-default);
    transition: transform 180ms ease, opacity 180ms ease;
}
}

.hero {
    min-height: 100svh;
    padding-top: 150px;
    padding-bottom: 70px;

&::after {
    position: absolute;
    right: -180px;
    bottom: 5%;
    z-index: -1;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(88, 166, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(88, 166, 255, 0.02), 0 0 0 160px rgba(88, 166, 255, 0.015);
    content: "";
}
}

.hero-grid {
    /* display: grid; */
    min-height: 610px;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    align-items: center;
    gap: clamp(54px, 8vw, 110px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 6px 10px;
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 999px;
    background: var(--success-soft);
    color: #7ee787;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.12);
}

.hero h1 {
    margin-bottom: 25px;
    font-size: clamp(3rem, 6vw, 5.35rem);
    line-height: 1.1;
}

.hero-intro {
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    line-height: 1.65;
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(60px, 9vw, 130px);

& .section-heading {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
}
}

.profile-content > p {
    color: var(--text-muted);
}

.profile-content strong {
    color: var(--text-default);
}

.profile-principles {
    display: grid;
    margin-top: 42px;
    gap: 1px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-large);
    background: var(--border-default);
    overflow: hidden;

& article {
    position: relative;
    padding: 26px 28px 25px 72px;
    background: var(--bg-subtle);
}

& article > span {
    position: absolute;
    top: 28px;
    left: 25px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

& h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

& p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}
}

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

.skill-card {
    min-height: 310px;
    padding: 30px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-large);
    background: linear-gradient(145deg, rgba(33, 38, 45, 0.55), rgba(22, 27, 34, 0.78));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;

&:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: var(--shadow-card);
}
}

.skill-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.skill-card h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.skill-number {
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.skill-card > p {
    min-height: 80px;
    margin-bottom: 27px;
    color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li,
.disfra-stack span {
    padding: 5px 9px;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.55);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.disfra-section {
    overflow: hidden;

&::before {
    position: absolute;
    top: 20%;
    left: 50%;
    z-index: -1;
    width: 760px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.12), transparent 70%);
    filter: blur(20px);
    content: "";
}
}

.disfra-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 166, 255, 0.28);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(22, 27, 34, 0.94), rgba(13, 17, 23, 0.96)),
        var(--bg-default);
    box-shadow: var(--shadow-large), inset 0 1px rgba(255, 255, 255, 0.04);

&::before {
    position: absolute;
    top: -140px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(31, 111, 235, 0.15);
    filter: blur(75px);
    content: "";
}
}

.disfra-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 56px 46px;
    border-bottom: 1px solid var(--border-default);

& > div:first-child {
    max-width: 760px;
}
}

.mission-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 999px;
    background: var(--success-soft);
    color: #7ee787;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;

& span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}
}

.disfra-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
}

.disfra-summary,
.disfra-details {
    padding: 46px 56px;
}

.disfra-details {
    border-left: 1px solid var(--border-default);
}

.summary-label {
    margin-bottom: 18px;
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-large {
    margin-bottom: 30px;
    color: var(--text-default);
    font-size: 1.35rem;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.disfra-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-list {
    display: grid;
    gap: 17px;

& li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 11px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

& li span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 800;
}
}

.projects-heading {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;

& > p {
    max-width: 430px;
    margin-bottom: 8px;
    color: var(--text-muted);
}
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-button {
    padding: 8px 13px;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 600;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;

&:hover,
&.is-active {
    border-color: rgba(88, 166, 255, 0.42);
    background: var(--accent-soft);
    color: #79c0ff;
}
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-large);
    background: var(--bg-subtle);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;

&:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 166, 255, 0.35);
    box-shadow: var(--shadow-card);
}

&[hidden] {
    display: none;
}

&.is-placeholder {
    border-style: dashed;
}
}

.project-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 19 / 12;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-default);

& img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 250ms ease;
}
}

.project-card:hover .project-image img {
    transform: scale(1.025);
}

.project-card.is-placeholder .project-image img {
    filter: grayscale(0.4) saturate(0.7);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.82);
    color: var(--text-default);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 27px 28px 25px;
}

.project-category {
    margin-bottom: 8px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 11px;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.project-content h3 a:hover {
    color: var(--accent);
}

.project-content > p {
    min-height: 78px;
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: 0.91rem;
}

.project-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.tag-list.compact {
    gap: 6px;
}

.tag-list.compact li {
    padding: 4px 8px;
    font-size: 0.64rem;
}

.project-link {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-muted);
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;

&:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
}

.process-section {
    padding-top: 78px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--border-default);
}

.process-step {
    position: relative;
    min-height: 250px;
    padding: 35px 29px;

& + .process-step {
    border-left: 1px solid var(--border-default);
}

&::after {
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transition: width 220ms ease;
}

&:hover::after {
    width: 100%;
}
}

.process-number {
    display: block;
    margin-bottom: 46px;
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.process-step h3 {
    margin-bottom: 11px;
    font-size: 1.05rem;
}

.process-step p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.87rem;
}

.testimonials-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(3, 1fr); */
    /* grid-template-columns: repeat(2, 1fr);
    gap: 18px; */
}

.testimonial-card {
    position: relative;
    display: flex;
    min-height: 320px;
    flex-direction: column;
    margin-bottom: 0;
    padding: 10px;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-large);
    background: rgba(13, 17, 23, 0.54);
}

.quote-mark {
    margin-bottom: 15px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-card blockquote {
    flex: 1;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 11px;
}

.avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.testimonial-card figcaption > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.testimonial-card figcaption strong {
    font-size: 0.9rem;
}

.testimonial-card figcaption small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.validation-badge {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 999px;
    background: rgba(210, 153, 34, 0.1);
    color: #e3b341;
    font-family: var(--font-mono);
    font-size: 0.6rem;
}

.contact-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 60%, rgba(56, 139, 253, 0.08), transparent 30rem),
        var(--bg-default);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: clamp(55px, 8vw, 110px);
}

.contact-copy {
    position: sticky;
    top: 120px;

& .lead {
    margin-bottom: 35px;
    color: var(--text-muted);
    font-size: 1.08rem;
}
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;

& > a,
& > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-muted);
}

& > a:hover strong {
    color: var(--accent);
}
}

.contact-detail-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: var(--bg-subtle);
    color: var(--accent);
    font-family: var(--font-mono);
}

.contact-details > a > span:last-child,
.contact-details > div > span:last-child {
    display: flex;
    flex-direction: column;
}

.contact-details small {
    color: var(--text-subtle);
    font-size: 0.7rem;
}

.contact-details strong {
    font-size: 0.89rem;
    transition: color 150ms ease;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;

& a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 650;
}
}

.social-link-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 150ms ease;
}

.social-links a:hover {
    color: var(--text-default);
}

.social-links a:hover .social-link-icon {
    opacity: 1;
}

.contact-form-shell {
    padding: 34px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.94), rgba(13, 17, 23, 0.96));
    box-shadow: var(--shadow-large);
}

.form-alert {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: var(--radius-small);
    font-size: 0.86rem;

& p {
    margin-bottom: 0;
}

& > span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
}

&.is-success {
    border-color: rgba(63, 185, 80, 0.3);
    background: var(--success-soft);
    color: #aff5b4;
}

&.is-success > span {
    background: rgba(63, 185, 80, 0.2);
}

&.is-error {
    border-color: rgba(248, 81, 73, 0.3);
    background: var(--danger-soft);
    color: #ffb3ad;
}

&.is-error > span {
    background: rgba(248, 81, 73, 0.2);
}
}

.contact-form {
    display: grid;
    gap: 21px;
}

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

.form-field {
    min-width: 0;
}

.form-field label,
.label-line label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-default);
    font-size: 0.82rem;
    font-weight: 650;
}

.form-field label span {
    color: var(--danger);
}

.label-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;

& small {
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.67rem;
}
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-small);
    background: rgba(13, 17, 23, 0.74);
    color: var(--text-default);
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.form-field input {
    min-height: 45px;
    padding: 0 13px;
}

.form-field textarea {
    min-height: 170px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.55;
}

.form-field input:hover,
.form-field textarea:hover {
    border-color: #484f58;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent-strong);
    background: var(--bg-default);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2);
}

.form-field [aria-invalid="true"] {
    border-color: var(--danger);
}

.form-field [aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15);
}

.field-error {
    display: block;
    margin-top: 7px;
    font-size: 0.7rem;
}

.field-error {
    color: #ff7b72;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 17px 1fr;
    align-items: start;
    gap: 10px;

& input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--accent-strong);
}

& label {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}
}

.checkbox-error {
    margin-top: -14px;
    margin-left: 27px;
}

.submit-button {
    width: 100%;
    justify-content: space-between;
    margin-top: 2px;

&[disabled] {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.site-footer {
    border-top: 1px solid var(--border-default);
    background: var(--bg-subtle);
}

.footer-inner {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 10px;
}

.footer-inner p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 1060px) {
    .main-nav {
        gap: 1px;

    & a {
        padding-inline: 8px;
        font-size: 0.82rem;
    }
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 0.82fr);
        gap: 55px;
    }

    .disfra-header,
.disfra-summary,
.disfra-details {
        padding-inline: 42px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 90px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid var(--border-default);
        border-radius: var(--radius-medium);
        background: rgba(22, 27, 34, 0.98);
        box-shadow: var(--shadow-large);

    &.is-open {
        display: flex;
    }

    & a {
        padding: 11px 12px;
        font-size: 0.9rem;
    }

    & .nav-contact {
        margin-top: 4px;
        margin-left: 0;
        text-align: center;
    }
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

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

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 780px;
    }

    .split-layout,
.contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .split-layout .section-heading, .contact-copy {
        position: static;
    }

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

    .disfra-details {
        border-top: 1px solid var(--border-default);
        border-left: 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:nth-child(3) {
        border-top: 1px solid var(--border-default);
        border-left: 0;
    }

    .process-step:nth-child(4) {
        border-top: 1px solid var(--border-default);
    }

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

    .testimonial-card {
        min-height: 260px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 76px 0;
    }

    .section-heading {
        margin-bottom: 36px;


    }

    .hero {
        padding-top: 112px;
        padding-bottom: 55px;

    & h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;

    & .button {
        width: 100%;
    }
    }

    .skills-grid,
.projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: auto;
        padding: 25px;
    }

    .skill-card > p,
.project-content > p {
        min-height: auto;
    }

    .disfra-header {
        flex-direction: column;
        padding: 34px 26px;
    }

    .disfra-summary,
.disfra-details {
        padding: 32px 26px;
    }

    .projects-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .project-content {
        padding: 23px;
    }

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

    .process-step + .process-step,
.process-step:nth-child(3) {
        border-top: 1px solid var(--border-default);
        border-left: 0;
    }

    .process-step {
        min-height: auto;
    }

    .process-number {
        margin-bottom: 28px;
    }

    .contact-form-shell {
        padding: 25px 20px;
        border-radius: var(--radius-large);
    }

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

    .footer-inner {
        min-height: 180px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }
}

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

    *,
*::before,
*::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Mentions légales
   ========================================================================== */

.legal-page {
    min-height: 100vh;
}

.legal-main-section {
    padding-top: 150px;
}

.legal-container {
    max-width: 980px;
}

.legal-heading {
    margin-bottom: 46px;

    & h1 {
        max-width: 760px;
        margin-bottom: 0;
        font-size: clamp(2.7rem, 6vw, 4.8rem);
        line-height: 1.05;
        letter-spacing: -0.05em;
    }
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-card {
    padding: 30px 32px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-large);
    background: linear-gradient(
        145deg,
        rgba(22, 27, 34, 0.82),
        rgba(13, 17, 23, 0.9)
    );

    & h2 {
        margin-bottom: 18px;
        color: var(--text-default);
        font-size: 1.25rem;
        letter-spacing: -0.025em;
    }

    & p,
    & address {
        margin-bottom: 14px;
        color: var(--text-muted);
        font-size: 0.96rem;
        font-style: normal;
        line-height: 1.75;
    }

    & p:last-child,
    & address:last-child {
        margin-bottom: 0;
    }

    & strong {
        color: var(--text-default);
    }

    & a {
        color: var(--accent);
        text-decoration: underline;
        text-decoration-color: rgba(88, 166, 255, 0.42);
        text-underline-offset: 3px;

        &:hover {
            text-decoration-color: var(--accent);
        }
    }
}

.footer-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-legal-link {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 150ms ease, text-decoration-color 150ms ease;

    &:hover,
    &:focus-visible {
        color: var(--accent);
        text-decoration-color: currentColor;
    }
}

@media (max-width: 700px) {
    .legal-main-section {
        padding-top: 120px;
    }

    .legal-heading {
        margin-bottom: 34px;
    }

    .legal-card {
        padding: 24px 22px;
    }

    .footer-meta {
        align-items: flex-start;
        text-align: left;
    }
}