:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #eae4d8;
  --ink: #262720;
  --muted: #77776d;
  --line: rgba(38, 39, 32, .17);
  --accent: #bb533b;
  --sage: #aeb7a0;
  --serif: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', 'Avenir Next', Avenir, sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --page-gutter: clamp(1.2rem, 5.3vw, 5.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--paper); background: var(--accent); }
.site-shell { width: min(100%, 1720px); margin: 0 auto; padding: 0 var(--page-gutter); }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .7rem 1rem; transform: translateY(-160%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }

.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; min-width: 225px; }
.wordmark-seal { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 500 15px var(--serif); }
.wordmark-name { font-size: .84rem; font-weight: 600; letter-spacing: -.025em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.8rem); }
.main-nav a, .topbar-note { font-size: .75rem; }
.main-nav a { position: relative; padding: .6rem 0; color: #55564e; transition: color .2s ease; }
.main-nav a::after { position: absolute; right: 0; bottom: .2rem; left: 0; height: 1px; background: var(--accent); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="location"] { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar-note { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .66rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.hero { position: relative; display: grid; grid-template-columns: 1fr 2.25fr 1.1fr; min-height: min(760px, 76vw); padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(5rem, 9vw, 8rem); align-items: center; }
.hero-side { align-self: start; padding-top: .8rem; }
.eyebrow { margin: 0; font: 500 .61rem/1.6 var(--mono); letter-spacing: .15em; }
.side-rule { display: block; width: 1px; height: 76px; margin: 1.6rem 0 1.15rem .25rem; background: var(--accent); }
.side-caption { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero-kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem .45rem; color: var(--muted); font: 500 .62rem var(--mono); letter-spacing: .16em; }
.eyebrow-line { width: 25px; height: 1px; background: var(--accent); }
h1 { max-width: 810px; margin: 0; font: 500 clamp(5rem, 11.4vw, 10.8rem)/.87 var(--serif); letter-spacing: -.085em; }
.hero-period { color: var(--accent); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; max-width: 650px; margin: 2.7rem 0 0 clamp(0rem, 3.3vw, 3.2rem); }
.hero-intro { width: min(350px, 72%); margin: 0; color: #62635a; font-size: clamp(.92rem, 1.3vw, 1.05rem); line-height: 1.8; }
.round-link { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; transition: color .25s ease, background .25s ease, transform .25s ease; }
.round-link:hover { transform: translateY(3px); border-color: var(--accent); background: var(--accent); color: white; }
.hero-art { position: relative; isolation: isolate; width: min(100%, 286px); aspect-ratio: 3 / 4; justify-self: end; margin: 0 4% 0 -1rem; }
.hero-art::before { position: absolute; z-index: -1; inset: 4% -4% -2% 9%; border: 1px solid rgba(187, 83, 59, .62); border-radius: 50% 50% 0 0; content: ''; transform: rotate(3deg); }
.portrait-frame { position: absolute; inset: 0 0 0 .3rem; overflow: hidden; border-radius: 50% 50% 2px 2px; background: var(--paper-deep); box-shadow: 0 14px 38px rgba(38, 39, 32, .12); }
.portrait-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero-art:hover .portrait-image { transform: scale(1.035); }
.portrait-caption { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.art-caption, .art-coordinate { position: absolute; color: var(--muted); font: 500 .55rem/1.6 var(--mono); letter-spacing: .11em; }
.art-caption { top: -1.25rem; right: 0; }
.art-coordinate { bottom: -1.45rem; left: .4rem; }
.hero-index { position: absolute; right: 0; bottom: 3rem; display: flex; align-items: center; gap: .65rem; color: var(--muted); font: .57rem var(--mono); }
.index-line { width: 36px; height: 1px; background: var(--accent); }

.intro-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 4vw, 4rem); min-height: 134px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-mark { color: var(--accent); font-size: 1.3rem; }
.intro-band > p { max-width: 620px; margin: 0; font: 500 clamp(1rem, 1.9vw, 1.42rem)/1.45 var(--serif); }
.intro-band > p a { color: var(--accent); white-space: nowrap; }
.intro-band > p a:hover { text-decoration: underline; text-underline-offset: .2em; }
.intro-band > p a span { font: .8em var(--sans); }
.band-label { color: var(--muted); font: .53rem/1.8 var(--mono); letter-spacing: .1em; text-align: right; }

.content-section { display: grid; grid-template-columns: 1fr 2.25fr 1.1fr; gap: 1rem; padding: clamp(6rem, 12vw, 10rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
.section-index { display: flex; gap: 1rem; align-items: baseline; padding-top: .65rem; color: var(--muted); font: .58rem var(--mono); letter-spacing: .1em; }
.section-index span:first-child { color: var(--accent); }
.section-main { max-width: 700px; }
.section-kicker { margin-bottom: 1.55rem; color: var(--muted); }
h2 { margin: 0; font: 500 clamp(3.5rem, 7.3vw, 7rem)/.98 var(--serif); letter-spacing: -.065em; }
h2 em { color: var(--accent); font-weight: 500; }
.section-copy { margin-top: 2.7rem; color: #62635a; font-size: .94rem; line-height: 1.9; }
.two-column-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); max-width: 675px; }
.section-copy p { margin: 0; }
.section-side-note { display: flex; align-items: flex-end; justify-self: end; gap: .75rem; align-self: end; padding-bottom: .4rem; color: var(--muted); font: .53rem/1.7 var(--mono); letter-spacing: .08em; text-align: right; }
.side-note-symbol { color: var(--accent); font: 1.3rem var(--serif); }

.now-section { padding-bottom: clamp(6rem, 11vw, 9rem); }
.now-card { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 1.5rem; margin-top: 3.4rem; padding: 1.5rem 1.6rem; border: 1px solid var(--line); background: rgba(234, 228, 216, .55); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.now-card:hover { transform: translateY(-3px); border-color: rgba(187, 83, 59, .45); background: rgba(234, 228, 216, .8); }
.card-asterisk { color: var(--accent); font-size: 1.2rem; }
.card-label { margin: .05rem 0 .65rem; color: var(--muted); font: .54rem var(--mono); letter-spacing: .13em; }
.card-copy { max-width: 420px; margin: 0; font: 500 1rem/1.6 var(--serif); }
.card-status { align-self: end; color: var(--muted); font: .5rem var(--mono); letter-spacing: .1em; }

.notes-section { padding-bottom: clamp(6rem, 11vw, 9rem); }
.empty-notes { display: grid; grid-template-columns: 34px 1fr; column-gap: 1.1rem; margin-top: 3.5rem; align-items: baseline; }
.empty-line { grid-row: 1 / span 2; width: 1px; height: 48px; align-self: center; justify-self: center; background: var(--accent); }
.empty-title { margin: 0 0 .4rem; font: 500 1.05rem var(--serif); }
.empty-copy { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }

.closing-note { position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 600px; align-content: center; justify-items: center; gap: 1rem; margin-inline: calc(0px - var(--page-gutter)); padding: 5rem var(--page-gutter); text-align: center; scroll-margin-top: 2rem; background: #080a0e; color: var(--paper); }
.flux-lines { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.flux-lines canvas { display: block; width: 100%; height: 100%; opacity: .9; }
.flux-lines canvas.flux-lines-fallback-canvas { position: absolute; inset: 0; }
.flux-lines.flux-lines-static-fallback { background-image: repeating-linear-gradient(135deg, transparent 0 28px, rgba(244, 240, 232, .14) 29px, transparent 30px 58px); }
.closing-note > :not(.flux-lines) { position: relative; z-index: 1; }
.closing-note > .eyebrow { color: rgba(244, 240, 232, .66); }
.closing-script { margin: 0; font: 500 clamp(2.8rem, 7vw, 6rem)/1.1 var(--serif); letter-spacing: -.055em; }
.closing-script span, .footer-name span { color: var(--accent); }
.closing-note .closing-script { color: var(--paper); }
.contact-copy { max-width: 570px; margin: .25rem 0 .4rem; color: rgba(244, 240, 232, .78); font-size: .9rem; line-height: 1.8; }
.telegram-cta { display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: var(--paper); color: var(--ink); font: 500 .62rem var(--mono); letter-spacing: .08em; transition: background .2s ease, transform .2s ease; }
.telegram-cta:hover { transform: translateY(-2px); background: var(--accent); }
.telegram-cta > span:first-of-type { color: var(--accent); font-size: .7rem; letter-spacing: 0; }
.telegram-cta .cta-arrow { font: 1rem var(--sans); }
.flux-controls { display: grid; justify-items: center; width: min(100%, 400px); }
.flux-controls > summary { display: inline-flex; align-items: center; gap: .55rem; min-height: 35px; padding: .45rem .75rem; border: 1px solid rgba(244, 240, 232, .24); color: rgba(244, 240, 232, .78); cursor: pointer; font: 500 .54rem var(--mono); letter-spacing: .12em; list-style: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.flux-controls > summary::-webkit-details-marker { display: none; }
.flux-controls > summary:hover, .flux-controls[open] > summary { border-color: rgba(244, 240, 232, .62); color: #fff; background: rgba(244, 240, 232, .06); }
.flux-controls-mark { color: #fff; font: 1.1rem/1 var(--sans); }
.flux-controls-caret { margin-left: .2rem; color: rgba(244, 240, 232, .62); font: .9rem/1 var(--sans); transition: transform .2s ease; }
.flux-controls[open] .flux-controls-caret { transform: rotate(45deg); }
.flux-controls-panel { display: grid; gap: .9rem; width: min(100%, 380px); margin-top: .65rem; padding: 1rem 1.1rem; border: 1px solid rgba(244, 240, 232, .19); background: rgba(8, 10, 14, .9); box-shadow: 0 16px 44px rgba(0, 0, 0, .24); text-align: left; backdrop-filter: blur(14px); }
.flux-controls-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(244, 240, 232, .14); }
.flux-controls-head p { margin: 0; color: rgba(244, 240, 232, .58); font: .5rem var(--mono); letter-spacing: .14em; }
.flux-controls-head button { padding: .3rem 0 .3rem .5rem; border: 0; background: transparent; color: rgba(244, 240, 232, .76); cursor: pointer; font: .5rem var(--mono); letter-spacing: .12em; }
.flux-controls-head button:hover { color: #fff; }
.flux-controls button:focus-visible, .flux-controls select:focus-visible, .flux-controls input:focus-visible, .flux-controls summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.flux-range { display: grid; gap: .35rem; color: rgba(244, 240, 232, .78); font-size: .68rem; }
.flux-range > span { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flux-range output { color: #fff; font: .57rem var(--mono); font-variant-numeric: tabular-nums; }
.flux-range input { width: 100%; height: 14px; margin: 0; accent-color: #e9e6df; cursor: pointer; }
.flux-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.flux-picker { display: grid; gap: .35rem; color: rgba(244, 240, 232, .7); font-size: .64rem; }
.flux-picker select { width: 100%; min-height: 34px; padding: .4rem .5rem; border: 1px solid rgba(244, 240, 232, .2); border-radius: 0; background: #101217; color: #f4f0e8; font: .6rem var(--mono); }
.flux-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: rgba(244, 240, 232, .78); cursor: pointer; font-size: .68rem; }
.flux-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flux-toggle-track { position: relative; width: 31px; height: 17px; flex: 0 0 auto; border: 1px solid rgba(244, 240, 232, .28); border-radius: 99px; background: rgba(244, 240, 232, .08); transition: background .2s ease, border-color .2s ease; }
.flux-toggle-track::after { position: absolute; top: 3px; left: 3px; width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 240, 232, .56); content: ''; transition: transform .2s ease, background .2s ease; }
.flux-toggle input:checked + .flux-toggle-track { border-color: rgba(244, 240, 232, .65); background: rgba(244, 240, 232, .22); }
.flux-toggle input:checked + .flux-toggle-track::after { transform: translateX(14px); background: #fff; }
.flux-toggle input:focus-visible + .flux-toggle-track { outline: 2px solid #fff; outline-offset: 3px; }
.flux-controls-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.back-top { display: inline-flex; align-items: center; gap: .6rem; margin-top: .7rem; color: var(--muted); font: .57rem var(--mono); letter-spacing: .12em; transition: color .2s ease; }
.back-top:hover { color: var(--accent); }
.closing-note .back-top { color: rgba(244, 240, 232, .62); }
.closing-note .back-top:hover { color: #fff; }
.back-top span { font-size: .9rem; }
.footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; min-height: 84px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-name { color: var(--ink); font: 500 .82rem var(--serif); }
.footer > p { margin: 0; font-size: .66rem; }
.footer-year { font: .6rem var(--mono); }

@media (min-width: 1500px) { h1 { font-size: 10.8rem; } }
@media (max-width: 1050px) {
  .hero { grid-template-columns: .8fr 2.2fr; min-height: auto; padding: 5rem 0 4rem; }
  .hero-art { grid-column: 2; position: relative; width: min(55%, 250px); margin: 1.8rem 4% .5rem 0; opacity: 1; }
  .hero-copy { padding-right: 5%; }
  .content-section { grid-template-columns: .8fr 2.2fr .65fr; }
  .hero-index { bottom: 2rem; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 1.2rem; }
  .topbar { min-height: 72px; gap: .7rem; }
  .wordmark { min-width: unset; gap: .55rem; }
  .wordmark-seal { width: 27px; height: 27px; }
  .wordmark-name { font-size: .75rem; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: .68rem; }
  .topbar-note { display: none; }
  .hero { display: flex; min-height: auto; align-items: stretch; flex-direction: column; padding: 4.4rem 0 5.4rem; }
  .hero-side { display: flex; align-items: center; gap: .7rem; padding: 0; }
  .hero-side .eyebrow { font-size: .54rem; }
  .side-rule { width: 26px; height: 1px; margin: 0; }
  .side-caption { display: none; }
  .hero-copy { margin-top: 3.3rem; padding: 0; }
  .hero-kicker { margin-left: .12rem; font-size: .55rem; }
  h1 { position: relative; z-index: 1; font-size: clamp(4.4rem, 17vw, 7rem); }
  .hero-bottom { position: relative; z-index: 1; gap: 1rem; margin: 2rem 0 0; }
  .hero-intro { width: min(290px, 78%); font-size: .88rem; }
  .round-link { width: 42px; height: 42px; }
  .hero-art { grid-column: auto; right: auto; bottom: auto; width: min(52vw, 200px); margin: 2.1rem .6rem 0 auto; opacity: 1; }
  .art-caption { top: -1.15rem; right: .2rem; font-size: .44rem; }
  .art-coordinate { bottom: -1.2rem; left: .2rem; font-size: .44rem; }
  .hero-index { right: 0; bottom: .4rem; font-size: .5rem; }
  .intro-band { grid-template-columns: auto 1fr; min-height: 125px; gap: 1rem; padding: 1.5rem 0; }
  .intro-band > p { font-size: 1rem; }
  .intro-band > p a { white-space: normal; }
  .band-label { grid-column: 2; text-align: left; font-size: .47rem; }
  .content-section { grid-template-columns: 1fr auto; gap: .8rem; padding: 5.5rem 0; }
  .section-index { grid-column: 1 / -1; gap: .8rem; padding: 0; font-size: .53rem; }
  .section-main { grid-column: 1 / -1; }
  .section-kicker { margin: 1.4rem 0 1.2rem; font-size: .54rem; }
  h2 { font-size: clamp(3.7rem, 14vw, 5.2rem); }
  .section-copy { margin-top: 1.8rem; font-size: .86rem; }
  .two-column-copy { grid-template-columns: 1fr; gap: 1rem; }
  .section-side-note { grid-column: 2; grid-row: 2; align-self: end; margin-top: 1.5rem; font-size: .45rem; }
  .now-card { grid-template-columns: auto 1fr; gap: 1rem; margin-top: 2.5rem; padding: 1.15rem; }
  .card-copy { font-size: .94rem; }
  .card-status { grid-column: 2; justify-self: start; margin-top: .7rem; }
  .empty-notes { margin-top: 2.6rem; }
  .empty-copy { max-width: 275px; }
  .closing-note { min-height: 600px; padding: 4rem 0; }
  .contact-copy { font-size: .82rem; }
  .telegram-cta { flex-wrap: wrap; justify-content: center; gap: .55rem; font-size: .57rem; }
  .footer { grid-template-columns: 1fr auto; gap: .35rem; padding: 1.2rem 0; }
  .footer > p:nth-child(2) { grid-row: 2; font-size: .61rem; }
  .footer-year { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 390px) {
  .topbar { flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .8rem 0; }
  .main-nav { order: 1; width: 100%; justify-content: space-between; gap: .7rem; }
  .main-nav a { font-size: .64rem; }
  .wordmark-name { font-size: .69rem; }
  .wordmark-seal { width: 25px; height: 25px; }
  h1 { font-size: clamp(3.45rem, 17vw, 4.2rem); }
}
@keyframes soft-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes portrait-arrive {
  from { opacity: 0; transform: translateY(16px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.motion-ready .hero-side,
.motion-ready .hero-copy,
.motion-ready .hero-index { animation: soft-rise .75s cubic-bezier(.2, .7, .2, 1) both; }
.motion-ready .hero-copy { animation-delay: .1s; }
.motion-ready .hero-index { animation-delay: .18s; }
.motion-ready .hero-art { animation: portrait-arrive .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
.motion-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .reveal .section-copy p { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.motion-ready .reveal.is-visible .section-copy p { opacity: 1; transform: translateY(0); }
.motion-ready .reveal.is-visible .section-copy p:nth-child(2) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal, .motion-ready .reveal.is-visible, .motion-ready .reveal .section-copy p { opacity: 1 !important; transform: none !important; }
}
