:root {
  --bg: #121212;
  --ink: #f0f0f0;
  --text: #d700f1;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.15);
  --highlight: #ee7707;
  --wrap: 1080px;
  --gap: 24px;
  --radius: 16px;
}
*,
::after,
::before {
  box-sizing: border-box;
}
body,
html {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Grotesk, system-ui, -apple-system, Helvetica, Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@font-face {
  font-family: Grotesk;
  src: url(fonts/Grotesk.woff2) format("woff2-variations"),
    url(fonts/Grotesk.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fusion;
  src: url(fonts/Fusion.woff2) format("woff2-variations"),
    url(fonts/Fusion.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.wrap {
  width: min(100%, calc(var(--wrap) + 2rem));
  margin-inline: auto;
  padding-inline: 1rem;
}
.title-control {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 12px;
}
.title {
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}
.kicker {
  max-width: 360px;
  margin: 0.25rem 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0;
  transform: scaleY(0.5);
  transform-origin: 50% 0;
}
.block {
  padding: 0.5rem 0;
}
.media {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.media img,
.media video {
  max-width: min(100%, 1200px);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.media figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.profile {
  padding: 1rem 0 3rem;
}
.profile-grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
.passport {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.video {
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.passport-video {
  width: 220px;
  aspect-ratio: 3/4;
  border-radius: calc(var(--radius) * 0.75);
}
.passport figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.copy {
  max-width: 70ch;
}
.contact {
  padding: 0;
  margin: 1rem 0 1rem 0;
  list-style: none;
}
.contact a {
  color: inherit;
  text-underline-offset: 3px;
}
.site-header {
  margin: 2.5rem 0 1.5rem;
}
.site-footer {
  padding: 0.75rem 0 2rem;
}
.site-footer small {
  color: var(--muted);
}
@media (min-width: 720px) {
  .media img {
    max-width: min(100%, 1000px);
  }
  .profile-grid {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .media img {
    max-width: min(100%, 1120px);
  }
  .passport-video {
    width: 260px;
  }
}
.skills {
  padding: 1rem 0 2.5rem;
}
.outro {
  padding: 1rem 0 3rem;
}
.outro .title {
  margin-bottom: 0.75rem;
}
.outro-copy {
  max-width: 72ch;
  color: var(--ink);
  font-size: 1rem;
}
.outro-copy p {
  margin: 0 0 1rem 0;
}
.contact--outro {
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}
.contact--outro a {
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  text-underline-offset: 3px;
  padding-bottom: 2px;
  color: var(--text);
}
.title.sunset {
  background-image: linear-gradient(90deg, #0062f4, #ff3d81, #ff961e, #ce0885);
  background-size: 300% 300%;
  animation: sunset-shift 12s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title.sunset {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@keyframes sunset-shift {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.project-marker {
  font-size: 0.75rem;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.6rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--nav-bg);
  backdrop-filter: blur(2px);
  z-index: 50;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.project-marker--left {
  left: 0.75rem;
}
.project-marker--right {
  right: 0.2rem;
}
@media (min-width: 768px) {
  .project-marker--left {
    left: 1.25rem;
  }
  .project-marker--right {
    right: 0.2rem;
  }
}
@media (min-width: 1024px) {
  .project-marker {
    padding: 0.5rem 0.45rem;
  }
}
media.error {
  display: inherit;
  content: " ";
  color: transparent;
  width: 200px;
  height: 200px;
  position: relative;
}
media.error::before {
  background: url(https://www.w3schools.com/html/img_chania.jpg) no-repeat
    center;
  content: " ";
  position: inherit;
  display: inline-block;
  width: inherit;
  height: inherit;
  left: 0;
  top: 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: 1.25rem;
  margin: 2rem auto;
  max-width: min(100%, calc(var(--wrap) + 2rem));
  padding: 0 1rem;
}
.portfolio-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg);
  overflow: hidden;
}
.portfolio-item img,
.portfolio-item video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #111;
  border-radius: 10px;
}
.portfolio-item figcaption {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.3rem 0.5rem 0.3rem;
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: 0.8px;
  border-left: 1px solid var(--text);
  margin-top: 2px;
}
.portfolio-item img:hover,
.portfolio-item video:hover {
  filter: brightness(1.15);
  transition: filter 0.25s ease;
}
.skills-ticker {
  --ticker-size: clamp(32px, 9vw, 34px);
  --ticker-speed: 90s;
  color: var(--ink);
}
.ticker-row {
  padding-block: 0.25rem;
  overflow: hidden;
}
:root[data-theme="dark"] .ticker-row {
  border-color: rgba(255, 255, 255, 0.7);
}
.ticker-track {
  list-style: none;
  display: inline-flex;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  align-items: center;
  animation: ticker-left var(--ticker-speed) linear infinite;
  animation-play-state: running;
  will-change: transform;
}
.ticker-track[style*="paused"] {
  opacity: 0.6;
}
.ticker-track li {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: var(--ticker-size);
  line-height: 1;
  text-transform: uppercase;
}
.ticker-track li + li::before {
  display: inline-block;
  margin-inline: 1.5rem;
  font-weight: 700;
  opacity: 0.9;
}
.ticker-track li:nth-child(3n + 2)::before {
  content: "⇀";
}
.ticker-track li:nth-child(3n + 3)::before {
  content: "∞";
}
.ticker-track li:nth-child(3n + 4)::before {
  content: "𝚫";
}
.ticker-row--a .ticker-track {
  animation-name: ticker-left;
}
.ticker-row--b .ticker-track {
  animation-name: ticker-right;
  animation-duration: calc(var(--ticker-speed) * 0.92);
}
.ticker-row--b {
  display: none;
}
@media (max-width: 720px) {
  .ticker-row--b {
    display: block;
  }
  .skills-ticker {
    --ticker-size: clamp(26px, 10vw, 64px);
    --ticker-gap: clamp(14px, 6vw, 36px);
  }
}
@keyframes ticker-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes ticker-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .ticker-row {
    overflow: auto hidden;
  }
}
#mediaToggle {
  background: var(--highlight);
  color: var(--ink);
  padding: 0.4rem 1rem;
  box-shadow: 0 2px 20px rgb(134 101 0);
  position: relative;
  border: 1px solid var(--line);
  bottom: 2px;
  border-radius: 6px;
  cursor: pointer;
}
#mediaToggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
  }
  .ticker-row {
    overflow: auto hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .carousel .track {
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .title.sunset {
    animation: none !important;
    background-size: 100% 100%;
  }
}
