/* Dilian Jaars portfolio: shared styles

   Idea: a risograph print. Spot-colour inks (cyan, pink, yellow) on newsprint
   paper, with hard offset shadows where the "plates" are slightly out of
   register. Each ink colour marks something: cyan = websites and front end,
   pink = logos and programming, yellow = mockups and practice.

   Type: Anybody (width axis, set wide) for headlines; Schibsted Grotesk for text.
*/

@font-face {
    font-family: "Anybody";
    src: url("/fonts/anybody.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
}

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --paper: #f2f2ec;
    --white: #fcfcf9;
    --ink: #14161f;
    --cyan: #00a6e0;
    --pink: #ff5a8a;
    --yellow: #ffd60a;
    --muted: #555a69;
    --line: #cdd0c6;
    --danger: #b3261e;

    --display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

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

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: var(--ink);
    text-decoration-color: var(--cyan);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: var(--pink);
}

button,
input,
textarea {
    font: inherit;
}

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

.skip-link {
    background: var(--ink);
    color: var(--paper);
    left: 16px;
    padding: 10px 16px;
    position: absolute;
    top: -80px;
    z-index: 100;
}

.skip-link:focus {
    top: 16px;
}

.wrap {
    margin-inline: auto;
    width: min(1200px, 100% - 48px);
}

.pad-bottom {
    padding-bottom: clamp(56px, 9vw, 112px);
}

.hidden,
[hidden] {
    display: none !important;
}

/* ---------- type ---------- */

.display {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.92;
}

.heading {
    font-family: var(--display);
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.04;
}

.lede {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.45;
    max-width: 34rem;
}

.prose {
    max-width: 36rem;
}

.prose p + p {
    margin-top: 1.1em;
}

.muted {
    color: var(--muted);
}

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

.btn {
    align-items: center;
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--pink);
    color: var(--paper);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 8px 24px;
    text-decoration: none;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.btn:hover {
    box-shadow: 2px 2px 0 var(--pink);
    color: var(--paper);
    transform: translate(2px, 2px);
}

.btn:active {
    box-shadow: 0 0 0 var(--pink);
    transform: translate(4px, 4px);
}

.btn-ghost {
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--cyan);
    color: var(--ink);
}

.btn-ghost:hover {
    box-shadow: 2px 2px 0 var(--cyan);
    color: var(--ink);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
}

/* ---------- header and footer ---------- */

.site-header {
    padding: 18px 0;
    position: relative;
    z-index: 5;
}

.site-header .wrap {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--display);
    font-size: 1.05rem;
    font-stretch: 120%;
    font-weight: 800;
    gap: 12px;
    text-decoration: none;
}

