/* PLVictor home page. Uses tokens from portfolio.css */

body.home { background: var(--bg-light); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 2000; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 1.5rem; }

/* reveal on scroll (kept visible when JS is off) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- navigation ---------- */

.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; padding-inline: 1rem; pointer-events: none; }
.nav-bar {
    pointer-events: auto;
    max-width: 920px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .6rem .55rem 1.1rem;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .3s, background .3s;
}
.nav.scrolled .nav-bar { box-shadow: var(--shadow-medium); background: rgba(255, 255, 255, .92); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; border-radius: 9px; }
.v-letter { color: var(--accent-orange); }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links a {
    display: block; padding: .5rem .95rem; border-radius: 999px;
    color: var(--text-secondary); text-decoration: none; font-weight: 550; font-size: .92rem;
    transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--grey-soft); }
.nav-links a.active { color: var(--ink); background: var(--orange-soft); }
.nav-links a.nav-cta { background: var(--ink); color: #fff; margin-left: .3rem; }
.nav-links a.nav-cta:hover { background: #17406f; }
.mobile-menu-btn {
    display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
    background: var(--grey-soft); border: 0; border-radius: 50%; color: var(--ink); font-size: 1rem; cursor: pointer;
}

/* ---------- hero ---------- */

.hero-home {
    position: relative; overflow: hidden;
    padding: 9rem 0 4.5rem;
    background:
        radial-gradient(50% 60% at 8% 0%, rgba(255, 138, 50, .18), transparent 62%),
        radial-gradient(45% 55% at 100% 20%, rgba(30, 95, 174, .16), transparent 62%),
        var(--bg-light);
    min-height: auto; display: block;
}
.hero-home::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(17, 52, 89, .08) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .42rem .95rem .42rem .8rem;
    background: #fff; border: 1px solid var(--border-light); border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--text-secondary);
    box-shadow: var(--shadow-soft); margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero-home h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.04em; color: var(--ink);
    margin-bottom: 1.3rem;
}
.hero-home h1 em {
    font-style: normal; position: relative; white-space: nowrap; color: var(--ink);
    background: linear-gradient(transparent 62%, rgba(255, 138, 50, .38) 62%, rgba(255, 138, 50, .38) 92%, transparent 92%);
    padding-inline: .1em; margin-inline: -.1em;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-secondary); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.hero-actions .cta-button { padding: 1rem 1.9rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; color: var(--text-secondary); font-size: .92rem; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts i { color: var(--accent-orange); }
.hero-facts strong { color: var(--ink); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-blob {
    position: absolute; inset: 4% 4% 6%;
    background: linear-gradient(150deg, #fff 0%, var(--orange-soft) 45%, var(--blue-soft) 100%);
    border: 1px solid var(--border-light);
    border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
    box-shadow: var(--shadow-medium);
    animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
    0%, 100% { border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
    50% { border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%; }
}
.hero-emote { position: relative; width: min(78%, 330px); filter: drop-shadow(0 22px 26px rgba(17, 52, 89, .22)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem;
    padding: .55rem 1rem .55rem .55rem;
    background: rgba(255, 255, 255, .94); border: 1px solid var(--border-light); border-radius: 18px;
    box-shadow: var(--shadow-medium); text-decoration: none; color: var(--ink);
    animation: bob 6s ease-in-out infinite;
    transition: transform .25s var(--ease);
}
.float-card:hover { transform: scale(1.05); animation-play-state: paused; }
.float-card img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; object-position: center 25%; background: var(--blue-soft); }
.float-card b { display: block; font-size: .86rem; line-height: 1.2; font-weight: 700; }
.float-card span { display: block; font-size: .72rem; color: var(--text-secondary); line-height: 1.2; }
.float-card.fc1 { top: 6%; left: -4%; animation-delay: -1s; }
.float-card.fc2 { top: 40%; right: -6%; animation-delay: -3s; }
.float-card.fc3 { bottom: 6%; left: 2%; animation-delay: -2s; }

/* ---------- marquee ---------- */

.marquee { border-block: 1px solid var(--border-light); background: #fff; overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
    display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0;
    padding: .4rem 1.1rem .4rem .4rem; background: var(--bg-light);
    border: 1px solid var(--border-light); border-radius: 999px;
    font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none;
}
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 22%; background: var(--blue-soft); }

/* ---------- generic section ---------- */

.block { padding: 5.5rem 0; position: relative; scroll-margin-top: 20px; }
.block-head { max-width: 42rem; margin-bottom: 2.8rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-orange); margin-bottom: .8rem; }
.block-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); margin-bottom: .8rem; }
.block-sub { font-size: 1.08rem; color: var(--text-secondary); }

/* ---------- numbers ---------- */

.numbers { padding: 4.5rem 0 1rem; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.num-card {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-m);
    padding: 1.8rem 1.5rem; box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.num-card:nth-child(1) { background: linear-gradient(160deg, #fff, var(--orange-soft)); }
.num-card:nth-child(4) { background: linear-gradient(160deg, #fff, var(--blue-soft)); }
.num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); margin-bottom: .6rem; }
.num-label { font-size: .93rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: start; }
.about-card {
    position: sticky; top: 100px;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-l);
    padding: 1.4rem; box-shadow: var(--shadow-medium);
}
.about-card .portrait { background: linear-gradient(150deg, var(--orange-soft), var(--blue-soft)); border-radius: calc(var(--radius-l) - 10px); padding: 1.2rem; display: grid; place-items: center; margin-bottom: 1.2rem; }
.about-card .portrait img { width: 78%; max-width: 250px; filter: drop-shadow(0 14px 18px rgba(17, 52, 89, .2)); }
.facts { list-style: none; display: grid; gap: .85rem; }
.facts li { display: flex; gap: .8rem; align-items: flex-start; font-size: .94rem; color: var(--text-secondary); line-height: 1.45; }
.facts i { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: var(--orange-soft); color: var(--accent-orange); border-radius: 10px; font-size: .85rem; }
.facts strong { color: var(--ink); font-weight: 650; }

.about-text { font-size: 1.07rem; line-height: 1.85; color: var(--text-secondary); }
.about-text p { margin-bottom: 1.3rem; }
.about-text a { font-weight: 600; text-underline-offset: 3px; }
.about-highlight { color: var(--ink); font-weight: 650; background: linear-gradient(transparent 60%, rgba(255, 138, 50, .28) 60%); }
.about-expandable { position: relative; max-height: 25rem; overflow: hidden; transition: max-height .6s var(--ease); }
.about-expandable.expanded { max-height: 120rem; }
.about-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; pointer-events: none; background: linear-gradient(to bottom, rgba(245, 247, 250, 0), var(--bg-light) 85%); transition: opacity .3s; }
.about-expandable.expanded .about-fade { opacity: 0; }

.more-btn {
    display: inline-flex; align-items: center; gap: .55rem; margin-top: .6rem;
    padding: .75rem 1.4rem; background: #fff; color: var(--ink);
    border: 1px solid var(--border-light); border-radius: 999px;
    font: 600 .95rem var(--font-body); cursor: pointer; box-shadow: var(--shadow-soft);
    transition: transform .2s var(--ease), border-color .2s;
}
.more-btn:hover { transform: translateY(-2px); border-color: var(--accent-orange); }
.more-btn i { transition: transform .3s; font-size: .75rem; }
.more-btn.expanded i { transform: rotate(180deg); }

/* ---------- featured ---------- */

.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feat {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-l);
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.feat-visual { position: relative; display: grid; place-items: center; min-height: 300px; padding: 2rem; overflow: hidden; }
.feat-rock .feat-visual { background: radial-gradient(80% 90% at 20% 10%, rgba(255, 138, 50, .35), transparent 60%), linear-gradient(160deg, #E9F1FC, #FFF1E5); }
.feat-iris .feat-visual { background: radial-gradient(80% 90% at 80% 10%, rgba(255, 106, 26, .3), transparent 60%), linear-gradient(160deg, #FFF3EA, #EEF3FA); }
.feat-visual::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px dashed rgba(17, 52, 89, .16); right: -120px; bottom: -150px; }
.feat-visual img {
    position: relative; z-index: 1; width: 240px; height: 240px; object-fit: cover; object-position: center 24%;
    border-radius: 36px; border: 1px solid rgba(255, 255, 255, .8); background: #fff;
    box-shadow: 0 24px 50px rgba(17, 52, 89, .22); transform: rotate(-3deg);
    transition: transform .5s var(--ease);
}
.feat:hover .feat-visual img { transform: rotate(0) scale(1.04); }
.feat-iris .feat-visual img { object-fit: contain; padding: .4rem; transform: rotate(3deg); }
.feat-status { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2; background: #fff; box-shadow: var(--shadow-soft); }
.feat-body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.feat-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); margin-bottom: .7rem; }
.feat-body p { color: var(--text-secondary); margin-bottom: 1.2rem; }
.feat-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; list-style: none; margin: 0 0 1.3rem; }
.feat-stats li { padding: .85rem 1rem; background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-s); }
.feat-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.feat-stats span { display: block; margin-top: .25rem; font-size: .78rem; line-height: 1.35; color: var(--text-secondary); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin-bottom: 1.6rem; }
.tags li { padding: .32rem .8rem; background: var(--bg-light); border: 1px solid var(--border-light); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.feat-wide { grid-column: 1 / -1; flex-direction: row; }
.feat-wide .feat-visual { flex: 0 0 40%; min-height: 340px; }
.feat-wide .feat-body { justify-content: center; padding: 2.4rem 2.6rem; }
.feat-wide .feat-body h3 { font-size: 2.3rem; }
.feat-wide .feat-body p { font-size: 1.05rem; max-width: 40rem; }
.feat-comele .feat-visual { background: radial-gradient(80% 90% at 20% 10%, rgba(255, 138, 50, .32), transparent 60%), radial-gradient(70% 80% at 90% 90%, rgba(30, 95, 174, .22), transparent 60%), linear-gradient(160deg, #FFF3E8, #E9F1FC); }
.feat-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; }
.btn-s { padding: .8rem 1.4rem; font-size: .93rem; }

/* ---------- all projects ---------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter {
    padding: .55rem 1.15rem; background: #fff; color: var(--text-secondary);
    border: 1px solid var(--border-light); border-radius: 999px;
    font: 600 .9rem var(--font-body); cursor: pointer;
    transition: all .2s;
}
.filter:hover { color: var(--ink); border-color: rgba(17, 52, 89, .3); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter .count { opacity: .55; margin-left: .3rem; font-weight: 500; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pcard {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-m);
    padding: 1.4rem; box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); border-color: rgba(255, 138, 50, .5); }
.pcard[hidden] { display: none; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.1rem; }
.pcard-top img { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; object-position: center 22%; background: linear-gradient(145deg, #fff, var(--blue-soft)); border: 1px solid var(--border-light); }
.pcard .project-status { font-size: .68rem; padding: .35rem .75rem; }
.pcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-bottom: .25rem; }
.pcard .date { font-size: .8rem; color: var(--grey); margin-bottom: .8rem; }
.pcard .blurb { font-size: .95rem; color: var(--text-secondary); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.2rem; }
.pcard-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.link-btn {
    background: none; border: 0; cursor: pointer; padding: .3rem 0;
    font: 600 .9rem var(--font-body); color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
    transition: color .2s, gap .2s;
}
.link-btn:hover { color: var(--accent-orange); gap: .7rem; }
.link-btn.primary { color: var(--ink); }
.card-full { display: none; }

/* dialog */
.pdialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; margin: auto; overflow: visible; }
.pdialog::backdrop { background: rgba(14, 42, 74, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pdialog-panel {
    width: min(680px, calc(100vw - 2rem)); max-height: min(86vh, 760px); overflow: auto;
    background: #fff; border-radius: var(--radius-l); box-shadow: 0 40px 100px rgba(14, 42, 74, .35);
    animation: dlg .35s var(--ease);
}
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.pdialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); }
.pdialog-head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; object-position: center 22%; background: var(--blue-soft); }
.pdialog-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1; }
.pdialog-head .date { font-size: .82rem; color: var(--grey); }
.pdialog-close { margin-left: auto; width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--grey-soft); color: var(--ink); cursor: pointer; font-size: 1rem; }
.pdialog-close:hover { background: var(--orange-soft); color: var(--accent-orange); }
.pdialog-body { padding: 1.5rem 1.6rem .5rem; color: var(--text-secondary); line-height: 1.8; }
.pdialog-body p { margin-bottom: 1.1rem; }
.pdialog-body a { font-weight: 600; }
.pdialog-foot { padding: .6rem 1.6rem 1.6rem; }
body.dialog-open { overflow: hidden; }

