:root {
    --bg: #0a0d11;
    --bg-soft: #11171d;
    --panel: rgba(17, 23, 29, 0.82);
    --panel-strong: #161d25;
    --text: #ecf0f3;
    --muted: #98a5b3;
    --line: rgba(236, 240, 243, 0.08);
    --accent: #d7a84c;
    --accent-soft: rgba(215, 168, 76, 0.14);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --radius-sm: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(215, 168, 76, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(73, 98, 135, 0.18), transparent 24%),
        linear-gradient(180deg, #05070a 0%, #0a0d11 42%, #10161d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
    pointer-events: none;
    opacity: 0.34;
}

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

.page-shell {
    position: relative;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding-bottom: 32px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 13, 17, 0.78);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.98rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(215, 168, 76, 0.95), rgba(215, 168, 76, 0.15)),
        #10161d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: #0b0f14;
}

.brand-mark::before {
    left: 12px;
    height: 18px;
}

.brand-mark::after {
    left: 24px;
    height: 26px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
}

.site-nav a {
    transition: color 180ms ease;
}

.nav-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.nav-contact-link:hover,
.nav-contact-link:focus-visible {
    background: rgba(215, 168, 76, 0.14);
    border-color: rgba(215, 168, 76, 0.34);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    display: grid;
    gap: 0;
    padding: 88px 0 56px;
    position: relative;
    min-height: clamp(560px, 76vh, 760px);
}

.hero-copy,
.hero-panel,
.section-grid,
.portfolio,
.approach,
.site-footer {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    z-index: 3;
    align-self: end;
    margin: clamp(18px, 3vw, 34px);
    padding: clamp(24px, 4vw, 44px);
    max-width: min(100% - 68px, 700px);
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.28), rgba(10, 13, 17, 0.9));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero h1,
.section-heading h2,
.site-footer h2 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

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

.hero-text,
.section-heading,
.service-card p,
.portfolio-copy p,
.timeline p,
.site-footer p,
.contact-panel p {
    color: var(--muted);
}

.hero-text {
    max-width: 58ch;
    margin: 20px 0 0;
    font-size: 1.05rem;
    line-height: 1.75;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #111;
    font-weight: 800;
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.hero-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    gap: 16px;
    padding: 0;
    overflow: hidden;
}

.hero-photo-frame,
.team-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.hero-photo-frame {
    min-height: clamp(560px, 76vh, 760px);
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.hero-photo-frame img,
.portfolio-visual img,
.team-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-frame::after,
.team-card::after,
.portfolio-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.06), rgba(10, 13, 17, 0.74));
    pointer-events: none;
}

.image-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    z-index: 2;
}

.image-button span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 13, 17, 0.56);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.hero-photo-frame:hover .image-button span,
.hero-photo-frame:focus-within .image-button span,
.portfolio-visual:hover .image-button span,
.portfolio-visual:focus-within .image-button span,
.team-card:hover .image-button span,
.team-card:focus-within .image-button span,
.image-button:hover span,
.image-button:focus-visible span {
    transform: translateY(-2px);
    background: rgba(215, 168, 76, 0.18);
    border-color: rgba(215, 168, 76, 0.42);
}

.image-button:focus-visible {
    outline: none;
}

.image-button:focus-visible span,
.lightbox-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(215, 168, 76, 0.28);
}

.hero-photo-frame figcaption,
.team-card figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
}

.hero-photo-frame figcaption span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-photo-frame figcaption strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.15;
}

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

