:root {
  color-scheme: light;
  --bg: oklch(0.975 0 0);
  --surface: oklch(0.995 0 0);
  --surface-soft: oklch(0.94 0 0);
  --ink: oklch(0.19 0 0);
  --ink-soft: oklch(0.32 0 0);
  --muted: oklch(0.47 0 0);
  --line: oklch(0.875 0 0);
  --accent: oklch(0.19 0 0);
  --accent-dark: oklch(0.19 0 0);
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body::before { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.027em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: white; }

.shell { width: min(var(--shell), calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: scroll-fill linear; animation-timeline: scroll(); }
@keyframes scroll-fill { to { transform: scaleX(1); } }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; background: color-mix(in oklch, var(--bg) 88%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); }
.topbar.scrolled { border-color: var(--line); }
.topbar-inner { width: min(var(--shell), calc(100% - var(--gutter) - var(--gutter))); height: 72px; margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-family: var(--display); font-weight: 700; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; color: var(--ink); }
.brand-mark svg { width: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: 14px; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.lang-on { color: var(--ink); font-weight: 700; }
.lang-sep { margin-inline: 3px; opacity: .4; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.menu-toggle span { display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--ink); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--ink); border-radius: 9px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: transform .25s var(--ease), background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { border-color: var(--ink); background: var(--ink); color: white; }
.button.primary:hover { border-color: var(--accent); background: var(--accent); }
.button.ghost:hover { background: var(--surface); }
.button.compact { min-height: 39px; padding-inline: 15px; font-size: 13px; }

main { display: flex; flex-direction: column; }
#writing { order: 0; }
#work { order: 1; }

.hero { display: flex; flex-direction: column; justify-content: center; padding: 108px 0 28px; }
.hero-compact { padding: 108px 0 32px; }
.hero-shell { display: block; }
.hero-copy { max-width: 620px; }
.eyebrow { margin-bottom: 12px; color: var(--ink-soft); font-size: 12px; letter-spacing: .015em; }
.eyebrow .idx { display: none; }
.section .eyebrow { display: none; }
.hero h1 { max-width: 640px; margin-bottom: 10px; font-size: clamp(2.1rem, 3.2vw, 2.7rem); line-height: 1; font-weight: 650; }
.hero h1 em { position: relative; display: inline-block; color: var(--ink); font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 1%; right: 0; bottom: -.04em; height: .045em; background: var(--ink); transform: scaleX(.2); transform-origin: left; animation: underline-breathe 4.8s var(--ease) infinite; }
@keyframes underline-breathe { 0%, 100% { transform: scaleX(.18); opacity: .35; } 45%, 60% { transform: scaleX(1); opacity: 1; } }
.lede { max-width: 54ch; margin-bottom: 18px; color: var(--ink-soft); font-size: clamp(.98rem, 1.1vw, 1.05rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticker { display: none; }

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .contact h2 { max-width: 34ch; margin-bottom: 16px; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.16; font-weight: 590; }
.section-sub { max-width: 60ch; color: var(--ink-soft); font-size: .98rem; }

.work-compact { padding-block: clamp(56px, 7vw, 88px); }
.work-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: none; margin-bottom: clamp(24px, 3vw, 34px); }
.work-head h2 { margin-bottom: 0; }
.work-head-actions { display: flex; align-items: center; gap: 20px; }
.work-scroll-nav { display: flex; gap: 6px; }
.badge { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 10px; }
.badge.mint { border-color: color-mix(in oklch, var(--accent) 35%, var(--line)); color: var(--accent-dark); }
.badge.muted { color: var(--muted); }
.work-more { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.work-more::after { content: '→'; transition: transform .25s var(--ease); }
.work-more:hover::after { transform: translateX(4px); }
.work-nav-btn { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: border-color .2s ease, color .2s ease, opacity .2s ease; }
.work-nav-btn svg { width: 16px; height: 16px; }
.work-nav-btn:hover { border-color: var(--ink); color: var(--ink); }
.work-nav-btn:disabled { opacity: .35; cursor: default; }
.work-nav-btn:disabled:hover { border-color: var(--line); color: var(--ink-soft); }

.work-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 220px); gap: 14px; padding: 4px 0 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.work-scroll::-webkit-scrollbar { display: none; }
.work-tile { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); scroll-snap-align: start; transition: transform .25s var(--ease), border-color .25s ease; }
.work-tile:hover { transform: translateY(-3px); border-color: var(--ink); }
.work-tile-thumb { width: 100%; height: 100px; overflow: hidden; border-radius: 8px; background: var(--surface-soft); }
.work-tile-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(.98); }
.work-tile-thumb.is-diagram { background: var(--ink); }
.work-tile-thumb.is-diagram img { object-fit: contain; padding: 14px; filter: none; }
.work-tile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-tile-top h3 { margin: 0; font-size: .98rem; font-weight: 650; }
.work-tile-tagline { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; }

/* Projects page - full, non-compact grid */
.projects-grid-section { padding: 20px 0 clamp(80px, 10vw, 140px); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 32px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.project-card-visual { height: 210px; overflow: hidden; background: var(--surface-soft); }
.project-card-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(.98); transition: transform .5s var(--ease); }
.project-card:hover .project-card-visual img { transform: scale(1.03); }
.project-card-visual-contain { background: var(--ink); }
.project-card-visual-contain img { object-fit: contain; padding: 26px; filter: none; }
.project-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.project-card-body .badge { align-self: flex-start; margin-bottom: 14px; }
.project-card-body h2 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 650; }
.project-card-tagline { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.project-card-role { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.project-card-tags li { color: var(--muted); font-size: 11px; }

#experience { background: var(--bg); }
#work { background: var(--surface); }
#work, #writing { padding-block: clamp(56px, 7vw, 88px); }
#work .section-head, #writing .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.tl-item { min-width: 0; }
.tl-marker { display: none; }
.tl-card { display: grid; grid-template-columns: 64px 130px minmax(210px, .8fr) minmax(280px, 1.2fr); grid-template-areas: 'logo date role body' 'logo date org body'; gap: 2px 28px; align-items: center; min-height: auto; padding: 30px 0; border-bottom: 1px solid var(--line); }
.company-logo { position: static; grid-area: logo; width: 58px; height: 58px; padding: 9px; object-fit: contain; border-radius: 10px; background: white; }
.company-financenova { padding: 16px 20px; background: var(--ink); }
.company-letter { display: grid; place-items: center; padding: 0; background: var(--ink); color: white; font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.tl-date { grid-area: date; margin: 0; color: var(--muted); font-size: 11px; }
.tl-card h3 { grid-area: role; margin: 0; font-size: 1.35rem; font-weight: 620; }
.tl-org { grid-area: org; margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.tl-body { grid-area: body; max-width: 54ch; margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.education { margin-top: 70px; padding-top: 42px; border-top: 1px solid var(--line); }
.edu-title { margin-bottom: 28px; font-size: 1.7rem; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ink); }
.edu-card { padding: 26px 0; border-bottom: 1px solid var(--line); background: transparent; }
.edu-card h4 { margin-bottom: 8px; font-size: 1.2rem; }

.writing-home { position: relative; border-top: 1px solid var(--ink); background: var(--surface-soft); }
.writing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.writing-head h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 600; }

/* Homepage variant: the blog is the main event, no hero above it. */
.writing-primary { padding-top: clamp(128px, 15vw, 158px); border-top: 0; }
.writing-primary .writing-head-copy { max-width: 640px; }
.writing-primary .eyebrow { display: block; }
.writing-primary .writing-head h1 { margin: 0 0 10px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; font-weight: 650; }
.writing-primary .writing-head .lede { margin-bottom: 0; }

.writing-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.writing-feature { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s ease; }
.writing-feature:hover { transform: translateY(-3px); border-color: var(--ink); }
.writing-feature-thumb { width: 100%; height: 170px; object-fit: cover; }
.writing-feature-body { padding: 20px 22px 24px; }
.writing-feature-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.writing-feature-meta time { color: var(--muted); }
.writing-feature h3 { max-width: 30ch; margin: 0 0 8px; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; font-weight: 600; }
.writing-feature p { max-width: 48ch; margin: 0; color: var(--ink-soft); font-size: .92rem; }

.writing-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.writing-row { display: flex; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.writing-row time { flex: none; width: 100px; color: var(--muted); font-size: .85rem; }
.writing-row h3 { flex: 1; margin: 0; font-size: clamp(1rem, 1.4vw, 1.1rem); font-weight: 600; line-height: 1.3; }
.writing-row-arrow { flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.writing-row:hover .writing-row-arrow { opacity: 1; transform: translateX(0); }
.writing-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* Skeleton placeholders shown until the article list arrives, so the section
   never reads as blank/broken during the fetch. */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.skel { background: var(--line); border-radius: 6px; animation: skeleton-pulse 1.4s ease-in-out infinite; }
.writing-feature.skel-card { border-color: var(--line); }
.writing-feature.skel-card .writing-feature-thumb.skel { height: 170px; }
.writing-feature.skel-card .skel-line { height: 14px; margin: 0 0 8px; }
.writing-feature.skel-card .skel-line.short { width: 60%; }
.writing-row.skel-row { pointer-events: none; }
.writing-row.skel-row .skel-line { height: 14px; }
.writing-row.skel-row time.skel { height: 14px; width: 70px; border-radius: 4px; }

.about-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(48px, 9vw, 124px); align-items: start; }
.about-copy { max-width: 70ch; }
.about-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.about-copy p:first-child { color: var(--ink); font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.45; }
.about-copy a, .facts a { color: var(--accent-dark); font-weight: 700; }
.facts { padding: 0; border-top: 1px solid var(--ink); }
.facts ul { margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-k { color: var(--muted); font-size: 12px; }
.fact-v { color: var(--ink-soft); font-size: 14px; }
.facts-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.facts-social { display: flex; gap: 12px; margin-top: 18px; }
.facts-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.facts-social a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg, #fff); }
.facts-social svg { width: 17px; height: 17px; }

.contact { padding-block: clamp(48px, 6vw, 76px); }
.contact .section-head .eyebrow { display: block; }
.contact .section-head h1 { max-width: 20ch; margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; font-weight: 650; }
.contact-card { position: relative; overflow: hidden; max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(26px, 4vw, 38px) clamp(28px, 5vw, 48px); border-radius: var(--radius); background: var(--ink); color: white; }
.contact-card::after { display: none; }
.contact-main { min-width: 0; }
.contact-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.contact-card h2 { max-width: 14ch; margin-bottom: 6px; font-size: clamp(1.3rem, 1.8vw, 1.7rem); color: white; }
.contact-card .lede { max-width: 42ch; margin-bottom: 0; color: rgba(255,255,255,.72); font-size: .92rem; }
.mail-link { display: inline-flex; align-items: center; gap: 12px; color: white; font-family: var(--display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; }
.mail-link svg { width: 18px; transition: transform .25s var(--ease); }
.mail-link:hover svg { transform: translateX(5px); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.28); }
.contact-links a { color: rgba(255,255,255,.72); font-size: 12px; transition: color .2s ease; }
.contact-links a:hover { color: white; }
.contact-links svg { display: none; }
.site-footer { order: 5; padding: 34px 0; border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-inner p { margin: 0; }
.to-top { color: var(--ink-soft); }

/* Full footer: brand + nav + newsletter, replacing the old inline contact block. */
.footer-full { padding: clamp(48px, 6vw, 64px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .7fr 1.15fr; gap: 40px 32px; padding-bottom: clamp(32px, 4vw, 44px); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tagline { max-width: 30ch; margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-social a { color: var(--ink-soft); font-size: 12.5px; transition: color .2s ease; }
.footer-social a:hover { color: var(--ink); }
.footer-nav { display: flex; flex-direction: column; gap: 11px; padding-top: 5px; }
.footer-nav a { color: var(--ink-soft); font-size: 13.5px; transition: color .2s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-newsletter-title { margin: 0 0 6px; color: var(--ink); font-family: var(--display); font-size: 1.08rem; font-weight: 650; }
.footer-newsletter-text { max-width: 40ch; margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; transition: border-color .2s ease; }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--ink); }
.newsletter-form .button { flex: none; min-height: 44px; }
.newsletter-msg { min-height: 18px; margin: 10px 0 0; color: var(--accent-dark); font-size: 12.5px; }
.newsletter-msg.is-error { color: oklch(0.5 0.17 30); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .button { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.reveal { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-ready { opacity: .01; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
  .reveal.reveal-ready.in { opacity: 1; transform: none; }
}

/* Project detail */
.detail-page { min-height: 100dvh; }
.detail-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.detail-nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 14px; transition: color .2s ease, transform .25s var(--ease); }
.back-link:hover { color: var(--ink); transform: translateX(-4px); }
.detail-hero { padding: clamp(36px, 4vw, 52px) 0 clamp(32px, 4vw, 48px); }
.detail-intro { display: grid; grid-template-columns: 1fr; }
.detail-heading { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); grid-template-areas: 'brand tagline' 'title tagline'; column-gap: clamp(40px, 7vw, 88px); align-items: end; }
.detail-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-logo { width: 38px; height: 38px; padding: 7px; border-radius: 9px; background: white; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.detail-logo-dark { padding: 10px; background: var(--ink); }
.detail-logo-letter { display: grid; place-items: center; padding: 0; background: var(--ink); color: white; font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1; box-shadow: none; }
.detail-brand { grid-area: brand; }
.detail-kicker { margin-bottom: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.detail-title { grid-area: title; max-width: 920px; margin-bottom: 0; font-size: clamp(3.2rem, 7vw, 5.2rem); line-height: .94; font-weight: 630; overflow-wrap: anywhere; }
.detail-tagline { grid-area: tagline; max-width: 36ch; margin-bottom: 5px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.48; }
.detail-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin-top: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.detail-meta { display: grid; grid-template-columns: minmax(170px, .85fr) minmax(130px, .62fr) minmax(300px, 1.8fr); margin: 0; }
.detail-meta > div { min-width: 0; padding: 15px 24px 16px 0; border-right: 1px solid var(--line); }
.detail-meta > div + div { padding-left: 24px; }
.detail-meta dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.detail-meta dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 0 24px; }
.detail-links .button { min-height: 44px; padding-inline: 16px; font-size: 13px; }
.detail-shot { position: relative; width: min(100%, 920px); height: clamp(240px, 27vw, 340px); overflow: hidden; margin: clamp(24px, 3vw, 32px) auto 0; border-radius: 10px; background: var(--surface-soft); }
.detail-shot::after { content: ''; position: absolute; inset: 0; z-index: 1; display: block; background: linear-gradient(to bottom, transparent 58%, color-mix(in oklch, var(--bg) 94%, transparent) 100%); pointer-events: none; }
.detail-shot img { width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: top center; }
.detail-shot.is-portrait { width: min(100%, 680px); height: clamp(260px, 30vw, 350px); }
.detail-shot.is-diagram { height: clamp(240px, 27vw, 330px); background: var(--ink); }
.detail-shot.is-diagram img { padding: clamp(24px, 4vw, 52px); object-fit: contain; object-position: center; }
/* Article body: single reading column, Medium-style. No per-chapter borders
   or split label/copy grid — headings and copy just flow, with generous
   vertical rhythm doing the separating instead of rules. */
.case-story { padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); background: var(--surface); }
.case-chapter { max-width: 700px; margin: 0 auto; padding: clamp(28px, 4vw, 40px) 0; }
.case-chapter:first-child { padding-top: 0; }
.case-chapter:last-child { padding-bottom: 0; }
.case-section { padding: clamp(60px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.case-grid { max-width: 700px; margin-inline: auto; }
.case-label { display: block; margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.case-copy h2 { max-width: 22ch; margin-bottom: 20px; font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.15; font-weight: 620; }
.case-copy p { margin-bottom: 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.case-copy p + p, .case-copy ul + p, .case-copy ol + p, .case-copy p + ul, .case-copy p + ol, .case-copy p + pre { margin-top: 20px; }
.case-copy strong { color: var(--ink); font-weight: 650; }
.case-copy em { font-style: italic; }
.case-copy ul, .case-copy ol { margin: 20px 0 0; padding-left: 1.3em; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.case-copy ul { list-style: none; padding-left: .2em; }
.case-copy ul li { position: relative; padding-left: 1.3em; }
.case-copy ul li + li { margin-top: 10px; }
.case-copy ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case-copy ol { list-style: decimal; }
.case-copy ol li + li { margin-top: 10px; }
.case-copy ol li::marker { color: var(--muted); font-weight: 700; }
.case-copy code { padding: .15em .4em; border-radius: 5px; background: var(--surface-soft); color: var(--ink); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em; }
.case-copy pre { margin: 20px 0 0; padding: 18px 20px; border-radius: 10px; background: var(--ink); overflow-x: auto; }
.case-copy pre code { padding: 0; background: none; color: oklch(0.92 0 0); font-size: .88rem; line-height: 1.65; white-space: pre; }
.article-figure { margin: 28px 0 0; overflow: hidden; border-radius: 10px; box-shadow: 0 1px 0 var(--line); }
.article-figure img { display: block; width: 100%; height: auto; }
.architecture-image { max-width: 700px; margin: 0 auto; overflow: hidden; border-radius: 10px; background: var(--ink); }
.architecture-image img { display: block; width: 100%; padding: clamp(20px, 3vw, 40px); }
.architecture-image figcaption { padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); color: oklch(0.75 0 0); font-size: 12px; line-height: 1.65; }
.decision-list { margin: 20px 0 0; padding: 0; list-style: none; }
.decision-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 0; }
.decision-list li + li { margin-top: 18px; }
.decision-list li > span { padding-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.decision-list h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.decision-list p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
.case-writing { background: var(--bg); }
.case-writing-head { max-width: 700px; margin-inline: auto; }
.article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.article-card { display: flex; flex-direction: column; min-height: 0; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.article-status { display: inline-flex; align-self: flex-start; margin-bottom: 16px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.article-status.is-published { border-color: var(--ink); background: var(--ink); color: white; }
.article-card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; }
.article-card p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.article-card-published { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.article-card-published:hover { transform: translateY(-5px); box-shadow: 0 14px 30px -18px oklch(0.19 0 0 / .35); }
.article-card-published strong { align-self: flex-start; margin-top: 18px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 12px; white-space: nowrap; }
.case-next { padding-block: clamp(48px, 6vw, 72px); background: var(--surface-soft); }
.next-project { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.next-project strong { display: block; margin-top: 8px; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.035em; }
.project-not-found { padding: 180px var(--gutter); text-align: center; }

/* Blog */
.blog-page, .article-page { min-height: 100dvh; }
.blog-lang { padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 11px; cursor: pointer; }
.blog-hero { padding: clamp(120px, 13vw, 150px) 0 clamp(28px, 3.4vw, 36px); }
.blog-kicker { margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; }
.blog-hero h1 { max-width: 14ch; margin-bottom: 10px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; font-weight: 620; }
.blog-hero > p:last-child { max-width: 52ch; color: var(--ink-soft); font-size: clamp(.92rem, 1.1vw, .98rem); }
.blog-index { padding-bottom: clamp(80px, 10vw, 140px); }

.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.blog-search { position: relative; flex: 0 0 auto; width: min(260px, 100%); }
.blog-search-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; padding: 6px 4px 6px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; transition: border-color .2s var(--ease); }
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { outline: none; border-color: var(--ink); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.blog-filter { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.blog-filter:hover { color: var(--ink); }
.blog-filter.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.blog-count { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.blog-empty { padding: 48px 0; color: var(--muted); font-size: 14px; text-align: center; }

/* Featured post */
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 8px; padding-bottom: clamp(36px, 4.5vw, 52px); border-bottom: 1px solid var(--line); }
.blog-featured-media { order: 2; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; background: var(--surface-soft); }
.blog-featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-featured:hover .blog-featured-media img { transform: scale(1.035); }
.blog-featured-copy { order: 1; }
.blog-featured-tag { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.blog-featured-copy h2 { max-width: 16ch; margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; font-weight: 640; }
.blog-featured-copy h2 a { color: var(--ink); text-decoration: none; }
.blog-featured-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-featured-copy > p { max-width: 48ch; margin-bottom: 18px; color: var(--ink-soft); font-size: clamp(.96rem, 1.2vw, 1.02rem); line-height: 1.6; }
.blog-featured-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 11.5px; }
.blog-featured-meta time::before, .blog-featured-meta span + span::before { content: '·'; margin-right: 8px; }
.blog-featured-link { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
/* No cover image: drop the media column, let the copy breathe on its own. */
.blog-featured.no-media { grid-template-columns: 1fr; max-width: 640px; }
.blog-featured.no-media .blog-featured-copy h2 { max-width: 22ch; }

/* Article list: a plain, text-first row list. A cover image is a bonus
   accent when an article has one — never a placeholder box when it doesn't. */
.blog-list { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.blog-row { display: grid; grid-template-columns: 168px 1fr; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.blog-row.no-thumb { grid-template-columns: 1fr; }
.blog-row-thumb-wrap { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.blog-row-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-row:hover .blog-row-thumb { transform: scale(1.05); }
.blog-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.blog-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.blog-row-tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-weight: 700; }
.blog-row-meta time::before, .blog-row-readtime::before { content: '·'; margin-right: 8px; }
.blog-row-copy h2 { margin-bottom: 6px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.28; font-weight: 650; }
.blog-row-copy h2 a { color: var(--ink); text-decoration: none; }
.blog-row-copy h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-row-copy p { margin: 0; max-width: 68ch; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-row-link { align-self: start; padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 11.5px; font-weight: 700; }

.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.blog-page-btn { min-width: 30px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 12px; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.blog-page-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.blog-page-btn.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.blog-page-btn:disabled { opacity: .35; cursor: default; }
.blog-page-ellipsis { padding: 0 4px; color: var(--muted); font-size: 12px; }
.article-hero { padding: clamp(128px, 14vw, 158px) 0 clamp(36px, 5vw, 52px); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.article-tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; letter-spacing: .02em; }
.article-meta time::before, .article-meta span.article-readtime::before { content: '·'; margin-right: 14px; color: var(--muted); }
.article-hero h1 { max-width: 20ch; margin-bottom: 16px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.06; font-weight: 620; }
.article-hero > p { max-width: 66ch; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.article-project { display: inline-block; margin-top: 18px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.article-cover { display: block; width: min(1100px, calc(100% - var(--gutter) - var(--gutter))); max-height: 480px; margin: 0 auto clamp(48px, 7vw, 80px); object-fit: cover; border-radius: 14px; }
.article-body { width: min(760px, calc(100% - var(--gutter) - var(--gutter))); padding-bottom: clamp(90px, 13vw, 160px); }
/* `section` solo aparece en los artículos antiguos, de cuando el contenido se
   guardaba por secciones; hoy el cuerpo es un único HTML y son los <h2> los que
   abren el espacio entre bloques. */
.article-body section { margin-bottom: clamp(62px, 8vw, 92px); }
.article-body h2 { margin: clamp(56px, 7vw, 84px) 0 24px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; font-weight: 600; }
.article-body > h2:first-child, .article-body section h2 { margin-top: 0; }
.article-body h3 { margin: 32px 0 14px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 650; color: var(--ink); }
.article-body p { color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.13rem); line-height: 1.85; }
.article-body p + p { margin-top: 22px; }
.article-body ul, .article-body ol { margin: 22px 0; padding-left: 1.3em; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.13rem); line-height: 1.75; }
.article-body ul { list-style: none; padding-left: .2em; }
.article-body ul li { position: relative; padding-left: 1.4em; }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--muted); font-weight: 700; }
.article-body li + li { margin-top: 10px; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); color: var(--ink-soft); font-style: italic; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; width: 100%; margin: 32px 0; border-radius: 10px; }
.article-body code { padding: .15em .4em; border-radius: 5px; background: var(--surface-soft); color: var(--ink); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em; }
.article-body pre { margin: 28px 0; padding: 18px 20px; border-radius: 10px; background: var(--ink); color: white; overflow-x: auto; font-size: .88rem; line-height: 1.65; }
.article-body pre code { padding: 0; background: none; color: oklch(0.92 0 0); font-size: 1em; white-space: pre; }
.article-body strong { color: var(--ink); }
.article-body table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: .96rem; }
.article-body th, .article-body td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink-soft); }
.article-body th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.article-body td:first-child, .article-body th:first-child { color: var(--ink); font-weight: 600; }
.article-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 28px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; }
.article-stats div { display: grid; gap: 4px; }
.article-stats strong { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); }
.article-stats span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-callout { margin: 28px 0; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 10px 10px 0; background: var(--surface-soft); }
.article-callout p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.article-callout p + p { margin-top: 10px; }
.article-callout strong { color: var(--ink); }
/* Resto de formatos que ofrece el editor de artículos (ver js/article-html.js) */
.article-body h4 { margin: 26px 0 10px; font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.article-body hr { margin: 44px 0; border: none; border-top: 1px solid var(--line); }
.article-body figure { margin: 32px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-body em { font-style: italic; }
.article-body s { color: var(--muted); }
.article-body sub, .article-body sup { font-size: .72em; }
.article-body mark { padding: .1em .25em; border-radius: 4px; background: oklch(0.92 0.13 95); color: var(--ink); }
.article-body .ql-indent-1 { margin-left: 1.6em; }
.article-body .ql-indent-2 { margin-left: 3.2em; }
.article-body .ql-indent-3 { margin-left: 4.8em; }
.article-body .ql-indent-4 { margin-left: 6.4em; }
.article-body .ql-indent-5 { margin-left: 8em; }
.article-footer { display: flex; justify-content: space-between; gap: 30px; padding-top: 36px; padding-bottom: 72px; border-top: 1px solid var(--ink); color: var(--ink-soft); font-size: 13px; }
.article-footer p { margin: 0; }

@media (max-width: 900px) {
  .topbar-actions .button { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 72px 0 auto; display: none; padding: 24px var(--gutter) 34px; flex-direction: column; align-items: flex-start; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .hero { min-height: auto; padding-top: 126px; }
  .hero-shell { grid-template-columns: 1fr; }
  .detail-heading { grid-template-columns: 1fr; grid-template-areas: 'brand' 'title' 'tagline'; }
  .detail-tagline { max-width: 54ch; margin-top: 16px; margin-bottom: 0; }
  .detail-summary { display: block; padding-bottom: 16px; }
  .detail-meta { grid-template-columns: minmax(150px, .8fr) minmax(120px, .65fr) minmax(240px, 1.5fr); }
  .detail-meta > div { padding-inline: 16px; }
  .detail-meta > div:first-child { padding-left: 0; }
  .detail-links { margin: 16px 0 0; }
  .timeline, .edu-grid, .about-grid { grid-template-columns: 1fr; }
  .writing-featured { grid-template-columns: 1fr; }
  .tl-card { grid-template-columns: 58px 110px 1fr; grid-template-areas: 'logo date role' 'logo date org' 'body body body'; gap: 3px 20px; }
  .tl-body { margin-top: 14px; }
  .article-list { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 128px 1fr; gap: 18px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { width: 100%; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { order: 1; }
  .blog-featured-copy { order: 2; }
  .blog-featured-copy h2 { max-width: none; }
}

@media (max-width: 620px) {
  .brand-text { display: none; }
  .topbar-inner { gap: 12px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 2.8rem); overflow-wrap: anywhere; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 84px; }
  .detail-hero { padding-top: 32px; padding-bottom: 30px; }
  .detail-title { font-size: clamp(2.7rem, 14vw, 4rem); }
  .blog-row { grid-template-columns: 84px 1fr; gap: 14px; padding: 20px 0; }
  .blog-row-copy p { -webkit-line-clamp: 2; }
  .detail-shot, .detail-shot.is-portrait, .detail-shot.is-diagram { width: 100%; height: 210px; margin-top: 24px; }
  .detail-shot::after { background: linear-gradient(to bottom, transparent 52%, color-mix(in oklch, var(--bg) 96%, transparent) 100%); }
  .detail-links { display: grid; }
  .detail-links .button { width: 100%; }
  .detail-summary { display: block; margin-top: 24px; padding-bottom: 16px; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-meta > div { padding: 13px 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-meta > div + div { padding-left: 0; }
  .detail-meta > div:first-child { padding-right: 16px; border-right: 1px solid var(--line); }
  .detail-meta > div:nth-child(2) { padding-left: 16px; }
  .detail-meta > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .detail-links { margin: 16px 0 0; }
  .case-chapter { padding-block: 34px; }
  .writing-row { flex-wrap: wrap; gap: 6px 16px; }
  .writing-row time { width: auto; }
  .work-scroll { grid-auto-columns: minmax(190px, 70vw); }
  .work-head { flex-direction: column; align-items: flex-start; }
  .tl-card { grid-template-columns: 54px 1fr; grid-template-areas: 'logo date' 'logo role' 'logo org' 'body body'; min-height: auto; padding: 26px 0; }
  .company-logo { width: 52px; height: 52px; padding: 9px; }
  .facts li { grid-template-columns: 88px 1fr; }
  .contact-card::after { display: none; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-aside { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-links { padding-left: 0; border-left: 0; }
  .footer-inner, .next-project { align-items: flex-start; flex-direction: column; }
  .article-footer { flex-direction: column; }
  .footer-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
