/* poluianov.com — blueprint theme (matches /js/work-anim.js drawings) */

:root {
    --bg: #0b1626;
    --sheet: rgba(11, 22, 38, 0.82);
    --grid-minor: rgba(110, 160, 230, 0.06);
    --grid-major: rgba(110, 160, 230, 0.13);
    --line: rgba(175, 210, 255, 0.85);
    --line-dim: rgba(175, 210, 255, 0.45);
    --line-faint: rgba(175, 210, 255, 0.2);
    --text: rgba(205, 225, 255, 0.92);
    --text-dim: rgba(175, 210, 255, 0.6);
    --white: #ffffff;
    --accent: #A78BFA;
    --accent2: #60A5FA;
    --hot: #FFB547;
    --green: #4ade80;
    --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
    --sans: "Roboto", "Segoe UI", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    counter-reset: fig;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
        linear-gradient(var(--grid-minor) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px;
}

ul,
ol {
    list-style: none;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    color: var(--white);
}

a:focus-visible,
button:focus-visible {
    outline: 1px dashed var(--hot);
    outline-offset: 3px;
}

strong {
    font-weight: 500;
    color: var(--white);
}

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

::selection {
    background: rgba(167, 139, 250, 0.35);
    color: var(--white);
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- header: title row of the drawing ---------- */

.site_header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 22, 38, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 3px 0 -2px var(--line-faint);
}

.header_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.header_content {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 64px;
}

.header_logo_link {
    display: block;
    color: var(--text);
}

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

.header_avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-faint);
    filter: grayscale(1) contrast(1.1) brightness(0.95) sepia(0.4) hue-rotate(175deg) saturate(2.2);
    transition: filter 0.3s;
}

.header_logo_link:hover .header_avatar {
    filter: none;
}

.header_logo_text {
    display: flex;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header_logo_name {
    color: var(--white);
}

.header_logo_suffix {
    color: var(--accent);
}

.header_nav {
    flex: 1;
}

.header_nav_list {
    counter-reset: nav;
    display: flex;
    gap: 2px;
}

.header_nav_link {
    display: block;
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-dim);
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.header_nav_link::before {
    counter-increment: nav;
    content: counter(nav, decimal-leading-zero) " ";
    color: var(--line-faint);
    font-weight: 400;
}

.header_nav_link:hover {
    color: var(--white);
    border-color: var(--line-faint);
}

.header_nav_link.active {
    color: var(--white);
    border-color: var(--line-dim);
    background: rgba(167, 139, 250, 0.12);
}

.header_nav_link.active::before {
    color: var(--accent);
}

.header_social {
    display: flex;
    gap: 6px;
}

.header_social_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-dim);
    border: 1px solid var(--line-faint);
    transition: color 0.2s, border-color 0.2s;
}

.header_social_link svg {
    width: 16px;
    height: 16px;
}

.header_social_link:hover {
    color: var(--white);
    border-color: var(--accent2);
}

/* ---------- main area and drawing sheets ---------- */

main {
    flex: 1;
}

.main_content {
    padding: 40px 0 56px;
}

.hero,
.tech_stack,
.features,
.projects,
.about,
.resume_section,
.contacts_section,
.notes_section {
    position: relative;
    margin: 6px 6px 48px;
    padding: 28px 32px 32px;
    background: var(--sheet);
    border: 1px solid var(--line);
    outline: 1px solid var(--line-dim);
    outline-offset: 5px;
}

/* sheet title row: "FIG. 0n — TITLE" */
.tech_stack .section_header h2,
.projects > h2,
.about > h2,
.resume_section > h1,
.contacts_section > h1,
.notes_section > h1,
.features::before {
    display: block;
    margin: -28px -32px 24px;
    padding: 14px 32px 12px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid var(--line);
}

.tech_stack .section_header h2::before,
.projects > h2::before,
.about > h2::before,
.resume_section > h1::before,
.contacts_section > h1::before,
.notes_section > h1::before {
    counter-increment: fig;
    content: "FIG. " counter(fig, decimal-leading-zero) " — ";
    color: var(--accent);
}

