/* Landing page (Figma "landing/home page (final)", intro from Frames 17 → 18, hover textures from Frame 19) */

/* ---- The name ---- */
.nm { width: 1388px; height: 320px; transform-origin: 0 0; transform: scale(.40274); z-index: 4; }
.nm > * { position: absolute; }
.nm-strokes { left: 0; top: 0; width: 1388px; height: 320px; }
.nm-strokes .nl { position: absolute; display: block; transform-origin: 50% 50%; }
.nm-abbr { left: 391.5px; top: 31.5px; width: 605.7px; height: 301.7px; opacity: 0; }
.nd { left: 0; top: 0; width: 57px; height: 57px; border-radius: 50%; transform-origin: 50% 50%; }
.nd.mint { background: #89dbc0; }
.nd.olive { background: #bdaf1b; }
.nd.cream { background: #f5ffcd; }
.nd.ring { background: #ff9ec1; border: 7px solid #7a0060; }

/* ---- Intro text: every word turns bold italic under the pointer ---- */
.hello { width: 620px; font-size: 27px; font-weight: 400; letter-spacing: .04em; line-height: 1.19; color: var(--plum); }
.hello p + p { margin-top: 1.19em; }
.hello span { display: block; white-space: nowrap; }
.hello .w { font-style: normal; transition: font-weight .18s; }
.hello .w:hover { font-weight: 700; font-style: italic; }

/* ---- Circles and illustrations ---- */
.pc-piece { display: block; transform-origin: 50% 50%; }
.pc-piece > img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.pc-piece .tex { opacity: 0; }
.pc-piece.dot:hover .tex { opacity: 1; }
.pc-piece.dot:hover > img { transform: scale(1.035); }
.pc-piece.illus:hover > img, .pc-piece.illus:focus-visible > img { transform: scale(1.04) rotate(-2deg); }
.pc-piece:focus-visible { outline: none; }
.pc-piece:focus-visible > img:first-child { filter: drop-shadow(0 0 0 #7a0060) drop-shadow(0 0 3px #7a0060); }
.aw-label { position: absolute; left: 116.5px; top: 144px; font-size: 21px; font-weight: 700; color: #f5ffcd; white-space: nowrap; transition: font-weight .18s; }
.allwork:hover .aw-label, .allwork:focus-visible .aw-label { font-weight: 800; font-style: italic; text-decoration: underline; text-underline-offset: 4px; }
.labs { pointer-events: none; z-index: 3; overflow: visible; }
.lab text { font-family: 'Urbanist', sans-serif; font-weight: 600; fill: #7a0060; transition: fill .2s; }
.lab.hot text { font-style: italic; fill: #9a1079; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Lower page ---- */
.foot-copy { font-size: 14px; font-weight: 600; color: #fefef2; white-space: nowrap; }
.zoom-poster { box-shadow: 0 10px 20px -12px rgba(60, 40, 40, .45); transition: transform .3s cubic-bezier(.3,1.4,.5,1), filter .25s !important; }
.zoom-poster:hover { transform: translateY(-4px) rotate(.6deg); }

/* ---- Opening sequence ---- */
html.intro-lock, html.intro-lock body { overflow: hidden; }
.header { transition: opacity .6s ease; }
html.intro-on .header { opacity: 0; pointer-events: none; }
html.intro-on .later, html.intro-on .hello span, html.intro-on .pc-piece, html.intro-on .lab { opacity: 0; }
html.pieces-wait .pc-piece, html.pieces-wait .lab { opacity: 0; }
.later.hit { z-index: 2; }
.later { transition: opacity .8s ease; }
.hello span { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
html.intro-on .hello span { transform: translateY(14px); }
html.intro-skip .nm-abbr, html.intro-skip .only-abbr { display: none; }

.nm.morphing .nm-strokes { transition: clip-path 1s cubic-bezier(.65,0,.35,1); }
.nm.morphing .nm-abbr { transition: opacity .7s ease, transform 1s cubic-bezier(.65,0,.35,1); }
.nm.morphing .nd { transition: transform 1s cubic-bezier(.34,1.22,.64,1); }
.nm.popping .nd { transition: transform .55s cubic-bezier(.34,1.45,.64,1); }
.nm.settling { transition: transform 1.1s cubic-bezier(.65,0,.25,1); }

.scroll-hint {
  position: fixed; left: 50%; bottom: 7vh; translate: -50% 0; z-index: 30;
  font: 500 13px/1 'Urbanist', sans-serif; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.scroll-hint.show { opacity: 1; }
.scroll-hint span { display: inline-block; margin-left: .3em; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.pc-piece[data-drop] { transform-origin: 50% 100%; }   /* squash on the ground when bouncing */

/* ---- Selected Work wall ---- */
.sw-piece { display: block; }
.sw-piece img { display: block; width: 100%; height: 100%; }
.sw-piece.wiggle:hover { position: absolute; }
.sw-piece:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }

/* ---- The name: each dot hops on its own when the pointer touches it ---- */
@keyframes nd-hop { 0%, 100% { translate: 0 0; } 35% { translate: 0 -70px; } 60% { translate: 0 6px; } 78% { translate: 0 -16px; } }
.nm .nd.hop { animation: nd-hop .7s cubic-bezier(.3,.6,.4,1); }

/* ---- Pink band: Let's Connect! ---- */
.cta-pink { background: #ff9ec1 url(assets/sw/pink-tile.jpg) 0 0 / 600px 150px repeat; }
.cta { display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: center; color: #fefef2; z-index: 2; }
.cta-title { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: .01em; color: #fefef2; white-space: nowrap; cursor: default; }
.cta-title span { display: inline-block; transition: transform .35s cubic-bezier(.3,1.8,.5,1), color .2s; }
.cta-title:hover span { animation: cta-hop .6s calc(var(--i) * .04s) cubic-bezier(.3,.6,.4,1); color: #7a0060; }
.cta-title span:hover { transform: translateY(-14px) rotate(-8deg); }
@keyframes cta-hop { 40% { transform: translateY(-16px) rotate(-6deg); } 70% { transform: translateY(3px); } }
.cta-lead { margin-top: 22px; font-size: 21px; font-weight: 600; line-height: 1.5; }
/* Download CV: the textured header pill, in green */
.cta-cv { position: relative; display: inline-grid; place-items: center; width: 230px; height: 60px; margin-top: 32px; color: #fefef2; font-size: 18px; font-weight: 700; text-decoration: none; transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
.cta-cv .cta-pill { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-cv span { position: relative; }
.cta-cv b { display: inline-block; margin-left: 6px; }
.cta-cv:hover { transform: translateY(-3px) rotate(-2deg); }
.cta-cv:hover b { animation: cta-drop .6s ease-in-out infinite; }
@keyframes cta-drop { 50% { transform: translateY(4px); } }
/* Form: underlined fields, like a printed form */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 26px; }
.cta-form label { display: block; }
.cta-form .wide { grid-column: 1 / -1; }
.cta-form input, .cta-form textarea { width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1.5px solid rgba(254, 254, 242, .7); border-radius: 0; background: transparent; font: 600 19px/1.4 'Urbanist', sans-serif; color: #fefef2; outline: none; resize: none; transition: border-color .2s; }
.cta-form textarea { min-height: 40px; field-sizing: content; max-height: 140px; }
.cta-form ::placeholder { color: rgba(254, 254, 242, .85); }
.cta-form input:focus, .cta-form textarea:focus { border-bottom-color: #fefef2; }
.cta-form button { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 0 10px; border: 0; border-bottom: 2px solid #fefef2; background: none; color: #fefef2; font: 600 30px/1.1 'Urbanist', sans-serif; cursor: pointer; text-align: left; }
.cta-dot { width: 40px; height: 40px; transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.cta-form button:hover .cta-dot { transform: scale(1.35) translateX(-6px); }
.cta-form button:hover span { font-style: italic; }
.cta-status { grid-column: 1 / -1; min-height: 1.3em; margin-top: -10px; font-size: 15px; font-weight: 600; color: #fefef2; }

/* ---- Contact page: the Let's Connect! block on its own, everything centred ---- */
.contact-canvas { min-height: 100%; }
.cta-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; min-height: calc(100% - 105px); padding: 60px 0; text-align: center; }
.cta-page .cta-left { display: flex; flex-direction: column; align-items: center; }
.cta-page .cta-form { width: 620px; text-align: left; }
.contact-foot { bottom: 34px; left: 64px !important; width: auto !important; text-align: left !important; }

/* Contact page circles */
.cp-dots { position: absolute; left: 0; right: 0; top: calc(50% - 430px); height: 900px; z-index: 1; }   /* stays centred with the content however tall the window is */
.cp-dot { position: absolute; aspect-ratio: 1; translate: var(--dx, 0) var(--dy, 0); rotate: var(--rot, 0deg); transition: translate .5s cubic-bezier(.3,1.7,.5,1), rotate .5s cubic-bezier(.3,1.7,.5,1); }
.cp-dot:not(.dodge) { --dx: 0px; --dy: 0px; --rot: 0deg; }
.cp-dot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.cp-dot .tex { opacity: 0; }
.cp-dot.dodge .tex { opacity: 1; }
.cta-page { z-index: 2; pointer-events: none; }
.cta-page > * { pointer-events: auto; }
