/* =========================================================
   Vladyslav Hodarenko — site styles

   A poster, not a template. Four flat fields of colour taken from
   Ukrainian folk life: kalyna red, sunflower, the black of
   embroidery thread, and linen white. Type is one heavy display
   face for the loud voice and one plain text face for reading.
   The one ornament is a rushnyk band: cross-stitch drawn from
   square cells, used as divider, hero stitch and footer hem.
   ========================================================= */

/* --- 1. Tokens --- */
:root {
    --kalyna: #D4202A;
    --sun: #F5B800;
    --ink: #17110F;
    --linen: #FFFDF8;

    --display: 'Dela Gothic One', 'Arial Black', sans-serif;
    --text-font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 10vw, 8.5rem);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Field roles, redefined by .f-* classes */
    --bg: var(--linen);
    --fg: var(--ink);
    --fg-soft: #4A403B;
    --accent: var(--kalyna);
    --motif: var(--kalyna);
    --duo: var(--kalyna);
    --ring: var(--ink);
}

.f-red  { --bg: var(--kalyna); --fg: var(--linen); --fg-soft: var(--linen); --accent: var(--sun);    --motif: var(--sun);    --duo: var(--linen); --ring: var(--linen); }
.f-ink  { --bg: var(--ink);    --fg: var(--linen); --fg-soft: #D9CFC6; --accent: var(--sun);    --motif: var(--kalyna); --duo: var(--sun);   --ring: var(--sun); }
.f-sun  { --bg: var(--sun);    --fg: var(--ink);   --fg-soft: #3A2E17; --accent: var(--kalyna); --motif: var(--ink);    --duo: var(--kalyna); --ring: var(--ink); }
.f-lin  { --bg: var(--linen);  --fg: var(--ink);   --fg-soft: #4A403B; --accent: var(--kalyna); --motif: var(--kalyna); --duo: var(--kalyna); --ring: var(--ink); }

/* --- 2. Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--kalyna) var(--ink);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--text-font);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: var(--ink);
    color: var(--linen);
    caret-color: var(--kalyna);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.field, section { background: var(--bg); color: var(--fg); }
section { padding: var(--section-y) 0; }

.skip {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 200;
    background: var(--sun);
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 0.75rem; outline-color: var(--ink); }

/* --- 3. Type --- */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8.5vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5.4vw, 4.25rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.15; margin-bottom: 0.6rem; }
h4 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
p { text-wrap: pretty; }
.h-mid { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
.statement-row .h-mid, .offer .h-mid { margin: 0 0 0.75rem; }
.after-snaps { margin-top: 2.5rem; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 40ch; color: var(--fg-soft); }
.prose p, .prose li { max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }
strong { font-weight: 700; }

/* --- 4. Rushnyk band (cross-stitch ornament) --- */
.band {
    display: block;
    height: 27px;
    width: 100%;
    background: var(--band, var(--accent));
    -webkit-mask: url(art/band.svg) repeat-x left center / auto 100%;
            mask: url(art/band.svg) repeat-x left center / auto 100%;
}

.motif {
    display: block;
    background: var(--motif);
    -webkit-mask: var(--art) no-repeat center / contain;
            mask: var(--art) no-repeat center / contain;
    pointer-events: none;
}
.m-sunflower { --art: url(art/sunflower.svg); }
.m-wheat     { --art: url(art/wheat.svg); }
.m-kalyna    { --art: url(art/kalyna.svg); }
.m-pysanka   { --art: url(art/pysanka.svg); }
.m-star      { --art: url(art/star.svg); }
.m-flower    { --art: url(art/flower.svg); }

/* --- 5. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--text-font);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    color: var(--bg);
    background: var(--fg);
    border: 3px solid var(--fg);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* --- 6. Header --- */
.site-head {
    --bg: var(--ink); --fg: var(--linen); --ring: var(--sun);
    background: var(--ink);
    color: var(--linen);
    border-bottom: 3px solid var(--kalyna);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.logo {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}
.site-head nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0 0.25rem;
}
.site-head nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: inset 0 -3px 0 transparent;
    transition: box-shadow 0.2s var(--ease-out), color 0.2s;
}
.site-head nav a:hover { box-shadow: inset 0 -3px 0 var(--kalyna); }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); color: var(--sun); }