.stat-card {
    padding: 22px;
    min-height: 132px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card span,
.portfolio-copy span,
.timeline span {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.stat-card strong {
    display: block;
    max-width: 16ch;
    margin-top: 12px;
    font-size: 1.3rem;
    line-height: 1.15;
}

.accent-card {
    background: linear-gradient(135deg, rgba(215, 168, 76, 0.18), rgba(255, 255, 255, 0.03));
}

.section-grid,
.portfolio,
.approach,
.site-footer {
    margin-top: 28px;
    padding: clamp(24px, 4vw, 40px);
}

.footer-credit {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.footer-credit a {
    color: inherit;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.site-footer h2 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.section-heading.narrow {
    max-width: 760px;
}

.card-grid,
.portfolio-grid,
.timeline,
.site-footer {
    display: grid;
    gap: 20px;
}

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

.service-card,
.portfolio-card,
.timeline article,
.contact-panel {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.service-card {
    padding: 24px;
}

.service-card h3,
.portfolio-copy h3,
.timeline h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.service-card p,
.portfolio-copy p,
.timeline p,
.contact-panel p {
    margin: 0;
    line-height: 1.7;
}

.portfolio-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.portfolio-card {
    overflow: hidden;
}

.portfolio-visual {
    position: relative;
    min-height: 240px;
}

.portfolio-tall .portfolio-visual {
    min-height: 360px;
}

.portfolio-copy {
    padding: 22px;
}

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

.timeline article {
    padding: 24px;
}

.timeline span {
    display: inline-block;
    margin-bottom: 12px;
}

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

.team-card {
    min-height: 300px;
}

.team-card figcaption {
    font-size: 1rem;
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 60;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.82);
    backdrop-filter: blur(14px);
}

.lightbox-shell {
    position: relative;
    width: min(100%, 1024px);
    max-height: min(100%, 900px);
    padding: 72px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(10, 13, 17, 0.72);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.52);
    transform: scale(0.94) translateY(18px);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.lightbox-toolbar {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lightbox-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox.is-open .lightbox-shell {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox.is-closing .lightbox-shell {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.lightbox-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
    transform: translateY(-2px);
    background: rgba(215, 168, 76, 0.16);
    border-color: rgba(215, 168, 76, 0.42);
    outline: none;
}

.lightbox-arrow.is-disabled {
    opacity: 0.42;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    transform: rotate(90deg);
    background: rgba(215, 168, 76, 0.16);
    border-color: rgba(215, 168, 76, 0.42);
    outline: none;
}

.lightbox-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #06080c;
    touch-action: none;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    transform: scale(0.985);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    margin: 16px 8px 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.lightbox-caption::after {
    content: "Swipe sideways to browse or down to close on mobile.";
    display: block;
    margin-top: 8px;
    color: rgba(152, 165, 179, 0.8);
    font-size: 0.8rem;
}

body.lightbox-active {
    overflow: hidden;
}

.site-footer {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
}

.contact-panel {
    padding: 24px;
}

.contact-panel a {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-delay {
    transition-delay: 120ms;
}

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

@media (max-width: 960px) {
    .hero,
    .portfolio-grid,
    .timeline,
    .team-grid,
    .site-footer,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 52px;
        min-height: 520px;
    }

    .portfolio-tall .portfolio-visual,
    .portfolio-visual {
        min-height: 230px;
    }

    .hero-photo-frame {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .site-header {
        padding: 14px 16px;
        border-radius: 28px;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(10, 13, 17, 0.95);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav a {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .nav-contact-link {
        min-height: 44px;
        padding: 0 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.06);
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.04);
    }

    .site-header.nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header.nav-open .nav-toggle span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .hero {
        padding-top: 40px;
        min-height: 0;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        margin: 18px;
        padding: 24px 20px 20px;
        min-height: 420px;
        max-width: min(100% - 36px, 520px);
    }

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

    .hero-photo-frame {
        min-height: 0;
    }

    .hero-photo-frame::after {
        background: linear-gradient(180deg, rgba(10, 13, 17, 0.08) 0%, rgba(10, 13, 17, 0.22) 34%, rgba(10, 13, 17, 0.9) 100%);
    }

    .hero-photo-frame figcaption {
        top: 16px;
        right: auto;
        bottom: auto;
        left: 16px;
        max-width: 220px;
        padding: 12px 14px;
        border-radius: 18px;
        background: rgba(10, 13, 17, 0.5);
        backdrop-filter: blur(14px);
    }

    .hero-photo-frame figcaption strong {
        font-size: 1.05rem;
    }

    .hero-notes {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        margin-top: 24px;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-shell {
        width: 100%;
        padding: 68px 14px 14px;
        border-radius: 22px;
    }

    .lightbox-toolbar {
        left: 14px;
        right: 72px;
    }

    .lightbox-status {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .lightbox-image {
        max-height: calc(100vh - 180px);
    }
}

@media (max-width: 520px) {
    .hero-copy,
    .hero-panel,
    .section-grid,
    .portfolio,
    .approach,
    .site-footer {
        border-radius: 22px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .button {
        padding-inline: 18px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-copy {
        margin: 14px;
        padding: 20px 16px 16px;
        min-height: 360px;
        max-width: calc(100% - 28px);
    }

    .hero-panel {
        min-height: 0;
    }

    .hero {
        min-height: 0;
    }

    .hero-photo-frame,
    .team-card {
        min-height: 240px;
    }

    .hero-photo-frame {
        min-height: 0;
    }

    .hero-photo-frame figcaption {
        top: 12px;
        left: 12px;
        right: 72px;
        max-width: none;
        padding: 10px 12px;
    }

    .image-button {
        padding: 12px;
    }

    .image-button span {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.72rem;
    }
}

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

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

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

    .lightbox,
    .lightbox-shell,
    .lightbox-image,
    .image-button span,
    .lightbox-close,
    .lightbox-arrow {
        transition-duration: 0.01ms !important;
    }
}