/* ==========================================================================
   Homepage and shared shell — samoreira.eu
   ========================================================================== */

:root {
    --home-font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --home-orange: #ff6900;
    --home-orange-light: #ff8a1f;
    --home-bg: #050505;
    --home-surface: #0d0d0e;
    --home-surface-raised: #151516;
    --home-surface-soft: #1b1b1c;
    --home-border: #29292b;
    --home-border-soft: rgba(255, 255, 255, 0.08);
    --home-text: #f6f6f7;
    --home-muted: #a6a6aa;
    --home-muted-strong: #c9c9cc;
    --home-radius: 14px;
    --home-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    --home-shell-max-width: 1440px;
    --home-shell-inline-gutter: 32px;
    --home-nav-gap: clamp(14px, 1.8vw, 29px);
    --home-nav-font-size: clamp(0.84rem, 0.92vw, 0.98rem);
    --home-nav-font-weight: 750;
    --home-nav-line-height: 1;
    --home-nav-submenu-font-size: 0.88rem;
    --home-nav-submenu-font-weight: 650;
    --home-nav-submenu-line-height: 1.25;
}

html {
    scroll-behavior: smooth;
}

body.home-site {
    min-width: 320px;
    min-height: 100vh;
    color: var(--home-text);
    font-family: var(--home-font-sans);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 105, 0, 0.08), transparent 24rem),
        radial-gradient(circle at 90% 45%, rgba(255, 105, 0, 0.035), transparent 30rem),
        var(--home-bg);
}

.home-site img {
    max-width: 100%;
}

.home-site svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-site a {
    letter-spacing: normal;
}

.home-site a:hover,
.home-site a:focus-visible {
    letter-spacing: normal;
    text-decoration: none;
}

.site-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 16px;
    color: #080808;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 8px;
    background: var(--home-orange);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.site-skip-link:focus {
    transform: translateY(0);
}

/* Header */

.home-site .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    color: var(--home-text);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(5, 5, 5, 0.9);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.home-site .site-header::after {
    display: none;
}

.site-header__inner {
    width: min(1440px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 54px);
    align-items: center;
}

.site-brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
}

.site-brand img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 105, 0, 0.18));
}

.site-brand__text {
    display: grid;
    gap: 1px;
}

.site-brand__text strong {
    color: var(--home-text);
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
}

.site-brand__text strong span {
    color: var(--home-orange);
}

.site-brand__text small {
    color: #89898e;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--home-nav-gap);
    font-family: var(--home-font-sans);
}

.site-nav a,
.site-nav summary,
.site-nav span {
    font-family: inherit;
    font-style: normal;
    font-stretch: normal;
}

