/* Sting Studio
   Brand: ink #1D1D1D and thread #AB9B8E, both taken from the logo.
   The logo's vertical thread is reused as the "seam" beside key headings. */

:root {
    --ink: #1D1D1D;
    --ink-soft: #4A4642;
    --thread: #AB9B8E;
    --thread-faint: #DCD4CC;
    --thread-deep: #6E6158;
    --stone: #E9E4DF;
    --paper: #FBFAF9;
    --on-ink: #F6F4F1;
    --on-ink-soft: #C9C1B9;

    --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --wrap: 1240px;
    --section: clamp(72px, 10vw, 144px);
    --header-h: 92px;

    --stitch: repeating-linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 17px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--thread-deep); outline-offset: 3px; }
.craft :focus-visible, .site-footer :focus-visible { outline-color: var(--thread); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: var(--gutter); top: -60px; z-index: 200;
    background: var(--ink); color: var(--on-ink); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display-1, .display-2, .display-3 { font-weight: 300; color: var(--ink); text-wrap: balance; }
.display-1 {
    font-size: clamp(2.75rem, 5.2vw + 1rem, 5.75rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    max-width: 11ch;
}
.display-2 {
    font-size: clamp(1.875rem, 2.4vw + 1rem, 3.125rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    max-width: 22ch;
}
.display-3 {
    font-size: clamp(1.5rem, 1.4vw + 1rem, 2.125rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.lede {
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
    font-weight: 300;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 34em;
    margin-top: 28px;
}
.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.prose a:not(.link) { text-decoration-color: var(--thread); text-underline-offset: 3px; }
.prose .link { margin-top: 32px; }

/* Links and buttons */
.link {
    display: inline-block;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--thread);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: text-decoration-color .2s, color .2s;
}
.link:hover { color: var(--thread-deep); text-decoration-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 28px;
    background: var(--ink); color: var(--on-ink);
    border: 1px solid var(--ink); border-radius: 2px;
    font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
    text-decoration: none; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--thread-deep); border-color: var(--thread-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: .9375rem; }

/* The seam: the logo's thread, with its faint ends and gaps */
.seam { position: relative; padding-left: clamp(28px, 4.5vw, 64px); }
.seam::before {
    content: "";
    position: absolute; left: 0; top: -16px; bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--thread-faint) 0 12%, transparent 12% 17%,
        var(--thread) 17% 83%,
        transparent 83% 88%, var(--thread-faint) 88% 100%);
    transform-origin: top;
}
.seam--draw::before { animation: draw-seam 1.3s cubic-bezier(.65, 0, .2, 1) .15s both; }
.seam--draw > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.seam--draw > :nth-child(1) { animation-delay: .35s; }
.seam--draw > :nth-child(2) { animation-delay: .5s; }
.seam--draw > :nth-child(3) { animation-delay: .62s; }
.seam--draw > :nth-child(4) { animation-delay: .72s; }

@keyframes draw-seam { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--thread-faint); }
.site-header__inner {
    display: flex; align-items: center; gap: 40px;
    height: var(--header-h);
    transition: height .3s;
}
.site-header.is-scrolled .site-header__inner { height: 72px; }
.site-header__logo { flex: none; display: block; position: relative; z-index: 2; }
.site-header__logo img { height: 68px; width: auto; transition: height .3s; }
.site-header.is-scrolled .site-header__logo img { height: 54px; }

.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.site-nav a {
    text-decoration: none; font-size: 1rem; letter-spacing: 0.01em;
    padding-block: 6px;
    background: linear-gradient(var(--thread), var(--thread)) left bottom / 0 1px no-repeat;
    transition: background-size .3s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__mobile-only, .site-nav__details { display: none; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
    :root { --header-h: 76px; }
    .site-header__logo img { height: 54px; }
    .site-header.is-scrolled .site-header__inner { height: 64px; }
    .site-header.is-scrolled .site-header__logo img { height: 46px; }
    .site-header__cta { display: none; }

    .menu-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 7px;
        width: 44px; height: 44px; margin-left: auto; margin-right: -10px; padding: 10px;
        position: relative; z-index: 2;
    }
    .menu-toggle__bar { display: block; height: 1.5px; width: 24px; background: var(--ink); transition: transform .3s; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

    .site-nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
        padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
        background: var(--paper);
        visibility: hidden; opacity: 0;
        transition: opacity .3s, visibility 0s .3s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
    .site-nav > a { font-size: 2.25rem; font-weight: 300; letter-spacing: -0.01em; padding-block: 4px; }
    .site-nav__mobile-only { display: block; }
    .site-nav__details {
        display: flex; flex-direction: column; gap: 6px;
        margin-top: auto; padding-top: 28px; width: 100%;
        position: relative; color: var(--ink-soft);
    }
    .site-nav__details::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--stitch); }
    .site-nav__details a { font-size: 1.125rem; background: none; padding: 0; }
    .menu-open { overflow: hidden; }
    .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}

/* Sections */
.section { padding-block: var(--section); }
.section--tight { padding-top: 24px; }
.section--stone { background: var(--stone); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }

