@font-face {
  font-family: "mononoki";
  src: url("/fonts/mononoki-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "mononoki";
  src: url("/fonts/mononoki-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-bg: #0a0a0a;
  --color-bg-soft: #111111;
  --color-text: #f5f5f5;
  --color-muted: #9b9b9b;
  --color-accent: #ff7a18;
  --color-border: #222222;
  --color-card: #151515;
  --glow: 0 0 30px rgba(255, 122, 24, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "mononoki", monospace;
  background: var(--color-bg) url("/img/bg.webp") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
  pointer-events: none;
}

body a {
  color: inherit;
}

#background-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
  mix-blend-mode: normal;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, background 0.6s ease;
}

#background-art::before,
#background-art::after {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 0.5;
  animation: drift 24s linear infinite;
}

#background-art::after {
  inset: -10% -20% -20% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.15), transparent 60%);
  animation-duration: 32s;
}

#background-art pre {
  color: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  white-space: pre-wrap;
  filter: blur(1px);
  margin: 0;
  padding: 80px;
}

@media (prefers-reduced-motion: reduce) {
  #background-art {
    transition: none;
    opacity: 0.2;
  }

  #background-art::before,
  #background-art::after {
    animation: none;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(4%, -2%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.shell-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  backdrop-filter: blur(4px);
  background: rgba(5, 5, 5, 0.15);
  border-bottom: 1px solid var(--color-border);
}

.top-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.top-logo img {
  height: 70px;
}

.top-bar nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
  position: relative;
}

.top-bar nav a:hover,
.top-bar nav a:focus-visible {
  color: var(--color-accent);
  background: rgba(255, 122, 24, 0.15);
  border-color: rgba(255, 122, 24, 0.35);
  transform: translateY(-1px);
}

.top-bar nav a.nav-selected {
  color: var(--color-accent);
  background: rgba(255, 122, 24, 0.2);
  border-color: rgba(255, 122, 24, 0.5);
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.18);
}
}

.projects-section {
  padding: 48px 0 24px;
  display: grid;
  gap: 24px;
}

.construction-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.2);
}

.construction-card img {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto;
}

.top-bar nav a:focus-visible,
.top-bar button:focus-visible,
.industry-pill button:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.account-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.account-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.account-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.status-pill {
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-muted);
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn,
.cta {
  font-family: inherit;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 122, 24, 0.25);
  color: var(--color-text);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.contact-actions .btn {
  font-size: 24px;
  padding: 10px 22px;
}

.cta {
  background: linear-gradient(120deg, rgba(255, 122, 24, 0.25), rgba(255, 122, 24, 0.6));
  border-color: transparent;
  box-shadow: var(--glow);
}

.btn:hover,
.btn:focus-visible,
.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 122, 24, 0.45);
  border-color: rgba(255, 122, 24, 0.6);
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.2);
  outline: none;
}

.cta:hover,
.cta:focus-visible {
  background: linear-gradient(120deg, rgba(255, 122, 24, 0.4), rgba(255, 122, 24, 0.8));
  border-color: transparent;
}

.btn.secondary {
  color: var(--color-muted);
}

#mm-tune .mm-switch {
  width: 36px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  appearance: none;
  transition: background 160ms ease, border-color 160ms ease;
}

#mm-tune .mm-switch::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, background 160ms ease;
}

#mm-tune .mm-switch.is-on {
  background: rgba(255, 122, 24, 0.45);
  border-color: rgba(255, 122, 24, 0.6);
}

#mm-tune .mm-switch.is-on::after {
  transform: translateX(16px);
  background: #ffffff;
}

#mm-tune .mm-switch:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

main {
  margin: 0;
}

section {
  margin: 48px 0;
}

section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

/*
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}
*/

.particle-header h2 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--color-muted);
}

.particle-header {
  position: relative;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
}

.particle-header + .about-section {
  margin-top: 0;
  padding-top: 0;
}
.hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.about-section {
  margin: 0;
}

.about-random {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 16px;
  align-items: center;
}

.about-random img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.about-random-text {
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.5;
}

.about-random-text p {
  margin: 0 0 12px;
}

.about-random-text p:last-child {
  margin-bottom: 0;
}

.about-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.about-tech-banner {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: linear-gradient(120deg, rgba(122, 59, 18, 0.7), rgba(60, 28, 8, 0.5));
}

.about-tech-banner img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(10%);
}

.companies-section {
  margin: 0;
  position: relative;
}

.companies-section h2 {
  position: absolute;
  top: 8px;
  left: 16px;
  margin: 0;
  font-size: 18px;
  z-index: 3;
  color: var(--color-text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.companies-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.1);
  height: 200px;
  padding: 0;
}

.companies-ticker::before,
.companies-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.companies-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-card) 0%, rgba(20, 20, 20, 0) 100%);
}

.companies-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-card) 0%, rgba(20, 20, 20, 0) 100%);
}

.companies-rail {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: companies-scroll 34s linear infinite;
}

.companies-track {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  padding-right: 28px;
}

.company-logo {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  display: grid;
  place-items: center;
  opacity: 0.9;
  padding: 8px 16px;
  box-sizing: border-box;
}

.company-logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes companies-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
}

.card h3 {
  margin-top: 0;
}


.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-muted);
}

