/* ─────────────────────────────────────────────
   Karou Portfolio — editorial light theme
   生成りの紙・墨・朱の差し色1色。罫線と大きな活字で組む雑誌風。
   ───────────────────────────────────────────── */

/* 英字の飾り書体と等幅はラテン文字だけ自前配信（SIL OFL）。和文は端末の書体を使う */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic-300-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-400-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --paper: #f3efe6;
    --paper-deep: #e8e2d4;
    --card: #faf8f3;
    --ink: #14130f;
    --ink-2: #45423a;
    --ink-3: #6f6a5e;
    --rule: #14130f;
    --rule-soft: rgba(20, 19, 15, 0.16);
    --rule-faint: rgba(20, 19, 15, 0.08);
    --accent: #e2401c;
    --accent-text: #b2300f;

    --font-jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', YuGothic, 'Meiryo', sans-serif;
    --font-serif: 'Fraunces', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

    /* Legacy aliases kept for inline article markup */
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-tertiary: var(--ink-3);
    --border: var(--rule-soft);
}

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

html,
body {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-jp);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.75;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'palt' 1;
    line-break: strict;
    position: relative;
}

/* 紙の粒子 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.32;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--accent);
    color: var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

/* 文節改行は文言を確認済みのテンプレート見出しだけ。造語（にゃっと等）を誤分割するため記事タイトルには使わない */
.page-hero h1,
.section-title,
.about-statement,
.hero-lead,
.footer-lead,
.work-cta-title,
.page-hero-lead,
.section-sub {
    word-break: auto-phrase;
    text-wrap: pretty;
}

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

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

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ─── 共通の小物 ─── */
.label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.label::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.label--plain::before {
    display: none;
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 3rem;
    padding: 0.75rem 1.4rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
}

.btn--ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn .arrow {
    font-family: var(--font-mono);
    transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
    transform: translate(2px, -2px);
}

.btn--block {
    width: 100%;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: var(--ink-2);
    border: 1px solid var(--rule-soft);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 1px solid var(--rule);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    color: var(--ink);
}

.logo-word {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variation-settings: 'opsz' 144;
}

.logo-word::after {
    content: '.';
    color: var(--accent);
    font-style: normal;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2.5vw, 2rem);
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 0.35rem 0;
    white-space: nowrap;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--ink-3);
    margin-right: 0.4rem;
    vertical-align: 0.15em;
}

.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav .nav-cta {
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav .nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
}

/* ─── Footer ─── */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.footer-lead {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.footer-lead .serif {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.7em;
    color: var(--accent);
    font-weight: 300;
}

.footer-col h2 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.55);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.footer-col a {
    font-size: 0.95rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: baseline;
    color: var(--paper);
    transition: color 0.2s;
}

.footer-col a::after {
    content: '↗';
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.45;
}

.footer-col a[href^='/']::after,
.footer-col a[href^='mailto']::after {
    content: '→';
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(243, 239, 230, 0.2);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(243, 239, 230, 0.6);
}

/* ─── Page hero (blog / release / support / legal) ─── */
.page-hero {
    border-bottom: 1px solid var(--rule);
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem 4rem;
    align-items: end;
}

.page-hero h1 {
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.kicker {
    display: block;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    line-height: 1.2;
    color: var(--ink-3);
    margin: 1.1rem 0 0.4rem;
}

.page-hero-lead {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.95;
    max-width: 34rem;
}

.page-hero-lead + .page-hero-lead {
    margin-top: 1rem;
}

.page-hero-sign {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-3);
    margin-top: 1.25rem;
}

