:root {
  --paper: #FBF8F3;
  --blush: #F1E4D9;
  --hover: #F5EEE6;
  --line: #E6DED3;
  --line-strong: #1E1A17;
  --ink: #1E1A17;
  --body: #4A423C;
  --muted: #6B5F57;
  --wine: #5C1F1E;
  --night: #2A1414;
  --night-text: #F3E9DF;
  --night-muted: #D9B7A3;
  --star: #B9826A;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --type: 0.9;
  --ticker-s: 44s;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: calc(17px * var(--type)); line-height: 1.65; }
a { color: inherit; }
a:hover { color: var(--wine); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 80px; }
em { font-style: italic; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.caps { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.wine { color: var(--wine); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header: split, with monogram ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, 0.93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 28px -22px rgba(42, 20, 20, 0.45); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 24px; padding-top: 14px; padding-bottom: 14px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav-right { justify-content: flex-end; }
.nav .contact-link { border-bottom: 1px solid var(--wine); padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mono { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--wine); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: calc(17px * var(--type)); color: var(--wine); transition: background 0.3s ease, color 0.3s ease; }
.brand:hover .mono { background: var(--wine); color: var(--paper); }
.brand-name { font-family: var(--serif); font-size: calc(19px * var(--type)); letter-spacing: 0.04em; color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.btn { display: inline-block; padding: 16px 32px; background: var(--wine); color: var(--paper); text-decoration: none; border: 1px solid var(--wine); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.3; transition: letter-spacing 0.4s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.btn:hover { background: var(--night); border-color: var(--night); color: var(--paper); letter-spacing: 0.3em; }
.btn-light { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.btn-light:hover { background: transparent; color: var(--night-text); border-color: var(--night-text); }
.italic-link { font-family: var(--serif); font-style: italic; font-size: calc(19px * var(--type)); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link { font-size: calc(14px * var(--type)); font-weight: 500; text-decoration: none; padding: 8px 0; display: inline-block; transition: transform 0.3s var(--ease), color 0.2s ease; }
.text-link:hover { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-main { flex: 999 1 480px; min-width: 0; }
.hero h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(calc(50px * var(--type)), calc(6.8vw * var(--type)), calc(98px * var(--type))); line-height: 0.98; letter-spacing: -0.015em; }
.hero h1 em { color: var(--wine); }
.hero-intro { margin: 36px 0 0; display: flex; align-items: flex-start; gap: 20px; }
.hero-intro .rule { flex: 0 0 48px; height: 1px; margin-top: 15px; background: var(--wine); transform-origin: left; }
.hero-intro p { margin: 0; max-width: 31rem; font-size: calc(18px * var(--type)); line-height: 1.7; color: var(--body); }
.hero .actions { margin-top: 36px; }
.hero-side { flex: 1 1 320px; min-width: 0; max-width: 400px; position: relative; padding-bottom: 72px; }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; overflow: hidden; background: linear-gradient(160deg, #EBD9CB, #D9BFAE); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.working { position: absolute; left: -36px; right: 36px; bottom: 0; background: var(--night); color: var(--night-text); border-radius: 14px; padding: 22px 24px; box-shadow: 0 24px 48px -30px rgba(42, 20, 20, 0.7); }
.working h2 { margin: 0; color: var(--night-muted); }
.working dl { margin: 10px 0 0; }
.working dl > div + div { margin-top: 8px; }
.working dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.working dd { margin: 0; font-size: calc(15px * var(--type)); line-height: 1.45; }
.working dd.soon { font-family: var(--serif); font-style: italic; font-size: calc(18px * var(--type)); color: var(--night-muted); }

/* ---------- Band ---------- */
.band { background: var(--night); color: var(--night-text); padding: 24px 0; overflow: hidden; }
.ticker { display: flex; width: max-content; font-family: var(--serif); font-style: italic; font-size: calc(23px * var(--type)); white-space: nowrap; }
.ticker .star { color: var(--star); margin: 0 26px; font-style: normal; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(calc(36px * var(--type)), calc(4.2vw * var(--type)), calc(48px * var(--type))); line-height: 1.05; }
.section-title em { color: var(--wine); }

/* ---------- Work list ---------- */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; }
.tab { position: relative; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.25s ease; }
.tab::after { content: ''; position: absolute; left: 0; right: 0.24em; bottom: 8px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after, .tab:hover::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.work-item { border-bottom: 1px solid var(--line); }
.work-row { width: 100%; background: transparent; border: 0; padding: 28px 8px; cursor: pointer; color: var(--ink); text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; font-family: var(--sans); transition: padding-left 0.45s var(--ease), background 0.3s ease; }
.work-row:hover, .work-row[aria-expanded="true"] { background: var(--hover); }
.work-row:hover { padding-left: 18px; }
.work-num { flex: 0 0 56px; font-family: var(--serif); font-style: italic; font-size: calc(22px * var(--type)); color: var(--wine); }
.work-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.work-title { font-family: var(--serif); font-size: clamp(calc(26px * var(--type)), calc(2.6vw * var(--type)), calc(32px * var(--type))); line-height: 1.1; transition: color 0.3s ease; }
.work-row:hover .work-title { color: var(--wine); }
.work-summary { font-size: calc(15px * var(--type)); color: var(--body); }
.work-type { flex: 0 0 auto; margin-left: auto; color: var(--muted); }
.work-sign { flex: 0 0 auto; font-family: var(--serif); font-size: calc(26px * var(--type)); line-height: 1; color: var(--wine); transition: transform 0.4s var(--ease); }
.work-row[aria-expanded="true"] .work-sign { transform: rotate(45deg); }
.work-detail { padding: 0 8px 36px; display: flex; flex-wrap: wrap; gap: 0 32px; background: var(--hover); }
.work-detail::before { content: ''; flex: 0 0 56px; }
.work-detail-inner { flex: 1 1 300px; min-width: 0; max-width: 700px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { flex: 0 0 130px; font-family: var(--serif); font-style: italic; font-size: calc(17px * var(--type)); color: var(--wine); }
.facts dd { flex: 1 1 260px; margin: 0; font-size: calc(15px * var(--type)); color: var(--body); }
.work-foot { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.tags { color: var(--muted); }
.open-link { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 8px 0; }
.open-link span { transition: transform 0.4s var(--ease); }
.open-link:hover span { transform: translateX(6px); }
.empty { padding: 32px 8px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.about-head { flex: 1 1 260px; }
.about-body { flex: 999 1 460px; min-width: 0; }
.about-body > p { margin: 0 0 16px; max-width: 38rem; color: var(--body); font-size: calc(18px * var(--type)); }
.about-body h3 { margin: 40px 0 0; font-family: var(--serif); font-weight: 400; font-size: calc(28px * var(--type)); }
.how { list-style: none; margin: 14px 0 32px; padding: 0; border-top: 1px solid var(--line); counter-reset: how; }
.how li { counter-increment: how; display: flex; flex-wrap: wrap; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how li::before { content: counter(how, lower-roman) '.'; flex: 0 0 40px; font-family: var(--serif); font-style: italic; color: var(--wine); }
.how strong { flex: 0 0 230px; font-weight: 500; }
.how span { flex: 1 1 220px; font-size: calc(15px * var(--type)); color: var(--body); }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: var(--night-text); }
.contact .wrap { padding-top: 96px; padding-bottom: 48px; }
.contact h2 { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(calc(40px * var(--type)), calc(5.6vw * var(--type)), calc(76px * var(--type))); line-height: 1; }
.contact h2 em { color: var(--night-muted); }
.contact p.sub { margin: 20px 0 32px; max-width: 34rem; color: #E3D3C6; font-size: calc(18px * var(--type)); }
.contact .caps { color: var(--night-muted); }
.contact .italic-link { color: var(--night-text); }
.contact a:hover { color: var(--night-muted); }
.site-footer { margin-top: 88px; padding-top: 22px; border-top: 1px solid #4A2A26; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.light-footer { padding: 48px 0 40px; color: var(--muted); }

/* ---------- Reading pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 56px 32px 0; }
.page-type { margin: 36px 0 0; color: var(--wine); }
.page h1 { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(calc(42px * var(--type)), calc(6vw * var(--type)), calc(76px * var(--type))); line-height: 1.02; letter-spacing: -0.01em; }
.page .summary { margin: 22px 0 0; font-size: calc(21px * var(--type)); line-height: 1.55; color: var(--body); }
.quick { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick dt { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.quick dd { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: calc(18px * var(--type)); }
.cover { max-width: 1040px; margin: 44px auto 0; padding: 0 32px; }
.cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 4px; background: var(--blush); }

.prose { color: var(--body); font-size: calc(18px * var(--type)); line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 18px 0 0; }
.prose h2 { margin: 52px 0 0; font-family: var(--serif); font-weight: 400; font-size: calc(36px * var(--type)); line-height: 1.12; color: var(--ink); }
.prose h3 { margin: 34px 0 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: calc(26px * var(--type)); line-height: 1.2; color: var(--ink); }
.prose ul, .prose ol { margin: 18px 0 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--wine); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--wine); }
.prose blockquote { margin: 40px 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: calc(32px * var(--type)); line-height: 1.28; color: var(--wine); }
.prose .callout { margin: 36px 0; background: var(--blush); border-radius: 4px; padding: 24px 26px; color: var(--ink); font-size: calc(16px * var(--type)); }
.prose .callout > :first-child { margin-top: 0; }
.prose figure { margin: 36px 0 0; }
.prose figure img { border-radius: 4px; width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: calc(15px * var(--type)); color: var(--muted); }
.prose hr { border: 0; text-align: center; margin: 44px 0; }
.prose hr::after { content: '✦'; color: var(--star); }
.prose details { margin: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.prose summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.prose code { font-size: 0.85em; background: var(--blush); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--blush); padding: 16px; border-radius: 4px; overflow-x: auto; }
.prose .columns { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.prose .column { flex: 1 1 240px; min-width: 0; }
.next { margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.next-link { text-decoration: none; text-align: right; padding: 4px 0; transition: transform 0.3s var(--ease); }
.next-link:hover { transform: translateX(4px); }
.next-link .t { display: block; font-family: var(--serif); font-size: calc(26px * var(--type)); }

/* ---------- Résumé ---------- */
.resume-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.resume-head h1 { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(calc(46px * var(--type)), calc(6vw * var(--type)), calc(80px * var(--type))); line-height: 1; }
.resume-head h1 em { color: var(--wine); }
.resume-head .contact-line { margin: 14px 0 0; font-size: calc(15px * var(--type)); color: var(--body); }
.resume { max-width: 820px; padding: 40px 0 40px; color: var(--body); font-size: calc(16px * var(--type)); }
.resume .lede, .resume > p:first-child { font-size: calc(19px * var(--type)); line-height: 1.65; margin: 0; }
.resume h2 { margin: 52px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine); }
.resume h3 { margin: 26px 0 0; font-family: var(--serif); font-weight: 400; font-size: calc(26px * var(--type)); line-height: 1.15; color: var(--ink); }
.resume h3 + p { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: calc(16px * var(--type)); color: var(--muted); }
.resume p { margin: 12px 0 0; }
.resume ul { margin: 10px 0 0; padding-left: 20px; }
.resume li { margin: 5px 0; }
.resume li::marker { color: var(--wine); }
.resume strong { font-weight: 500; color: var(--ink); }

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

/* ---------- Motion ---------- */
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes archOpen { from { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); } to { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); } }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

body { animation: fade 0.5s ease both; }
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask > span { display: inline-block; animation: lineUp 1.1s cubic-bezier(0.2, 0.75, 0.15, 1) both; animation-delay: calc(0.15s + var(--d, 0) * 0.15s); }
.arch { animation: archOpen 1.4s cubic-bezier(0.65, 0, 0.2, 1) 0.3s both; }
.arch > * { animation: drift 2.4s var(--ease) 0.3s both; }
.hero-intro .rule { animation: ruleGrow 1s var(--ease) 0.9s both; }
.fu { animation: fadeUp 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.1s); }
.ticker { animation: ticker var(--ticker-s) linear infinite; }
.band:hover .ticker { animation-play-state: paused; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.work-item.enter { animation: fadeUp 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.work-detail { animation: unfold 0.45s var(--ease) both; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .wrap, .page { padding-left: 20px; padding-right: 20px; }
  .cover { padding: 0 20px; }
  .site-header .wrap { grid-template-columns: 1fr 1fr; }
  .brand { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .nav { gap: 18px; }
  .hero { padding: 44px 0 64px; gap: 40px; }
  .hero-side { max-width: 340px; margin: 0 auto; }
  .working { left: -12px; right: 12px; }
  .section { padding: 64px 0; }
  .work-row { gap: 4px 16px; }
  .work-num { flex-basis: 32px; }
  .work-type { order: 3; flex: 0 0 calc(100% - 48px); margin-left: 48px; }
  .work-detail::before { display: none; }
  .facts dt { flex-basis: 100%; }
  .work-text { flex: 1 1 0; }
  .work-detail { padding-left: 56px; }
  .how li::before { flex: 0 0 28px; }
  .how strong { flex: 1 1 calc(100% - 48px); }
  .how span { margin-left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