.site-nav > .site-nav__top-link,
.site-nav__dropdown > summary {
    position: relative;
    padding: 29px 0 27px;
    color: #dddddf;
    font-family: inherit;
    font-size: var(--home-nav-font-size);
    font-weight: var(--home-nav-font-weight);
    line-height: var(--home-nav-line-height);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.site-nav__dropdown > summary::-webkit-details-marker {
    display: none;
}

.site-nav > .site-nav__top-link::after,
.site-nav__dropdown > summary::before {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--home-orange);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.site-nav__dropdown {
    position: relative;
}

.site-nav__dropdown > summary {
    display: flex;
    align-items: center;
}

.site-nav__dropdown > summary::after {
    width: 6px;
    height: 6px;
    margin: -4px 0 0 8px;
    content: "";
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.site-nav__dropdown[open] > summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.site-nav > .site-nav__top-link:hover,
.site-nav > .site-nav__top-link:focus-visible,
.site-nav > .site-nav__top-link.is-active,
.site-nav__dropdown > summary:hover,
.site-nav__dropdown > summary:focus-visible,
.site-nav__dropdown[open] > summary,
.site-nav__dropdown--primary > summary {
    color: var(--home-orange);
}

.site-nav > .site-nav__top-link:hover::after,
.site-nav > .site-nav__top-link:focus-visible::after,
.site-nav > .site-nav__top-link.is-active::after,
.site-nav__dropdown > summary:hover::before,
.site-nav__dropdown > summary:focus-visible::before,
.site-nav__dropdown[open] > summary::before {
    transform: scaleX(1);
}

.site-nav__auth {
    color: var(--home-orange) !important;
}

.site-nav__menu {
    position: absolute;
    top: calc(100% - 12px);
    left: 50%;
    z-index: 110;
    min-width: 230px;
    padding: 8px;
    display: grid;
    gap: 2px;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(12, 12, 13, 0.98);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translate(-50%, 8px);
    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
    backdrop-filter: blur(18px);
}

.site-nav__dropdown[open] > .site-nav__menu,
.site-nav__dropdown:hover > .site-nav__menu,
.site-nav__dropdown:focus-within > .site-nav__menu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-nav__menu--wide {
    min-width: 280px;
    max-height: min(70vh, 580px);
    overflow-y: auto;
}

.site-nav__menu a {
    padding: 11px 12px;
    color: #d6d6d9;
    font-family: inherit;
    font-size: var(--home-nav-submenu-font-size);
    font-weight: var(--home-nav-submenu-font-weight);
    line-height: var(--home-nav-submenu-line-height);
    text-transform: none;
    white-space: nowrap;
    border-radius: 7px;
    transition: color 150ms ease, background 150ms ease;
}

.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
    color: #fff;
    background: rgba(255, 105, 0, 0.15);
}

.site-nav__menu-label {
    padding: 10px 12px 5px;
    color: var(--home-orange);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav__menu-separator {
    height: 1px;
    margin: 6px 8px;
    background: rgba(255, 255, 255, 0.09);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.site-header__actions a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #dedee0;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-header__actions a:hover,
.site-header__actions a:focus-visible {
    color: var(--home-orange);
    border-color: rgba(255, 105, 0, 0.38);
    background: rgba(255, 105, 0, 0.08);
}

.site-header__actions svg {
    width: 19px;
    height: 19px;
}

.site-nav__toggle,
.site-nav__burger,
.site-nav__overlay {
    display: none;
}

/* Shared content shell */

.site-content {
    min-height: 55vh;
}

.site-content > .container-1600 {
    width: min(1180px, calc(100% - 40px));
    margin: 32px auto 70px;
    padding: clamp(22px, 4vw, 54px);
    color: var(--home-muted-strong);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: linear-gradient(145deg, rgba(24, 24, 25, 0.92), rgba(10, 10, 11, 0.96));
}

.site-content > .container-1600 h1,
.site-content > .container-1600 h2,
.site-content > .container-1600 h3,
.site-content > .container-1600 h4 {
    color: var(--home-text);
    font-family: inherit;
    text-shadow: none;
}

.site-content > .container-1600 p,
.site-content > .container-1600 li {
    color: var(--home-muted-strong);
    font-family: inherit;
}

/* Legal pages */

.site-content > .container-1600.legal-page {
    width: min(1440px, calc(100% - 32px));
    margin: 24px auto 92px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.legal-page__shell {
    display: grid;
    gap: 0;
}

.legal-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 50%, rgba(255, 105, 0, 0.15), transparent 30%),
        linear-gradient(125deg, #171514 0, #0b0b0c 56%, #070707 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.legal-hero::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 190px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--home-orange), transparent);
}

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

.legal-hero__eyebrow {
    margin: 0 0 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--home-orange) !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    line-height: 1.4 !important;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.legal-hero__eyebrow span {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 2px;
    background: var(--home-orange);
    transform: rotate(45deg);
    box-shadow: 0 0 16px rgba(255, 105, 0, 0.75);
}

.legal-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(2.9rem, 6vw, 5.65rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.065em;
    text-shadow: none;
}

.legal-hero h1::after {
    content: ".";
    color: var(--home-orange);
}

.legal-hero__intro {
    max-width: 650px;
    margin-top: 28px;
}

.legal-hero__intro p {
    margin: 0 0 10px;
    color: #c9c9cc !important;
    font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

.legal-hero__intro p:last-child {
    margin-bottom: 0;
}

.legal-hero__author {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--home-muted);
    font-size: 0.9rem;
}

.legal-hero__author > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--home-orange);
    border: 1px solid rgba(255, 105, 0, 0.45);
    border-radius: 9px;
    background: rgba(255, 105, 0, 0.08);
}

.legal-hero__author svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-hero__author strong {
    color: var(--home-text);
}

.legal-hero__visual {
    position: relative;
    z-index: 2;
    width: min(370px, 34vw);
    aspect-ratio: 1;
    justify-self: center;
}

.legal-orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 105, 0, 0.23);
    border-radius: 50%;
}

.legal-orbit::before {
    position: absolute;
    width: 9px;
    height: 9px;
    content: "";
    border-radius: 50%;
    background: var(--home-orange);
    box-shadow: 0 0 18px rgba(255, 105, 0, 0.9);
}

.legal-orbit--outer::before {
    top: 14%;
    left: 12%;
}

.legal-orbit--inner {
    inset: 13%;
    border-color: rgba(255, 255, 255, 0.08);
}

.legal-orbit--inner::before {
    right: 2%;
    bottom: 20%;
    width: 6px;
    height: 6px;
}

.legal-hero__symbol {
    position: absolute;
    inset: 26%;
    display: grid;
    place-items: center;
    color: var(--home-orange);
    filter: drop-shadow(0 12px 28px rgba(255, 105, 0, 0.25));
}

.legal-hero__symbol::before {
    position: absolute;
    inset: -30%;
    content: "";
    border: 1px solid rgba(255, 105, 0, 0.26);
    border-radius: 28px;
    background: rgba(255, 105, 0, 0.05);
    transform: rotate(45deg);
}

.legal-hero__symbol svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    fill: rgba(255, 105, 0, 0.12);
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-page--cookies .legal-hero__symbol {
    inset: 22%;
}

.legal-hero__symbol svg.legal-cookie-icon {
    overflow: visible;
    fill: none;
    stroke-width: 1.35;
}

.legal-cookie-icon__body {
    fill: rgba(255, 105, 0, 0.16);
    stroke: currentColor;
    filter: drop-shadow(0 8px 13px rgba(255, 105, 0, 0.2));
}

.legal-cookie-icon .legal-cookie-chip {
    fill: currentColor;
    stroke: none;
    filter: drop-shadow(0 0 2px rgba(255, 105, 0, 0.65));
}

.legal-visual-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-muted);
}

.legal-visual-dot--one {
    top: 24%;
    right: 20%;
}