/* ─── Section heading ─── */
.section {
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section + .section {
    border-top: 1px solid var(--rule);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-sub {
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 30rem;
    justify-self: end;
}

/* ─── Home: hero ─── */
.hero {
    position: relative;
    border-bottom: 1px solid var(--rule);
    padding: clamp(2rem, 5vw, 3.5rem) 0 0;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule-soft);
}

.hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-title {
    font-size: clamp(3.4rem, 12.5vw, 11rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(0.25em);
    animation: rise 0.9s var(--ease) forwards;
}

.hero-line:nth-child(2) {
    animation-delay: 0.12s;
    padding-left: 0.9em;
    color: transparent;
    -webkit-text-stroke: clamp(1px, 0.18vw, 2px) var(--ink);
}

.hero-line:nth-child(3) {
    animation-delay: 0.24s;
}

.hero-line:nth-child(3)::after {
    content: '';
    display: inline-block;
    width: 0.2em;
    height: 0.2em;
    margin-left: 0.08em;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: baseline;
}

.hero-vertical {
    writing-mode: vertical-rl;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--ink-2);
    border-left: 1px solid var(--rule-soft);
    padding-left: 1.25rem;
    align-self: stretch;
    opacity: 0;
    animation: fade 1s 0.5s var(--ease) forwards;
}

.hero-foot {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    border-top: 1px solid var(--rule);
    opacity: 0;
    animation: fade 1s 0.4s var(--ease) forwards;
}

.hero-foot > * {
    padding: 1.5rem 1.5rem 1.75rem 0;
}

.hero-foot > * + * {
    border-left: 1px solid var(--rule-soft);
    padding-left: 1.5rem;
}

.hero-lead {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.8;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat strong {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variation-settings: 'opsz' 144;
}

.hero-stat span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    transition: color 0.25s var(--ease);
}

.hero-cta .arrow-circle {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-cta:hover {
    color: var(--accent-text);
}

.hero-cta:hover .arrow-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
    transform: rotate(-45deg);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

/* ─── Marquee ─── */
.marquee {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
    padding: 0.9rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 48s linear infinite;
}

.marquee-track span {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-right: 2.5rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
}

.marquee-track span::after {
    content: '✳';
    color: var(--accent);
    font-weight: 400;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ─── Feature (pickup) ─── */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    border: 1px solid var(--rule);
    background: var(--card);
}

.feature-media {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--rule);
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, var(--rule-soft) 1px, transparent 0) 0 0 / 14px 14px,
        var(--paper-deep);
}

.feature-media img {
    width: 100%;
    height: auto;
    transition: transform 0.8s var(--ease);
}

.feature-media:hover img {
    transform: scale(1.03);
}

.feature-body {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-body h2,
.feature-body h3 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.feature-body p {
    color: var(--ink-2);
    line-height: 1.95;
}

.feature-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.feature-note {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

/* ─── About ─── */
.about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 3rem clamp(2rem, 6vw, 6rem);
}

.about-aside {
    align-self: start;
    position: sticky;
    top: 6rem;
}

.about-statement {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.about-statement em {
    font-style: normal;
    background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 28%, transparent) 62%);
}

.about-list {
    list-style: none;
    margin: 2.5rem 0;
    border-top: 1px solid var(--rule);
}

.about-list li {
    display: grid;
    grid-template-columns: 3rem 8rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule-soft);
    align-items: baseline;
}

.about-list .num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-text);
}

.about-list h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.about-list p {
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.85;
}

.about-note {
    color: var(--ink-3);
    font-size: 0.9rem;
    line-height: 1.95;
}

/* ─── Projects ─── */
.works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.work {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    background: var(--paper);
    transition: background 0.35s var(--ease);
}

.work:hover {
    background: var(--card);
}

.work-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.work-num {
    color: var(--ink);
}

.work-media {
    aspect-ratio: 1200 / 630;
    border: 1px solid var(--rule-soft);
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, var(--rule-soft) 1px, transparent 0) 0 0 / 14px 14px,
        var(--paper-deep);
    display: grid;
    place-items: center;
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s var(--ease), transform 0.8s var(--ease);
}

/* モノクロ→ホバーで色が戻る表現はマウス端末だけ。タッチ端末では最初から色を出す */
@media (hover: hover) {
    .work-media img {
        filter: grayscale(0.85) contrast(1.05);
    }

    .work:hover .work-media img {
        filter: none;
        transform: scale(1.04);
    }
}

.work-media--color img {
    filter: none;
}

.work-emoji {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.work:hover .work-emoji {
    transform: rotate(-8deg) scale(1.08);
}

.work h3 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.work p {
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.8;
    flex-grow: 1;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.work-link {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule-soft);
    padding-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s;
}

.work-link::after {
    content: '↗';
    font-family: var(--font-mono);
    font-weight: 400;
    transition: transform 0.25s var(--ease);
}

.work-link:hover {
    color: var(--accent-text);
}

.work-link:hover::after {
    transform: translate(2px, -2px);
}

.work--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto;
    grid-template-areas:
        'top top'
        'media title'
        'media desc'
        'media .'
        'media tags'
        'media link';
    column-gap: 1.5rem;
}