.features::before {
    counter-increment: fig;
    content: "FIG. " counter(fig, decimal-leading-zero) " — GENERAL NOTES";
    grid-column: 1 / -1;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    color: var(--white);
}

h3 {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.04em;
}

/* ---------- buttons ---------- */

.btn,
.button,
.project_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn_primary,
.button {
    background: rgba(167, 139, 250, 0.18);
    border-color: var(--accent);
}

.btn:hover,
.button:hover,
.project_link:hover {
    color: var(--white);
    background: rgba(167, 139, 250, 0.32);
    border-color: var(--accent);
}

/* ---------- home: hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 48px 48px 44px;
}

.hero::before {
    content: "SHEET 00 · POLUIANOV.COM";
    position: absolute;
    top: 12px;
    left: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}

.hero::after {
    content: "REV. 2026";
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}

.hero_greeting {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hot);
    margin-bottom: 12px;
}

.hero_greeting::before {
    content: "// ";
    color: var(--text-dim);
}

.hero_title {
    position: relative;
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    padding-bottom: 26px;
    margin-bottom: 18px;
}

.hero_title strong {
    font-weight: 600;
    color: var(--white);
}

/* dimension line under the name */
.hero_title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 9px;
    border-left: 1px solid var(--line-dim);
    border-right: 1px solid var(--line-dim);
    background: linear-gradient(var(--line-dim), var(--line-dim)) center / 100% 1px no-repeat;
}

.hero_subtitle {
    max-width: 560px;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 14px;
}

/* title-block style spec line */
.hero_spec {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.hero_spec strong {
    color: var(--accent);
    font-weight: 600;
}

.hero_spec_sep {
    white-space: pre;
}

.hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero_detail {
    position: relative;
    width: 220px;
    margin: 0 24px 0 0;
}

.hero_detail_ring {
    position: relative;
    width: 220px;
    height: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

/* crosshair centre lines */
.hero_detail_ring::before,
.hero_detail_ring::after {
    content: "";
    position: absolute;
    background: repeating-linear-gradient(90deg, var(--line-dim) 0 12px, transparent 12px 15px, var(--line-dim) 15px 17px, transparent 17px 20px);
    z-index: 2;
    pointer-events: none;
}

.hero_detail_ring::before {
    left: -16px;
    right: -16px;
    top: 50%;
    height: 1px;
}

.hero_detail_ring::after {
    top: -16px;
    bottom: -16px;
    left: 50%;
    width: 1px;
    background: repeating-linear-gradient(180deg, var(--line-dim) 0 12px, transparent 12px 15px, var(--line-dim) 15px 17px, transparent 17px 20px);
}

.hero_detail_ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: grayscale(1) contrast(1.15) brightness(0.9) sepia(0.45) hue-rotate(175deg) saturate(2.4);
    transition: filter 0.4s;
}

.hero_detail:hover .hero_detail_ring img {
    filter: none;
}

.hero_detail figcaption {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-align: center;
    color: var(--text-dim);
}

.hero_detail figcaption strong {
    color: var(--accent);
}

/* leader from the detail circle */
.hero_detail_tag {
    position: absolute;
    top: 6px;
    right: -30px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
}

/* ---------- home: tech stack as a parts list ---------- */

.tech_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech_list::before {
    content: "PRIMARY";
    flex-basis: 100%;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}

.tech_list_secondary::before {
    content: "DOMAINS";
}

.tech_list_tertiary::before {
    content: "TOOLS · PLATFORMS · LANGUAGES";
}

.tech_list_tertiary {
    margin-bottom: 0;
}

.tech_item {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 5px 11px;
    color: var(--text);
    border: 1px solid var(--line-faint);
}

.tech_item_main {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 22px;
    color: var(--white);
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.14);
}

.tech_item_secondary_2 {
    font-size: 14px;
    padding: 6px 16px;
    color: var(--white);
    border-color: var(--accent2);
    background: rgba(96, 165, 250, 0.1);
}

/* ---------- home: general notes ---------- */