.legal-visual-dot--two {
    bottom: 18%;
    left: 24%;
}

.legal-visual-dot--three {
    top: 50%;
    left: 4%;
}

.legal-document {
    width: 100%;
    margin: 64px auto 0;
    display: grid;
    gap: 18px;
}

.legal-card {
    position: relative;
    min-width: 0;
    padding: clamp(28px, 5vw, 52px);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 32px);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(19, 19, 21, 0.96), rgba(11, 11, 12, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.legal-card::after {
    position: absolute;
    right: -1px;
    bottom: 34px;
    width: 2px;
    height: 42px;
    content: "";
    opacity: 0;
    background: var(--home-orange);
    transition: opacity 180ms ease;
}

.legal-card:hover::after {
    opacity: 1;
}

.legal-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--home-orange);
    border: 1px solid rgba(255, 105, 0, 0.38);
    border-radius: 12px;
    background: rgba(255, 105, 0, 0.065);
}

.legal-card__icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-card__body {
    min-width: 0;
}

.legal-card__eyebrow {
    margin: 0 0 10px !important;
    color: var(--home-orange) !important;
    font-size: 0.7rem !important;
    font-weight: 800;
    line-height: 1.4 !important;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.legal-card h2 {
    margin: 0 0 20px;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.035em;
    text-shadow: none;
}

.legal-card__content {
    max-width: 78ch;
}

.legal-card__content p {
    margin: 0;
    color: var(--home-muted) !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    text-align: left !important;
}

.legal-card__content p + p {
    margin-top: 18px;
}

.legal-card__content strong {
    color: #e7e7e9;
}

.legal-card__content a {
    color: var(--home-orange-light);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.legal-card--contact {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    border-color: rgba(255, 105, 0, 0.48);
    background:
        radial-gradient(circle at 86% 30%, rgba(255, 138, 31, 0.18), transparent 20rem),
        linear-gradient(125deg, #16120f, #0d0d0e 60%);
}

.legal-action,
.cookie-preferences-button {
    min-height: 48px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #080808;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    border: 1px solid var(--home-orange);
    border-radius: 8px;
    background: var(--home-orange);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.legal-action {
    min-width: 190px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.legal-action:hover,
.legal-action:focus-visible,
.cookie-preferences-button:hover,
.cookie-preferences-button:focus-visible {
    color: #080808;
    background: var(--home-orange-light);
    box-shadow: 0 10px 30px rgba(255, 105, 0, 0.22);
    transform: translateY(-2px);
}

.legal-action svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-cookie-summary {
    width: 100%;
    margin: 28px auto 0;
}

.cookie-category-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: stretch;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(19, 19, 21, 0.96), rgba(11, 11, 12, 0.96));
}

.cookie-category {
    min-width: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid var(--home-border-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.cookie-category__status {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    display: block;
    border-radius: 50%;
    background: var(--home-orange);
    box-shadow: 0 0 0 4px rgba(255, 105, 0, 0.1);
}

.cookie-category--essential .cookie-category__status {
    background: #55c58a;
    box-shadow: 0 0 0 4px rgba(85, 197, 138, 0.1);
}

.cookie-category h2 {
    margin: 0 0 5px;
    color: var(--home-text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 820;
    line-height: 1.25;
    text-shadow: none;
}

.cookie-category p {
    margin: 0;
    color: #929297 !important;
    font-size: 0.7rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.cookie-preferences-button {
    min-width: 170px;
    cursor: pointer;
}

.home-dashboard {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 0;
}

.home-eyebrow {
    margin: 0 0 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--home-orange);
    font-size: 0.69rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.065em;
}

.home-eyebrow svg {
    width: 15px;
    height: 15px;
}

/* Shared actions and buttons */

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

.home-button {
    min-height: 45px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--home-text);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    border: 1px solid var(--home-border);
    border-radius: 7px;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-button svg {
    width: 16px;
    height: 16px;
}

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

.home-button--primary {
    color: #080808;
    border-color: var(--home-orange);
    background: var(--home-orange);
}

.home-button--primary:hover,
.home-button--primary:focus-visible {
    color: #050505;
    border-color: var(--home-orange-light);
    background: var(--home-orange-light);
}

.home-button--secondary {
    color: #eeeeef;
    border-color: #464648;
    background: rgba(16, 16, 17, 0.84);
}

.home-button--secondary:hover,
.home-button--secondary:focus-visible {
    color: var(--home-orange);
    border-color: rgba(255, 105, 0, 0.6);
    background: rgba(255, 105, 0, 0.07);
}

/* Sections and highlights */

.home-section {
    margin-top: 14px;
    padding: 24px 26px 28px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: linear-gradient(145deg, rgba(19, 19, 20, 0.96), rgba(10, 10, 11, 0.98));
}

.home-section__heading {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.home-section__heading .home-eyebrow {
    margin-bottom: 7px;
}

.home-section__heading h2 {
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(1.35rem, 2.3vw, 2.1rem);
    font-weight: 820;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-shadow: none;
}

.home-section__intro {
    max-width: 660px;
    margin: 9px 0 0;
    color: #929297;
    font-family: inherit;
    font-size: 0.73rem;
    line-height: 1.55;
    text-align: left;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--home-orange);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-text-link:hover,
.home-text-link:focus-visible {
    color: var(--home-orange-light);
}

/* Portfolio */

.home-portfolio {
    overflow: hidden;
}

.home-portfolio-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(22px, 4vw, 54px);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 105, 0, 0.14), transparent 24rem),
        linear-gradient(135deg, #171719, #0b0b0c 64%);
}

.home-portfolio-card::after {
    position: absolute;
    top: 28px;
    right: -1px;
    width: 2px;
    height: 72px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, var(--home-orange), transparent);
}

.home-portfolio-card__visual {
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
    isolation: isolate;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 105, 0, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.018);
}

.home-portfolio-browser {
    position: relative;
    z-index: 2;
    width: min(340px, calc(100% - 44px));
    min-height: 190px;
    padding: 50px 28px 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
        #0a0a0b;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-portfolio-logo {
    display: block;
    width: min(255px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.38));
}

.home-portfolio-browser::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 34px;
    content: "";
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, 0.045);
}