.work--wide .work-top { grid-area: top; }
.work--wide .work-media {
    grid-area: media;
    aspect-ratio: auto;
    min-height: 16rem;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.work--wide .work-media img {
    height: auto;
    border: 1px solid var(--rule-soft);
    box-shadow: 6px 6px 0 var(--ink);
}
.work--wide h3 { grid-area: title; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.work--wide p { grid-area: desc; }
.work--wide .work-tags { grid-area: tags; margin-bottom: 0.9rem; }
.work--wide .work-link { grid-area: link; }

.work--cta {
    background: var(--ink);
    color: var(--paper);
    justify-content: flex-end;
    gap: 1rem;
    min-height: 18rem;
}

.work--cta:hover {
    background: var(--accent);
}

.work--cta .label {
    color: rgba(243, 239, 230, 0.6);
    margin-bottom: auto;
}

.work-cta-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.work-cta-sub {
    font-size: 0.85rem;
    color: rgba(243, 239, 230, 0.7);
}

.work--cta .arrow-circle {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    transition: transform 0.3s var(--ease);
}

.work--cta:hover .arrow-circle {
    transform: translateX(6px);
}

/* ─── Timeline ─── */
.timeline {
    border-top: 1px solid var(--rule);
}

.timeline-item {
    display: grid;
    grid-template-columns: 9rem 3rem minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.25rem;
    align-items: baseline;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule-soft);
    transition: background 0.3s var(--ease);
}

.timeline-item:hover {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}

.timeline-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--ink-3);
}

.timeline-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.timeline-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.timeline-item p {
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.8;
}

.timeline-more > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    min-height: 3rem;
    padding: 0.75rem 1.4rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.timeline-more > summary::after {
    content: '+';
    font-family: var(--font-mono);
}

.timeline-more > summary::-webkit-details-marker {
    display: none;
}

.timeline-more > summary::marker {
    content: '';
}

.timeline-more > summary:hover {
    background: var(--ink);
    color: var(--paper);
}

.timeline-more[open] > summary {
    display: none;
}

/* ─── Blog list ─── */
.blog-intro {
    padding: 2.5rem 0 0;
}

.blog-intro p {
    color: var(--ink-2);
    line-height: 2;
    font-size: 0.95rem;
    max-width: 46rem;
}

.blog-section {
    padding: 2.5rem 0 clamp(4rem, 8vw, 6rem);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.blog-card {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    transition: background 0.3s var(--ease);
}

.blog-card:hover {
    background: var(--card);
}

.blog-card-thumb {
    --c1: var(--accent);
    aspect-ratio: 16 / 7;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    border-bottom: 1px solid var(--rule-soft);
    background:
        linear-gradient(90deg, var(--c1) 0 6px, transparent 6px),
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--c1) 30%, transparent) 1px, transparent 0) 0 0 / 12px 12px,
        color-mix(in oklab, var(--c1) 14%, var(--paper));
    transition: background-color 0.3s;
}

.blog-card-thumb span {
    transition: transform 0.4s var(--ease);
}

.blog-card:hover .blog-card-thumb span {
    transform: scale(1.12) rotate(-6deg);
}

.blog-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.blog-date {
    font-family: var(--font-mono);
    color: var(--ink-3);
    font-size: 0.68rem;
}

.blog-card-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.blog-card-body p {
    color: var(--ink-2);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--rule-soft);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.2s;
}

.blog-read-link::after {
    content: '→';
    font-family: var(--font-mono);
    font-weight: 400;
    transition: transform 0.25s var(--ease);
}

.blog-card:hover .blog-read-link {
    color: var(--accent-text);
}

.blog-card:hover .blog-read-link::after {
    transform: translateX(4px);
}

/* ─── Article ─── */
.article-hero {
    --c1: var(--accent);
    --c2: var(--accent);
    position: relative;
    padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--rule);
}

.article-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}

.article-hero-content {
    max-width: 920px;
}

.article-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 1.5rem;
}

.article-kicker a:hover {
    color: var(--accent-text);
}

.article-hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 0.5rem 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

.article-meta span::before {
    content: '— ';
    color: var(--ink-3);
}

.article-meta span:first-child::before {
    content: '';
}

.article-body {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.025em;
    margin: 3.5rem 0 1.25rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--ink);
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--article-accent, var(--accent));
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.55;
    margin: 2.25rem 0 0.75rem;
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.75rem 0 0.5rem;
}