/* Hero */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
}
.hero__text { padding-bottom: clamp(8px, 3vw, 48px); }
.hero__meta { margin-top: 28px; font-size: .9375rem; color: var(--thread-deep); }
.hero__media { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 40px); width: 100%; overflow: hidden; background: var(--stone); }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { aspect-ratio: 4 / 3; max-height: none; order: -1; }
    .hero__text { padding-bottom: 0; }
    .page-home .hero__text { padding-top: 8px; }
}

/* Intro */
.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px clamp(32px, 6vw, 96px);
}
.intro__grid .prose { font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem); font-weight: 300; padding-top: 10px; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* Services: an index separated by stitched seams */
.services { padding-top: 0; }
.service-list { border-bottom: 0; }
.service {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 24px clamp(24px, 4vw, 64px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 48px);
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--stitch); }
.service:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stitch); }
.service__name { font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; }
.service__text { color: var(--ink-soft); max-width: 32em; padding-top: 8px; }
.service__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }

@media (max-width: 860px) {
    .service { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px 20px; }
    .service__name { grid-column: 1; grid-row: 1; }
    .service__text { grid-column: 1; grid-row: 2; padding-top: 0; }
    .service__img { grid-column: 2; grid-row: 1 / span 2; }
}

/* Craft */
.craft { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.craft .display-2 { color: var(--on-ink); }
.craft__title { margin-bottom: clamp(48px, 7vw, 96px); }
.craft__item {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 32px clamp(32px, 7vw, 112px);
    align-items: center;
}
.craft__item + .craft__item { margin-top: clamp(64px, 9vw, 128px); }
.craft__item > img, .craft__item > video { width: 100%; aspect-ratio: 4 / 5; max-height: 720px; object-fit: cover; background: #2A2A2A; }
.craft__item--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.craft__item--flip > img, .craft__item--flip > video { order: 2; }
.craft__text { max-width: 30em; }
.craft__text h3 { font-size: clamp(1.625rem, 1.6vw + 1rem, 2.375rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 24px; }
.craft__text p { color: var(--on-ink-soft); }
.craft__text p + p { margin-top: 1em; }

@media (max-width: 860px) {
    .craft__item, .craft__item--flip { grid-template-columns: 1fr; }
    .craft__item--flip > img, .craft__item--flip > video { order: 0; }
    .craft__item > img, .craft__item > video { aspect-ratio: 4 / 3; }
}

/* Masonry */
.masonry { columns: 3; column-gap: 16px; }
.masonry > img { width: 100%; margin-bottom: 16px; break-inside: avoid; background: var(--stone); }
.masonry--wide { columns: 4; }
@media (max-width: 1024px) { .masonry--wide { columns: 3; } }
@media (max-width: 640px) {
    .masonry, .masonry--wide { columns: 2; column-gap: 10px; }
    .masonry > img { margin-bottom: 10px; }
}

/* FAQ */
.faq { padding-top: var(--section); }
.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: start;
}
.faq__item { position: relative; }
.faq__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--stitch); }
.faq__item:last-child { padding-bottom: 2px; }
.faq__item:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stitch); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding-block: 22px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.125rem, .5vw + 1rem, 1.3125rem); font-weight: 400; line-height: 1.35; }
.faq__item summary::after {
    content: ""; flex: none; width: 14px; height: 14px;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
    transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover h3 { color: var(--thread-deep); }
.faq__item p { color: var(--ink-soft); max-width: 36em; padding-bottom: 24px; margin-top: -6px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* Visit */
.visit { background: var(--stone); padding-block: var(--section); }
.visit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px clamp(32px, 6vw, 96px);
    align-items: stretch;
}
.visit__list { margin-top: clamp(40px, 5vw, 64px); }
.visit__list > div {
    position: relative;
    display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 24px;
    padding-block: 20px;
}
.visit__list > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--stitch); }
.visit__list dt { color: var(--thread-deep); font-size: .9375rem; padding-top: 6px; }
.visit__list dd { font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); font-weight: 300; }
.visit__list dd a { text-decoration: underline; text-decoration-color: var(--thread); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.visit__list dd a:hover { text-decoration-color: var(--ink); }
.visit__hint { display: block; font-size: .9375rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.visit__map { min-height: 420px; background: #DDD6CF; }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(.92) brightness(1.02); }

@media (max-width: 860px) {
    .visit__grid { grid-template-columns: 1fr; }
    .visit__list > div { grid-template-columns: 1fr; }
    .visit__list dt { padding-top: 0; }
    .visit__map, .visit__map iframe { min-height: 320px; }
}

/* Inner pages */
.page-hero { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.page-hero--compact { padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px clamp(32px, 6vw, 96px);
    align-items: end;
}
.page-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.page-hero .display-1 { max-width: 14ch; }
@media (max-width: 860px) {
    .page-hero__grid { grid-template-columns: 1fr; }
    .page-hero__media img { aspect-ratio: 4 / 3; }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px clamp(32px, 7vw, 112px);
    align-items: center;
}
.split__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__text { max-width: 32em; }
.split__text p { margin-top: 1.1em; color: var(--ink-soft); }
.split__text h2 + p { margin-top: 28px; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split__img { aspect-ratio: 4 / 3; }
}

.tag-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.tag-list li {
    position: relative;
    font-size: clamp(1.375rem, 1vw + 1rem, 1.875rem); font-weight: 300; letter-spacing: -0.01em;
    padding-block: 22px;
}
.tag-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--stitch); }
@media (max-width: 860px) { .tag-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tag-list { grid-template-columns: 1fr; } }

.cta-band { background: var(--stone); padding-block: clamp(56px, 7vw, 96px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band .actions { margin-top: 0; }

.legal { max-width: calc(46em + 2 * var(--gutter)); margin-inline: 0; }
.legal section + section { margin-top: 48px; }
.legal h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 12px; }
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 1em; }
.legal a { text-decoration-color: var(--thread); text-underline-offset: 3px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.post-card { display: block; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); margin-bottom: 18px; }
.post-card h2 { font-size: 1.5rem; font-weight: 300; line-height: 1.25; }
.post-card p { font-size: .9375rem; color: var(--thread-deep); margin-top: 8px; }
.post-card:hover h2 { text-decoration: underline; text-decoration-color: var(--thread); text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.empty { color: var(--ink-soft); }
.empty a { text-decoration-color: var(--thread); text-underline-offset: 3px; }

.article { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.article__inner { max-width: calc(46em + 2 * var(--gutter)); }
.article .display-1 { max-width: 16ch; font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); }
.article__meta { margin-top: 20px; color: var(--thread-deep); }
.article__img { width: 100%; margin-top: 48px; }
.article__body { margin-block: 48px; font-size: 1.125rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding-top: clamp(64px, 8vw, 112px); }
.site-footer__top { display: flex; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.site-footer__logo img { height: 96px; width: auto; }
.site-footer__lead { font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); font-weight: 300; line-height: 1.35; max-width: 22em; color: var(--on-ink); }
.site-footer__cols {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px clamp(24px, 4vw, 64px);
    margin-top: clamp(56px, 7vw, 96px);
    padding-top: 40px;
    border-top: 1px solid rgba(171, 155, 142, .35);
}
.site-footer h2 { font-size: 1rem; font-weight: 500; margin-bottom: 14px; color: var(--on-ink); }
.site-footer ul li + li { margin-top: 6px; }
.site-footer a { color: var(--on-ink-soft); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--thread); text-underline-offset: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 20em; color: var(--on-ink-soft); }
.hours div + div { margin-top: 6px; }
.hours dt { color: var(--on-ink-soft); }
.site-footer__note { margin-top: 16px; font-size: .9375rem; color: #9C948D; max-width: 22em; }
.site-footer__bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
    margin-top: clamp(56px, 7vw, 96px);
    padding-block: 24px 32px;
    border-top: 1px solid rgba(171, 155, 142, .2);
    font-size: .875rem; color: #9C948D;
}
.site-footer__bottom a { color: #9C948D; }
@media (max-width: 860px) {
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
    .site-footer__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* Error pages (404, 500): the seam comes undone */
.eyebrow { font-size: .9375rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thread-deep); margin-bottom: 20px; }
.error-page { padding-block: clamp(32px, 6vw, 96px) clamp(56px, 7vw, 112px); }
.error-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px clamp(32px, 6vw, 96px);
    align-items: center;
}
.error-page .display-1 { max-width: 13ch; }
.error-page .lede a { text-decoration-color: var(--thread); text-underline-offset: 3px; }

.error-art { position: relative; }
.error-art__code {
    display: block;
    font-size: clamp(6rem, 13vw, 12rem); font-weight: 300; line-height: .9; letter-spacing: -0.04em;
    color: var(--stone);
    animation: rise 1s cubic-bezier(.2, .7, .2, 1) .2s both;
}
.error-art__thread { width: 100%; height: auto; margin-top: -8%; overflow: visible; }
.error-art__stitch { stroke: var(--thread); stroke-width: 3; stroke-dasharray: 14 9; }
.error-art__holes { fill: var(--thread-faint); animation: rise .6s ease 1.6s both; }
.error-art__loose {
    stroke: var(--thread); stroke-width: 1.5; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: unravel 1.6s cubic-bezier(.65, 0, .2, 1) .6s forwards;
}
.error-art__loose--late { animation-delay: .8s; }
.error-art__frays { stroke: var(--thread); stroke-width: 1; stroke-linecap: round; animation: rise .5s ease 2s both; }
@keyframes unravel { to { stroke-dashoffset: 0; } }

.error-links__title { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.error-links .tag-list a {
    display: block; text-decoration: none;
    background: linear-gradient(var(--thread), var(--thread)) left bottom / 0 1px no-repeat;
    width: fit-content;
    transition: background-size .3s, color .2s;
}
.error-links .tag-list a:hover { color: var(--thread-deep); background-size: 100% 1px; }
.error-links { padding-bottom: var(--section); }

@media (max-width: 860px) {
    .error-page__grid { grid-template-columns: 1fr; }
    .error-art { order: -1; max-width: 420px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .error-art__loose { stroke-dashoffset: 0; }
}
