@font-face {
    font-family: Inter;
    src: url("../admin/assets/fonts/inter-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("../admin/assets/fonts/inter-medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("../admin/assets/fonts/inter-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #0b1f2a;
    --ink-soft: #16323d;
    --accent: #2fb8a5;
    --accent-dark: #168c80;
    --paper: #f2f4ef;
    --paper-2: #e7ebe5;
    --white: #fff;
    --muted: #6d7a7b;
    --line: rgba(11, 31, 42, 0.14);
    --radius: 22px;
    --shadow: 0 24px 80px rgba(11, 31, 42, 0.11);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.nav-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
img {
    display: block;
    max-width: 100%;
}
.shell {
    width: min(1220px, calc(100% - 64px));
    margin-inline: auto;
}

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}
.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-brand {
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 1;
    margin: 0 0 34px;
}
.loader-brand span {
    color: var(--accent);
    animation: loaderPulse 1.1s ease-in-out infinite alternate;
}
.loader-meta {
    width: min(330px, 70vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aebcbd;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.loader-meta strong {
    color: var(--white);
    font-weight: 500;
}
.loader-track {
    width: min(330px, 70vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.13);
    overflow: hidden;
}
.loader-track i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.12s linear;
}
@keyframes loaderPulse {
    from {
        opacity: 0.35;
    }
    to {
        opacity: 1;
    }
}

/* Header */
.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 244, 239, 0.92);
    backdrop-filter: blur(18px);
}
.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: none;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.03em;
}
.logo-symbol {
    display: block;
    aspect-ratio: 154.54 / 151.37;
    background: var(--logo-fill, #07101c);
    -webkit-mask: url("../img/LogoAF.svg") center / contain no-repeat;
    mask: url("../img/LogoAF.svg") center / contain no-repeat;
}
.brand-mark .logo-symbol {
    width: 62%;
    height: 62%;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.brand-copy strong {
    font-size: 13px;
}
.brand-copy small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    letter-spacing: 0.03em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}
.site-nav > a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #425459;
    transition: color 0.2s;
}
.site-nav > a:not(.nav-cta):after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    transition: right 0.25s;
}
.site-nav > a:hover,
.site-nav > a.is-current {
    color: var(--ink);
}
.site-nav > a:hover:after,
.site-nav > a.is-current:after {
    right: 0;
}
.site-nav .nav-cta {
    padding: 12px 17px;
    border: 1px solid var(--ink);
    border-radius: 100px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-nav .nav-cta:hover {
    background: var(--ink);
    color: var(--white);
}
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    padding: 0;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    left: 14px;
    transition: 0.25s;
}
.nav-toggle span:first-child {
    top: 19px;
}
.nav-toggle span:last-child {
    top: 26px;
}