.home-portfolio-browser > span {
    position: absolute;
    top: 13px;
    width: 8px;
    height: 8px;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.home-portfolio-browser > span:nth-child(1) {
    left: 14px;
    background: #ff5f57;
}

.home-portfolio-browser > span:nth-child(2) {
    left: 29px;
    background: #ffbd2e;
}

.home-portfolio-browser > span:nth-child(3) {
    left: 44px;
    background: #28c840;
}

.home-portfolio-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 105, 0, 0.2);
    border-radius: 50%;
}

.home-portfolio-orbit--one {
    inset: 38px 12% 36px;
}

.home-portfolio-orbit--two {
    inset: 82px 22% 74px;
    border-color: rgba(255, 255, 255, 0.08);
}

.home-portfolio-card__content {
    min-width: 0;
    padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 48px) clamp(26px, 4vw, 42px) 0;
    display: grid;
    align-content: center;
}

.home-portfolio-card__label {
    width: fit-content;
    margin: 0 0 13px !important;
    padding: 6px 9px;
    color: var(--home-orange) !important;
    font-size: 0.62rem !important;
    font-weight: 850;
    line-height: 1 !important;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border: 1px solid rgba(255, 105, 0, 0.32);
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.08);
}

.home-portfolio-card h3 {
    max-width: 760px;
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-shadow: none;
}

.home-portfolio-card__content > p:not(.home-portfolio-card__label) {
    max-width: 790px;
    margin: 15px 0 0;
    color: #b8b8bd !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
}

