/* =========================================================
   Lake Clarity - design system for arturolszak.com
   ========================================================= */

:root {
    --bg: #F4F7F9;
    --surface: #FFFFFF;
    --text: #1A2332;
    --muted: #5A6577;
    --accent: #1B6B6E;
    --accent-hover: #145456;
    --border: #D5DCE3;

    --accent-soft: rgba(27, 107, 110, 0.08);
    --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.04), 0 2px 8px rgba(26, 35, 50, 0.05);
    --shadow-md: 0 6px 24px rgba(26, 35, 50, 0.08);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --wrap: 1120px;
    --wrap-narrow: 760px;
    --radius: 10px;
    --space: clamp(4rem, 8vw, 7rem);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 200;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ----------------------------- Header / nav ----------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 247, 249, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(244, 247, 249, 0.94);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.brand:hover { color: var(--accent); }

.site-nav ul {
    display: flex;
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    position: relative;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.35rem 0;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ----------------------------- Hero ----------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    /* Taller hero → wider photo (height-driven) so it reaches under the text.
       --hero-scale (from site.json hero_height_scale) scales the whole section. */
    min-height: calc(min(83vh, 775px) * var(--hero-scale, 1));
    background:
        radial-gradient(1100px 620px at 88% -8%, rgba(27, 107, 110, 0.12), transparent 60%),
        linear-gradient(180deg, #EAF1F3 0%, var(--bg) 62%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    min-height: calc(min(83vh, 775px) * var(--hero-scale, 1));
    display: flex;
    align-items: center;
}
.hero__content {
    position: relative;
    z-index: 2;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    padding-right: clamp(1rem, 4vw, 3rem);
    max-width: 34rem;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.hero__title {
    font-size: clamp(3rem, 7vw, 5.25rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
}
.hero__lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--muted);
    margin-bottom: 2rem;
    text-wrap: balance;
}
/* Full-bleed photo layer: fills hero height, aligned right, extends under text */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: none;
    /* On very wide screens, stop the photo drifting away from the text:
       cap the layer and center it with the content; bg shows on the right */
    max-width: 1680px;
    margin-inline: auto;
}
.hero__photo {
    position: relative;
    height: 100%; /* full crop visible, top to bottom - no clipping */
    flex-shrink: 0;
}
.hero__photo img {
    display: block;
    height: 100%;
    width: auto; /* keep both sides of the crop - never object-fit:cover on desktop */
    max-width: none;
}
/* Fade is baked alpha in the WebP/PNG (smootherstep + dither). No CSS mask/overlay. */

/* Mid-width desktops: shorter hero -> narrower photo, keeps text clear of it */
@media (min-width: 901px) and (max-width: 1340px) {
    .hero,
    .hero__inner { min-height: calc(min(72vh, 640px) * var(--hero-scale, 1)); }
}

/* Tablet: compact hero, still side-by-side with faded photo (iPad portrait) */
@media (min-width: 721px) and (max-width: 900px) {
    .hero,
    .hero__inner { min-height: calc(min(58vh, 480px) * var(--hero-scale, 1)); }
}

/* ----------------------------- Section scaffolding ----------------------------- */
.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 2.5rem; }
.eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
/* Signature: thin teal vertical rule beside section titles */
.section-title {
    position: relative;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    padding-left: 1.15rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.lead {
    font-size: 1.15rem;
    color: var(--muted);
    text-wrap: pretty;
}

/* ----------------------------- Highlights ----------------------------- */
.highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 901px) {
    .highlights { grid-template-columns: repeat(4, 1fr); }
}
.highlight { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.highlight h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.highlight p { color: var(--muted); margin: 0; }
.highlight a { color: inherit; text-decoration: none; }
.highlight a:hover h3 { color: var(--accent); }

/* ----------------------------- Split intro ----------------------------- */
.split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
}
.meta-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.meta-list li:last-child { border-bottom: none; }
.meta-list span:first-child { color: var(--muted); }
.meta-list span:last-child { font-weight: 600; }

