/* =============================================
   ARROWSMITH GROUP — Component Styles v2.0
   Premium, glass morphism, editorial
   ============================================= */

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-xl) 0;
    transition: background 0.5s var(--ease-out-expo),
        padding 0.5s var(--ease-out-expo),
        backdrop-filter 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(12, 11, 9, 0.85);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: var(--ls-wider);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav__logo:hover {
    opacity: 0.8;
}

.nav__logo-img {
    height: 150px;
    width: auto;
    display: block;
    filter: brightness(1.1);
    transition: filter 0.4s var(--ease-out-expo),
        transform 0.4s var(--ease-out-expo);
}

.nav__logo:hover .nav__logo-img {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(197, 165, 90, 0.3));
    transform: scale(1.03);
}

.nav.scrolled .nav__logo-img {
    height: 34px;
}

/* Footer logo image */
.footer__logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: var(--space-lg);
    filter: brightness(1.1);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.4s var(--ease-out-expo);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.5s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text-primary);
}

.nav__link.active {
    background: rgba(197, 165, 90, 0.08);
    padding: var(--space-xs) var(--space-md);
    margin: calc(var(--space-xs) * -1) calc(var(--space-md) * -1);
    border-radius: 100px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link.active::after {
    display: none;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    cursor: none;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    height: 1.5px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-expo),
        opacity 0.3s ease,
        width 0.4s var(--ease-out-expo);
}

.nav__toggle span:nth-child(2) {
    width: 60%;
    margin-left: auto;
}

.nav__toggle:hover span:nth-child(2) {
    width: 100%;
}

.nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
    opacity: 0;
    width: 100%;
}

.nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold-light);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease-out-expo);
}

.btn--primary:hover::before {
    transform: translateX(0);
}

.btn--primary span {
    position: relative;
    z-index: 1;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(197, 165, 90, 0.2);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn--outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out-expo);
}

.btn--outline:hover::before {
    transform: translateY(0);
}

.btn--outline:hover {
    color: var(--color-bg-primary);
    transform: translateY(-2px);
}

.btn--outline span {
    position: relative;
    z-index: 1;
}

.btn--ghost {
    background: transparent;
    color: var(--color-gold);
    padding: 10px 0;
    letter-spacing: var(--ls-wider);
}

.btn--ghost::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn--ghost:hover::after {
    transform: translateX(8px);
}

.btn--ghost:hover {
    color: var(--color-gold-light);
}

/* ---- HERO SECTIONS ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero--short {
    min-height: 65vh;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(12, 11, 9, 0.92) 0%,
            rgba(12, 11, 9, 0.55) 50%,
            rgba(12, 11, 9, 0.85) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero__label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero__label::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--color-gold);
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero__title span {
    color: var(--color-gold);
    font-style: italic;
}

.hero__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-bottom: var(--space-2xl);
    line-height: var(--lh-body);
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Circular scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90px;
    height: 90px;
}

.hero__scroll-text {
    width: 100%;
    height: 100%;
    animation: rotateText 10s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
}

.hero__scroll-text svg {
    width: 90px;
    height: 90px;
    overflow: visible;
}

.hero__scroll-text svg text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: var(--fw-medium);
    letter-spacing: 3px;
    text-transform: uppercase;
    fill: var(--color-text-muted);
}

.hero__scroll-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-gold);
    font-size: 1rem;
    animation: float 2.5s ease-in-out infinite;
}

/* Geometric accent on hero */
.hero__geo {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    border: 1px solid rgba(197, 165, 90, 0.06);
    border-radius: 50%;
    z-index: 1;
}

.hero__geo::before {
    content: '';
    position: absolute;
    inset: 50px;
    border: 1px solid rgba(197, 165, 90, 0.04);
    border-radius: 50%;
}

.hero__geo::after {
    content: '';
    position: absolute;
    inset: 100px;
    border: 1px solid rgba(197, 165, 90, 0.03);
    border-radius: 50%;
}