/* Common */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.button {
    min-height: 51px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    transition:
        transform 0.2s,
        background 0.2s,
        color 0.2s,
        border 0.2s;
    cursor: pointer;
}
.button:hover {
    transform: translateY(-2px);
}
.button-primary {
    background: var(--accent);
    color: #06221f;
}
.button-primary:hover {
    background: #46c8b7;
}
.button-ghost {
    border-color: var(--line);
    color: var(--ink);
}
.button-ghost:hover {
    border-color: var(--ink);
}
.button-light {
    background: var(--white);
    color: var(--ink);
}
.button-light:hover {
    background: var(--accent);
}
.button-full {
    width: 100%;
}
.section {
    padding-block: 100px;
}
.section-index {
    display: block;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.section-heading h2,
.profile-intro h2 {
    font-size: clamp(42px, 5.2vw, 50px);
    line-height: 0.98;
    letter-spacing: 0;
    margin: 0;
    font-weight: 500;
}
.section-heading > p {
    max-width: 440px;
    justify-self: end;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Home hero */
.hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding-block: 52px 52px;
}
.hero h1,
.page-hero h1 {
    font-size: clamp(40px, 4.35vw, 55px);
    line-height: 1;
    margin: 25px 0 30px;
    font-weight: 500;
}
.hero h1 em,
.page-hero h1 em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--accent-dark);
}
.hero-lead {
    max-width: 610px;
    color: #506165;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 28px;
}
.role-line {
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 12px;
    margin: 0 0 34px;
}
.role-line span {
    color: var(--muted);
}
.role-line strong {
    color: var(--accent-dark);
    min-width: 140px;
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.role-line strong.is-changing {
    opacity: 0;
    transform: translateY(5px);
}
.hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
}
.hero-visual {
    height: 530px;
    position: relative;
    padding: 16px 16px 58px;
    background: var(--ink);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow);
}
.visual-image {
    height: 100%;
    border-radius: 16px;
}
.visual-label {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #dbe6e5;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.visual-label span {
    color: var(--accent);
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr) 1fr;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 34px 42px;
    box-shadow: var(--shadow);
}
.metrics article {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    margin-right: 28px;
}
.metrics article strong {
    font-size: 37px;
    letter-spacing: -0.06em;
    font-weight: 500;
    color: var(--accent);
}
.metrics article p {
    font-size: 10px;
    line-height: 1.5;
    color: #afbec0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.services-loading,
.services-error {
    grid-column: 1/-1;
    color: var(--night-muted);
    font-size: 12px;
    padding: 28px 0;
}
.service-card {
    grid-column: span 2;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 27px;
    position: relative;
    background: rgba(255, 255, 255, 0.38);
    transition:
        transform 0.3s,
        border 0.3s,
        background 0.3s;
}
@media (min-width: 1001px) {
    /* Last desktop row: 1 card = full width, 2 cards = half width each. */
    .services-grid > .service-card:last-child:nth-child(3n + 1) {
        grid-column: span 6;
    }

    .services-grid > .service-card:nth-last-child(2):nth-child(3n + 1),
    .services-grid > .service-card:last-child:nth-child(3n + 2) {
        grid-column: span 3;
    }
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 184, 165, 0.55);
    background: var(--white);
}
.service-card > span {
    font-size: 10px;
    color: var(--muted);
}
.service-card > i,
.service-card > svg {
    position: absolute;
    right: 26px;
    top: 26px;
    width: 15px;
    height: 15px;
    padding: 13px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--paper-2);
    color: var(--accent-dark);
}
.service-card h3 {
    font-size: 19px;
    margin: 25px 0 12px;
    letter-spacing: -0.025em;
}
.service-card p {
    color: var(--muted);
    font-size: 12px;
    max-width: 260px;
    margin: 0;
}