/* ---------- journey ---------- */

.journey { background: #fff; border-block: 1px solid var(--border-light); }
.timeline { position: relative; list-style: none; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--accent-orange), var(--link-blue)); opacity: .35; transform: translateX(-1px); }
.t-item { position: relative; width: 50%; padding: 0 2.6rem 2.2rem 0; text-align: right; }
.t-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.2rem 2.6rem; text-align: left; }
.t-item::before { content: ""; position: absolute; top: 6px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-orange); box-shadow: 0 0 0 5px rgba(255, 138, 50, .15); }
.t-item:nth-child(even)::before { right: auto; left: -8px; }
.t-item.big::before { border-color: var(--link-blue); box-shadow: 0 0 0 5px rgba(30, 95, 174, .16); }
.t-date { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-orange); margin-bottom: .2rem; }
.t-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin-bottom: .3rem; }
.t-item p { font-size: .95rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- contact ---------- */

.contact-card {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
    background:
        radial-gradient(60% 100% at 0% 0%, rgba(255, 138, 50, .26), transparent 60%),
        radial-gradient(60% 100% at 100% 100%, rgba(30, 95, 174, .22), transparent 60%),
        #fff;
    border: 1px solid var(--border-light); border-radius: var(--radius-l); box-shadow: var(--shadow-medium);
}
.contact-card img { width: 120px; margin: 0 auto 1rem; filter: drop-shadow(0 12px 16px rgba(17, 52, 89, .2)); }
.contact-card h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); margin-bottom: 1rem; }
.contact-card p { max-width: 34rem; margin: 0 auto 2rem; color: var(--text-secondary); font-size: 1.1rem; }
.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.contact-method { display: inline-flex; align-items: center; gap: .65rem; padding: .95rem 1.6rem; background: #fff; color: var(--ink); text-decoration: none; font-weight: 650; border: 1px solid var(--border-light); border-radius: 999px; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.contact-method:hover { transform: translateY(-3px); border-color: var(--accent-orange); box-shadow: var(--shadow-medium); }
.contact-method i { color: var(--accent-orange); font-size: 1.1rem; }
.contact-method.main { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-method.main i { color: #fff; }

/* ---------- footer ---------- */

.site-footer { padding: 2.5rem 0 3rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-row p { color: var(--text-secondary); font-size: .9rem; }
.footer-links { display: flex; gap: .5rem; }
.footer-links a { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: 50%; color: var(--ink); text-decoration: none; transition: all .2s; }
.footer-links a:hover { background: var(--ink); color: #fff; }

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

@media (max-width: 1000px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-card { position: static; display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; }
    .about-card .portrait { margin-bottom: 0; }
}

@media (max-width: 820px) {
    .feat-wide { flex-direction: column; }
    .feat-wide .feat-visual { flex: none; min-height: 280px; }
    .feat-wide .feat-body { padding: 1.8rem 1.9rem 2rem; }
    .feat-wide .feat-body h3 { font-size: 1.9rem; }
    .hero-home { padding: 7.5rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { min-height: 360px; order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
    .float-card.fc1 { left: 0; }
    .float-card.fc2 { right: 0; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .block { padding: 4rem 0; }

    .nav-bar { position: relative; padding: .5rem .55rem .5rem 1rem; }
    .mobile-menu-btn { display: inline-flex; }
    .nav-links {
        position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch;
        padding: .6rem; background: rgba(255, 255, 255, .97); border: 1px solid var(--border-light); border-radius: 24px; box-shadow: var(--shadow-medium);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease);
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: .8rem 1rem; }
    .nav-links a.nav-cta { margin: .3rem 0 0; text-align: center; }

    .timeline::before { left: 7px; }
    .t-item, .t-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.2rem; text-align: left; }
    .t-item::before, .t-item:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 560px) {
    .feat-stats { grid-template-columns: repeat(2, 1fr); }
    .wrap { padding-inline: 1.15rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-card { grid-template-columns: 1fr; }
    .hero-actions .cta-button { width: 100%; }
    .float-card { padding: .4rem .8rem .4rem .4rem; }
    .float-card img { width: 34px; height: 34px; }
    .float-card.fc3 { display: none; }
    .feat-visual { min-height: 240px; }
    .feat-visual img { width: 190px; height: 190px; }
    .feat-body { padding: 1.4rem; }
    .pdialog-panel { max-height: 90vh; }
    .contact-method { width: 100%; justify-content: center; }
    .footer-row { justify-content: center; text-align: center; }
}
