@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --bg: #050813;
    --panel: rgba(11, 20, 39, 0.78);
    --border: rgba(198, 219, 255, 0.14);
    --text: #f5f8ff;
    --muted: #b9c7dc;
    --muted-strong: #d9e4f5;
    --cyan: #79e7ff;
    --teal: #5dffd0;
    --coral: #ff906f;
    --amber: #ffd166;
    --shadow: rgba(0, 0, 0, 0.38);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 4%, rgba(121, 231, 255, 0.18), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(255, 144, 111, 0.13), transparent 24%),
        linear-gradient(180deg, #030612 0%, var(--bg) 44%, #030611 100%);
    color: var(--text);
    font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, black, transparent 82%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 6, 18, 0.82);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand__wordmark {
    color: var(--text);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
}

.brand__wordmark span {
    color: var(--cyan);
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted-strong);
    font-size: 0.95rem;
}

.nav a {
    transition: color 0.18s ease;
}

.nav a:hover {
    color: var(--cyan);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.language-switch__option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    opacity: 0.68;
    transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.language-switch__option:hover {
    color: var(--text);
    opacity: 1;
}

.language-switch__option.is-active {
    color: var(--text);
    background: rgba(121, 231, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(121, 231, 255, 0.16);
    opacity: 1;
}

.language-switch__option:focus-visible,
.menu-toggle:focus-visible,
.nav a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.language-switch__flag {
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

.section {
    padding: clamp(56px, 6.5vw, 88px) 0;
}

.hero {
    padding-top: clamp(48px, 5vw, 74px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.hero__copy {
    max-width: 660px;
}

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

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 5.15vw, 4.65rem);
    line-height: 1;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
    hyphens: manual;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.18;
}

.section-eyebrow {
    margin-bottom: 14px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__lead,
.section-lead,
.prose p {
    color: var(--muted-strong);
    font-size: clamp(1.05rem, 2.2vw, 1.24rem);
}

.hero__lead {
    max-width: 58ch;
    margin-bottom: 28px;
}

.hero__lead span {
    display: block;
    margin-top: 18px;
}

.hero__lead > span:first-child {
    margin-top: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.btn--primary {
    color: #130806;
    background: linear-gradient(135deg, #ffd166, var(--coral));
    box-shadow: 0 18px 48px rgba(255, 144, 111, 0.24);
}

.btn--secondary {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.hero__visual {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
        #07101f;
    box-shadow: 0 28px 90px var(--shadow);
    overflow: hidden;
}

.hero__visual::before,
.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__visual::before {
    z-index: 1;
    opacity: 0.48;
    background:
        radial-gradient(circle at 52% 42%, rgba(121, 231, 255, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(5, 8, 19, 0.05), rgba(5, 8, 19, 0.26) 76%),
        linear-gradient(90deg, rgba(93, 255, 208, 0.08), rgba(255, 144, 111, 0.08));
}

.hero__visual::after {
    z-index: 2;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, transparent, rgba(5, 8, 19, 0.38));
    background-size: 58px 58px, 58px 58px, auto;
}

.hero__visual img {
    width: 100%;
    aspect-ratio: 1.62;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.04) contrast(1.03) brightness(1.04);
}

.section-icon {
    width: clamp(58px, 6vw, 82px);
    height: clamp(58px, 6vw, 82px);
    margin-bottom: 22px;
    color: var(--cyan);
    filter: drop-shadow(0 16px 34px rgba(121, 231, 255, 0.16));
}

.section-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-icon--lamp {
    margin: 0 auto 34px;
    color: var(--cyan);
    filter: drop-shadow(0 18px 38px rgba(121, 231, 255, 0.13));
}

.section-icon--lamp svg {
    stroke-width: 2.7;
}

.section-icon--lamp .lamp-wire,
.section-icon--lamp .lamp-socket,
.section-icon--lamp .lamp-shade,
.section-icon--lamp .lamp-rim {
    stroke: var(--cyan);
}

.section-icon--lamp .lamp-bulb,
.section-icon--lamp .lamp-light {
    stroke: var(--coral);
}

.section-icon--science {
    color: var(--cyan);
}

.section-icon--science svg {
    stroke-width: 2.8;
}

.section-icon--science .bubble {
    stroke: var(--coral);
}

.section-icon--science .bubble-two {
    stroke: var(--teal);
}

.icon-accent {
    stroke: var(--coral);
}

.context {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.two-column {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr;
    gap: clamp(28px, 6vw, 82px);
    align-items: start;
}

.prose p {
    margin-bottom: 18px;
}

.person-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

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

.method {
    background: radial-gradient(circle at 8% 70%, rgba(93, 255, 208, 0.1), transparent 28%);
}

.method__intro {
    max-width: 880px;
    margin-bottom: 30px;
}

.method__intro .section-icon,
.section-heading .section-icon,
.workshop__copy .section-icon {
    margin-left: 0;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.24));
}

.method-step {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    min-height: 270px;
    padding: 30px 42px 30px 30px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 30, 55, 0.98), rgba(10, 18, 34, 0.98));
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 22px 50%);
}

.method-step:first-child {
    border-radius: 8px 0 0 8px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}

.method-step:not(:first-child) {
    padding-left: 44px;
}

.method-step:last-child {
    border-radius: 0 8px 8px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%);
    background: linear-gradient(135deg, rgba(72, 60, 36, 0.95), rgba(24, 20, 29, 0.98));
}

.method-step h3 {
    margin-bottom: 0;
    font-size: 1.08rem;
}

.method-step p {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--muted);
}