/* ---- SECTIONS ---- */
.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section--dark {
    background: var(--color-bg-secondary);
}

.section--accent {
    background: var(--color-surface);
}

.section__header {
    margin-bottom: var(--space-4xl);
}

.section__label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section__label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-gold);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: var(--fw-light);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.section__desc {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    max-width: 580px;
    line-height: var(--lh-body);
}

/* ---- CARDS ---- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    backdrop-filter: blur(10px);
}

.card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(197, 165, 90, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md),
        0 0 40px rgba(197, 165, 90, 0.04);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card__image img,
.card__image .card__img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.card:hover .card__image img,
.card:hover .card__image .card__img-placeholder {
    transform: scale(1.06);
}

.card__body {
    padding: var(--space-xl);
}

.card__tag {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-sm);
}

.card__text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: var(--lh-body);
}

/* ---- PROJECT CARDS (large overlay style) ---- */
.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: none;
    aspect-ratio: 4 / 3;
}

/* Project status badge */
.project-card__badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: 5px 14px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    border-radius: 0;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.project-card__badge--current {
    background: rgba(197, 165, 90, 0.9);
    color: var(--color-bg-primary);
}

.project-card__badge--completed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card__badge--vision {
    background: rgba(197, 165, 90, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(197, 165, 90, 0.3);
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(12, 11, 9, 0.95) 0%,
            rgba(12, 11, 9, 0.5) 60%,
            rgba(12, 11, 9, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl);
    transition: background 0.5s var(--ease-out-expo);
}

.project-card:hover .project-card__image,
.project-card:hover .project-card__image.img-placeholder {
    transform: scale(1.08);
}

.project-card:hover .project-card__overlay {
    background: linear-gradient(to top,
            rgba(12, 11, 9, 0.98) 0%,
            rgba(12, 11, 9, 0.7) 60%,
            rgba(12, 11, 9, 0.3) 100%);
}

.project-card__date {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-card__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.project-card__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    max-width: 90%;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s var(--ease-out-expo),
        transform 0.5s var(--ease-out-expo);
}

.project-card:hover .project-card__desc {
    opacity: 1;
    transform: translateY(0);
}

/* 3D tilt effect container */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ---- STATS BAR ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    text-align: center;
    position: relative;
}

.stat__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.stat__number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
}

.stat__label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
}

/* ---- GRID LAYOUTS ---- */
.grid {
    display: grid;
    gap: var(--space-2xl);
}

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

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

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

.grid--projects {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 340px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: var(--ls-wider);
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.footer__desc {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: var(--lh-body);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    transition: color 0.4s var(--ease-out-expo),
        transform 0.4s var(--ease-out-expo);
    display: inline-block;
}

.footer__link:hover {
    color: var(--color-text-primary);
    transform: translateX(4px);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.footer__contact-icon {
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

.footer__contact-icon svg {
    width: 100%;
    height: 100%;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border-subtle);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    letter-spacing: var(--ls-wide);
}

/* ---- FORM ---- */
.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: var(--color-gold);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-subtle);
    border-radius: 0;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    transition: border-color 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.08);
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transition: width 0.5s var(--ease-out-expo);
}

