*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---- SPA container ---- */

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.visible { transform: translateX(0); }

/* ---- Home screen ---- */

.core-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 20px;
}

.nav-bank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.core-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.core-nav-img { border: none; display: block; }

/* ---- Gallery screens ---- */

.gallery-screen {
  display: flex;
  flex-direction: column;
}

.gallery {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
}

.gallery img {
  display: block;
  max-height: 28vh;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.gallery img:hover { opacity: 1; }

.gallery-nav {
  height: 80px;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav a img { border: none; opacity: 0.7; transition: opacity 0.15s; }
.gallery-nav a:hover img { opacity: 1; }

/* ---- About screen ---- */

.about-screen { overflow-y: auto; }

.about-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-height: 100%;
  overflow-x: auto;
}

.about-stage {
  position: relative;
  width: 700px;
  height: 510px;
  flex-shrink: 0;
}

.about-logo {
  position: absolute;
  top: 10px; left: 10px;
  width: 117px; height: 150px;
  overflow: hidden;
  background: #000;
}

.about-logo video { width: 100%; height: 100%; object-fit: cover; }

.about-name {
  position: absolute;
  top: 20px; left: 167px;
  width: 486px; height: 160px;
  display: flex;
  align-items: center;
  animation: fadeInSig 1s ease-in forwards;
  opacity: 0;
}

.about-name img { max-width: 100%; max-height: 100%; object-fit: contain; }

.about-strip {
  position: absolute;
  top: 200px; left: 10px;
  width: 330px; height: 280px;
  overflow: hidden;
  background: #000;
}

.about-strip img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.about-strip img.active { opacity: 1; }

.about-textbox {
  position: absolute;
  top: 200px; left: 355px;
  width: 290px; height: 280px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.6;
  color: #ddd;
}

.about-textbox-inner { padding-right: 6px; }

.about-textbox h3 { color: #fff; font-size: 12px; letter-spacing: 2pt; margin: 8px 0 2px; }
.about-textbox p  { margin: 3px 0; color: #bbb; }
.about-textbox .cv-name { font-size: 14px; font-weight: bold; letter-spacing: 3pt; color: #fff; margin-bottom: 2px; }
.about-textbox .cv-qual { font-weight: bold; color: #ccc; margin-bottom: 6px; }

.about-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777;
  font-size: 11px;
  letter-spacing: 2pt;
}

.about-controls button {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1pt;
}

.about-controls button:hover { border-color: #999; color: #fff; }

.about-back { margin-top: 14px; }
.about-back a img { border: none; opacity: 0.7; transition: opacity 0.15s; }
.about-back a:hover img { opacity: 1; }

@keyframes fadeInSig { from { opacity: 0; } to { opacity: 1; } }