.article-content p {
    color: var(--ink-2);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.article-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
    transition: color 0.2s, background 0.2s;
}

.article-content a:hover {
    color: var(--accent-text);
}

.article-content strong {
    color: var(--ink);
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
}

.article-content li {
    color: var(--ink-2);
    line-height: 1.9;
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
}

.article-content li::marker {
    color: var(--article-accent, var(--accent));
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--paper-deep);
    color: var(--ink);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.article-content pre {
    background: var(--ink);
    color: var(--paper);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.85rem;
    line-height: 1.75;
}

.article-content blockquote {
    border-left: 3px solid var(--article-accent, var(--accent));
    padding: 0.25rem 0 0.25rem 1.4rem;
    margin: 1.75rem 0;
}

.article-content blockquote p {
    color: var(--ink-3);
    margin-bottom: 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--rule-soft);
    margin: 2.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    border-top: 2px solid var(--ink);
}

.article-content th {
    text-align: left;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--rule);
}

.article-content td {
    color: var(--ink-2);
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--rule-soft);
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--rule-soft);
    margin: 1.25rem 0;
}

.highlight-card {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.highlight-card h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 1rem;
}

.highlight-card ul {
    margin-bottom: 0;
}

.highlight-card p:last-child {
    margin-bottom: 0;
}

.article-nav {
    display: grid;
    gap: 0;
    margin-top: 4rem;
    border-top: 2px solid var(--ink);
}

.article-nav a {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s, padding 0.3s var(--ease);
}

.article-nav a:hover {
    color: var(--accent-text);
    padding-left: 0.5rem;
}

/* ─── Release notes ─── */
.release-summary {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.release-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.release-stats > div {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.release-stats > div + div {
    border-left: 1px solid var(--rule-soft);
    padding-left: 1.5rem;
}

.release-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.5rem;
}

.release-number,
.release-latest {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variation-settings: 'opsz' 144;
}

.release-latest {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.release-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.release-entry {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.5rem 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--rule);
}

.release-entry:last-child {
    border-bottom: 1px solid var(--rule);
}

.release-entry-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.release-entry-meta time {
    font-weight: 700;
    font-size: 1.05rem;
}

.release-badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--paper);
    background: var(--ink);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.release-entry-body > p {
    color: var(--ink-2);
    line-height: 1.95;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.release-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 0.75rem;
}

.release-post {
    display: block;
    border: 1px solid var(--rule-soft);
    background: var(--card);
    padding: 1rem 1.1rem;
    transition: border-color 0.2s, transform 0.3s var(--ease);
}

.release-post:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.release-post > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.release-emoji {
    font-size: 1.1rem;
}

.release-post .release-label {
    margin-bottom: 0;
}

.release-post h2 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
}

/* ─── Support ─── */
.support-block {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.support-block + .support-block {
    border-top: 1px solid var(--rule);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    padding: 1px 0 0 1px;
}

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

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

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

.link-card {
    border: 1px solid var(--rule);
    margin: -1px 0 0 -1px;
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--paper);
    transition: background 0.3s var(--ease);
}

.link-card:hover {
    background: var(--card);
}

.link-card-icon {
    font-size: 1.9rem;
    line-height: 1;
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.link-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.link-card p {
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.8;
    flex-grow: 1;
}

.link-card .btn {
    margin-top: 0.5rem;
}

.link-card-media {
    aspect-ratio: 1200 / 630;
    border: 1px solid var(--rule-soft);
    overflow: hidden;
    background: var(--paper-deep);
    display: grid;
    place-items: center;
    font-size: 2.6rem;
}

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

.notice {
    border: 1px solid var(--rule);
    background: var(--card);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem;
}

.notice h3 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.notice-lead {
    color: var(--ink-2);
    line-height: 1.9;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.notice ul {
    list-style: none;
    border-top: 1px solid var(--rule-soft);
}

.notice li {
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.85;
    padding: 0.8rem 0 0.8rem 1.4rem;
    border-bottom: 1px solid var(--rule-soft);
    position: relative;
}

.notice li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.45rem;
    width: 0.55rem;
    height: 1px;
    background: var(--accent);
}

.share-group + .share-group {
    margin-top: 3rem;
}

.share-group > .label {
    margin-bottom: 1rem;
}

/* ─── Legal ─── */
.legal {
    max-width: 820px;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
    margin: 0 auto;
    counter-reset: legal;
}

.legal article {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--rule-soft);
    counter-increment: legal;
}