.form-group:focus-within::after {
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

/* ---- DIVIDER ---- */
.divider {
    width: 50px;
    height: 1px;
    background: var(--color-gold);
    margin: var(--space-xl) 0;
    opacity: 0.5;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---- IMAGE PLACEHOLDERS (CSS-based property visuals) ---- */
.img-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.img-placeholder--hero {
    background-image: url('../images/projects/apex-tower-1.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--project-1 {
    background-image: url('../images/projects/broughton-place-1.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--project-2 {
    background-image: url('../images/projects/brunswick-mill-1.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--project-3 {
    background-image: url('../images/projects/apex-tower-1.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--project-5 {
    background-image: url('../images/projects/76-high-street-1.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--project-6 {
    background-image: url('../images/projects/waterside-plaza.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--about-hero {
    background-image: url('../images/team/about-hero.jpg');
    background-size: cover;
    background-position: center top;
}

.img-placeholder--media-brunswick {
    background-image: url('../images/media/brunswick-mill-article.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--media-apex {
    background-image: url('../images/media/apex-tower-article.jpg');
    background-size: cover;
    background-position: center;
}

.img-placeholder--media-haji {
    background-image: url('../images/media/haji-gallery.png');
    background-size: cover;
    background-position: center;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(12, 11, 9, 0.85), transparent);
    pointer-events: none;
}

/* ---- FILTER TABS ---- */
.filter-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0;
    cursor: none;
    transition: all 0.4s var(--ease-out-expo);
}

.filter-tab:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.filter-tab.active {
    background: var(--color-gold);
    color: var(--color-bg-primary);
    border-color: var(--color-gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {

    .nav__links {
        gap: var(--space-lg);
    }

    .nav__link {
        font-size: var(--fs-small);
    }

    .nav__logo {
        font-size: 0.95rem;
    }

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

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

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

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

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .nav__links {
        position: fixed;
        inset: 0;
        background: rgba(12, 11, 9, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2xl);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s var(--ease-out-expo),
            transform 0.4s var(--ease-out-expo),
            visibility 0.4s;
    }

    .nav__links.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav__links.open .nav__link {
        animation: navSlideIn 0.5s var(--ease-out-expo) both;
    }

    .nav__links.open .nav__link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav__links.open .nav__link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav__links.open .nav__link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav__links.open .nav__link:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav__links.open .nav__link:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav__link.active {
        background: none;
        padding: var(--space-xs) 0;
        margin: 0;
        border-radius: 0;
    }

    .nav__link {
        font-size: var(--fs-body-lg);
        color: var(--color-text-secondary);
    }

    .nav__toggle {
        display: flex;
        cursor: auto;
    }

    /* Hero: reduce height on mobile */
    .hero {
        min-height: 85vh;
    }

    .hero--short {
        min-height: 50vh;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero__subtitle {
        font-size: var(--fs-body);
        max-width: 100%;
    }

    .hero__label {
        margin-bottom: var(--space-md);
    }

    .hero__geo {
        display: none;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .hero__cta .btn {
        text-align: center;
        justify-content: center;
    }

    .grid--2,
    .grid--3,
    .grid--4,
    .grid--projects {
        grid-template-columns: 1fr;
    }

    /* Project cards: taller aspect ratio for single-column mobile view */
    .project-card {
        aspect-ratio: 16 / 10;
    }

    .project-card__overlay {
        padding: var(--space-lg);
    }

    /* Show project descriptions on mobile (no hover) */
    .project-card__desc {
        opacity: 1;
        transform: translateY(0);
    }

    .project-card__badge {
        top: var(--space-md);
        right: var(--space-md);
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero__scroll {
        width: 60px;
        height: 60px;
        bottom: 30px;
    }

    .hero__scroll-text svg {
        width: 60px;
        height: 60px;
    }

    /* Buttons: full-width on mobile for better tap targets */
    .btn {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--fs-small);
    }

    /* Cursor: restore normal cursor on mobile */
    a,
    button {
        cursor: auto;
    }
}

@media (max-width: 480px) {

    .hero {
        min-height: 75vh;
    }

    .hero--short {
        min-height: 45vh;
    }

    .hero__title {
        font-size: clamp(1.6rem, 7.5vw, 2.5rem);
    }

    .project-card {
        aspect-ratio: 3 / 2;
    }

    .project-card__overlay {
        padding: var(--space-md);
    }

    .project-card__name {
        font-size: var(--fs-h4);
    }

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

    .stat__number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section__header {
        margin-bottom: var(--space-2xl);
    }
}