/* =========================================================
   IREK // E-TWIN
   GEN1 — CLEAN BASE
   ========================================================= */

:root {
    --etwin-black: #07111b;
    --etwin-dark: #0b1724;
    --etwin-panel: #101f2e;

    --etwin-blue: #1597e5;
    --etwin-blue-soft: #65bfff;
    --etwin-line: #28455d;

    --etwin-paper: #f4f6f8;
    --etwin-paper-text: #111820;

    --etwin-text: #edf4fa;
    --etwin-muted: #9eb1c1;
}


/* =========================================================
   GLOBAL
   ========================================================= */

body {
    background: var(--etwin-black);
    color: var(--etwin-text);
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

.site-grid {
    background: var(--etwin-black);
}

main {
    min-height: 60vh;
}

a {
    color: var(--etwin-blue);
}

a:hover {
    color: var(--etwin-blue-soft);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    font-weight: 300;
    letter-spacing: 0.015em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
}


/* =========================================================
   HEADER + BRAND
   ========================================================= */

.container-header {
    background: rgba(7, 17, 27, 0.96);
    border-bottom: 1px solid var(--etwin-line);
    box-shadow: none;
}

.container-header .navbar-brand {
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-logo,
.brand-logo > span {
    text-decoration: none !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.container-header .mod-menu {
    color: var(--etwin-text);
}

/* Normal menu links + Joomla menu headings */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > .mod-menu__heading {
    color: var(--etwin-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    font-weight: inherit;
    font-family: inherit;

    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > .mod-menu__heading:hover,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.active > .mod-menu__heading {
    color: var(--etwin-blue-soft);
}
/* =========================================================
   HEADER // ROOT GEN1 — NAVIGATION ONLY
   ========================================================= */

.container-header .navbar-brand {
    display: none;
}

@media (min-width: 992px) {

    .container-header {
        padding: 0;
    }

    .container-header .container-nav {
        width: min(1180px, calc(100% - 64px));
        max-width: 1180px;
        margin: 0 auto;
        padding: 0.7rem 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .container-header .navbar-collapse {
        flex: 1 1 auto;
    }

    .container-header .mod-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin: 0;
        white-space: nowrap;
    }

    .container-header .mod-menu > li {
        margin: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > .mod-menu__heading {
        padding: 0.65rem 0.72rem;
        font-size: 0.67rem;
        line-height: 1.2;
        letter-spacing: 0.055em;
    }
}


/* =========================================================
   MODULES
   ========================================================= */

.card {
    background: var(--etwin-panel);
    border: 1px solid var(--etwin-line);
    border-radius: 0;
    color: var(--etwin-text);
    box-shadow: none;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--etwin-line);
    font-weight: 400;
    letter-spacing: 0.05em;
}


/* =========================================================
   SMALL E-TWIN DETAILS
   ========================================================= */

.etwin-label {
    color: var(--etwin-blue-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.etwin-rule {
    height: 1px;
    border: 0;
    background: var(--etwin-line);
}

.etwin-status {
    font-family: monospace;
    color: var(--etwin-muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}


/* =========================================================
   ARTICLE — SCIENTIFIC PAPER
   ========================================================= */

.com-content-article {
    max-width: 1180px;
    margin: 1.5rem auto 5rem;

    padding: clamp(2rem, 5vw, 4.5rem);

    background: var(--etwin-paper);
    color: var(--etwin-paper-text);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.com-content-article .page-header h1,
.com-content-article .page-header h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;

    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.025em;
}

.com-content-article__body {
    width: 100%;
    max-width: none;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   E-TWIN ARTICLE CONTENT
   ========================================================= */

.etwin-project-intro {
    width: 100%;
    max-width: none;
    margin: 0;
}

.etwin-project-intro p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    font-size: 1.28rem;
    line-height: 1.68;
}

.etwin-project-intro > h2,
.etwin-project-intro > h3,
.etwin-project-intro > .etwin-label {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   FIGURES
   ========================================================= */

.etwin-figure {
    width: 100%;
    max-width: 900px;
    margin: 0.5rem auto 2.5rem;
}

.etwin-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.etwin-figure figcaption {
    margin-top: 0.35rem;

    color: #65717c;
    font-size: 0.82rem;
    line-height: 1.4;
}


/* =========================================================
   EQUATIONS
   ========================================================= */

.etwin-equation {
    width: 92%;
    max-width: 690px;
    margin: 2.2rem auto 2.4rem;
}

.etwin-equation img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.etwin-equation figcaption {
    margin-top: 0.65rem;

    color: #65717c;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: left;
}


/* =========================================================
   HOME — HERO
   ========================================================= */

.etwin-home {
    width: 100%;
}

.etwin-hero {
    position: relative;
    min-height: 520px;

    display: flex;
    align-items: center;

    background: #06111d;
    border-bottom: 1px solid var(--etwin-line);
    overflow: hidden;
}


/* HERO IMAGE */

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

.etwin-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* DARK LEFT → IMAGE RIGHT */

.etwin-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(6, 17, 29, 1.00) 0%,
        rgba(6, 17, 29, 0.98) 25%,
        rgba(6, 17, 29, 0.82) 43%,
        rgba(6, 17, 29, 0.35) 62%,
        rgba(6, 17, 29, 0.05) 82%
    );

    pointer-events: none;
}


/* HERO TEXT */

.etwin-hero__inner {
    position: relative;
    z-index: 2;

    width: min(100%, 1180px);
    padding: 5rem 0 5.5rem;
}

.etwin-hero h1 {
    max-width: 760px;
    margin: 0.8rem 0 1.5rem;

    font-size: clamp(2.15rem, 4.1vw, 4.25rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.025em;

    color: var(--etwin-text);
}

.etwin-hero__intro {
    max-width: 720px;
    margin: 0 0 1rem;

    color: var(--etwin-muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    letter-spacing: 0.015em;
}

.etwin-hero__claim {
    margin: 0;

    color: var(--etwin-text);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   HOME — INTRO
   ========================================================= */

.etwin-home-intro {
    padding: 4.5rem 0 3rem;
}

.etwin-home-intro h2 {
    margin: 0.6rem 0 0.7rem;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.1;
}

.etwin-home-intro p {
    margin: 0;

    color: var(--etwin-muted);
    font-size: 1.05rem;
}


/* =========================================================
   HOME — ENTRY GRID
   ========================================================= */

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

    margin-top: 1rem;
    margin-bottom: 6rem;

    background: var(--etwin-line);
    border: 1px solid var(--etwin-line);
}

.etwin-home-card {
    position: relative;
    display: block;

    min-height: 230px;
    padding: 2.4rem;

    background: var(--etwin-dark);
    color: var(--etwin-text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.etwin-home-card h2 {
    margin: 1.2rem 0 0.8rem;

    color: var(--etwin-text);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.etwin-home-card p {
    max-width: 420px;
    margin: 0;

    color: var(--etwin-muted);
    font-size: 0.95rem;
}

.etwin-home-card:hover {
    background: var(--etwin-panel);
    color: var(--etwin-text);
}

.etwin-home-card:hover h2 {
    color: var(--etwin-blue-soft);
}


/* =========================================================
   MOBILE — MALUCH TEST
   ========================================================= */

@media (max-width: 768px) {

    .container-header .navbar-brand {
        font-size: 0.82rem;
        letter-spacing: 0.11em;
    }

    body {
        font-size: 16px;
    }

    .container-header {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .com-content-article {
        margin: 1rem 0 3rem;
        padding: 1.5rem;
        border-radius: 4px;
    }

    .etwin-project-intro p {
        max-width: none;
        font-size: 1.08rem;
    }

    .etwin-figure {
        width: 100%;
    }

    .etwin-equation {
        width: 100%;
    }

    .etwin-hero {
        min-height: 430px;
    }

    .etwin-hero__inner {
        padding: 4rem 0;
    }

    .etwin-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
        line-height: 1;
    }

    .etwin-hero::after {
        width: 420px;
        height: 420px;
        right: -280px;
        top: -120px;
    }

    .etwin-home-intro {
        padding: 3rem 0 2rem;
    }

    .etwin-home-grid {
        grid-template-columns: 1fr;
        margin-bottom: 4rem;
    }

    .etwin-home-card {
        min-height: 180px;
        padding: 1.8rem;
    }
}
/* =========================================================
   E-TWIN // PUBLICATIONS
   ========================================================= */

.etwin-publication {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 35, 50, 0.16);
}

.etwin-pub-year {
    font-size: 1.05rem;
    font-weight: 600;
    color: #159ee4;
    letter-spacing: 0.05em;
    padding-top: 3px;
}

.etwin-pub-type {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #607080;
}

.etwin-pub-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.etwin-pub-authors {
    margin: 0 0 12px 0;
    line-height: 1.55;
}

.etwin-pub-source {
    margin: 0 0 18px 0;
}

.etwin-pub-abstract {
    margin: 0 0 20px 0;
    line-height: 1.65;
    max-width: 52rem;
}

.etwin-pub-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.etwin-pub-links span {
    display: none;
}

.etwin-pub-links a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #159ee4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.etwin-pub-links a:hover {
    background: #159ee4;
    color: #fff;
}

@media (max-width: 640px) {
    .etwin-publication {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .etwin-pub-year {
        padding-top: 0;
    }
}
/* =========================================================
   E-TWIN // HOME HERO
   ========================================================= */

.etwin-home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
    background: #06111d;
}

.etwin-home-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.etwin-home-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.etwin-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(6, 17, 29, 0.98) 0%,
        rgba(6, 17, 29, 0.92) 27%,
        rgba(6, 17, 29, 0.55) 48%,
        rgba(6, 17, 29, 0.08) 72%
    );
}

.etwin-home-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 80px 0;
}

.etwin-home-name {
    max-width: 900px;
    margin: 0 0 14px;
    color: var(--etwin-blue-soft);
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.etwin-home-hero-content h1 {
    max-width: 720px;
    margin: 14px 0 20px;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.035em;
    color: #f3f6f9;
}


.etwin-home-fields {
    max-width: 720px;
    margin: 0 0 14px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #aebdca;
}

.etwin-home-keywords {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #dce6ee;
}


/* =========================================================
   ROOT // HERO ACTIONS
   ========================================================= */

.etwin-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.etwin-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--etwin-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.09em;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.etwin-home-button--primary {
    background: var(--etwin-blue);
    color: #ffffff;
}

.etwin-home-button--primary:hover {
    background: var(--etwin-blue-soft);
    border-color: var(--etwin-blue-soft);
    color: #07111b;
}

.etwin-home-button--secondary {
    background: rgba(7, 17, 27, 0.45);
    color: var(--etwin-text);
    border-color: rgba(101, 191, 255, 0.55);
}

.etwin-home-button--secondary:hover {
    background: rgba(101, 191, 255, 0.10);
    border-color: var(--etwin-blue-soft);
    color: var(--etwin-blue-soft);
}

.etwin-home-profile {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 54px 0 58px;
    border-bottom: 1px solid rgba(90, 170, 220, 0.28);
}

.etwin-home-profile h2 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    color: #edf3f7;
}

.etwin-home-profile p {
    margin: 0;
    color: #98aaba;
}

@media (max-width: 768px) {

    .etwin-home-hero {
        min-height: 500px;
    }

    .etwin-home-hero::after {
        background: linear-gradient(
            90deg,
            rgba(6, 17, 29, 0.96) 0%,
            rgba(6, 17, 29, 0.82) 60%,
            rgba(6, 17, 29, 0.35) 100%
        );
    }

    .etwin-home-hero-content,
    .etwin-home-profile {
        width: min(100% - 36px, 1180px);
    }

    .etwin-home-hero-content {
        padding: 60px 0;
    }

    .etwin-home-hero-content h1 {
        font-size: clamp(2.7rem, 12vw, 4.5rem);
    }

    .etwin-home-name {
        font-size: clamp(2.7rem, 12vw, 4.5rem);
    }
}
/* =========================================================
   E-TWIN // DOWNLOADS
   ========================================================= */

.etwin-download-table {
    width: 100%;
    max-width: 900px;
    margin: 2.5rem auto 0;
    overflow-x: auto;
}

.etwin-download-table table {
    width: 100%;
    border-collapse: collapse;
}

.etwin-download-table th,
.etwin-download-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(20, 35, 50, 0.16);
    text-align: left;
    vertical-align: top;
}

.etwin-download-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #607080;
}

.etwin-download-table td {
    line-height: 1.5;
}

.etwin-download-table td:nth-child(3),
.etwin-download-table td:nth-child(4) {
    white-space: nowrap;
}

.etwin-download-table a {
    font-weight: 600;
    text-decoration: none;
}

.etwin-download-table a:hover {
    text-decoration: underline;
}

/* =========================================================
   ROOT GEN1 — HIDE BRAND / KEEP NAVIGATION
   ========================================================= */

.container-header .navbar-brand {
    display: none !important;
}


/* =========================================================
   ROOT GEN1 — ACTIVE HERO
   rendered by com_content/featured/default.php
   ========================================================= */

.etwin-hero__name {
    max-width: 900px;
    margin: 0 0 0.35rem;
    color: var(--etwin-blue-soft);
    font-size: clamp(2.15rem, 4.1vw, 4.25rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.etwin-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.etwin-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1.15rem;
    border: 1px solid var(--etwin-blue);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.etwin-hero__button--primary {
    background: var(--etwin-blue);
    color: #ffffff;
}

.etwin-hero__button--primary:hover {
    background: var(--etwin-blue-soft);
    border-color: var(--etwin-blue-soft);
    color: var(--etwin-black);
}

.etwin-hero__button--secondary {
    background: rgba(7, 17, 27, 0.45);
    border-color: rgba(101, 191, 255, 0.60);
    color: var(--etwin-text);
}

.etwin-hero__button--secondary:hover {
    background: rgba(101, 191, 255, 0.10);
    border-color: var(--etwin-blue-soft);
    color: var(--etwin-blue-soft);
}

@media (max-width: 768px) {
    .etwin-hero__name {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

    .etwin-hero__actions {
        gap: 0.65rem;
    }
}


/* =========================================================
   ROOT GEN1 — HERO TYPOGRAPHY FINAL SCALE
   ========================================================= */

.etwin-hero__name,
.etwin-hero__inner h1 {
    font-size: clamp(2.15rem, 4.1vw, 4.25rem);
    line-height: 1.02;
}

@media (max-width: 768px) {
    .etwin-hero__name,
    .etwin-hero__inner h1 {
        font-size: clamp(2rem, 9vw, 3.35rem);
    }
}


/* =========================================================
   ROOT GEN1 — DOMAIN STRIP
   ========================================================= */

.etwin-home-domains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    margin-top: 3rem;
    padding: 2.4rem 0 2.6rem;
    border-top: 1px solid var(--etwin-line);
    border-bottom: 1px solid var(--etwin-line);
}

.etwin-home-domain {
    min-width: 0;
}

.etwin-home-domain__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    color: var(--etwin-blue-soft);
}

.etwin-home-domain__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.etwin-home-domain h3 {
    margin: 0 0 0.55rem;
    color: var(--etwin-text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.etwin-home-domain p {
    max-width: 220px;
    min-height: 3.2em;
    margin: 0 0 0.85rem;
    color: var(--etwin-text-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.etwin-home-domain a {
    color: var(--etwin-blue-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-decoration: none;
}

.etwin-home-domain a:hover {
    color: var(--etwin-text);
}

.etwin-home-selected {
    scroll-margin-top: 6rem;
}

@media (max-width: 900px) {
    .etwin-home-domains {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.2rem 2rem;
    }
}

@media (max-width: 520px) {
    .etwin-home-domains {
        grid-template-columns: 1fr;
    }

    .etwin-home-domain p {
        max-width: none;
        min-height: 0;
    }
}


/* =========================================================
   ROOT GEN1 — PROFILE SCALE + SELECTED PROJECTS
   ========================================================= */

.etwin-home-intro > h2 {
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.etwin-home-selected {
    padding: 4.5rem 0 1rem;
}

.etwin-home-section-head {
    margin-bottom: 1.8rem;
}

.etwin-home-section-head h2 {
    max-width: 760px;
    margin: 0.55rem 0 0;
    font-size: clamp(1.65rem, 2.7vw, 2.5rem);
    font-weight: 300;
    line-height: 1.15;
}

.etwin-home-projects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--etwin-line);
    border-bottom: 1px solid var(--etwin-line);
}

.etwin-home-project {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 1.8rem 1.5rem;
    border-right: 1px solid var(--etwin-line);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.etwin-home-project:last-child {
    border-right: 0;
}

.etwin-home-project:hover {
    background: rgba(101, 191, 255, 0.045);
}

.etwin-home-project h3 {
    margin: 1rem 0 0.7rem;
    color: var(--etwin-text);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
}

.etwin-home-project p {
    margin: 0;
    color: var(--etwin-text-soft);
    font-size: 0.8rem;
    line-height: 1.55;
}

.etwin-home-project__link {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--etwin-blue-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
}

@media (max-width: 900px) {
    .etwin-home-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .etwin-home-project:nth-child(2) {
        border-right: 0;
    }

    .etwin-home-project:nth-child(-n+2) {
        border-bottom: 1px solid var(--etwin-line);
    }
}

@media (max-width: 520px) {
    .etwin-home-projects {
        grid-template-columns: 1fr;
    }

    .etwin-home-project {
        min-height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--etwin-line);
    }

    .etwin-home-project:last-child {
        border-bottom: 0;
    }
}


/* =========================================================
   ROOT GEN1 — PUBLICATIONS + TEACHING
   ========================================================= */

.etwin-home-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4.5rem;
    border-top: 1px solid var(--etwin-line);
    border-bottom: 1px solid var(--etwin-line);
}

.etwin-home-feature {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 2.4rem 2.2rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.etwin-home-feature:first-child {
    border-right: 1px solid var(--etwin-line);
}

.etwin-home-feature:hover {
    background: rgba(101, 191, 255, 0.045);
}

.etwin-home-feature h2 {
    max-width: 500px;
    margin: 1rem 0 0.9rem;
    color: var(--etwin-text);
    font-size: clamp(1.7rem, 2.6vw, 2.45rem);
    font-weight: 300;
    line-height: 1.15;
}

.etwin-home-feature p {
    max-width: 540px;
    margin: 0;
    color: var(--etwin-text-soft);
    font-size: 0.82rem;
    line-height: 1.6;
}

.etwin-home-feature__link {
    margin-top: auto;
    padding-top: 1.8rem;
    color: var(--etwin-blue-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
}

@media (max-width: 700px) {
    .etwin-home-duo {
        grid-template-columns: 1fr;
    }

    .etwin-home-feature:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--etwin-line);
    }
}


/* =========================================================
   ROOT GEN1 — VISUAL ARCHIVE
   ========================================================= */

.etwin-home-archive {
    padding: 4.5rem 0 1rem;
}

.etwin-home-archive__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.etwin-home-archive__head h2 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.65rem, 2.7vw, 2.5rem);
    font-weight: 300;
    line-height: 1.15;
}

.etwin-home-archive__head > a {
    flex: 0 0 auto;
    padding-bottom: 0.25rem;
    color: var(--etwin-blue-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-decoration: none;
}

.etwin-home-archive__strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.etwin-home-archive__item {
    color: inherit;
    text-decoration: none;
}

.etwin-home-archive__dummy {
    display: flex;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--etwin-line);
    background:
        linear-gradient(135deg, rgba(101, 191, 255, 0.06), transparent 55%),
        rgba(7, 17, 27, 0.45);
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.etwin-home-archive__dummy span {
    color: rgba(101, 191, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.etwin-home-archive__item:hover .etwin-home-archive__dummy {
    border-color: rgba(101, 191, 255, 0.55);
    background:
        linear-gradient(135deg, rgba(101, 191, 255, 0.11), transparent 55%),
        rgba(7, 17, 27, 0.55);
}

.etwin-home-archive__item p {
    margin: 0.65rem 0 0;
    color: var(--etwin-text-soft);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

@media (max-width: 800px) {
    .etwin-home-archive__strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .etwin-home-archive__head {
        display: block;
    }

    .etwin-home-archive__head > a {
        display: inline-block;
        margin-top: 1rem;
    }

    .etwin-home-archive__strip {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ROOT GEN1 — FOOTER
   ========================================================= */

.etwin-home-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 4.5rem;
    padding: 2rem 0 2.4rem;
    border-top: 1px solid var(--etwin-line);
}

.etwin-home-footer__identity p {
    margin: 0;
    color: var(--etwin-text-soft);
    font-size: 0.68rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.etwin-home-footer__identity .etwin-home-footer__name {
    color: var(--etwin-text);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.etwin-home-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem 1.4rem;
}

.etwin-home-footer__links a {
    color: var(--etwin-blue-soft);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.etwin-home-footer__links a:hover {
    color: var(--etwin-text);
}

@media (max-width: 700px) {
    .etwin-home-footer {
        display: block;
    }

    .etwin-home-footer__links {
        justify-content: flex-start;
        margin-top: 1.3rem;
    }
}


/* =========================================================
   CONTACT GEN1 — FORM + WIREFRAME PORTRAIT
   ========================================================= */

.etwin-contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: 2rem;
}

.etwin-contact__form-panel,
.etwin-contact__portrait-panel {
    min-width: 0;
}

.etwin-contact__form-panel .control-group,
.etwin-contact__form-panel .form-group {
    max-width: 100%;
}

.etwin-contact__form-panel input:not([type=checkbox]):not([type=radio]),
.etwin-contact__form-panel textarea {
    max-width: 100%;
}

.etwin-contact__portrait-panel {
    margin: 0;
    display: flex;
    justify-content: center;
}

.etwin-contact__portrait {
    display: block;
    width: 65%;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(66, 156, 214, 0.24);
    border-radius: 3px;
}

@media (max-width: 800px) {
    .etwin-contact__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .etwin-contact__portrait-panel {
        max-width: 480px;
    }
}

/* =========================================================
   CONTACT GEN1 — JOOMLA CONFIRMATION MESSAGE
   Joomla uses alert-message for ordinary confirmation notices.
   ========================================================= */

#system-message-container .alert-message,
#system-message-container .alert-success,
#system-message-container .joomla-alert--message,
#system-message-container .joomla-alert--success {
    background-color: #102d35 !important;
    border: 1px solid #46bfae !important;
    color: #e9fff9 !important;
    border-radius: 4px;
}

#system-message-container .alert-message .alert-message,
#system-message-container .alert-message .alert-heading,
#system-message-container .alert-message .alert-wrapper,
#system-message-container .alert-message p,
#system-message-container .alert-success p,
#system-message-container .joomla-alert--message p,
#system-message-container .joomla-alert--success p {
    color: #e9fff9 !important;
}

#system-message-container .alert-message .alert-heading,
#system-message-container .alert-success .alert-heading {
    background: transparent !important;
}