/* ----------------------------- Timeline (experience) ----------------------------- */
.timeline { display: grid; gap: 1.5rem; }
.role {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
}
.role__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.35rem;
}
.role__company { font-size: 1.45rem; margin: 0; }
.role__period {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent);
    white-space: nowrap;
}
.role__location { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.role__summary { color: var(--text); margin-bottom: 0; }
.role__positions { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.55rem; }
.role__positions li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; }
.role__positions .pos-title { font-weight: 600; }
.role__positions .pos-period { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* ----------------------------- Sub blocks (edu / certs / langs) ----------------------------- */
.background-blocks { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.subgrid--pair { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.subblock h3 { font-size: 1.25rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.plain-list li { color: var(--muted); }
.edu-item { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.edu-item:last-child { margin-bottom: 0; }
.edu-item p { margin: 0 0 0.35rem; }
.edu-item p:last-child { margin-bottom: 0; }
.edu-item__degree {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}
.edu-item__affiliation,
.edu-item__detail,
.edu-item__period {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.edu-item__detail q { quotes: "\201C" "\201D"; }
.edu-item__detail q::before { content: open-quote; }
.edu-item__detail q::after { content: close-quote; }
.edu-item__detail a { color: var(--accent); font-weight: 500; }
.edu-item__detail a:hover { text-decoration: underline; }
.edu-item__period { margin-top: 0.15rem; }
.pub-list { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); max-width: 52rem; }
.pub-item { margin: 0; padding-bottom: clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--border); }
.pub-item:last-child { padding-bottom: 0; border-bottom: 0; }
.pub-item__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    margin: 0 0 0.5rem;
    font-size: inherit;
    line-height: 1.65;
}
.pub-item__byline { flex: 1 1 16rem; min-width: 0; }
.pub-item__authors {
    font-weight: 700;
    color: var(--text);
}
.pub-item__sep { color: var(--text); margin-inline: 0.15rem 0.35rem; }
.pub-item__title {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    text-decoration: none;
}
a.pub-item__title:hover { color: var(--accent); text-decoration: underline; }
.pub-item__citation {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.pub-item__citation em { font-style: italic; }
.pub-item__citation a { color: var(--accent); text-decoration: none; }
.pub-item__citation a:hover { text-decoration: underline; }
.pub-item__pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}
.pub-item__pdf:hover { text-decoration: underline; }
.pub-link-icon {
    flex-shrink: 0;
    display: block;
    width: 0.95em;
    height: 0.95em;
}

/* ----------------------------- Projects ----------------------------- */
.project-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.project-group__note { color: var(--muted); margin-top: -0.5rem; margin-bottom: 1.75rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.project-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    color: inherit;
    overflow: hidden;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.project-card__name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.project-card__name .arrow { color: var(--accent); transition: transform 0.25s var(--ease); }
.project-card:hover .project-card__name .arrow { transform: translate(3px, -3px); }
.project-card__tagline { font-weight: 600; color: var(--accent); margin-bottom: 0.6rem; }
.project-card__body { color: var(--muted); margin: 0; }
.project-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.project-card__url {
    display: block;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.75rem;
}
.project-card__pub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--muted);
}
.project-card__pub-text { margin: 0; flex: 1 1 12rem; min-width: 0; }
.project-card__pub a { color: var(--accent); font-weight: 500; }
.project-card__pub a:hover { text-decoration: underline; }
.project-card__pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}
.project-card__pdf:hover { text-decoration: underline; }

/* ----------------------------- Writing / posts ----------------------------- */
.post-list { display: grid; gap: 0; }
.post-item {
    display: block;
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
}
.post-item:first-child { padding-top: 0; }
.post-item__meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.post-item__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: color 0.2s var(--ease);
}
.post-item:hover .post-item__title { color: var(--accent); }
.post-item__summary { color: var(--muted); margin: 0; }

/* ----------------------------- Article ----------------------------- */
.article { padding-block: clamp(3rem, 6vw, 5rem); }
.article__header { margin-bottom: 2.5rem; }
.article__meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.article__title { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }
.article__cover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 2rem;
    border-radius: 2px;
    background: var(--surface);
}
.article__cover--logo {
    width: min(100%, 420px);
    margin-inline: auto 0;
    padding: 1.25rem 0;
    background: transparent;
    object-fit: contain;
}
.article__body { font-size: 1.12rem; line-height: 1.75; }
.post-item--with-cover {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.post-item__cover {
    width: 140px;
    height: 79px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--border);
}
.post-item__cover--logo {
    object-fit: contain;
    background: transparent;
    padding: 0.35rem;
    height: 79px;
}
@media (max-width: 600px) {
    .post-item--with-cover { grid-template-columns: 1fr; }
    .post-item__cover { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .post-item__cover--logo { aspect-ratio: 16 / 9; max-width: 280px; }
}
.article__body h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article__body h3 { font-size: 1.3rem; margin-top: 2rem; }
.article__body ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.article__body li { margin-bottom: 0.4rem; }
.article__body pre {
    background: #10201f;
    color: #d8ece9;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.92rem;
    line-height: 1.5;
}
.article__body pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article__body a { text-decoration: underline; text-underline-offset: 2px; }
.article__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* ----------------------------- Beyond / hobbies ----------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hobby-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.hobby {
    border-left: 3px solid var(--accent);
    padding: 0.35rem 0 0.35rem 1rem;
}
.hobby strong { display: block; }
.hobby span { color: var(--muted); font-size: 0.95rem; }

/* ----------------------------- Contact form ----------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.form-field .req { color: var(--accent); }
.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent); }
.form-status.is-error { background: #fdecec; color: #a12626; border: 1px solid #e4b4b4; }
.contact-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.contact-aside h3 { font-size: 1.35rem; }
.contact-aside p { color: var(--muted); }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { text-align: center; }
.cta-band .section-title { display: inline-block; padding-left: 0; }
.cta-band .section-title::before { display: none; }
.cta-band .btn-group { justify-content: center; margin-top: 1.5rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 3rem; margin-top: var(--space); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.footer-role { color: var(--muted); font-size: 0.9rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer__nav a { color: var(--muted); font-size: 0.95rem; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__meta { width: 100%; color: var(--muted); font-size: 0.85rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.site-footer__meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__meta a:hover { color: var(--accent); }

/* ----------------------------- Motion: fade-up on load ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
    .highlights { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .split__media { order: -1; max-width: 360px; }
    .project-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .hero { min-height: 0; }
    .hero__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .hero__content { padding-block: clamp(3rem, 10vw, 4rem) 1.5rem; padding-right: 0; }
    .hero__media {
        position: relative;
        inset: auto;
        order: -1;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: var(--portrait-ar, 1600 / 1316);
        display: block;
        pointer-events: auto;
    }
    .hero__photo {
        position: absolute;
        inset: 0;
        height: auto;
    }
    .hero__photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }
    .site-nav.is-open { max-height: 70vh; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
    .site-nav li { border-bottom: 1px solid var(--border); }
    .site-nav li:last-child { border-bottom: none; }
    .site-nav a { display: block; padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem); }
    .site-nav a::after { display: none; }
}
