/* Creations by Tassh — plain link page */
@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pirata"; src: url("fonts/pirata.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-italic.woff2?v=2") format("woff2"); font-style: italic; font-weight: 700; font-display: swap; }
@font-face { font-family: "Gothic"; src: url("fonts/gothic.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #d6d4d8;
  --text: #161114;
  --muted: #3d3a40;
  --btn: rgba(255, 255, 255, .92);
  --btn-border: #161114;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg) url("metal-silver.jpg?v=2") center / cover no-repeat fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.page { max-width: 580px; margin: 0 auto; padding: 56px 20px 60px; }

.profile { text-align: center; margin-bottom: 36px; }
.avatar {
  display: block; width: 110px; height: 110px; margin: 0; border-radius: 50%;
  background: url("tassh-v7.jpg") center 15% / cover no-repeat;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  border: 3px solid var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 5.5px var(--text), 0 8px 20px -8px rgba(0,0,0,.5);
}
.name { margin: 0; line-height: 0; }
.logo { display: block; width: min(64%, 230px); height: auto; margin: 0 auto; }
.bio { margin: 14px auto 0; color: var(--text); font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 700; font-size: 21px; line-height: 1.25; max-width: 34ch; text-shadow: 0 1px 0 rgba(255,255,255,.35); }

.section { margin: 0; }
.section + .section { margin-top: 12px; }
.section__title {
  margin: 0 0 10px; text-align: center;
  font-family: "Gothic", "Old English Text MT", serif;
  font-size: 30px; font-weight: 400; line-height: 1.1; color: var(--text);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.stack { display: grid; gap: 12px; }

.link {
  overflow: hidden;
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px;
  text-align: center; text-decoration: none;
  background: var(--btn); border: 1.5px solid var(--btn-border); border-radius: 999px;
  padding: 8px 10px 8px 8px; min-height: 68px; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: .05em;
  background: linear-gradient(180deg, #fff 0%, #f1f0f2 55%, #dedce1 100%);
  border-width: 2px;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,.6), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120,40,70,.12);
  transition: transform .15s, background .15s, color .15s;
}
.link:hover, .link:focus-visible { background: var(--btn-border); color: #eceaee; transform: scale(1.02); outline: none; }
.link--dead { color: var(--muted); border-style: dashed; cursor: default; }
.link--dead:hover { background: linear-gradient(180deg, #fff 0%, #f1f0f2 55%, #dedce1 100%); color: var(--muted); transform: none; }
.link--dead small { font-family: "Cormorant", serif; font-style: italic; font-size: 15px; }
.link__thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--btn-border); background: #e4e2e6; display: grid; place-items: center; }
.link__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns var(--kb, 7s) ease-in-out var(--kbd, 0s) infinite alternate; transition: transform .5s; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.18); } }
.link:hover .link__thumb img { animation-play-state: paused; transform: scale(1.4); }
.link__thumb--mac { font-family: "Gothic", serif; font-size: 26px; color: var(--muted); }
.link__body { display: grid; gap: 1px; min-width: 0; }
.link__title { line-height: 1.05; white-space: nowrap; overflow: hidden; display: block; text-transform: uppercase; }
.link__line { text-transform: none; letter-spacing: 0; font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; line-height: 1.15; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link:hover .link__line { opacity: .9; }
.link .sparkle { position: absolute; z-index: 2; filter: drop-shadow(0 0 2px rgba(255,255,255,1)) drop-shadow(0 0 5px rgba(255,255,255,.8)); }
.link { position: relative; }
.link__arrow { display: grid; place-items: center; justify-self: end; margin-right: 8px; transition: transform .2s; }
.link:hover .link__arrow { transform: translateX(4px); }

.socials { display: flex; justify-content: center; gap: 14px; margin: 4px 0 2px; }
.socials a { color: #eceaee; background: var(--text); border-radius: 50%; display: grid; place-items: center; width: 44px; height: 44px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); transition: transform .15s; }
.socials a:hover { transform: scale(1.18); }
.socials:empty { display: none; }

.foot { margin-top: 48px; text-align: center; color: var(--muted); display: grid; gap: 8px; }
.foot__brand { font-family: "Gothic", serif; font-size: 18px; opacity: .8; }
.foot__legal { font: 500 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; letter-spacing: .04em; opacity: .7; }
.noscript { padding: 20px; }

/* ---------- logo, then 3D flying wings behind the profile photo ---------- */
.profile { position: relative; padding-top: 0; }
.name { margin: 0; }
.logo { width: min(40%, 150px); }
.hero { position: relative; width: min(96vw, 620px); height: calc(min(96vw, 620px) * 775 / 1600); margin: -30px 0 4px calc(50% - min(48vw, 310px)); padding: 0; display: grid; place-items: center; }
.wings {
  position: absolute; left: 50%; top: 0; width: min(96vw, 620px); aspect-ratio: 1600 / 775;
  pointer-events: none; z-index: 0; perspective: 1100px; transform-style: preserve-3d;
  animation: hover 3.4s ease-in-out infinite;
}
.wings span {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: url("wings.png?v=2") no-repeat; background-size: 200% 100%;
  filter: none; will-change: transform;
}
.wings .l { left: 0; background-position: left center; transform-origin: 100% 52%; animation: flapL 3.4s ease-in-out infinite; }
.wings .r { right: 0; background-position: right center; transform-origin: 0% 52%; animation: flapR 3.4s ease-in-out infinite; }
@keyframes flapL { 0%, 100% { transform: rotateY(4deg) rotateZ(1deg); } 50% { transform: rotateY(20deg) rotateZ(-2.5deg); } }
@keyframes flapR { 0%, 100% { transform: rotateY(-4deg) rotateZ(-1deg); } 50% { transform: rotateY(-20deg) rotateZ(2.5deg); } }
@keyframes hover { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.avatar { position: relative; z-index: 1; animation: bob 3.4s ease-in-out infinite; }
.avatar__shield { position: absolute; inset: 0; border-radius: 50%; background: transparent; -webkit-user-drag: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.page { padding-top: 22px; }
@media (max-width: 460px) { .wings { width: 100vw; } .hero { width: 100vw; height: calc(100vw * 775 / 1600); margin-left: calc(50% - 50vw); } .avatar { width: 100px; height: 100px; } }

/* ---------- metallic shine sweep + sparkles ---------- */
.shine {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.18) 46%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.18) 54%, transparent 62%);
  background-size: 260% 100%; mix-blend-mode: soft-light;
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.sparkles { display: none; }
.sparkle {
  position: absolute; width: 18px; height: 18px; opacity: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0 L52.2 47.8 L100 50 L52.2 52.2 L50 100 L47.8 52.2 L0 50 L47.8 47.8 Z' fill='white'/><path d='M50 30 L51.2 48.8 L70 50 L51.2 51.2 L50 70 L48.8 51.2 L30 50 L48.8 48.8 Z' fill='white' transform='rotate(45 50 50)'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 8px rgba(255,255,255,.6));
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.15); } 45% { opacity: 1; transform: scale(1); } 55% { opacity: 1; transform: scale(.9); } }
.page { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .wings, .wings span, .avatar, .shine, .sparkle { animation: none; } .sparkle { opacity: .6; transform: none; } }

/* phones: portrait version of the metal, repeated down the page */
@media (max-width: 720px) {
  body { background: var(--bg) url("metal-silver-tile.jpg?v=2") center top / 100% auto repeat-y; }
}

/* phones: let descriptions wrap to two lines instead of truncating (must stay last) */
@media (max-width: 460px) {
  .link__line { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- coming soon ---------- */
.section.section--soon { margin-top: 64px; }
.soon__title { margin: 0 0 12px; text-align: center; font-family: "Gothic", serif; font-weight: 400; font-size: 30px; color: var(--text); text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.link--soon { cursor: default; opacity: .85; background: linear-gradient(180deg, #ecebee 0%, #d9d7dc 100%); border: 2px solid #a9a7ad; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.6); }
.link--soon:hover { transform: rotate(var(--tilt, 0deg)); box-shadow: 0 6px 16px -10px rgba(0,0,0,.55), inset 0 1px 0 #fff; background: linear-gradient(180deg, #ecebee 0%, #d9d7dc 100%); color: var(--text); }
.link--soon .link__thumb img { filter: grayscale(.6); }
.link__ribbon { position: absolute; z-index: 3; top: 16px; right: -30px; width: 120px; padding: 5px 14px 5px 0; box-sizing: border-box; transform: rotate(35deg);
  text-align: center; font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .22em; text-indent: .22em;
  color: #fff; background: linear-gradient(180deg, #8d8a91, #6c6970); box-shadow: 0 2px 5px rgba(0,0,0,.25); }
@media (max-width: 460px) { .link__ribbon { top: 12px; right: -34px; width: 110px; padding-right: 16px; font-size: 10px; } }

/* ---------- popup ---------- */
.popup { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(22,17,20,.45); opacity: 0; transition: opacity .25s; }
.popup.in { opacity: 1; }
.popup__card { background: var(--text); color: #eceaee; border-radius: 22px; padding: 26px 24px 20px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transform: translateY(10px); transition: transform .25s; }
.popup.in .popup__card { transform: none; }
.popup__card p { margin: 0 0 18px; font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 700; font-size: 22px; line-height: 1.25; }
.popup__ok { font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #eceaee; color: var(--text); border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; }

/* phones: Oswald caps a bit smaller and tighter so long names stay big (must stay last) */
@media (max-width: 460px) {
  .link { font-size: 17px; letter-spacing: .02em; }
}


/* pink metal over the header, fading into the silver by the time the projects start */
.pinkfade {
  position: absolute; left: 0; top: 0; width: 100%; height: 640px; z-index: 0; pointer-events: none;
  background: url("metal.jpg?v=2") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
@media (max-width: 720px) { .pinkfade { background-image: url("metal-portrait.jpg"); } }

/* phones: same tighter header spacing (must stay last) */
@media (max-width: 460px) { .hero { margin-top: -20px; margin-bottom: 2px; } }

/* work with me */
.section.section--cta { margin-top: 64px; }
.link__thumb--icon { background: var(--text); color: #eceaee; }