.method-icon {
    width: 44px;
    height: 44px;
    color: var(--cyan);
}

.method-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

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

.section-heading .section-lead {
    max-width: 720px;
}

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

.avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #061019;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.workshop {
    display: flex;
    align-items: center;
    padding-block: clamp(72px, 8vw, 112px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at 82% 44%, rgba(255, 144, 111, 0.12), transparent 28%);
}

.workshop__layout {
    display: block;
}

.workshop .btn {
    margin-top: 12px;
}

.workshop__copy {
    max-width: 780px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #030611;
    color: var(--muted);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 120px;
}

.brand--footer {
    flex-shrink: 0;
}

.footer__inner p {
    margin: 0;
}

.footer__inner a {
    color: var(--cyan);
    font-weight: 700;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 720px);
    }

    .header__inner {
        min-height: 68px;
    }

    .brand__wordmark {
        font-size: 1.65rem;
    }

    .nav {
        gap: 16px;
        font-size: 0.88rem;
    }

    .header__controls {
        gap: 14px;
    }

    .hero__grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.05rem, 9.5vw, 3.7rem);
        line-height: 1.02;
    }

    h2 {
        font-size: clamp(1.95rem, 8vw, 3.2rem);
    }

    .method-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .method-step,
    .method-step:first-child,
    .method-step:last-child {
        clip-path: none;
        border-radius: 8px;
        min-height: 230px;
        padding: 22px;
    }

    .method-step:not(:first-child) {
        padding-left: 22px;
    }

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

    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 0;
    }
}

@media (max-width: 560px) {
    .header__inner {
        position: relative;
        align-items: center;
        flex-direction: row;
        min-height: 72px;
        padding: 10px 0;
    }

    .brand__wordmark {
        font-size: 1.38rem;
    }

    .menu-toggle {
        display: block;
        width: 42px;
        height: 42px;
    }

    .header__controls {
        gap: 10px;
    }

    .language-switch__option {
        min-width: 34px;
        min-height: 34px;
        padding-inline: 7px;
    }

    .nav {
        position: absolute;
        top: calc(100% - 6px);
        right: 0;
        z-index: 20;
        display: none;
        align-items: stretch;
        flex-direction: column;
        width: min(240px, calc(100vw - 32px));
        gap: 0;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: rgba(5, 8, 19, 0.98);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    }

    .site-header.is-open .nav {
        display: flex;
    }

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

    .nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 26px;
        padding-bottom: 52px;
    }

    .hero__grid {
        gap: 18px;
    }

    .hero__copy {
        display: contents;
    }

    .hero__copy h1 {
        order: 2;
        margin-bottom: 14px;
        font-size: clamp(2.35rem, 13.4vw, 3.18rem);
        line-height: 0.98;
    }

    .hero__lead {
        order: 3;
        max-width: none;
        margin-bottom: 8px;
        line-height: 1.42;
    }

    .hero__visual {
        order: 1;
    }

    .actions {
        order: 4;
        gap: 10px;
    }

    .hero__lead,
    .section-lead,
    .prose p {
        font-size: 1rem;
    }

    .hero__lead span {
        margin-top: 12px;
    }

    .section-icon,
    .method__intro .section-icon,
    .section-heading .section-icon,
    .workshop__copy .section-icon {
        margin-right: auto;
        margin-left: auto;
    }

    .method__intro,
    .section-heading,
    .workshop__copy {
        text-align: center;
    }

    .actions,
    .btn {
        width: 100%;
    }

    .hero__visual {
        margin-inline: -6px;
    }

    .hero__visual img {
        aspect-ratio: 1.92;
        object-position: center 42%;
    }

    .method-steps {
        grid-template-columns: 1fr;
    }

    .method-step,
    .method-step:first-child,
    .method-step:last-child {
        min-height: 0;
        padding-left: 26px;
    }

    .method-step:not(:first-child) {
        padding-left: 26px;
    }

    .method-step {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: start;
        gap: 0 18px;
        padding: 26px;
    }

    .method-icon {
        grid-column: 1;
        grid-row: 1;
        width: 42px;
        height: 42px;
        margin-top: 2px;
    }

    .method-step > div:last-child {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
    }

    .method-step h3 {
        font-size: 1.16rem;
    }

    .method-step p {
        margin-top: 8px;
    }
}
