:root {
    --ink: #151512;
    --muted: #68665f;
    --line: #dfddd4;
    --paper: #f7f5ee;
    --surface: #ffffff;
    --gold: #d8aa22;
    --teal: #1e6f68;
    --charcoal: #20201c;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: clip;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(170px, 240px) 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(247, 245, 238, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-menu {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.brand img {
    display: block;
    width: min(220px, 42vw);
    height: auto;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 14px;
}

.primary-nav a:hover,
.language-switcher a:hover {
    color: var(--ink);
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.language-switcher a {
    display: inline-flex;
    min-width: 48px;
    height: 30px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.language-flag {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(21, 21, 18, 0.08);
}

.language-switcher a.active {
    border-color: var(--gold);
    color: var(--ink);
    background: #fff7d7;
}

.hero,
.subhero {
    position: relative;
    width: 100%;
    min-height: min(78vh, 760px);
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: clamp(90px, 12vw, 150px) clamp(20px, 6vw, 84px) clamp(54px, 8vw, 90px);
    color: white;
    background-image: linear-gradient(90deg, rgba(15, 15, 12, 0.76), rgba(15, 15, 12, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slider {
    min-height: min(82vh, 780px);
    overflow: hidden;
    align-items: center;
    background: var(--charcoal);
}

.hero-slider::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(17, 17, 14, 0.78), rgba(17, 17, 14, 0.4) 46%, rgba(17, 17, 14, 0.12));
    z-index: 1;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0 -8vw;
}

.hero-slide {
    opacity: 0;
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;
    filter: saturate(0.92) contrast(1.04);
    transform: translate3d(0, var(--scroll-shift, 0px), 0) scale(1.12);
    transition:
        opacity 950ms ease,
        filter 950ms ease,
        transform 6500ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.hero-slide.is-active {
    opacity: 1;
    filter: saturate(1.05) contrast(1.08);
    transform: translate3d(0, var(--scroll-shift, 0px), 0) scale(1.03);
    z-index: 1;
}

.hero-slide.is-leaving {
    opacity: 0;
    transform: translate3d(0, var(--scroll-shift, 0px), 0) scale(1.07);
}

.subhero {
    min-height: 420px;
}

.hero-content,
.subhero-content {
    position: relative;
    width: min(820px, 100%);
    min-width: 0;
    max-width: 820px;
    z-index: 2;
}

.eyebrow,
.section-heading span,
.subhero span,
.service-card span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hero-summary,
.subhero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 24px);
    overflow-wrap: anywhere;
    hyphens: auto;
}

[data-entry-effect] {
    position: relative;
}

[data-entry-effect].is-effect-running {
    animation-duration: 900ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-effect-fade-up.is-effect-running {
    animation-name: entryFadeUp;
}

.entry-effect-slide-left.is-effect-running {
    animation-name: entrySlideLeft;
}

.entry-effect-soft-zoom.is-effect-running {
    animation-name: entrySoftZoom;
}

.entry-effect-gold-scan.is-effect-running {
    animation-duration: 1250ms;
    animation-name: entryGoldScan;
}

.entry-effect-typewriter.is-effect-running::after {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    vertical-align: -0.12em;
    background: var(--gold);
    content: "";
    animation: typewriterCaret 0.8s steps(1) infinite;
}

[dir="rtl"] .entry-effect-typewriter.is-effect-running::after {
    margin-right: 4px;
    margin-left: 0;
}

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

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 11px 18px;
    font-weight: 800;
}

.button.primary {
    background: var(--gold);
    color: #17150d;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: white;
}

.hero-progress {
    position: absolute;
    left: clamp(20px, 6vw, 84px);
    right: clamp(20px, 6vw, 84px);
    bottom: clamp(30px, 4vw, 48px);
    z-index: 2;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
}

.hero-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: var(--gold);
    animation: sliderProgress 6.5s linear infinite;
}

.hero-slider.is-paused .hero-progress span {
    animation-play-state: paused;
}

@keyframes sliderProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes entryFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes entrySlideLeft {
    from {
        opacity: 0;
        transform: translate3d(-34px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes entrySoftZoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes entryGoldScan {
    0% {
        opacity: 0.35;
        text-shadow: -28px 0 18px rgba(216, 170, 34, 0.05);
        transform: translate3d(0, 10px, 0);
    }

    45% {
        opacity: 1;
        text-shadow: 0 0 22px rgba(216, 170, 34, 0.75);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(216, 170, 34, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes typewriterCaret {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.intro-section,
.services-section,
.team-section,
.content-section,
.contact-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 86px) 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.rich-copy {
    color: #333129;
    font-size: 18px;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(28px, 5vw, 52px);
}

.method-grid article {
    min-height: 178px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.method-grid h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.method-grid p {
    margin: 0;
    color: var(--muted);
}

.process-band {
    color: white;
    background:
        linear-gradient(90deg, rgba(32, 32, 28, 0.92), rgba(30, 111, 104, 0.78)),
        url("../uploads/legacy/2023/02/coworkers-team-brainstorming-scaled.jpg") center / cover;
}

.process-band > div {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(54px, 7vw, 92px) 0;
}

.process-band span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.process-band h2 {
    max-width: 860px;
    margin: 10px 0 0;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.06;
}

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

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

.team-card {
    overflow: hidden;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 8px;
    background: var(--surface);
}

.team-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: #ece8de;
}

.team-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.team-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.team-role {
    margin: 0;
    color: var(--gold);
    font-weight: 800;
}

.team-card p:not(.team-role) {
    margin: 0;
    color: var(--muted);
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.language-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    background: #fffaf0;
    font-size: 12px;
    font-weight: 800;
}

.language-tag-flag {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(21, 21, 18, 0.08);
}

.service-card {
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.service-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.12;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.content-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 5vw, 68px);
}

.page-copy {
    padding: 0;
}

.resource-links {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.resource-link-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(216, 175, 47, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(216, 175, 47, 0.14), rgba(255, 255, 255, 0.86));
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(32, 32, 28, 0.08);
}

.resource-link-card span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-link-card strong {
    color: var(--ink);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.08;
}

.resource-link-card p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.resource-link-card em {
    width: fit-content;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--gold);
    color: #1a1712;
    font-style: normal;
    font-weight: 900;
}

.contact-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 24px;
    background: var(--charcoal);
    border-radius: 8px;
    color: white;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.74);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: start;
}

.contact-intro {
    display: grid;
    gap: 26px;
}

.address-block,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.address-block {
    padding: 24px;
}

.address-block span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.address-block strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.address-block p {
    margin: 0;
    color: var(--muted);
}

.contact-form {
    padding: clamp(22px, 4vw, 34px);
}

.contact-form h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

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

.form-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fffdfa;
    font: inherit;
}

.form-grid textarea {
    resize: vertical;
}

.contact-form .button {
    margin-top: 18px;
    border: 0;
    cursor: pointer;
}

.form-success,
.form-errors {
    margin-bottom: 16px;
    border-radius: 7px;
    padding: 12px 14px;
}

.form-success {
    color: #10463e;
    background: #dff3ed;
}

.form-errors {
    color: #6b211c;
    background: #ffe7e3;
}

.form-errors p {
    margin: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(20px, 6vw, 84px);
    color: white;
    background: var(--charcoal);
}

.site-footer div {
    display: grid;
    gap: 3px;
}

.site-footer span {
    color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
    color: var(--gold);
    font-weight: 800;
}

[dir="rtl"] .primary-nav,
[dir="rtl"] .language-switcher {
    direction: rtl;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-menu {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    .site-header.menu-open .header-menu {
        display: grid;
    }

    .primary-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        justify-content: stretch;
    }

    .primary-nav a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(223, 221, 212, 0.72);
    }

    .language-switcher {
        justify-content: flex-start;
        gap: 8px;
    }

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

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

    .content-section {
        grid-template-columns: 1fr;
    }

    .method-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero,
    .subhero {
        min-height: 560px;
        padding-inline: 20px;
    }

    h1 {
        font-size: clamp(34px, 11.5vw, 52px);
        line-height: 1.04;
    }

    .subhero p {
        font-size: 18px;
        line-height: 1.48;
    }

    .section-heading h2 {
        font-size: clamp(28px, 10vw, 40px);
    }

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

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

    .hero-progress {
        left: 20px;
        right: 20px;
        bottom: 32px;
    }

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

    .site-footer {
        flex-direction: column;
    }
}