.legal article::before {
    content: counter(legal, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-text);
    padding-top: 0.3rem;
    grid-row: span 10;
}

.legal article:first-of-type {
    border-top: 2px solid var(--ink);
}

.legal h2 {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.legal h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0.75rem 0 0.4rem;
}

.legal p,
.legal li,
.legal dd {
    color: var(--ink-2);
    font-size: 0.93rem;
    line-height: 1.9;
}

.legal ul {
    padding-left: 1.2rem;
}

.legal li::marker {
    color: var(--accent);
}

.legal a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

.legal a:hover {
    color: var(--accent-text);
}

.legal dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem 2rem;
    align-items: baseline;
}

.legal dt {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    white-space: nowrap;
}

.legal-updated {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--ink);
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-3);
}

/* ─── 404 ─── */
.not-found {
    min-height: 60vh;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.not-found h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.not-found p {
    color: var(--ink-2);
    margin-bottom: 2.5rem;
}

.not-found a {
    display: inline-block;
    margin-right: 2rem;
    padding: 0.75rem 0;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
}

.not-found a:hover {
    color: var(--accent-text);
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
    .works,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work--cta {
        min-height: 0;
    }

    .card-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .timeline-item {
        grid-template-columns: 8rem 2.5rem minmax(0, 1fr);
    }

    .timeline-item p {
        grid-column: 3;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-lead {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 3.5rem;
    }

    .logo-sub,
    .nav-num {
        display: none;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.82rem;
    }

    .nav .nav-cta {
        padding: 0.35rem 0.8rem;
    }

    .hero-body {
        grid-template-columns: 1fr;
    }

    .hero-vertical {
        display: none;
    }

    .hero-meta span:nth-child(2) {
        display: none;
    }

    .hero-foot {
        grid-template-columns: 1fr;
    }

    .hero-foot > * {
        padding: 1.25rem 0;
    }

    .hero-foot > * + * {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--rule-soft);
    }

    .hero-stat {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }

    .section-head,
    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .section-sub {
        justify-self: start;
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .feature-media {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-aside {
        position: static;
    }

    .about-list li {
        grid-template-columns: 2.25rem minmax(0, 1fr);
    }

    .about-list li p {
        grid-column: 2;
    }

    .timeline-item {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        gap: 0.35rem 0.75rem;
    }

    .timeline-tag {
        grid-column: 2;
        order: -1;
    }

    .timeline-icon {
        grid-row: 1 / span 3;
        padding-top: 1.4rem;
    }

    .timeline-item h3,
    .timeline-item p {
        grid-column: 2;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        display: grid;
        grid-template-columns: 5.5rem minmax(0, 1fr);
    }

    .blog-card > a {
        display: contents !important;
    }

    .blog-card-thumb {
        aspect-ratio: auto;
        font-size: 1.8rem;
        border-bottom: 0;
        border-right: 1px solid var(--rule-soft);
    }

    .blog-card-body {
        padding: 1rem 1.1rem 1.1rem;
    }

    .blog-card-body h3 {
        font-size: 0.98rem;
        margin-bottom: 0.35rem;
    }

    .blog-card-body p {
        font-size: 0.8rem;
        line-height: 1.7;
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-read-link {
        padding-top: 0.55rem;
        font-size: 0.75rem;
    }

    .release-stats {
        grid-template-columns: 1fr 1fr;
    }

    .release-stats > div:last-child {
        grid-column: 1 / -1;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--rule-soft);
    }

    .release-entry {
        grid-template-columns: 1fr;
    }

    .release-entry-meta {
        flex-direction: row;
        align-items: center;
    }

    .card-grid--2 {
        grid-template-columns: 1fr;
    }

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

    .notice {
        grid-template-columns: 1fr;
    }

    .legal article {
        grid-template-columns: 2.25rem minmax(0, 1fr);
    }

    .article-content p,
    .article-content li {
        font-size: 0.97rem;
        line-height: 1.95;
    }
}

@media (max-width: 560px) {
    .work--wide {
        grid-column: auto;
        display: flex;
    }

    .work--wide .work-media {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .works,
    .card-grid--3,
    .card-grid--5 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-line:nth-child(2) {
        padding-left: 0.5em;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .legal dl {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .legal dd {
        margin-bottom: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .marquee-track {
        animation: none;
    }
}