/* --- 7. Hero --- */
.hero { overflow: hidden; position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 {
    font-size: clamp(2.7rem, 13vw, 11.5rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero .band { --band: var(--sun); margin: clamp(1.5rem, 3vw, 2.5rem) 0; }
.hero-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem clamp(2rem, 6vw, 5rem);
    align-items: end;
    position: relative;
    z-index: 1;
    margin-top: clamp(1rem, 4vw, 4rem);
}
.hero-foot .lede { color: var(--fg); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn { --fg: var(--linen); --bg: var(--kalyna); }
.hero-actions .btn:not(.btn-ghost) { --fg: var(--ink); background: var(--sun); border-color: var(--sun); color: var(--ink); }
.hero-actions .btn:not(.btn-ghost):hover { background: transparent; color: var(--sun); }
.hero-actions .btn-ghost { border-color: var(--linen); }
.hero-actions .btn-ghost:hover { background: var(--linen); color: var(--kalyna); }

.hero-portrait { position: relative; width: clamp(11rem, 24vw, 20rem); margin-right: clamp(0rem, 3vw, 2.5rem); }
.hero-portrait .motif {
    --motif: var(--sun);
    position: absolute;
    width: 175%;
    aspect-ratio: 1;
    left: -37%;
    top: -22%;
}
.hero-portrait .photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 4px solid var(--linen);
    transform: rotate(-2.5deg);
}
.hero-portrait img { object-position: 50% 28%; }

@media (prefers-reduced-motion: no-preference) {
    .hero .band { animation: stitch 1.5s steps(36, end) 0.15s both; }
}
@keyframes stitch {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

/* --- 8. Page heads (inner pages) --- */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-head h1 { max-width: 14ch; margin-bottom: 1.5rem; }
.page-head .lede { color: var(--fg); }
.page-head .motif { position: absolute; right: -4%; bottom: -12%; width: clamp(14rem, 34vw, 28rem); aspect-ratio: 1; opacity: 1; }
.page-head .wrap { position: relative; z-index: 1; }

/* --- 9. Work rows (poster strips) --- */
.row { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--bg); color: var(--fg); }
.row-grid {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}
.row-meta { font-weight: 600; line-height: 1.4; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.row-meta span { display: block; }
.row-title { font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 0.98; margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.row-title a { text-decoration: none; }
.row-title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.row-title a:focus-visible { outline: none; }
.row-title a:focus-visible::after { outline: 4px solid var(--ring); outline-offset: -10px; }
.row-body p { max-width: 38ch; color: var(--fg); }
.row-more {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.1rem;
    transition: padding-right 0.25s var(--ease-out);
}
.row:hover .row-more { padding-right: 1rem; }
.row-img { position: relative; aspect-ratio: 4 / 3; background: var(--duo); overflow: hidden; }
.row-img img, .duo img {
    filter: grayscale(1) contrast(1.15);
    mix-blend-mode: multiply;
    transition: filter 0.45s var(--ease-out);
}
.row:hover .row-img img { filter: none; mix-blend-mode: normal; }
.row > .motif {
    position: absolute;
    z-index: 0;
    width: clamp(10rem, 20vw, 18rem);
    aspect-ratio: 1;
    right: -3rem;
    top: -3rem;
}
.row-stack { border-top: 0; }

/* --- 10. Statement + photo strip --- */
.statement h2 { max-width: 16ch; font-size: clamp(2.2rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
.statement .lede { color: var(--fg); max-width: 46ch; }
.statement .band { --band: var(--kalyna); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.snaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.snaps figure { overflow: hidden; background: var(--linen); padding: 0.6rem; }
.snaps figure:nth-child(1) { transform: rotate(-1.5deg); }
.snaps figure:nth-child(2) { transform: rotate(1deg) translateY(-1.25rem); }
.snaps figure:nth-child(3) { transform: rotate(-0.75deg); }
.snaps .shot { aspect-ratio: 4 / 5; overflow: hidden; }
.snaps img.top { object-position: 50% 0; }

/* --- 11. Prose sections (about, project details) --- */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; border: 4px solid var(--ink); transform: rotate(1.5deg); }
.portrait img { object-position: 50% 25%; }

.statements { display: grid; gap: 0; }
.statement-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1rem clamp(2rem, 6vw, 5rem);
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    border-top: 3px solid currentColor;
    align-items: baseline;
}
.statement-row:last-child { border-bottom: 3px solid currentColor; }
.statement-row h3 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); margin: 0; }
.statement-row p { max-width: 46ch; }

.journey { list-style: none; }
.journey li {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0.5rem 2rem;
    padding: 1.75rem 0;
    border-top: 2px solid rgba(255, 253, 248, 0.25);
}
.journey li:last-child { border-bottom: 2px solid rgba(255, 253, 248, 0.25); }
.journey time, .journey .when { font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; line-height: 1.4; }
.journey h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: 0.4rem; }
.journey p { color: var(--fg-soft); max-width: 58ch; }

/* --- 12. Skills --- */
.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.skill-groups h3 { padding-bottom: 0.9rem; border-bottom: 3px solid currentColor; margin-bottom: 0; }
.skill-groups ul { list-style: none; }
.skill-groups li { padding: 0.8rem 0; border-bottom: 1px solid rgba(23, 17, 15, 0.25); font-weight: 500; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0.5rem; }
.tools li {
    font-family: var(--display);
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    padding: 0.35rem 0.9rem;
    border: 3px solid currentColor;
    line-height: 1.2;
}

/* --- 13. Freelance --- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 3px solid currentColor; }
.offer:last-child { border-bottom: 3px solid currentColor; }
.offer h3 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.offer p { max-width: 46ch; margin-bottom: 1.25rem; }
.offer ul { list-style: none; }
.offer li { padding: 0.55rem 0; border-top: 1px solid rgba(23, 17, 15, 0.25); font-weight: 500; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid currentColor; padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.75rem; }
.steps p { color: var(--fg-soft); }

.faq { max-width: 52rem; }
.faq details { border-top: 3px solid currentColor; }
.faq details:last-child { border-bottom: 3px solid currentColor; }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    padding: 1.4rem 0; cursor: pointer; list-style: none;
    font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--text-font); font-weight: 400; font-size: 2rem; line-height: 1; transition: transform 0.3s var(--ease-out); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; max-width: 62ch; color: var(--fg-soft); }

/* --- 14. Project detail --- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.5rem; max-width: 60rem; }
.facts dt { font-weight: 700; font-size: 0.95rem; color: var(--fg-soft); }
.facts dd { font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.2; margin-top: 0.2rem; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.detail-hero h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); overflow-wrap: anywhere; }
.duo { background: var(--duo); aspect-ratio: 4 / 3; overflow: hidden; }
.detail-sections { display: grid; gap: 3rem; max-width: 46rem; }
.detail-sections h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 0.75rem; }
.detail-sections ul { margin: 0.75rem 0 1rem 1.25rem; }
.detail-sections li { margin-bottom: 0.4rem; max-width: 60ch; }
.detail-sections ul.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.detail-sections .tags li { margin: 0; }
.tags li { border: 2px solid currentColor; padding: 0.25rem 0.8rem; font-weight: 600; font-size: 0.95rem; }

/* --- 15. Contact --- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.85rem 1rem; font: inherit; color: var(--ink); background: #fff;
    border: 3px solid var(--ink); border-radius: 0;
    transition: box-shadow 0.2s var(--ease-out);
}
.form-group textarea { resize: vertical; min-height: 9rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--kalyna); }
.form-group input:user-invalid, .form-group textarea:user-invalid { border-color: var(--kalyna); }
#contact-form .btn { width: 100%; --fg: var(--ink); --bg: var(--sun); background: var(--ink); border-color: var(--ink); color: var(--linen); }
#contact-form .btn:hover { background: transparent; color: var(--ink); }
.reach { display: grid; gap: 0.75rem; }
.reach .btn { width: 100%; }

/* --- 16. Closing call + footer --- */
.closer { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.closer h2 { font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: 0.95; max-width: 11ch; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.closer p { max-width: 38ch; margin-bottom: 2rem; color: var(--fg-soft); font-size: 1.15rem; }
.closer .btn { --fg: var(--ink); background: var(--sun); border-color: var(--sun); color: var(--ink); }
.closer .btn:hover { background: transparent; color: var(--sun); }
.closer .btn-ghost { background: transparent; border-color: var(--linen); color: var(--linen); }
.closer .btn-ghost:hover { background: var(--linen); color: var(--ink); }

.site-foot { --bg: var(--ink); --fg: var(--linen); --ring: var(--sun); background: var(--ink); color: var(--linen); padding: 0 0 2rem; }
.site-foot .band { --band: var(--kalyna); margin-bottom: 1.75rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; align-items: center; font-size: 0.95rem; color: #D9CFC6; }
.foot-links { display: flex; flex-wrap: wrap; }
.foot-links a { display: inline-block; padding: 0.7rem 0.75rem; text-decoration: none; }
.foot-links a:first-child { padding-left: 0; }
.foot-links a:hover { color: var(--sun); text-decoration: underline; }

/* --- 17. Legal --- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 52rem; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 0.75rem; }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { line-height: 1.75; max-width: 66ch; }
.legal p + p { margin-top: 1rem; }
.legal ul { margin: 0.75rem 0 1rem 1.25rem; }
.legal h3 { font-family: var(--text-font); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 1.5rem 0 0.4rem; }
.legal-date { color: var(--fg-soft); margin-bottom: 2rem; }

/* --- 17b. Content refresh components --- */
.hero-quote {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.6vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 1.25rem;
    text-wrap: balance;
}
.hero-foot .hero-quote + .lede { max-width: 44ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.glance-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.glance div { border-top: 3px solid currentColor; padding: 1.1rem 0 1.75rem; }
.glance dt { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: 0.4rem; }
.glance dd { color: var(--fg-soft); max-width: 30ch; }

.row-art { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.row-art .motif { width: 72%; aspect-ratio: 1; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; }
.figures div { border-top: 3px solid var(--kalyna); padding-top: 0.75rem; }
.figures dt { font-weight: 600; color: var(--fg-soft); order: 2; }
.figures div { display: flex; flex-direction: column; }
.figures dd { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; }

.resume .wrap { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.cv-block h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: 0.5rem; }
.cv-item { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.25rem 2rem; padding: 1.4rem 0; border-top: 2px solid rgba(23, 17, 15, 0.2); }
.cv-item:last-child { border-bottom: 2px solid rgba(23, 17, 15, 0.2); }
.cv-when { font-weight: 700; color: var(--kalyna); font-variant-numeric: tabular-nums; line-height: 1.5; }
.cv-item h3 { font-family: var(--text-font); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; line-height: 1.35; margin-bottom: 0.35rem; }
.cv-item ul { margin-left: 1.15rem; }
.cv-item li, .cv-item p { max-width: 64ch; }
.cv-item li + li { margin-top: 0.2rem; }
.cv-short { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.cv-short > div { border-top: 3px solid currentColor; padding-top: 1rem; }
.cv-short h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.snaps-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.snaps-pair figure:nth-child(2) { transform: rotate(1.5deg) translateY(1.5rem); }
.reach-note { margin-top: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.prose a, .cv-item h3 a, .lede a { text-decoration-color: var(--accent); }

/* --- 18. Responsive --- */
@media (max-width: 960px) {
    .row-grid { grid-template-columns: minmax(0, 1fr); }
    .row-meta span { display: inline; }
    .row-meta span + span::before { content: ' · '; }
    .row > .motif { right: -2.5rem; top: -2.5rem; width: 9rem; }
    .split, .contact-grid, .detail-hero, .offer, .statement-row { grid-template-columns: minmax(0, 1fr); }
    .skill-groups { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portrait { max-width: 22rem; }
    .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cv-short { grid-template-columns: minmax(0, 1fr); }
    .row-art { aspect-ratio: auto; height: 10rem; place-items: center start; }
    .row-art .motif { width: auto; height: 100%; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .site-head { position: static; }
    .site-head .wrap { padding-top: 0.75rem; padding-bottom: 0.25rem; }
    .site-head nav { width: 100%; margin-left: -0.6rem; }
    .site-head nav ul { justify-content: space-between; }
    .site-head nav a { padding: 0.7rem 0.6rem; font-size: 0.95rem; }
    .hero-foot { grid-template-columns: minmax(0, 1fr); }
    .hero-portrait { order: -1; width: 11rem; margin: 2.5rem 0 0 1rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .snaps { grid-template-columns: minmax(0, 1fr); }
    .snaps figure:nth-child(2) { transform: rotate(1deg); }
    .journey li { grid-template-columns: minmax(0, 1fr); }
    .glance { grid-template-columns: minmax(0, 1fr); }
    .cv-item { grid-template-columns: minmax(0, 1fr); }
    .snaps-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .snaps-pair figure:nth-child(2) { transform: rotate(1.5deg); }
    .faq details p { padding-right: 0; }
    .page-head .motif { opacity: 0.45; }
}

/* --- 19. Reduced motion: keep state changes, drop movement --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .row:hover .row-more { padding-right: 0; }
    .btn:active { transform: none; }
}
