/* EGMOND link page. The intro (script.js) builds a halftone of the portrait, then dissolves it into the photo. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anybody:wdth,wght@150,800&display=swap');

:root { color-scheme: dark; --ink: #f0e6d7; --orange: #e26c35; --focal: 39%; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #050505; color: var(--ink); font-family: 'DM Mono', ui-monospace, monospace; }
.card { min-height: 100svh; overflow: hidden; position: relative; display: grid; align-items: end; }
.portrait, .photo, .portrait__glow, .fx { position: absolute; inset: 0; }
.portrait { background: #050505; }
.photo { background: url('WorkFiles/IMG_2433.JPG') center var(--focal) / cover no-repeat; filter: contrast(1.14) saturate(.78); opacity: 0; }
.fx { width: 100%; height: 100%; pointer-events: none; filter: contrast(1.14) saturate(.78); }
.portrait__glow { background: radial-gradient(ellipse at 51% 45%, transparent 15%, rgba(0,0,0,.12) 47%, rgba(0,0,0,.72) 100%); pointer-events: none; z-index: 2; }

.content { position: relative; z-index: 3; width: min(100%, 620px); padding: clamp(28px, 5vw, 72px); padding-top: 150px; }
.eyebrow { color: var(--orange); font-size: 10px; letter-spacing: .24em; margin: 0 0 8px; }
h1 { font-family: 'Anybody', sans-serif; font-weight: 800; font-stretch: 150%; font-size: calc(clamp(52px, 10vw, 92px) * .78); line-height: .8; letter-spacing: -.03em; margin: 0 0 30px; }
.links { display: grid; gap: 7px; }
.link { color: var(--ink); text-decoration: none; border: 1px solid rgba(240,230,215,.35); background: rgba(9,9,9,.3); backdrop-filter: blur(7px); min-height: 51px; padding: 0 15px; display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s; }
.link svg { width: 22px; max-height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; }
.link svg rect, .link svg circle { fill: none; }
.link svg .play { fill: #050505; stroke: none; }
.link i { font-size: 15px; font-style: normal; color: var(--orange); }
.link:hover, .link:focus-visible { background: var(--ink); color: #080808; border-color: var(--ink); outline: none; }

/* Content arrives when the intro calls ready(): staggered lift, ~0.6s total. */
.eyebrow, h1, .link { opacity: 0; transform: translateY(12px); }
body.ready .eyebrow, body.ready h1, body.ready .link {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.22,.61,.36,1) var(--d, 0s), transform .55s cubic-bezier(.22,.61,.36,1) var(--d, 0s), background .2s, color .2s, border-color .2s;
}
h1 { --d: .06s; }
.link:nth-child(1) { --d: .14s; } .link:nth-child(2) { --d: .2s; } .link:nth-child(3) { --d: .26s; } .link:nth-child(4) { --d: .32s; } .link:nth-child(5) { --d: .38s; }

.hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 10; font-size: 10px; letter-spacing: .2em; color: rgba(240,230,215,.4); transition: opacity .4s; pointer-events: none; }
body.ready .hint { opacity: 0; }

/* Acid-house smiley (inverted: mustard on black) in the corner: opens the About panel. Appears with the content. */
.smiley { forced-color-adjust: none; color-scheme: only light; position: fixed; top: 18px; right: 18px; z-index: 6; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: 0; transform: scale(.6) rotate(-40deg); pointer-events: none; }
.smiley svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)); forced-color-adjust: none; }
body.ready .smiley { opacity: 1; transform: none; pointer-events: auto; transition: opacity .5s ease .5s, transform .7s cubic-bezier(.34,1.56,.64,1) .5s; }
body.ready .smiley:hover, body.ready .smiley:focus-visible { transform: rotate(14deg) scale(1.08); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.smiley:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* About panel: a side sheet on desktop, full screen on phones. */
.about { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 480px); height: 100%; max-height: none; max-width: none; padding: 84px clamp(28px, 5vw, 56px) 48px; border: 0; border-left: 1px solid rgba(240,230,215,.18); background: rgba(8,8,8,.94); backdrop-filter: blur(12px); color: var(--ink); overflow-y: auto; font-size: 13px; line-height: 1.75; letter-spacing: .01em; }
.about::backdrop { background: rgba(0,0,0,.55); }
.about[open] { animation: about-in .45s cubic-bezier(.22,.61,.36,1); }
.about[open]::backdrop { animation: fade-in .45s ease; }
@keyframes about-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.about .eyebrow { opacity: 1; transform: none; }
.about h2 { font-family: 'Anybody', sans-serif; font-weight: 800; font-stretch: 150%; font-size: 40px; line-height: .9; letter-spacing: -.03em; margin: 0 0 28px; }
.about p:not(.eyebrow) { margin: 0 0 18px; color: rgba(240,230,215,.82); }
.about p.about__contact { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(240,230,215,.18); display: grid; gap: 6px; }
.about__contact span { color: var(--orange); font-size: 10px; letter-spacing: .24em; }
.about__contact a { color: var(--ink); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(240,230,215,.35); justify-self: start; padding-bottom: 2px; transition: color .2s, border-color .2s; }
.about__contact a:hover, .about__contact a:focus-visible { color: var(--orange); border-color: var(--orange); outline: none; }
.about__close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid rgba(240,230,215,.3); cursor: pointer; transition: background .2s, color .2s; }
.about__close:hover, .about__close:focus-visible { background: var(--ink); color: #080808; outline: none; }

@media (min-width: 760px) {
  :root { --focal: 33%; }
  .card { align-items: center; }
  .content { margin-left: max(5vw, calc((100vw - 1200px)/2)); }
  .portrait__glow { background: linear-gradient(90deg, rgba(0,0,0,.66), transparent 58%), radial-gradient(ellipse at 51% 45%, transparent 15%, rgba(0,0,0,.55) 100%); }
}
/* Landscape screens wider than 3:2: stretching the portrait across the full width blows the face
   up into the middle of the screen, under the title (worst on ultrawides). Keep the photo in a 3:2
   box on the right instead, fading in from black on its left edge, so the title sits on the dark side. */
@media (min-aspect-ratio: 3/2) {
  .portrait { left: auto; width: calc(100svh * 3 / 2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
}
@media (prefers-reduced-motion: reduce) {
  body.ready .eyebrow, body.ready h1, body.ready .link, body.ready .smiley { transition: none; }
  .about[open], .about[open]::backdrop { animation: none; }
}