.features {
    counter-reset: note;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature_card {
    padding: 18px 20px 20px;
    border: 1px solid var(--line-faint);
    border-left: 2px solid var(--accent);
}

.feature_card h3 {
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature_card h3::before {
    counter-increment: note;
    content: counter(note) ". ";
    color: var(--accent);
}

.feature_card p {
    font-size: 15px;
    color: var(--text);
}

/* ---------- home: projects / about ---------- */

.project_card {
    padding: 22px 24px 24px;
    border: 1px solid var(--line-dim);
}

.project_card + .project_card {
    margin-top: 16px;
}

.project_card h3 {
    font-size: 22px;
}

.project_type {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hot);
    margin: 4px 0 12px;
}

.project_description {
    margin-bottom: 12px;
}

.project_features {
    margin: 0 0 20px;
}

.project_features li,
.resume_responsibilities li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.project_features li::before,
.resume_responsibilities li::before {
    content: "▸";
    position: absolute;
    left: 2px;
    color: var(--accent);
}

.about p + p {
    margin-top: 14px;
}

/* ---------- career ---------- */

.resume_timeline {
    position: relative;
    padding-left: 34px;
}

/* vertical dimension line with ticks */
.resume_timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(180deg, var(--line-dim) 0 12px, transparent 12px 15px, var(--line-dim) 15px 17px, transparent 17px 20px);
}

.resume_item {
    position: relative;
    padding: 22px 24px 24px;
    margin-bottom: 26px;
    border: 1px solid var(--line-dim);
    background: rgba(11, 22, 38, 0.6);
    transition: border-color 0.2s;
}

.resume_item:last-child {
    margin-bottom: 0;
}

.resume_item:hover {
    border-color: var(--line);
}

/* node on the timeline + leader to the card */
.resume_item::before {
    content: "";
    position: absolute;
    left: -31px;
    top: 30px;
    width: 9px;
    height: 9px;
    background: var(--bg);
    border: 1px solid var(--accent);
    transform: rotate(45deg);
}

.resume_item::after {
    content: "";
    position: absolute;
    left: -21px;
    top: 34px;
    width: 21px;
    height: 1px;
    background: var(--line-dim);
}

.resume_item_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 14px;
}

.resume_item_title h2 {
    font-family: var(--mono);
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.resume_item_title h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.resume_item_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.resume_date {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: var(--white);
    padding: 3px 10px;
    border: 1px solid var(--line);
}

.resume_location {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.resume_location::before {
    content: "⌖ ";
    color: var(--hot);
}

.resume_description {
    color: var(--text);
    margin-bottom: 16px;
}

.resume_responsibilities h4 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.resume_responsibilities li {
    font-size: 15px;
}

/* animated drawings embedded in career entries */
.work_anim {
    margin: 4px 0 20px;
    border: 1px solid var(--line-faint);
    background-color: var(--bg);
    overflow-x: auto;
    overflow-y: hidden;
}

.work_anim canvas {
    display: block;
    width: 100%;
    min-width: 720px;
}

/* ---------- contacts: terminal blocks ---------- */

.contacts_subtitle {
    color: var(--text-dim);
    margin-bottom: 24px;
}

.contacts_grid {
    counter-reset: term;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact_card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    color: var(--text);
    border: 1px solid var(--line-dim);
    transition: border-color 0.2s, background-color 0.2s;
}

.contact_card::after {
    counter-increment: term;
    content: "X" counter(term);
    position: absolute;
    top: 10px;
    right: 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.contact_card:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
}

.contact_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--accent2);
    border: 1px solid var(--line-dim);
    border-radius: 50%;
}

.contact_icon svg {
    width: 22px;
    height: 22px;
}

.contact_card h3 {
    text-transform: uppercase;
}

.contact_link {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    word-break: break-all;
}

.contact_card:hover .contact_link {
    color: var(--white);
}

/* ---------- notes / soft ---------- */

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

.notes_links:has(> .link_card:only-child) {
    grid-template-columns: 1fr;
}

.link_card {
    position: relative;
    padding: 20px 22px 22px;
    border: 1px solid var(--line-dim);
    transition: border-color 0.2s, background-color 0.2s;
}

.link_card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.link_description {
    font-size: 15px;
    margin-bottom: 14px;
}

.link_card > p + p {
    margin-top: 8px;
}