/* Profile */
.profile-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 90px;
    border-top: 1px solid var(--line);
}
.profile-intro > p {
    max-width: 420px;
    color: var(--muted);
    margin: 28px 0;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 5px;
}
.profile-details {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}
.facts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.facts-row div {
    display: flex;
    flex-direction: column;
}
.facts-row small,
.location-note small {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.facts-row strong {
    font-size: 13px;
    margin-top: 5px;
}
.skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    padding: 32px 0;
}
.skill-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.skill-list span,
.skill-list strong {
    font-size: 11px;
}
.skill-list strong {
    color: var(--accent-dark);
}
.skill-list i {
    grid-column: 1/-1;
    height: 3px;
    background: var(--paper-2);
    position: relative;
    overflow: hidden;
}
.skill-list i:after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--level);
    background: var(--accent);
}
.languages {
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.languages > span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: auto;
}
.languages strong {
    font-size: 11px;
}
.languages small {
    color: var(--accent-dark);
    font-weight: 500;
    margin-left: 5px;
}
.strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 27px 0 0;
    margin: 0;
}
.strengths li {
    font-size: 11px;
    color: var(--muted);
    padding-left: 16px;
    position: relative;
}
.strengths li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Contact band & footer */
.contact-band {
    background: var(--ink);
    color: var(--white);
    padding-block: 52px;
}
.contact-band .shell {
    position: relative;
}
.contact-band p {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.contact-band h2 {
    font-size: clamp(40px, 4.35vw, 55px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 500;
    margin: 0;
}
.contact-band .button {
    position: absolute;
    right: 0;
    bottom: 4px;
}
.compact-band {
    margin-top: 120px;
}
.site-footer {
    background: #071820;
    color: #d7e0df;
    padding: 68px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 62px;
}
.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-grid .brand-mark {
    background: var(--accent);
    color: var(--ink);
    margin-bottom: 18px;
}
.footer-grid p {
    max-width: 330px;
    font-size: 11px;
    color: #82979a;
    margin: 0;
}
.footer-grid small {
    font-size: 9px;
    color: #6f888b;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 15px;
}
.footer-grid a {
    font-size: 12px;
    margin-bottom: 7px;
    transition: color 0.2s;
}
.footer-grid a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: #6f888b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* History */
.page-hero {
    /*min-height:460px;*/
    padding-block: 52px 52px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: end;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    font-size: clamp(40px, 4.35vw, 55px);
    margin-bottom: 0;
}
.page-hero > p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 6px;
    max-width: 390px;
}
.history-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 90px;
    padding-block: 90px 0;
    align-items: start;
}
.history-aside {
    position: sticky;
    top: 35px;
    background: var(--ink);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow);
}
.portrait-card {
    position: relative;
    height: 330px;
    border-radius: 15px;
    overflow: hidden;
}
.portrait-card:after {
    content: "";
    position: absolute;
    inset: 15% 0 0;
    background: linear-gradient(transparent, rgba(7, 24, 32, 0.98));
}
.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portrait-card > div {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
    bottom: 20px;
}
.portrait-card h2 {
    font-size: 28px;
    line-height: 1;
    margin: 0 0 12px;
}
.portrait-card p {
    font-size: 10px;
    line-height: 1.6;
    color: #afbec0;
    margin: 0;
}
.aside-facts {
    padding: 12px 0 20px;
}
.aside-facts div {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.aside-facts span {
    font-size: 9px;
    color: #758e91;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.aside-facts strong {
    font-size: 10px;
    font-weight: 500;
    text-align: right;
}
.timeline-section {
    padding-bottom: 80px;
}
.timeline-heading {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
.timeline-heading > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 11px;
    color: var(--accent-dark);
}
.timeline-heading small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.timeline-heading h2 {
    font-size: 34px;
    letter-spacing: -0.05em;
    margin: 2px 0 0;
    font-weight: 500;
}
.timeline {
    border-left: 1px solid var(--line);
    margin-left: 21px;
    padding-left: 38px;
}
.timeline-card {
    position: relative;
    border-radius: 16px;
    background: var(--white);
    padding: 26px 28px;
    margin-bottom: 16px;
    box-shadow: 0 12px 40px rgba(11, 31, 42, 0.06);
}
.timeline-card:before {
    content: "";
    position: absolute;
    left: -47px;
    top: 32px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--accent);
}
.timeline-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 12px;
}
.timeline-card h3 {
    font-size: 16px;
    margin: 0;
    letter-spacing: -0.02em;
}
.timeline-card .subtitle {
    display: block;
    color: var(--accent-dark);
    font-size: 10px;
    margin-top: 3px;
}
.timeline-card time {
    font-size: 9px;
    color: var(--muted);
    background: var(--paper);
    border-radius: 100px;
    padding: 6px 10px;
    white-space: nowrap;
}
.timeline-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.loading-state {
    font-size: 11px;
    color: var(--muted);
    padding: 20px 0;
}
.empty-state {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 22px;
    color: var(--muted);
    font-size: 12px;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    padding-block: 85px;
}
.contact-details > .section-index {
    margin-bottom: 22px;
}
.contact-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.contact-item > i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--accent-dark);
}
.contact-item > span {
    display: flex;
    flex-direction: column;
}
.contact-item small {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-item strong {
    font-size: 12px;
}
.contact-item b {
    font-size: 15px;
    font-weight: 400;
    transition: transform 0.2s;
}
.contact-item:hover b {
    transform: translate(3px, -3px);
}
.location-note {
    margin-top: 35px;
    padding: 24px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--white);
}
.location-note strong {
    display: block;
    font-size: 15px;
    margin: 6px 0;
}
.location-note p {
    font-size: 10px;
    color: #82979a;
    margin: 0;
    white-space: pre-line;
}
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.form-heading span {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.form-heading small {
    font-size: 9px;
    color: var(--muted);
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}
.field > span {
    font-size: 12px;
    font-weight: 600;
}
.field input,
.field textarea {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafbf8;
    color: var(--ink);
    padding: 14px 15px;
    outline: none;
    font-size: 12px;
    transition:
        border 0.2s,
        box-shadow 0.2s;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 184, 165, 0.1);
}
.captcha-field {
    max-width: 50%;
}
.submit-button {
    border: 0;
}
.submit-button:disabled {
    opacity: 0.6;
    cursor: wait;
}
.messages:empty {
    display: none;
}
.messages {
    padding: 12px 14px;
    border-radius: 10px;
    background: #e7f5f1;
    color: #17675f;
    font-size: 11px;
    margin-bottom: 18px;
}
.messages.is-error {
    background: #fae8e6;
    color: #963e37;
}
.map-section {
    padding-bottom: 100px;
}
.map-section iframe {
    border: 0;
    width: 100%;
    height: 310px;
    border-radius: var(--radius);
    /* filter: grayscale(0.65) contrast(0.9); */
    box-shadow: var(--shadow);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal-delay {
    transition-delay: 0.12s;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1000px) {
    .shell {
        width: min(100% - 40px, 900px);
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual {
        height: 480px;
        max-width: 680px;
        width: 100%;
        margin-inline: auto;
    }
    .metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }
    .profile-section {
        gap: 45px;
    }
    .history-layout {
        grid-template-columns: 280px 1fr;
        gap: 45px;
    }
    .contact-layout {
        gap: 35px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: calc(100% - 32px);
    }
    .nav-wrap {
        height: 76px;
    }
    .brand-copy {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .site-nav {
        position: fixed;
        inset: 76px 0 auto;
        min-height: calc(100vh - 76px);
        padding: 45px 24px;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.3s;
    }
    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .site-nav > a {
        font-size: 20px;
        color: #aebcbd;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .site-nav > a:not(.nav-cta):after {
        display: none;
    }
    .site-nav > a.is-current {
        color: var(--accent);
    }
    .site-nav .nav-cta {
        font-size: 12px;
        margin-top: 28px;
        justify-content: center;
        border-color: rgba(255, 255, 255, 0.4);
        color: #fff;
    }
    .nav-open .nav-toggle span:first-child {
        top: 23px;
        transform: rotate(45deg);
    }
    .nav-open .nav-toggle span:last-child {
        top: 23px;
        transform: rotate(-45deg);
    }
    .hero {
        padding-block: 58px 65px;
        min-height: 0;
    }
    .hero h1,
    .page-hero h1 {
        font-size: clamp(40px, 9vw, 67px);
    }
    .section-heading h2, .profile-intro h2 {
        font-size: clamp(35px, 5vw, 54px);
        letter-spacing: 0;
    }
    .hero-lead {
        font-size: 14px;
    }
    .hero-visual {
        height: 390px;
    }
    .metrics {
        grid-template-columns: 1fr;
        padding: 14px 24px;
    }
    .metrics article {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin: 0;
        padding: 18px 0;
    }
    .metrics article:last-of-type {
        border-bottom: 0;
    }
    .section {
        padding-block: 85px;
    }
    .section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .section-heading > p {
        justify-self: start;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 220px;
    }
    .profile-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .profile-details {
        padding: 25px;
    }
    .facts-row {
        grid-template-columns: 1fr 1fr;
    }
    .skill-list {
        grid-template-columns: 1fr;
    }
    .languages {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .languages > span {
        width: 100%;
        font-size: 11px;
    }
    .languages strong {
        font-size: 13px;
    }
    .strengths {
        grid-template-columns: 1fr;
    }
    .contact-band {
        padding-block: 76px;
    }
    .contact-band h2 {
        font-size: 35px;
        letter-spacing: 0;
    }
    .facts-row small, .location-note small {
        font-size: 11px;
    }
    .contact-band .button {
        position: static;
        margin-top: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .footer-bottom {
        gap: 20px;
        align-items: flex-start;
    }
    .page-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 65px;
    }
    .history-layout {
        grid-template-columns: 1fr;
        padding-top: 55px;
    }
    .history-aside {
        position: relative;
        top: auto;
    }
    .portrait-card {
        height: 300px;
    }
    .timeline {
        padding-left: 25px;
    }
    .timeline-card {
        padding: 22px;
    }
    .timeline-card:before {
        left: -34px;
    }
    .timeline-card header {
        flex-direction: column;
        gap: 10px;
    }
    .compact-band {
        margin-top: 60px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        padding-block: 55px;
    }
    .contact-form-card {
        padding: 25px;
    }
    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .captcha-field {
        max-width: none;
    }
    .map-section {
        padding-bottom: 70px;
    }
    .map-section iframe {
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .page-loader,
    .loader-track i {
        transition: none;
    }
}

/* Dark digital direction */
:root {
    --neon: #48e5f1;
    --violet: #8b68ff;
    --night: #050914;
    --night-2: #08111f;
    --night-3: #0c1728;
    --night-line: rgba(137, 164, 197, 0.14);
    --night-muted: #8594aa;
}
body {
    background: var(--night);
    color: #eef4ff;
    position: relative;
}
body:before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 8% 72%, rgba(31, 213, 229, 0.13), transparent 27%),
        radial-gradient(circle at 83% 12%, rgba(104, 61, 232, 0.17), transparent 31%);
    pointer-events: none;
}
body:after {
    content: attr(data-side-date);
    position: fixed;
    z-index: 20;
    right: 13px;
    top: 50%;
    color: rgba(72, 229, 241, 0.4);
    font-size: 7px;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    pointer-events: none;
}
body[data-site-theme="atelier-modern"]:after {
    color: rgba(49, 84, 200, 0.48);
}
.page-loader {
    background: #030711;
}
.loader-brand {
    background: linear-gradient(110deg, #fff 20%, var(--neon) 56%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.loader-brand span {
    color: var(--neon);
}
.loader-meta {
    color: #728198;
}
.loader-track {
    background: rgba(255, 255, 255, 0.1);
}
.loader-track i {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    box-shadow: 0 0 18px rgba(72, 229, 241, 0.45);
}
.site-header {
    background: rgba(5, 9, 20, 0.76);
    border-color: var(--night-line);
}
.brand-mark {
    --logo-fill: linear-gradient(145deg, #07101c 8%, #271653 58%, #0b1731);
    background: linear-gradient(145deg, var(--neon), #68bafc 52%, var(--violet));
    color: #07101c;
    box-shadow: 0 0 30px rgba(72, 229, 241, 0.13);
}
.brand-copy strong {
    color: #eaf3ff;
}
.brand-copy small {
    color: #77879e;
}
.site-nav > a {
    color: #8291a6;
}
.site-nav > a:hover,
.site-nav > a.is-current {
    color: #f5f8ff;
}
.site-nav > a:not(.nav-cta):after {
    background: linear-gradient(90deg, var(--neon), var(--violet));
}
.site-nav .nav-cta {
    border-color: rgba(72, 229, 241, 0.48);
    color: var(--neon);
    background: rgba(72, 229, 241, 0.04);
    font-size: 13px;
}
.site-nav .nav-cta:hover {
    background: var(--neon);
    color: #06101a;
}
.nav-toggle {
    background: linear-gradient(145deg, var(--neon), var(--violet));
}
.eyebrow {
    color: var(--neon);
}
.eyebrow span {
    background: var(--neon);
    box-shadow: 0 0 12px rgba(72, 229, 241, 0.55);
}
.hero h1,
.page-hero h1 {
    color: #f5f8ff;
}
.hero h1 em,
.page-hero h1 em {
    font-family: Inter, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(105deg, #fff 4%, var(--neon) 48%, var(--violet) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead,
.page-hero > p,
.section-heading > p,
.profile-intro > p {
    color: var(--night-muted);
}
.role-line span {
    color: #617087;
}
.role-line strong {
    color: var(--neon);
}
.button-primary {
    background: linear-gradient(105deg, var(--neon), #65c8fb 56%, var(--violet));
    color: #06101a;
    box-shadow: 0 12px 35px rgba(49, 207, 232, 0.15);
}
.button-primary:hover {
    background: linear-gradient(105deg, #74f2fa, #8b7cff);
}
.button-ghost {
    border-color: var(--night-line);
    color: #d8e3f2;
}
.button-ghost:hover {
    border-color: var(--neon);
    color: var(--neon);
}
.button-light {
    background: var(--neon);
    color: #06101a;
}
.button-light:hover {
    background: #fff;
}
.section-index {
    color: var(--neon);
}
.section-heading,
.profile-section,
.page-hero,
.timeline-heading,
.form-heading {
    border-color: var(--night-line);
}

.hero-visual {
    background: linear-gradient(145deg, rgba(72, 229, 241, 0.22), rgba(10, 18, 34, 0.9) 32%, rgba(103, 56, 220, 0.35));
    border: 1px solid rgba(72, 229, 241, 0.36);
    box-shadow:
        0 35px 110px rgba(0, 0, 0, 0.42),
        0 0 70px rgba(94, 56, 214, 0.11);
}
.visual-image.digital-art {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(23, 46, 72, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 46, 72, 0.22) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(72, 229, 241, 0.09), transparent 36%),
        linear-gradient(145deg, #091322, #11102c);
    background-size:
        38px 38px,
        38px 38px,
        auto,
        auto;
    filter: none;
}
.visual-image.digital-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 74% 18%, rgba(134, 78, 255, 0.23), transparent 42%),
        linear-gradient(180deg, transparent 55%, rgba(4, 8, 19, 0.65));
}
.art-caption {
    position: absolute;
    z-index: 3;
    left: 24px;
    top: 22px;
    color: var(--neon);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}
.art-coordinate {
    position: absolute;
    z-index: 3;
    right: 23px;
    bottom: 19px;
    color: #65748e;
    font-size: 7px;
    line-height: 1.65;
    letter-spacing: 0.14em;
    text-align: right;
}
.art-particles {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.orbit {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 68%;
    height: 37%;
    border: 1px solid rgba(72, 229, 241, 0.3);
    border-radius: 46px;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: orbitFloat 7s ease-in-out infinite alternate;
}
.orbit-two {
    border-color: rgba(139, 104, 255, 0.38);
    transform: translate(-50%, -50%) rotate(-23deg);
    width: 76%;
    height: 35%;
    animation-delay: -2s;
}
.orbit-three {
    width: 50%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border-color: rgba(111, 140, 255, 0.2);
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}
.visual-core {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 108px;
    height: 108px;
    border-radius: 29px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--neon), #5fbcff 48%, var(--violet));
    color: #07101d;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.06em;
    box-shadow: 0 0 65px rgba(84, 157, 255, 0.35);
}
.visual-core .logo-symbol {
    --logo-fill: linear-gradient(145deg, #14234d 5%, #6530bd 52%, #261253 96%);
    width: 58%;
    height: 58%;
    filter: drop-shadow(0 7px 14px rgba(5, 9, 20, 0.2));
}
.visual-label {
    color: #9aa9bf;
}
.visual-label span {
    color: var(--neon);
}
.visual-label b {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8797ad;
    font-size: 8px;
    font-weight: 500;
}
.visual-label b i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
}
@keyframes orbitFloat {
    from {
        margin-top: -7px;
    }
    to {
        margin-top: 8px;
    }
}

.metrics {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 14px;
}
.metrics article {
    min-height: 112px;
    background: linear-gradient(145deg, rgba(14, 30, 48, 0.92), rgba(10, 18, 32, 0.92));
    border: 1px solid var(--night-line);
    border-radius: 18px;
    margin: 0;
    padding: 25px;
}
.metrics article strong {
    color: var(--neon);
}
.metrics article p {
    color: #8393a8;
}
.metrics article:first-child {
    background: linear-gradient(145deg, rgba(17, 51, 65, 0.9), rgba(25, 23, 65, 0.85));
}
.service-card {
    background: linear-gradient(145deg, rgba(13, 26, 43, 0.94), rgba(8, 16, 29, 0.96));
    border-color: var(--night-line);
}
.service-card:hover {
    background: linear-gradient(145deg, rgba(15, 41, 58, 0.98), rgba(25, 18, 57, 0.98));
    border-color: rgba(72, 229, 241, 0.42);
}
.service-card > span,
.service-card p {
    color: #7f8fa6;
}
.service-card > i,
.service-card > svg {
    background: rgba(72, 229, 241, 0.08);
    color: var(--neon);
    border: 1px solid rgba(72, 229, 241, 0.15);
}
.profile-details {
    background: linear-gradient(145deg, rgba(13, 27, 45, 0.96), rgba(10, 17, 31, 0.98));
    border: 1px solid var(--night-line);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
.facts-row,
.languages {
    border-color: var(--night-line);
}
.facts-row small,
.skill-list span,
.strengths li,
.languages > span {
    color: #7d8da4;
}
.skill-list strong,
.languages small {
    color: var(--neon);
}
.skill-list i {
    background: #162235;
}
.skill-list i:after {
    background: linear-gradient(90deg, var(--neon), var(--violet));
}
.strengths li:before {
    background: var(--neon);
}
.text-link {
    border-color: var(--neon);
    color: var(--neon);
}
.contact-band {
    background: radial-gradient(circle at 80% 20%, rgba(112, 58, 230, 0.28), transparent 32%),
        radial-gradient(circle at 5% 80%, rgba(29, 210, 224, 0.18), transparent 28%), #07101d;
    border-block: 1px solid var(--night-line);
}
.contact-band p {
    color: var(--neon);
}
.site-footer {
    background: #030711;
}
.footer-grid .brand-mark {
    --logo-fill: linear-gradient(145deg, #ffffff 5%, var(--neon) 50%, var(--violet));
    background: rgba(72, 229, 241, 0.07);
    border: 1px solid rgba(72, 229, 241, 0.22);
}
.footer-grid p,
.footer-grid small,
.footer-bottom {
    color: #617087;
}
.footer-bottom {
    border-color: var(--night-line);
}
.footer-grid a:hover {
    color: var(--neon);
}

.history-aside {
    background: linear-gradient(155deg, #0b1928, #10112a);
    border: 1px solid rgba(72, 229, 241, 0.22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.aside-facts div {
    border-color: var(--night-line);
}
.aside-facts span {
    color: #687991;
}
.timeline-heading > span {
    border-color: rgba(72, 229, 241, 0.3);
    color: var(--neon);
}
.timeline {
    border-color: var(--night-line);
}
.timeline-card {
    background: linear-gradient(145deg, #0c1829, #091220);
    border: 1px solid var(--night-line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.timeline-card:before {
    background: var(--night);
    border-color: var(--neon);
}
.timeline-card .subtitle {
    color: var(--neon);
}
.timeline-card time {
    background: #121e30;
    color: #8998ad;
}
.timeline-card p,
.loading-state {
    color: #8291a6;
}
.empty-state {
    border-color: var(--night-line);
    color: #8291a6;
}
.contact-item {
    border-color: var(--night-line);
}
.contact-item > i {
    background: #0d1929;
    color: var(--neon);
    border: 1px solid var(--night-line);
}
.contact-item small {
    color: #6f7f96;
}
.location-note {
    background: linear-gradient(145deg, #0d1f31, #151233);
    border: 1px solid rgba(72, 229, 241, 0.2);
}
.contact-form-card {
    background: linear-gradient(145deg, #0c1828, #09121f);
    border: 1px solid var(--night-line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.27);
}
.field input,
.field textarea {
    background: #07101c;
    border-color: var(--night-line);
    color: #eaf2fd;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #4f6078;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 4px rgba(72, 229, 241, 0.08);
}
.messages {
    background: rgba(72, 229, 241, 0.1);
    color: var(--neon);
}
.messages.is-error {
    background: rgba(228, 76, 92, 0.1);
    color: #ff8793;
}
.map-section iframe {
    opacity: 0.8;
}

@media (max-width: 760px) {
    body:after {
        display: none;
    }

    .site-nav {
        background: #050914;
    }
    .metrics {
        padding: 0;
    }
    .metrics article {
        border: 1px solid var(--night-line);
    }
    .hero h1 em,
    .page-hero h1 em {
        font-size: 0.92em;
    }
    .visual-core {
        width: 86px;
        height: 86px;
        border-radius: 24px;
    }
    .orbit-one {
        width: 70%;
        height: 30%;
        border-radius: 25px;
    }
    .orbit-two {
        width: 70%;
        height: 28%;
        border-radius: 25px;
    }
    .orbit-three {
        width: 50%;
        height: auto;
        aspect-ratio: 1;
    }
    .visual-label b {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit {
        animation: none;
    }
}

/* Mobile go-to-top control */
.go-to-top {
    display: none;
}

@media (max-width: 760px) {
    .go-to-top {
        position: fixed;
        z-index: 90;
        right: calc(18px + env(safe-area-inset-right));
        bottom: calc(18px + env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
        padding: 0;
        display: grid;
        place-items: center;
        color: var(--night);
        background: linear-gradient(145deg, var(--neon), var(--violet));
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 50%;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(72, 229, 241, 0.2);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px) scale(0.92);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .go-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .go-to-top svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .go-to-top:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
    }

    body[data-site-theme="atelier-modern"] .go-to-top {
        color: #fff;
        background: linear-gradient(145deg, var(--atelier-blue), var(--atelier-copper));
        border-color: rgba(255, 255, 255, 0.7);
        box-shadow: 0 12px 30px rgba(34, 58, 142, 0.24), 0 0 20px rgba(197, 106, 69, 0.18);
    }

    body[data-site-theme="saudi-2026"] .go-to-top {
        color: var(--saudi-deep);
        background: linear-gradient(145deg, var(--saudi-sky), #9eeaff 55%, var(--saudi-green));
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 24px rgba(58, 197, 239, 0.22);
    }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .go-to-top {
        transition: none;
    }
}