.tag.highlight {
  color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: var(--glow);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.role-header button {
  border: none;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  font-family: inherit;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-section p {
  font-size: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 24px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 122, 24, 0.18);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 24px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--glow);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-status {
  font-size: 12px;
  color: var(--color-muted);
}

.contact-status[data-ok="1"] {
  color: #78f5b7;
}

.contact-status[data-ok="0"] {
  color: #ff9e7a;
}

.contact-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: 24px;
  margin-top: auto;
}

.footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.footer a[href^="mailto:"],
.footer a[href^="tel:"],
.footer a[href*="linkedin.com"],
.footer a[href*="github.com"],
.footer a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer a[href^="mailto:"]::before,
.footer a[href^="tel:"]::before,
.footer a[href*="linkedin.com"]::before,
.footer a[href*="github.com"]::before,
.footer a[href$=".pdf"]::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: #b35a18;
  mask: no-repeat center / contain;
  -webkit-mask: no-repeat center / contain;
}

.footer a[href^="mailto:"]:hover::before,
.footer a[href^="tel:"]:hover::before,
.footer a[href*="linkedin.com"]:hover::before,
.footer a[href*="github.com"]:hover::before,
.footer a[href$=".pdf"]:hover::before {
  background-color: var(--color-accent);
}

.footer a[href^="mailto:"]::before {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M3 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2 7 5 7-5'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M3 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2 7 5 7-5'/></svg>");
}

.footer a[href^="tel:"]::before {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M6 2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4 15a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 10 17zm4-12H6v9h8V5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M6 2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4 15a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 10 17zm4-12H6v9h8V5z'/></svg>");
}

.footer a[href*="linkedin.com"]::before {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M5.2 7.3H2.8V17h2.4V7.3zm-.1-3.3a1.4 1.4 0 1 0-2.8 0 1.4 1.4 0 0 0 2.8 0zM17 11.2V17h-2.4v-5.2c0-1.3-.5-2.2-1.8-2.2-1 0-1.6.7-1.8 1.3-.1.2-.1.6-.1.9V17H8.6s0-8.5 0-9.7h2.4v1.4c.3-.5 1-1.5 2.4-1.5 1.8 0 3.6 1.2 3.6 4z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M5.2 7.3H2.8V17h2.4V7.3zm-.1-3.3a1.4 1.4 0 1 0-2.8 0 1.4 1.4 0 0 0 2.8 0zM17 11.2V17h-2.4v-5.2c0-1.3-.5-2.2-1.8-2.2-1 0-1.6.7-1.8 1.3-.1.2-.1.6-.1.9V17H8.6s0-8.5 0-9.7h2.4v1.4c.3-.5 1-1.5 2.4-1.5 1.8 0 3.6 1.2 3.6 4z'/></svg>");
}

.footer a[href*="github.com"]::before {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M10 2.2a8 8 0 0 0-2.5 15.6c.4.1.5-.2.5-.4v-1.5c-2.1.5-2.6-1-2.6-1-.3-.8-.8-1-1-1-.8-.6.1-.6.1-.6 1 0 1.5 1 1.5 1 .8 1.5 2.3 1 2.8.8.1-.6.3-1 .5-1.2-1.7-.2-3.5-.8-3.5-3.8 0-.8.3-1.5.8-2-.1-.2-.3-1 .1-2 0 0 .7-.2 2.2.8a7.6 7.6 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.4 1 .2 1.8.1 2 .5.5.8 1.2.8 2 0 3-1.8 3.6-3.5 3.8.3.2.6.7.6 1.6v2.3c0 .2.1.5.5.4A8 8 0 0 0 10 2.2z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M10 2.2a8 8 0 0 0-2.5 15.6c.4.1.5-.2.5-.4v-1.5c-2.1.5-2.6-1-2.6-1-.3-.8-.8-1-1-1-.8-.6.1-.6.1-.6 1 0 1.5 1 1.5 1 .8 1.5 2.3 1 2.8.8.1-.6.3-1 .5-1.2-1.7-.2-3.5-.8-3.5-3.8 0-.8.3-1.5.8-2-.1-.2-.3-1 .1-2 0 0 .7-.2 2.2.8a7.6 7.6 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.4 1 .2 1.8.1 2 .5.5.8 1.2.8 2 0 3-1.8 3.6-3.5 3.8.3.2.6.7.6 1.6v2.3c0 .2.1.5.5.4A8 8 0 0 0 10 2.2z'/></svg>");
}

.footer a[href$=".pdf"]::before {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M6 2h6l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm6 1.5V7h3.5L12 3.5zM7 12h6v1.6H7V12zm0 3h6v1.6H7V15z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M6 2h6l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm6 1.5V7h3.5L12 3.5zM7 12h6v1.6H7V12zm0 3h6v1.6H7V15z'/></svg>");
}

.error-banner {
  background: rgba(255, 122, 24, 0.15);
  border: 1px solid var(--color-accent);
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--color-text);
  font-size: 12px;
  margin-top: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .top-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .account-block {
    align-items: flex-start;
  }

  .account-row {
    justify-content: flex-start;
  }

  .status-pills,
  .top-actions {
    justify-content: flex-start;
  }

  .logo-wordmark {
    display: none;
  }

  .logo-mark {
    display: block;
  }
}
