/* Encounters — charcoal, pale paper and the citron thread of Louforeal. */
html[data-world="contact"], body[data-world="contact"] { background: #1c1d1b; }
body[data-world="contact"] {
  --contact-paper: #f0efdf; --contact-citron: #e2e768; --contact-muted: #c7c7ba; --contact-line: #d4d4bb30;
  --silver: var(--contact-paper); --muted: var(--contact-muted); --line: var(--contact-line); color: var(--contact-paper);
}
body[data-world="contact"] .inner-shell {
  min-height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse at 92% 12%,#e2e7680d,transparent 34%),radial-gradient(ellipse at 9% 72%,#e2e76809,transparent 35%);
}
body[data-world="contact"] .inner-content { max-width: 1600px; padding: 0 clamp(28px,6vw,100px) 95px; }
body[data-world="contact"] .back-link { display: none; }
body[data-world="contact"] .header-book { background: var(--contact-paper); color: #1c1d1b; border-color: #e1e4b666; }
body[data-world="contact"] .desktop-nav a[aria-current="page"]::after { background: var(--contact-citron); }
body[data-world="contact"] .site-footer { max-width: none; padding-inline: clamp(28px,6vw,100px); border-color: var(--contact-line); }
body[data-world="contact"] .site-footer > p { color: var(--contact-muted); }
body[data-world="contact"] dialog { background: #22231f; border-color: #e2e76866; }
body[data-world="contact"] dialog::backdrop { background: #0c0d0bb8; }
body[data-world="contact"] dialog .button-primary { background: #e2e768; color: #282b20; border-color: #e2e768; }
#page-contact .eyebrow { color: #d9dba3; font-size: 10px; font-weight: 400; letter-spacing: 2.4px; }
#page-contact .contact-dot { color: #e5e963; background: #e5e963; }
#page-contact em { color: var(--contact-citron); }
/* The portrait is part of the encounter, with the original ribbon passing behind it. */
.contact-welcome { position: relative; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(45px,6vw,90px); min-height: 590px; padding: 72px 0 90px; }
.contact-welcome-copy { position: relative; z-index: 2; max-width: 470px; }
.contact-welcome h2 { font: 500 clamp(59px,5.35vw,82px)/1.02 var(--serif); letter-spacing: -2px; margin: 26px 0; }
.contact-welcome h2 em { white-space: nowrap; }
.contact-lead { max-width: 425px; font: 400 16px/1.85 var(--sans); color: #d2d2c5; }
.contact-personal-note { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 615px; min-height: 380px; padding: 30px 105px 5px 25px; }
.contact-welcome-art { position: absolute; z-index: -2; pointer-events: none; width: clamp(310px,28vw,440px); height: auto; aspect-ratio: 462 / 778; right: -65px; top: -90px; transform: translate(var(--contact-welcome-x,0px),var(--contact-welcome-y,0px)) rotate(11deg); transition: transform .65s cubic-bezier(.2,.65,.2,1); opacity: .9; }
.contact-welcome-art > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contact-personal-note::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 120%; height: 76%; left: -6%; top: 4%; border: 1px solid #dedfa536; border-radius: 50%; transform: rotate(-24deg); }
.contact-personal-note::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 5px; height: 5px; left: -1%; top: 51%; background: #e2e768; border-radius: 50%; box-shadow: 0 0 18px #e2e76666; }
.contact-portrait { position: relative; z-index: 1; margin: 0; width: 100%; max-width: 350px; }
.contact-portrait-frame { overflow: hidden; padding: 7px; border-radius: 5px; transform: rotate(-3deg); transition: transform .45s ease; border: 1px solid #efedc76e; background: #f0efdf; box-shadow: 0 20px 55px #080a0845; }
.contact-portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1px; }
.contact-portrait figcaption { margin: 18px 0 0 10px; color: #d4d7a8; font: italic 500 19px/1.2 var(--serif); letter-spacing: .2px; }
.contact-personal-greeting { position: relative; z-index: 1; display: flex; align-items: center; gap: 23px; margin: 25px 0 0 10px; }
.contact-welcome-note { font: 500 23px/1.2 var(--serif); color: #eeefda; max-width: 205px; }
.contact-hello { display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 20px; min-height: 44px; padding: 9px 0; color: var(--contact-citron); background: none; border: 0; border-bottom: 1px solid #dce66b66; border-radius: 0; font: 500 20px/1.2 var(--serif); transition: color .2s,border-color .2s; }
.contact-hello svg { width: 24px; height: 18px; transition: transform .2s; }
.contact-hello:hover { color: #f4f7b0; border-color: #e7ed85; }
.contact-hello:hover svg { transform: translateX(3px); }
/* Three tangible fragments connect the portrait to the rest of the cosmos. */
.contact-story { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(50px,7vw,110px); align-items: center; padding: 78px 0 85px; border-top: 1px solid var(--contact-line); }
.contact-story::before { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #d8dc91; }
.contact-story h3 { font: 500 clamp(37px,3.7vw,53px)/1.08 var(--serif); letter-spacing: -.7px; margin: 19px 0 24px; }
.contact-story-copy > p:not(.eyebrow) { max-width: 540px; font: 400 15px/1.9 var(--sans); color: var(--contact-muted); }
.contact-story-copy > p + p { margin-top: 18px; }
.contact-story-copy > p.contact-story-closing { color: #e6e7d7; font: italic 500 23px/1.5 var(--serif); margin-top: 25px; }
.contact-threads { border-top: 1px solid var(--contact-line); }
.contact-thread { position: relative; display: grid; grid-template-columns: 18px 88px 1fr 23px; align-items: center; gap: 15px; min-height: 133px; padding: 26px 0; border-bottom: 1px solid var(--contact-line); transition: background .25s; }
.contact-thread::before { content: ""; grid-column: 2; grid-row: 1; display: block; width: 88px; height: 66px; background-image: url("assets/memory-encounter-desktop.png"); background-repeat: no-repeat; background-size: 500% auto; background-position: var(--thread-art-x) 48%; mask-image: url("assets/blog-thumbnail-mask.svg"); mask-size: 100% 100%; mask-repeat: no-repeat; opacity: .83; filter: saturate(.85); transition: transform .35s,filter .35s,opacity .35s; }
.contact-thread-number { grid-column: 1; grid-row: 1; align-self: start; padding-top: 8px; color: var(--thread-color); font: 400 10px/1.5 var(--sans); letter-spacing: 1px; }
.contact-thread > span:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.contact-thread-blog { --thread-color: #ec91a4; --thread-art-x: 27%; }
.contact-thread-astro { --thread-color: #8eafea; --thread-art-x: 54%; }
.contact-thread-still { --thread-color: #bbd1bb; --thread-art-x: 80%; }
.contact-thread-still::before { mask-image: url("assets/still-thumbnail-mask.svg"); }
.contact-thread > span > strong { display: block; font: 500 clamp(23px,2.1vw,31px)/1.18 var(--serif); color: #eeede4; }
.contact-thread > span > span { display: block; margin-top: 10px; font: 400 11px/1.6 var(--sans); color: var(--thread-color); letter-spacing: .2px; }
.contact-thread svg { grid-column: 4; grid-row: 1; color: var(--thread-color); width: 21px; height: 21px; transition: transform .25s; }
.contact-thread:hover, .contact-thread:focus-visible { background: #e0e67504; }
.contact-thread:is(:hover,:focus-visible)::before { transform: translateY(-3px) rotate(-3deg); filter: saturate(1.1); opacity: 1; }
.contact-thread:hover svg { transform: translate(2px,-2px); }
/* A pale citron letter rests within the yellow encounter, rather than in a separate box. */
.contact-invitation { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: clamp(55px,8vw,125px); row-gap: 46px; align-items: start; min-height: 820px; padding: 85px 0 40px; border-top: 1px solid var(--contact-line); }
.contact-invitation-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; min-width: 0; max-width: 455px; }
.contact-invitation h3 { font: 500 clamp(42px,4vw,59px)/1.04 var(--serif); letter-spacing: -.9px; margin: 21px 0; scroll-margin-top: 35px; }
.contact-invitation h3:focus { outline: none; }
.contact-invitation-copy > p:not(.eyebrow) { font: 400 14px/1.85 var(--sans); color: #cecec1; max-width: 380px; }
#page-contact .email-link { color: #e0e56b; font-size: clamp(25px,2.2vw,31px); gap: 15px; margin-top: 21px; margin-bottom: 12px; border-color: #dce46b55; max-width: 100%; overflow-wrap: anywhere; }
#page-contact .email-link:hover { color: #f6f7bc; }
#page-contact .contact-language-note { font-size: 11px; max-width: 350px; color: #c0c0b1; }
.contact-encounter { grid-column: 1; grid-row: 2; justify-self: center; position: relative; z-index: 0; width: min(270px,85%); height: auto; aspect-ratio: 462 / 778; left: auto; bottom: auto; margin: 0; pointer-events: none; transform: translate(var(--contact-drift-x,0px),var(--contact-drift-y,0px)) rotate(-24deg); transition: transform .6s cubic-bezier(.2,.65,.2,1),filter .6s; opacity: .9; }
.contact-original-art { display: block; width: 100%; height: 100%; overflow: hidden; }
.contact-orbit { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; color: #e1e768; opacity: .55; transition: opacity .5s,color .5s; }
.contact-connection-line { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease; vector-effect: non-scaling-stroke; }
.contact-orbit-line { fill: none; stroke: #e4e5c7; stroke-width: .7; opacity: .28; vector-effect: non-scaling-stroke; }
.contact-orbit circle { fill: currentColor; stroke: none; }
.contact-invitation.is-in-view .contact-connection-line { stroke-dashoffset: 0; }
.contact-invitation:is(.is-engaged,:focus-within) .contact-orbit { opacity: .9; }
.contact-invitation:is(.is-engaged,:focus-within) .contact-encounter { filter: brightness(1.06); }
#page-contact[data-contact-world="blog"] .contact-orbit { color: #eb8aa4; }
#page-contact[data-contact-world="astro"] .contact-orbit { color: #9abbff; }
#page-contact[data-contact-world="still"] .contact-orbit { color: #c9e3ce; }
#page-contact .contact-letter { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2; margin-top: 35px; padding: clamp(27px,3.2vw,46px); color: #303027; background: linear-gradient(118deg,#f6f3d6,#eeedbc 82%); border: 1px solid #f9f7d899; border-radius: 3px 36px 3px 3px; box-shadow: 0 28px 65px #070a0745,9px 10px 0 -1px #1c1d1b,9px 10px 0 0 #dedfa62e; }
.contact-letter::before { content: ""; position: absolute; top: -1px; left: 42px; width: 56px; height: 2px; background: #e5e86d; box-shadow: 0 0 16px #e5e86d30; }
.contact-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
#page-contact .contact-letter > .eyebrow { color: #626044; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid #83805a45; }
#page-contact .contact-letter .field { min-width: 0; margin-bottom: 24px; }
#page-contact .contact-letter label { color: #303027; font: 400 12px/1.6 var(--sans); letter-spacing: 0; margin-bottom: 8px; }
#page-contact .contact-letter .optional { color: #626044; font-size: 10px; }
#page-contact .contact-letter :is(input,select,textarea) { min-width: 0; background: #fffef12e; border: 0; border-bottom: 1px solid #908d6b; border-radius: 0; color: #303027; font: 400 14px/1.65 var(--sans); padding: 10px 2px; color-scheme: light; }
#page-contact .contact-letter :is(input,textarea)::placeholder { color: #6e6b52; opacity: 1; }
#page-contact .contact-letter select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none' stroke='%23626044' stroke-width='1.2'%3E%3Cpath d='m2 2 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 6px center; background-repeat: no-repeat; }
#page-contact .contact-letter select option { background: #f2f0ca; color: #303027; }
#page-contact .contact-letter :is(input,select,textarea):focus { border-color: #303027; background-color: #fffef15c; }
#page-contact .contact-letter textarea { min-height: 140px; resize: vertical; }
#page-contact .contact-letter .button { min-height: 49px; width: 100%; background: #303027; color: #f4f1cc; border: none; border-radius: 30px; font: 500 20px/1.3 var(--serif); gap: 25px; }
#page-contact .contact-letter .button:hover { background: #464735; filter: none; }
#page-contact .contact-letter .helper { color: #626044; font: 400 10px/1.7 var(--sans); margin-top: 15px; }
#contact-status:not(:empty) { margin-top: 12px; }
#page-contact :is(button,a,input,textarea,select):focus-visible { outline-color: #e1e768; }
#page-contact .contact-letter :is(button,a,input,textarea,select):focus-visible { outline-color: #303027; }
@media(min-width:801px) and (max-width:1100px) {
  .contact-welcome { grid-template-columns: .9fr 1.1fr; gap: 30px; padding-top: 65px; min-height: 540px; }
  .contact-welcome h2 { font-size: 59px; }
  .contact-personal-note { padding: 20px 35px 0 10px; min-height: 350px; }
  .contact-welcome-art { width: 310px; right: -86px; top: -65px; }
  .contact-personal-greeting { gap: 15px; }
  .contact-welcome-note { font-size: 20px; }
  .contact-hello { font-size: 18px; gap: 10px; }
  .contact-story, .contact-invitation { gap: 45px; }
  .contact-thread { grid-template-columns: 16px 65px 1fr 20px; gap: 12px; }
  .contact-thread::before { width: 65px; height: 53px; }
  .contact-thread > span > strong { font-size: 24px; }
  .contact-encounter { width: min(250px,85%); }
  .contact-field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media(max-width:800px) {
  body[data-world="contact"] .inner-content { max-width: 600px; padding: 0 26px 60px; }
  body[data-world="contact"] .site-footer { padding-inline: 26px; }
  .contact-welcome { grid-template-columns: 1fr; gap: 37px; padding: 38px 0 57px; min-height: 0; }
  .contact-welcome h2 { font-size: clamp(44px,10.7vw,61px); letter-spacing: -1.2px; line-height: 1.02; margin: 21px 0; }
  .contact-lead { max-width: 440px; font-size: 14px; line-height: 1.8; }
  .contact-personal-note { max-width: 400px; justify-self: start; min-height: 0; padding: 12px 55px 0 5px; }
  .contact-welcome-art { width: 210px; right: -53px; top: -48px; opacity: .83; transform: rotate(12deg); }
  .contact-personal-note::before { left: -12%; top: 2%; width: 122%; height: 73%; }
  .contact-personal-note::after { left: -7%; top: 48%; }
  .contact-portrait { width: 100%; max-width: 285px; }
  .contact-portrait-frame { padding: 5px; }
  .contact-portrait figcaption { font-size: 17px; margin: 14px 0 0 5px; }
  .contact-personal-greeting { margin: 23px -20px 0 5px; gap: 20px; }
  .contact-welcome-note { font-size: 21px; line-height: 1.25; max-width: 180px; }
  .contact-hello { gap: 14px; font-size: 19px; }
  .contact-hello svg { width: 20px; }
  .contact-story { grid-template-columns: 1fr; gap: 32px; padding: 45px 0 50px; }
  .contact-story h3 { font-size: 39px; margin: 18px 0 22px; }
  .contact-story-copy > p:not(.eyebrow) { font-size: 14px; }
  .contact-story-copy > p.contact-story-closing { font-size: 22px; }
  .contact-thread { min-height: 120px; padding: 23px 0; gap: 11px; grid-template-columns: 15px 65px 1fr 18px; }
  .contact-thread::before { width: 65px; height: 55px; }
  .contact-thread > span > strong { font-size: 24px; }
  .contact-thread > span > span { font-size: 10px; margin-top: 8px; }
  .contact-thread svg { width: 18px; }
  .contact-invitation { grid-template-columns: 1fr; gap: 0; padding-top: 40px; padding-bottom: 0; min-height: 0; }
  .contact-invitation-copy { grid-column: auto; grid-row: auto; }
  .contact-invitation h3 { font-size: 44px; margin: 20px 0; }
  .contact-invitation-copy > p:not(.eyebrow) { font-size: 14px; max-width: 340px; }
  #page-contact .email-link { font-size: 27px; }
  .contact-encounter { grid-column: auto; grid-row: auto; position: relative; width: 220px; height: 370px; left: auto; bottom: auto; justify-self: end; margin: 4px -8px -82px 0; transform: translate(var(--contact-drift-x,0px),var(--contact-drift-y,0px)) rotate(-21deg); }
  .contact-orbit { top: 250px; height: calc(100% - 250px); opacity: .35; }
  #page-contact .contact-letter { grid-column: auto; grid-row: auto; margin: 0 3px 10px 0; padding: 29px 24px; }
  .contact-field-pair { grid-template-columns: 1fr; gap: 0; }
  #page-contact .contact-letter :is(input,select,textarea) { font-size: 16px; }
  #page-contact .contact-letter .helper { font-size: 10px; line-height: 1.8; }
}
@media(max-width:359px) {
  body[data-world="contact"] .inner-content { padding-inline: 21px; }
  .contact-welcome h2 { font-size: 40px; }
  .contact-personal-note { padding-right: 44px; }
  .contact-welcome-art { right: -65px; width: 200px; }
  .contact-personal-greeting { gap: 12px; }
  .contact-welcome-note { font-size: 19px; }
  .contact-hello { font-size: 18px; gap: 9px; }
  .contact-thread { grid-template-columns: 14px 50px 1fr 18px; gap: 9px; }
  .contact-thread::before { width: 50px; height: 48px; }
  .contact-thread > span > strong { font-size: 22px; }
  #page-contact .email-link { font-size: 24px; gap: 9px; }
}
@media(hover:hover) and (pointer:fine) { .contact-portrait:hover .contact-portrait-frame { transform: rotate(-1deg) translateY(-3px); } }
@media(prefers-reduced-motion:reduce) {
  #page-contact .contact-encounter { transform: rotate(-24deg); filter: none; }
  #page-contact .contact-welcome-art { transform: rotate(11deg); }
  #page-contact .contact-connection-line { stroke-dashoffset: 0; }
  #page-contact *, #page-contact *::before, #page-contact *::after { transition: none !important; }
}