.link_url {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.soft_catalog .link_card {
    padding-right: 48px;
}

.soft_catalog .link_card::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 18px;
    font-family: var(--mono);
    color: var(--accent2);
    transition: transform 0.2s;
}

.soft_catalog .link_card:hover {
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
}

.soft_catalog .link_card:hover::after {
    transform: translateX(4px);
}

.soft_catalog .link_card_primary {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.soft_catalog .link_description {
    margin-bottom: 0;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    color: var(--white);
}

.code_block {
    margin: 0 0 18px;
    padding: 12px 16px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--white);
    background: rgba(5, 12, 22, 0.7);
    border: 1px solid var(--line-faint);
    border-left: 2px solid var(--green);
}

.code_block::before {
    content: "$ ";
    color: var(--green);
}

.project_features strong {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ---------- footer: drawing stamp ---------- */

.stamp {
    margin-top: auto;
    padding: 0 0 24px;
}

.stamp_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0 6px;
    border: 1px solid var(--line);
    outline: 1px solid var(--line-dim);
    outline-offset: 5px;
    background: var(--sheet);
}

.stamp_cell {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    font-family: var(--mono);
    border-left: 1px solid var(--line-dim);
    min-width: 0;
}

.stamp_cell:first-child {
    border-left: 0;
}

.stamp_key {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.stamp_val {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.stamp_val {
    color: var(--accent2);
}

a.stamp_val:hover {
    color: var(--white);
}

/* ---------- cookie notice ---------- */

#cookie_notification {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 380px;
    max-width: calc(100% - 32px);
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    background: rgba(11, 22, 38, 0.96);
    border: 1px solid var(--line);
    outline: 1px solid var(--line-dim);
    outline-offset: 3px;
}

#cookie_notification.show {
    display: flex;
}

#cookie_notification > div:first-child::before {
    content: "NOTE · ";
    color: var(--hot);
}

#cookie_notification .button {
    padding: 8px 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 44px 24px 32px;
    }

    .hero_detail {
        order: -1;
        margin: 0 auto;
    }

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

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

    .stamp_cell:nth-child(4) {
        border-left: 0;
    }

    .stamp_cell:nth-child(n + 4) {
        border-top: 1px solid var(--line-dim);
    }
}

@media (max-width: 768px) {
    .header_content {
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 10px 0 0;
    }

    .header_social {
        margin-left: auto;
    }

    .header_nav {
        order: 3;
        flex-basis: 100%;
        margin: 0 -16px;
        padding: 0 16px;
        border-top: 1px solid var(--line-faint);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header_nav_link {
        padding: 9px 10px;
        font-size: 11px;
    }

    .main_content {
        padding-top: 24px;
    }

    .hero,
    .tech_stack,
    .features,
    .projects,
    .about,
    .resume_section,
    .contacts_section,
    .notes_section {
        margin-bottom: 36px;
        padding: 22px 18px 22px;
    }

    .tech_stack .section_header h2,
    .projects > h2,
    .about > h2,
    .resume_section > h1,
    .contacts_section > h1,
    .notes_section > h1,
    .features::before {
        margin: -22px -18px 20px;
        padding: 12px 18px 10px;
        font-size: 12px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero_title {
        font-size: 30px;
    }

    .hero_subtitle {
        font-size: 16px;
    }

    .features,
    .notes_links {
        grid-template-columns: 1fr;
    }

    .resume_timeline {
        padding-left: 22px;
    }

    .resume_timeline::before {
        left: 4px;
    }

    .resume_item {
        padding: 18px 16px;
    }

    .resume_item::before {
        left: -22px;
    }

    .resume_item::after {
        left: -13px;
        width: 13px;
    }

    .resume_item_meta {
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .header_social {
        display: none;
    }

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

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

    .stamp_cell:nth-child(n) {
        border-left: 0;
        border-top: 1px solid var(--line-dim);
    }

    .stamp_cell:nth-child(even) {
        border-left: 1px solid var(--line-dim);
    }

    .stamp_cell:nth-child(-n + 2) {
        border-top: 0;
    }

    .hero_detail,
    .hero_detail_ring {
        width: 180px;
    }

    .hero_detail_ring {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