button.brand {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

button.brand:hover span,
button.brand[aria-expanded="true"] span {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.brand img {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    border: 2px solid transparent;
    border-radius: 999px;
    color: var(--ink);
    display: inline-block;
    font-weight: 600;
    padding: 5px 16px;
    text-decoration: none;
}

.site-nav a:hover {
    border-color: var(--ink);
}

.site-nav a[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.site-footer {
    border-top: 2px solid var(--ink);
    font-size: 0.95rem;
    padding: 24px 0 36px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    justify-content: space-between;
}

.site-footer ul {
    display: flex;
    gap: 22px;
}

/* ---------- drifting plates: ink circles wandering behind every page ---------- */

.hero {
    padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 8vw, 104px);
    position: relative;
}

.drift {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.plate {
    aspect-ratio: 1;
    border-radius: 50%;
    left: 0;
    mix-blend-mode: multiply;
    opacity: 0.4;
    position: absolute;
    top: 0;
    width: var(--d);
    will-change: transform;
}

.plate.cyan {
    --d: clamp(220px, 34vmax, 520px);
    animation: wander-a 71s ease-in-out infinite alternate;
    background: var(--cyan);
}

.plate.pink {
    --d: clamp(190px, 28vmax, 420px);
    animation: wander-b 83s ease-in-out infinite alternate;
    background: radial-gradient(circle, var(--pink) 38%, transparent 41%) 0 0 / 9px 9px;
}

.plate.yellow {
    --d: clamp(140px, 20vmax, 300px);
    animation: wander-c 59s ease-in-out infinite alternate;
    background: var(--yellow);
}

@keyframes wander-a {
    0% { transform: translate(62vw, -8vh) rotate(0deg); }
    25% { transform: translate(8vw, 22vh); }
    50% { transform: translate(40vw, 62vh); }
    75% { transform: translate(78vw, 48vh); }
    100% { transform: translate(18vw, -6vh) rotate(40deg); }
}

@keyframes wander-b {
    0% { transform: translate(10vw, 66vh); }
    30% { transform: translate(70vw, 70vh); }
    55% { transform: translate(84vw, 10vh); }
    80% { transform: translate(30vw, 28vh); }
    100% { transform: translate(52vw, 80vh); }
}

@keyframes wander-c {
    0% { transform: translate(40vw, 40vh); }
    33% { transform: translate(-4vw, 70vh); }
    66% { transform: translate(60vw, 4vh); }
    100% { transform: translate(86vw, 62vh); }
}

.hero-name {
    font-size: clamp(3.4rem, 11.5vw, 10rem);
    margin-bottom: clamp(24px, 4vw, 44px);
}

/* A little bounce: each letter hops slightly, one after the other. */
.hero-name .word span {
    animation: hop 2.8s ease-in-out infinite;
    display: inline-block;
}

.hero-name .word span:nth-child(2) { animation-delay: 0.12s; }
.hero-name .word span:nth-child(3) { animation-delay: 0.24s; }
.hero-name .word span:nth-child(4) { animation-delay: 0.36s; }
.hero-name .word span:nth-child(5) { animation-delay: 0.48s; }
.hero-name .word span:nth-child(6) { animation-delay: 0.6s; }

@keyframes hop {
    0%, 55%, 100% { transform: translateY(0); }
    15% { transform: translateY(-0.07em); }
    30% { transform: translateY(0); }
    40% { transform: translateY(-0.025em); }
}

.hero-copy {
    max-width: 31rem;
}

.hero-copy .role {
    font-family: var(--display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-stretch: 120%;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-copy .lede {
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-copy .intro {
    color: var(--muted);
    margin-bottom: 28px;
}

/* ---------- sections ---------- */

.section {
    padding: clamp(56px, 9vw, 112px) 0;
}

.section-head {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    justify-content: space-between;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.split {
    align-items: center;
    display: grid;
    gap: clamp(32px, 6vw, 88px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.portrait {
    box-shadow: 14px 14px 0 var(--cyan);
    width: 100%;
}

.portrait-btn {
    background: none;
    border: 0;
    cursor: pointer;
    display: block;
    padding: 0;
    width: 100%;
}

.portrait-btn:hover .portrait {
    transform: translate(-3px, -3px);
}

.portrait {
    transition: transform 0.2s ease;
}

.reveal-hint {
    color: var(--muted, var(--ink));
    font-family: var(--display);
    font-stretch: 120%;
    font-weight: 700;
    margin-top: 12px;
}

/* The story stays hidden (but keeps its space) until the photo is clicked,
   then each sentence fades in one after the other. */
.prose.is-hidden .sentence {
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
}

.prose .sentence {
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
}

.prose.is-hidden .sentence.shown,
.prose .sentence.shown {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.site-nav:not([hidden]) li {
    animation: nav-in 0.45s ease both;
}

.site-nav:not([hidden]) li:nth-child(2) { animation-delay: 0.15s; }
.site-nav:not([hidden]) li:nth-child(3) { animation-delay: 0.3s; }
.site-nav:not([hidden]) li:nth-child(4) { animation-delay: 0.45s; }
.site-nav:not([hidden]) li:nth-child(5) { animation-delay: 0.6s; }

@keyframes nav-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.portrait-caption {
    font-family: var(--display);
    font-size: 1.1rem;
    font-stretch: 120%;
    font-weight: 700;
    margin-top: 28px;
}

.split .heading {
    margin-bottom: 24px;
}

.ink-cyan {
    background: var(--cyan);
}

.ink-pink {
    background: var(--pink);
}

.ink-yellow {
    background: var(--yellow);
}

.ink-black {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- packages ---------- */

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

.package {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.package:hover {
    box-shadow: 10px 10px 0 var(--ink);
    transform: translate(-3px, -3px);
}

.package header {
    padding: 20px 20px 18px;
}

.package h3 {
    font-family: var(--display);
    font-size: 1.35rem;
    font-stretch: 120%;
    font-weight: 800;
    line-height: 1.1;
}

.package .amount {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-stretch: 115%;
    font-weight: 800;
    justify-content: flex-end;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-top: 10px;
    min-height: 3.7rem;
}

.package .amount .from {
    font-family: var(--text);
    font-size: 1rem;
    font-stretch: 100%;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

.package ul {
    background: var(--white);
    border-top: 2px solid var(--ink);
    flex: 1;
    padding: 8px 20px 14px;
}

.package li {
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    padding: 7px 0 7px 26px;
    position: relative;
}

.package li::before {
    border-bottom: 3px solid var(--ink);
    border-left: 3px solid var(--ink);
    content: "";
    height: 6px;
    left: 3px;
    position: absolute;
    top: 13px;
    transform: rotate(-45deg);
    width: 11px;
}

.package-cta {
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.package-cta:hover {
    background: var(--yellow);
    color: var(--ink);
}

.package li:last-child {
    border-bottom: 0;
}

/* ---------- the book of websites (home) ---------- */

.book-wrap {
    perspective: 2400px;
}

.book {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 12px 12px 0 var(--cyan);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: clamp(400px, 44vw, 540px);
    position: relative;
    transform-style: preserve-3d;
}

/* The spine: a soft shadow down the middle. */
.book::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(20, 22, 31, 0.14) 44%,
        rgba(20, 22, 31, 0.3) 50%,
        rgba(20, 22, 31, 0.14) 56%,
        transparent
    );
    bottom: 0;
    content: "";
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 44px;
    z-index: 3;
}

.page {
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(20px, 3vw, 36px);
    position: relative;
}

.page-left {
    border-right: 1px solid var(--line);
}

.shot {
    aspect-ratio: 4 / 3;
    border: 2px solid var(--ink);
    overflow: hidden;
    position: relative;
}

.shot img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.shot.placeholder {
    align-items: center;
    background: var(--shot, var(--cyan));
    display: flex;
    font-family: var(--display);
    font-size: clamp(3.4rem, 9vw, 7rem);
    font-stretch: 125%;
    font-weight: 800;
    justify-content: center;
    letter-spacing: -0.02em;
}

.page-body {
    flex: 1;
}

.page-right h3 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.page-right .desc {
    margin-bottom: 14px;
}

.page-right .tools {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 24px;
}

.folio {
    color: var(--muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    margin-top: 16px;
}

.page-left .folio {
    align-self: flex-start;
}

.page-right .folio {
    align-self: flex-end;
}

/* The page that turns. It sits over one half of the book and flips across
   the spine; its two faces are the page being left and the page arriving. */
.leaf {
    height: 100%;
    position: absolute;
    top: 0;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.25, 1);
    width: 50%;
    z-index: 2;
}

.leaf-next {
    left: 50%;
    transform-origin: left center;
}

.leaf-prev {
    left: 0;
    transform-origin: right center;
}

.leaf-next.turning {
    transform: rotateY(-180deg);
}

.leaf-prev.turning {
    transform: rotateY(180deg);
}

.leaf .page {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    inset: 0;
    position: absolute;
}

.leaf .page.back {
    transform: rotateY(180deg);
}

.book-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    margin-top: 36px;
}

.book-status {
    font-weight: 600;
    order: 0;
}

.btn:disabled {
    box-shadow: none;
    transform: none;
}

.btn.is-disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.btn.is-disabled:hover {
    box-shadow: none;
    transform: none;
}

/* ---------- call to action ---------- */

.cta {
    background: var(--yellow);
    border-top: 2px solid var(--ink);
    padding: clamp(56px, 9vw, 104px) 0;
}

.cta .display {
    font-size: clamp(2.4rem, 8vw, 6.4rem);
    margin-bottom: 24px;
    max-width: 14ch;
}

.cta p {
    margin-bottom: 28px;
    max-width: 30rem;
}

.cta .btn {
    box-shadow: 4px 4px 0 var(--ink);
}

.cta .btn:hover {
    box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- inner page intro ---------- */

.page-intro {
    padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 52px);
}

.page-intro .display {
    font-size: clamp(3.2rem, 12vw, 8.6rem);
    margin-bottom: 20px;
}

/* ---------- skills ---------- */

.skills-tally {
    margin-top: 14px;
    font-family: var(--display);
    font-size: 1.05rem;
    font-stretch: 118%;
    font-weight: 700;
    margin-bottom: 18px;
}

.skills-tally strong {
    background: var(--yellow);
    padding: 0 8px;
}

.skills-jump ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-jump a {
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    display: inline-block;
    font-weight: 700;
    padding: 6px 18px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.skills-jump a:hover {
    background: var(--ink);
    color: var(--paper);
}

.skills-block {
    --accent: var(--cyan);
    --on-accent: var(--ink);
    align-items: start;
    border-top: 2px solid var(--ink);
    display: grid;
    gap: 28px clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    padding: clamp(28px, 4vw, 48px) 0;
    scroll-margin-top: 16px;
}

.skills-block.pink { --accent: var(--pink); }
.skills-block.yellow { --accent: var(--yellow); }
.skills-block.black { --accent: var(--ink); --on-accent: var(--paper); }

.skills-head {
    position: sticky;
    top: 24px;
}

.skills-num {
    background: var(--accent);
    color: var(--on-accent);
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-stretch: 125%;
    font-weight: 900;
    line-height: 1;
    padding: 6px 16px 8px;
}

.skills-head h2 {
    font-family: var(--display);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 18px 0 10px;
}

.skills-blurb {
    color: var(--muted);
    margin-bottom: 14px;
    max-width: 22rem;
}

.skills-count {
    border: 2px solid var(--ink);
    border-radius: 999px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 2px 14px;
}

.skill-cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--accent);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 22px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.skill-card:hover {
    box-shadow: 10px 10px 0 var(--accent);
    transform: translate(-3px, -3px);
}

.skill-card .mono {
    align-items: center;
    background: var(--accent);
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--on-accent);
    display: inline-flex;
    font-family: var(--display);
    font-size: 0.95rem;
    font-stretch: 120%;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    margin-bottom: 8px;
    width: 48px;
}

.skill-card strong {
    font-family: var(--display);
    font-size: 1.15rem;
    font-stretch: 112%;
    font-weight: 800;
    line-height: 1.2;
}

.skill-card .desc {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.5;
}

/* Cards fade up one after another as they scroll into view (set by skills.ts). */
.skill-card.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.skill-card.reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.18s ease;
}

.skill-card.reveal.in:nth-child(even) {
    transition-delay: 0.08s, 0.08s, 0s;
}

/* ---------- services ---------- */

.price-card {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--accent);
    padding: 10px clamp(18px, 3vw, 30px) 14px;
}

.price-card li {
    align-items: baseline;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    padding: 11px 8px;
    transition: background 0.15s ease;
}

.price-card li:hover {
    background: var(--paper);
}

.price-card .name {
    font-weight: 600;
}

.price-card .leader {
    border-bottom: 2px dotted var(--line);
    flex: 1;
    min-width: 12px;
    transform: translateY(-4px);
}

.price-card .price {
    font-family: var(--display);
    font-stretch: 112%;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: right;
}

.note {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--yellow);
    margin-top: 44px;
    max-width: 44rem;
    padding: 18px 22px;
}

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

.contact-grid {
    align-items: start;
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding-bottom: clamp(56px, 9vw, 112px);
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    --accent: var(--cyan);
    align-items: center;
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--accent);
    color: var(--ink);
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-card.pink { --accent: var(--pink); }
.contact-card.yellow { --accent: var(--yellow); }

.contact-card:hover {
    box-shadow: 10px 10px 0 var(--accent);
    transform: translate(-3px, -3px);
}

.contact-card .mono {
    align-items: center;
    background: var(--accent);
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: inline-flex;
    flex: none;
    font-family: var(--display);
    font-stretch: 120%;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.contact-text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.contact-card .label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-card .value {
    font-family: var(--display);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-stretch: 112%;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-card .arrow {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.18s ease;
}

.contact-card:hover .arrow {
    transform: translateX(5px);
}

.mention {
    border: 2px dashed var(--ink);
    margin-top: 32px;
    padding: 20px 22px 22px;
}

.mention h2 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-stretch: 118%;
    font-weight: 800;
    margin-bottom: 10px;
}

.mention li {
    padding: 5px 0 5px 22px;
    position: relative;
}

.mention li::before {
    background: var(--pink);
    border-radius: 50%;
    content: "";
    height: 9px;
    left: 0;
    position: absolute;
    top: 13px;
    width: 9px;
}

.contact-form {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--cyan);
    padding: clamp(22px, 3.5vw, 40px);
}

.form-title {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}

.field-row {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chip {
    background: none;
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 4px 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover,
.chip[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- forms ---------- */

.form-grid {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    font-weight: 700;
}

input,
textarea {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
    padding: 12px 14px;
    width: 100%;
}

input:focus-visible,
textarea:focus-visible {
    box-shadow: 5px 5px 0 var(--cyan);
    outline-offset: 0;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="file"] {
    padding: 9px 12px;
}

::placeholder {
    color: #7a7f8d;
}

.hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-message {
    border-left: 5px solid var(--danger);
    color: var(--danger);
    display: none;
    font-weight: 600;
    padding-left: 12px;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    border-left-color: var(--cyan);
    color: var(--ink);
}

/* ---------- work page ---------- */

.work-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin: 28px 0 12px;
}

#panel {
    padding-bottom: clamp(40px, 7vw, 88px);
}

.work-item:nth-child(3n + 1) {
    --accent: var(--cyan);
}

.work-item:nth-child(3n + 2) {
    --accent: var(--pink);
}

.work-item:nth-child(3n) {
    --accent: var(--yellow);
}

.work-item {
    align-items: start;
    border-top: 2px solid var(--ink);
    display: grid;
    gap: 24px 56px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    padding: 44px 0;
}

.work-item.no-image {
    grid-template-columns: minmax(0, 1fr);
}

.work-media {
    aspect-ratio: 16 / 10;
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: 12px 12px 0 var(--accent);
    overflow: hidden;
}

.work-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.work-item h3 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.work-item .desc {
    max-width: 34rem;
}

.work-item .tools {
    color: var(--muted);
    font-weight: 600;
    margin-top: 14px;
}

.work-item .actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 24px;
}

.link-button {
    background: none;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    font-weight: 700;
    padding: 6px 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.empty {
    background: var(--white);
    border: 2px dashed var(--ink);
    margin-top: 28px;
    padding: 40px 28px;
}

.empty h3 {
    font-family: var(--display);
    font-size: 1.6rem;
    font-stretch: 115%;
    font-weight: 800;
    margin-bottom: 8px;
}

.skeleton {
    animation: pulse 1.4s ease-in-out infinite;
    background: var(--line);
    height: 240px;
    margin-top: 28px;
}

@keyframes pulse {
    50% {
        opacity: 0.45;
    }
}

dialog {
    background: transparent;
    border: 0;
    color: var(--ink);
    max-height: 92vh;
    max-width: 560px;
    padding: 0;
    width: calc(100% - 32px);
}

dialog::backdrop {
    background: rgba(20, 22, 31, 0.72);
}

.dialog-card {
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--pink);
    max-height: 92vh;
    overflow-y: auto;
    padding: clamp(24px, 5vw, 40px);
}

.dialog-card h2 {
    font-family: var(--display);
    font-size: 1.8rem;
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 10px;
}

.dialog-card .intro {
    color: var(--muted);
    margin-bottom: 24px;
}

.dialog-top {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.signed-in {
    align-items: center;
    background: var(--white);
    border: 2px solid var(--ink);
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 10px 16px;
}

/* ---------- 404 ---------- */

.lost .display {
    font-size: clamp(6rem, 28vw, 18rem);
    margin-bottom: 12px;
}

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

@media (max-width: 960px) {
    .split,
    .contact-grid,
    .work-item {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .skills-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skills-head {
        position: static;
    }

    .portrait {
        max-height: 460px;
        object-fit: cover;
        width: calc(100% - 14px);
    }

    .work-media {
        box-shadow: 8px 8px 0 var(--accent);
        margin-right: 8px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 1rem;
    }

    .packages,
    .skill-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-card .arrow {
        display: none;
    }

    .price-card li {
        flex-wrap: wrap;
        gap: 2px 12px;
    }

    .price-card .leader {
        display: none;
    }

    .price-card .price {
        flex-basis: 100%;
        text-align: left;
    }

    /* On phones the book is one page at a time: screenshot, then details. */
    .book {
        box-shadow: 8px 8px 0 var(--cyan);
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .book::after {
        display: none;
    }

    .page-left {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .shot {
        aspect-ratio: 16 / 10;
    }

    .book-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-status {
        grid-column: 1 / -1;
        order: -1;
    }

    .page-left .folio,
    .page-right .folio {
        display: none;
    }

    .hero {
        padding-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plate {
        animation: none;
    }

    .plate.cyan { transform: translate(62vw, 6vh); }
    .plate.pink { transform: translate(10vw, 62vh); }
    .plate.yellow { transform: translate(70vw, 60vh); }

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