.home-portfolio-facts {
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-portfolio-facts div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.home-portfolio-facts dt {
    margin: 0 0 6px;
    color: #8f8f95;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-portfolio-facts dd {
    margin: 0;
    color: #f0f0f2;
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-portfolio-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-portfolio-tags span {
    padding: 6px 9px;
    color: #c5c5ca;
    font-size: 0.58rem;
    font-weight: 780;
    text-transform: uppercase;
    border: 1px solid #343437;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22);
}

.home-download-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.home-download-card {
    position: relative;
    min-width: 0;
    min-height: 164px;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--home-text);
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: linear-gradient(135deg, #1b1b1c, #111112);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-download-card:hover,
.home-download-card:focus-visible {
    border-color: rgba(255, 105, 0, 0.55);
    background: linear-gradient(135deg, #211b17, #121212);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.home-download-card__action {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #67676c;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-download-card__action svg {
    width: 15px;
    height: 15px;
}

.home-download-card:hover .home-download-card__action,
.home-download-card:focus-visible .home-download-card__action {
    color: var(--home-orange);
    border-color: rgba(255, 105, 0, 0.38);
    background: rgba(255, 105, 0, 0.07);
}

.home-download-card__icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
}

.home-download-card__icon img {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.28));
    transition: transform 180ms ease, filter 180ms ease;
}

.home-download-card:hover .home-download-card__icon img,
.home-download-card:focus-visible .home-download-card__icon img {
    filter: drop-shadow(0 11px 16px rgba(255, 105, 0, 0.12));
    transform: scale(1.06);
}

.home-download-card strong {
    width: 100%;
    min-height: 2.5em;
    display: grid;
    place-items: center;
    color: var(--home-text);
    font-size: 0.7rem;
    font-weight: 760;
    line-height: 1.25;
    text-align: center;
}

.home-download-card small {
    color: #818186;
    font-size: 0.55rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Shared panels */

.home-panel {
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: linear-gradient(155deg, #151516, #0c0c0d 76%);
}

.home-panel__heading {
    min-height: 30px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.home-panel__heading h2 {
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #eeeeef;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 820;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    text-shadow: none;
}

.home-panel__heading > a {
    color: var(--home-orange);
    font-size: 0.6rem;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Railway reserved area */

.railway-page {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.railway-hero,
.railway-empty,
.railway-section {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: linear-gradient(155deg, #151516, #0c0c0d 76%);
}

.railway-hero {
    padding: clamp(24px, 4vw, 46px);
}

.railway-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(2.2rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: none;
}

.railway-hero p:not(.home-eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: #c1c1c5;
    font-size: clamp(0.9rem, 1.1vw, 1.04rem);
    line-height: 1.65;
}

.railway-empty {
    margin-top: 18px;
    padding: 28px;
}

.railway-empty h2 {
    margin: 0;
    color: var(--home-text);
    font-size: 1.1rem;
}

.railway-empty p {
    max-width: 620px;
    margin: 10px 0 18px;
    color: #b9b9bd;
    line-height: 1.6;
}

.railway-summary {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.railway-summary article {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.railway-summary span,
.railway-card small,
.railway-card em {
    color: #8f8f94;
    font-size: 0.62rem;
    font-weight: 760;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.railway-summary strong {
    display: block;
    margin-top: 7px;
    color: var(--home-text);
    font-size: 0.98rem;
}

.railway-summary--schedule {
    margin-top: 16px;
}

.railway-section {
    margin-top: 18px;
    padding: 22px;
}

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

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

.railway-card {
    min-width: 0;
    min-height: 132px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--home-text);
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: linear-gradient(135deg, #1b1b1c, #111112);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.railway-card:hover,
.railway-card:focus-visible {
    border-color: rgba(255, 105, 0, 0.55);
    background: linear-gradient(135deg, #211b17, #121212);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.railway-card--disabled {
    opacity: 0.62;
}

.railway-card--disabled:hover,
.railway-card--disabled:focus-visible {
    border-color: var(--home-border);
    background: linear-gradient(135deg, #1b1b1c, #111112);
    box-shadow: none;
    transform: none;
}

.railway-card__icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 105, 0, 0.2);
    border-radius: 14px;
    background: rgba(255, 105, 0, 0.055);
}

.railway-card__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.28));
}

.railway-card__body {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.railway-card strong {
    color: var(--home-text);
    font-size: 0.86rem;
    line-height: 1.24;
}

.railway-card small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 560;
}

.railway-card em {
    color: var(--home-orange);
    font-style: normal;
}

.railway-list-selector {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.railway-list-selector label {
    color: #cfcfd2;
    font-size: 0.7rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.railway-list-selector select,
.railway-list-selector input[type="text"] {
    min-width: min(100%, 260px);
    min-height: 42px;
    padding: 0 12px;
    color: var(--home-text);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #101011;
}

.railway-list-selector input[type="text"] {
    flex: 1 1 280px;
}

.railway-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--home-border);
    border-radius: 10px;
}

.railway-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.railway-table--compact {
    min-width: 620px;
}

.railway-table--squares {
    min-width: 0;
    table-layout: fixed;
}

.railway-square-week-col {
    width: 3.5rem;
}

.railway-table th,
.railway-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: top;
}

.railway-table th {
    color: #101011;
    background: var(--home-orange);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.railway-table--squares th,
.railway-table--squares td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.railway-table--squares .railway-square-week-cell {
    width: 1%;
    min-width: 2.75rem;
    max-width: 3.5rem;
    padding-right: 6px;
    padding-left: 6px;
    white-space: nowrap;
    text-align: center;
}

.railway-table--squares tbody .railway-square-week-cell {
    color: #101011;
    font-size: 0.72rem;
    font-weight: 900;
    background: var(--home-orange);
}

.railway-table td {
    color: #d4d4d7;
    font-size: 0.72rem;
    line-height: 1.45;
}

.railway-table tr:last-child td {
    border-bottom: 0;
}

.railway-phone-link {
    color: var(--home-orange);
    font-weight: 820;
}

.railway-subtle-ok {
    color: #72d68a;
}

.railway-subtle-muted {
    color: #8f8f94;
}

.railway-backup-warning {
    color: #ff5d5d;
}

.railway-app-activation-list {
    display: grid;
    gap: 8px;
}

.railway-app-activation-list > div {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.railway-app-activation-list small {
    display: block;
    margin-top: 3px;
    color: #a9a9ad;
}

.railway-table-empty {
    margin: 0;
    color: #b9b9bd;
}

.railway-admin-form {
    display: grid;
    gap: 16px;
}

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

.railway-admin-form label {
    display: grid;
    gap: 8px;
}

.railway-admin-form label span {
    color: #cfcfd2;
    font-size: 0.72rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.railway-admin-form input[type="file"],
.railway-admin-form input[type="email"],
.railway-admin-form input[type="number"],
.railway-admin-form select,
.railway-admin-form input[type="text"],
.railway-admin-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--home-text);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: #101011;
}

.railway-admin-form textarea {
    min-height: 130px;
    resize: vertical;
}

.railway-admin-form small {
    color: #ff9c9c;
    font-size: 0.72rem;
    line-height: 1.4;
}

.railway-form-note {
    margin: 0 0 18px;
    color: #b9b9bd;
    font-size: 0.78rem;
    line-height: 1.6;
}

.railway-alert {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    color: var(--home-text);
    background: #101011;
}

.railway-alert--success {
    border-color: rgba(85, 197, 138, 0.45);
    background: rgba(85, 197, 138, 0.08);
}

.railway-alert--error {
    border-color: rgba(255, 80, 80, 0.45);
    background: rgba(255, 80, 80, 0.08);
}

.railway-table-button {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080808;
    font-size: 0.65rem;
    font-weight: 850;
    text-transform: uppercase;
    border: 1px solid var(--home-orange);
    border-radius: 6px;
    background: var(--home-orange);
    cursor: pointer;
}

.railway-table-button--danger {
    color: #fff;
    border-color: rgba(255, 80, 80, 0.8);
    background: rgba(255, 80, 80, 0.72);
}

.railway-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.railway-table-actions form {
    margin: 0;
}

.railway-day {
    text-align: center !important;
    font-weight: 820;
}

.railway-day--d {
    color: #06150d !important;
    background: linear-gradient(135deg, #42d77d, #16a34a);
}

.railway-day--s {
    color: #f8fbff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.railway-messages-list {
    display: grid;
    gap: 14px;
}

.railway-message {
    padding: 16px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.railway-message header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
}

.railway-message header strong {
    color: var(--home-text);
}

.railway-message header span {
    color: #8f8f94;
    font-size: 0.72rem;
    font-weight: 760;
}

.railway-message__body {
    margin-top: 12px;
    color: #c9c9cc;
    font-size: 0.94rem;
    line-height: 1.65;
}

.railway-message form {
    margin-top: 12px;
    text-align: right;
}

.railway-pdf-frame {
    width: 100%;
    min-height: min(1200px, 82vh);
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: #101011;
}

/* About */

.home-about {
    margin-top: 14px;
    padding: clamp(24px, 4vw, 44px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(22px, 4vw, 50px);
    align-items: center;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 105, 0, 0.1), transparent 16rem),
        linear-gradient(140deg, #151312, #0b0b0c 60%);
}

.home-about__portrait {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 5px;
    border: 1px solid rgba(255, 105, 0, 0.55);
    border-radius: 50%;
}

.home-about__portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(0.15);
}

.home-about__portrait span {
    position: absolute;
    right: 5px;
    bottom: 10px;
    width: 15px;
    height: 15px;
    border: 3px solid #111;
    border-radius: 50%;
    background: #35c96f;
}

.home-about__content .home-eyebrow {
    margin-bottom: 7px;
}

.home-about h1,
.home-about h2 {
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 820;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-shadow: none;
}

.home-about__content > p:not(.home-eyebrow) {
    max-width: 770px;
    margin: 13px 0 0;
    color: #aaaab0;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.65;
    text-align: left;
}

.home-about__tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-about__tags span {
    padding: 6px 9px;
    color: #b5b5b9;
    font-size: 0.58rem;
    font-weight: 760;
    text-transform: uppercase;
    border: 1px solid #343437;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
}

/* Footer */

.home-site .site-footer {
    position: relative;
    width: min(var(--home-shell-max-width), calc(100% - var(--home-shell-inline-gutter)));
    margin: 14px auto 0;
    padding: 0;
    color: var(--home-muted);
    border: 1px solid var(--home-border);
    border-bottom: 0;
    border-radius: var(--home-radius) var(--home-radius) 0 0;
    background: #070708;
}

.home-site .site-footer::before {
    display: none;
}

.site-footer__inner {
    padding: clamp(34px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 0.78fr));
    gap: clamp(26px, 4vw, 58px);
}

.site-brand--footer {
    margin-bottom: 17px;
}

.site-brand--footer img {
    width: 42px;
    height: 42px;
}

.site-footer__brand > p {
    max-width: 310px;
    margin: 0;
    color: #89898e;
    font-family: inherit;
    font-size: 0.73rem;
    line-height: 1.65;
    text-align: left;
}

.site-footer__social {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

.site-footer__social a {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid #303033;
    border-radius: 50%;
    background: #101011;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    border-color: rgba(255, 105, 0, 0.55);
    background: rgba(255, 105, 0, 0.08);
}

.site-footer__social img {
    width: 15px;
    height: 15px;
    display: block;
    object-fit: contain;
}

.site-footer__column {
    padding-left: clamp(0px, 2vw, 28px);
    border-left: 1px solid var(--home-border-soft);
}

.site-footer__column h2 {
    margin: 0 0 16px;
    color: #f1f1f2;
    font-family: inherit;
    font-size: 0.69rem;
    font-weight: 840;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: none;
}

.site-footer__column ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
}

.site-footer__column li {
    margin: 0;
    font-family: inherit;
    font-size: 0.68rem;
    line-height: 1.35;
}

.site-footer__column a {
    color: #929297;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
    color: var(--home-orange);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__contact > a:not(.site-footer__contact-button),
.site-footer__contact > p {
    margin: 0 0 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #929297;
    font-family: inherit;
    font-size: 0.67rem;
    line-height: 1.3;
    text-align: left;
}

.site-footer__contact-button {
    min-height: 37px;
    margin-top: 8px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    color: var(--home-orange) !important;
    font-size: 0.59rem;
    font-weight: 840;
    text-transform: uppercase;
    border: 1px solid rgba(255, 105, 0, 0.58);
    border-radius: 6px;
}

.site-footer__contact-button:hover,
.site-footer__contact-button:focus-visible {
    color: #080808 !important;
    background: var(--home-orange);
}

.site-footer__language {
    width: 100%;
    margin-top: 16px;
    display: grid;
    gap: 6px;
}

.site-footer__language label {
    color: #76767b;
    font-size: 0.57rem;
    font-weight: 750;
    text-transform: uppercase;
}

.site-footer__language select {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    color: #cfcfd2;
    font-family: inherit;
    font-size: 0.68rem;
    border: 1px solid #303033;
    border-radius: 6px;
    outline: 0;
    background: #101011;
    box-shadow: none;
}

.site-footer__language select:focus {
    border: 1px solid var(--home-orange);
}

.site-footer__bottom {
    min-height: 58px;
    padding: 15px clamp(24px, 5vw, 58px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border-top: 1px solid var(--home-border-soft);
}

.site-footer__bottom p {
    margin: 0;
    color: #65656a;
    font-family: inherit;
    font-size: 0.61rem;
    line-height: 1.45;
    text-align: left;
}

.site-footer__bottom p a {
    color: #89898e;
}

.site-footer__top {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--home-orange);
    font-size: 1rem;
    border: 1px solid rgba(255, 105, 0, 0.4);
    border-radius: 7px;
    background: #101011;
}

/* Focus */

.home-site a:focus-visible,
.site-nav__burger:focus-visible {
    outline: 2px solid var(--home-orange);
    outline-offset: 3px;
}

/* Responsive */

@media (max-width: 1220px) {
    .site-header__inner {
        gap: 24px;
    }

    .site-nav {
        gap: 15px;
    }

    .site-nav > .site-nav__top-link,
    .site-nav__dropdown > summary {
        font-size: 0.82rem;
    }

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

    .home-portfolio-card {
        grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    }

    .home-portfolio-facts {
        grid-template-columns: 1fr;
    }

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

    .home-panel {
        min-height: 480px;
    }

    .site-footer__inner {
        grid-template-columns: 1.3fr repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 980px) {
    .site-header__inner {
        min-height: 68px;
        grid-template-columns: auto 1fr auto;
    }

    .site-brand {
        position: relative;
        z-index: 104;
    }

    .site-brand img {
        width: 41px;
        height: 41px;
    }

    .site-brand__text small {
        display: none;
    }

    .site-nav__burger {
        position: relative;
        z-index: 104;
        width: 40px;
        height: 40px;
        margin-left: auto;
        display: grid;
        place-content: center;
        gap: 5px;
        cursor: pointer;
        border: 1px solid #303033;
        border-radius: 8px;
        background: #101011;
    }

    .site-nav__burger span {
        width: 19px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: #e5e5e7;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 103;
        width: min(86vw, 380px);
        height: 100dvh;
        padding: 98px 26px 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        border-left: 1px solid var(--home-border);
        background: #0b0b0c;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.48);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .site-nav > .site-nav__top-link,
    .site-nav__dropdown > summary {
        padding: 16px 4px;
        color: #d6d6d9;
        font-size: 0.96rem;
        border-bottom: 1px solid var(--home-border-soft);
    }

    .site-nav > .site-nav__top-link::after,
    .site-nav__dropdown > summary::before {
        display: none;
    }

    .site-nav__dropdown {
        width: 100%;
    }

    .site-nav__dropdown > summary {
        justify-content: space-between;
    }

    .site-nav__dropdown > summary::after {
        margin-right: 5px;
    }

    .site-nav__dropdown[open] > summary::after {
        margin-top: 3px;
        margin-right: 5px;
    }

    .site-nav__menu,
    .site-nav__menu--wide {
        position: static;
        min-width: 0;
        max-height: none;
        padding: 5px 0 10px 12px;
        display: none;
        gap: 1px;
        visibility: visible;
        overflow: visible;
        border: 0;
        border-bottom: 1px solid var(--home-border-soft);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
        transition: none;
        backdrop-filter: none;
    }

    .site-nav__dropdown[open] > .site-nav__menu {
        display: grid;
        transform: none;
    }

    .site-nav__menu a {
        padding: 11px 14px;
        color: #a9a9ae;
        font-size: 0.9rem;
        white-space: normal;
        border-left: 1px solid rgba(255, 105, 0, 0.28);
        border-radius: 0 7px 7px 0;
    }

    .site-nav__menu-label {
        padding-left: 14px;
    }

    .site-header__actions {
        display: none;
    }

    .site-nav__overlay {
        position: fixed;
        inset: 0;
        z-index: 102;
        display: block;
        visibility: hidden;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .site-nav__toggle:checked ~ .site-nav {
        transform: translateX(0);
    }

    .site-nav__toggle:checked ~ .site-nav__overlay {
        visibility: visible;
        opacity: 1;
    }

    .site-nav__toggle:checked + .site-nav__burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav__toggle:checked + .site-nav__burger span:nth-child(2) {
        opacity: 0;
    }

    .site-nav__toggle:checked + .site-nav__burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .home-portfolio-card {
        grid-template-columns: 1fr;
    }

    .home-portfolio-card__visual {
        min-height: 230px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-portfolio-card__content {
        padding: 0 clamp(22px, 5vw, 36px) clamp(26px, 5vw, 38px);
    }

    .railway-page {
        width: min(100% - 24px, 1440px);
    }

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

    .site-footer__column:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 680px) {
    :root {
        --home-shell-inline-gutter: 20px;
    }

    .site-header__inner,
    .home-dashboard,
    .home-site .site-footer {
        width: min(var(--home-shell-max-width), calc(100% - var(--home-shell-inline-gutter)));
    }

    .site-header__inner {
        width: min(100% - 24px, 1440px);
    }

    .site-brand__text strong {
        font-size: 1.12rem;
    }

    .home-dashboard {
        padding-top: 10px;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-button {
        width: 100%;
    }

    .home-section {
        padding: 20px 14px;
        border-radius: 11px;
    }

    .home-section__heading {
        align-items: flex-start;
    }

    .home-section__heading h2 {
        font-size: 1.45rem;
    }

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

    .home-download-card {
        min-height: 152px;
        padding-inline: 8px;
    }

    .home-portfolio-card {
        border-radius: 11px;
    }

    .home-portfolio-card__visual {
        min-height: 210px;
    }

    .home-portfolio-browser {
        min-height: 150px;
    }

    .home-portfolio-card__content {
        padding: 0 16px 22px;
    }

    .home-portfolio-card h3 {
        font-size: 1.45rem;
    }

    .home-portfolio-card__content > p:not(.home-portfolio-card__label) {
        font-size: 0.84rem !important;
    }

    .railway-summary,
    .railway-grid,
    .railway-grid--services {
        grid-template-columns: 1fr;
    }

    .railway-section,
    .railway-empty {
        padding: 18px;
    }

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

    .railway-card {
        min-height: 118px;
    }

    .railway-table-wrap--squares {
        overflow-x: visible;
    }

    .railway-table--squares {
        width: 100%;
        min-width: 0;
    }

    .railway-table--squares th,
    .railway-table--squares td {
        padding: 8px 3px;
        font-size: clamp(0.56rem, 2.6vw, 0.68rem);
        letter-spacing: 0;
    }

    .railway-table--squares .railway-square-week-cell {
        min-width: 2.15rem;
        max-width: 2.35rem;
        padding-right: 2px;
        padding-left: 2px;
    }

    .railway-square-week-col {
        width: 2.25rem;
    }

    .home-panel {
        min-height: 0;
        padding: 17px;
        border-radius: 11px;
    }

    .home-about {
        padding: 28px 20px;
        grid-template-columns: 1fr;
        justify-items: start;
        border-radius: 11px;
    }

    .home-about__portrait {
        width: 92px;
        height: 92px;
    }

    .site-footer__inner {
        padding: 34px 24px;
        grid-template-columns: 1fr;
    }

    .site-footer__column {
        padding: 24px 0 0;
        border-top: 1px solid var(--home-border-soft);
        border-left: 0;
    }

    .site-footer__bottom {
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .site-brand__text strong {
        font-size: 1rem;
    }

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

    .home-download-card {
        min-height: 106px;
        padding: 12px 42px 12px 14px;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 13px;
        justify-items: start;
        text-align: left;
    }

    .home-download-card__icon {
        width: 64px;
        height: 64px;
        grid-row: 1 / 3;
    }

    .home-download-card__icon img {
        width: 60px;
        height: 60px;
    }

    .home-download-card strong {
        min-height: 0;
        align-self: end;
        justify-items: start;
        place-items: initial;
        text-align: left;
    }

    .home-download-card small {
        align-self: start;
        text-align: left;
    }

}

@media (max-width: 980px) {
    .legal-hero {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 56px;
    }

    .legal-hero__visual {
        width: 260px;
    }

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

    .cookie-preferences-button {
        min-height: 46px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .site-content > .container-1600.legal-page {
        width: min(100% - 20px, 1440px);
        margin: 12px auto 54px;
    }

    .legal-hero {
        min-height: 0;
        padding: 42px 26px 38px;
        display: block;
        border-radius: 16px;
    }

    .legal-hero h1 {
        max-width: none;
        font-size: clamp(2.45rem, 13vw, 4.1rem);
    }

    .legal-hero__intro {
        margin-top: 24px;
    }

    .legal-hero__intro p {
        font-size: 0.9rem !important;
    }

    .legal-hero__author {
        align-items: flex-start;
    }

    .legal-hero__visual {
        position: absolute;
        right: -74px;
        bottom: -92px;
        width: min(260px, 78vw);
        opacity: 0.2;
    }

    .legal-document {
        margin-top: 42px;
    }

    .legal-card,
    .legal-card--contact {
        padding: 28px 24px;
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 14px;
    }

    .legal-card h2 {
        font-size: clamp(1.3rem, 7vw, 1.7rem);
    }

    .legal-card__content p {
        font-size: 0.9rem !important;
    }

    .legal-action {
        min-width: 0;
        width: 100%;
    }

    .legal-cookie-summary {
        margin-top: 16px;
    }

    .cookie-category-grid {
        padding: 10px;
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .cookie-preferences-button {
        grid-column: auto;
    }
}

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

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

.impersonation-banner {
    width: min(100% - 48px, 1440px);
    margin: 1rem auto 0;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fde68a;
    border: 1px solid rgb(245 158 11 / .38);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgb(120 53 15 / .68), rgb(24 24 27 / .94));
    box-shadow: 0 18px 45px rgb(0 0 0 / .28);
}

.impersonation-banner div {
    display: grid;
    gap: .18rem;
}

.impersonation-banner strong {
    color: #fff7ed;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.impersonation-banner span {
    color: #fed7aa;
}

.impersonation-banner b {
    color: #fff;
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-banner button {
    min-height: 2.35rem;
    padding: 0 .9rem;
    cursor: pointer;
    color: #050505;
    font-weight: 900;
    border: 0;
    border-radius: .75rem;
    background: #f59e0b;
}

.impersonation-banner button:hover,
.impersonation-banner button:focus-visible {
    background: #fbbf24;
}

@media (max-width: 720px) {
    .impersonation-banner {
        width: min(100% - 24px, 1440px);
        align-items: stretch;
        flex-direction: column;
    }

    .impersonation-banner button {
        width: 100%;
    }
}
