/* --- Logo  */
.Company-Logo-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#Company-Logo {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  transition:  transform 2s ease-in-out, top 0.8s ease-in-out, filter 0.5s ease-in-out;;
}

#Company-Logo:hover {
  filter: var(--shadow-hover);
}

#Company-Logo.Spotlight.toggle:hover {
  filter: none;
}

#Company-Logo.toggle {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: default;
}

#Company-Logo.enter {
  animation: fadeInUp 0.6s ease-in-out forwards;
}

.Company-Logo-Text {
  margin: auto auto;
  width: auto;
  font-size: 6vh;
  font-family: var(--font-secondary);
  display: block;
  color: var(--text-color-light);
  font-weight: normal;
  text-align: left;
  line-height: 0.8;
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Spotlight source lines */
.Spotlight-Source {
  position: relative;
  margin: auto;
  width: 6.3vh;
  height: 2vh;
  padding-top: 1.5vh;
}

.line {
  position: absolute;
  background-color: var(--text-color-light);
  height: 0.1vh;
}

.bottom {
  width: 100%;
  bottom: 0;
  left: 0;
}

.left {
  width: 55%;
  bottom: 0;
  left: 0;
  transform: rotate(-68deg);
  transform-origin: bottom left;
}

.right {
  width: 55%;
  bottom: 0;
  right: 0;
  transform: rotate(68deg);
  transform-origin: bottom right;
}

/* Company name near hero */
#Company-Name {
  pointer-events: none;
  position: absolute;
  top: 53vh;
  left: 53vw;
  transform: translateY(+50%);
  width: auto;
  height: auto;
  text-align: left;
  font-family: var(--font-primary);
  color: var(--text-color-light);
  font-size: 3vh;
  opacity: 1.0;
  animation: fadeInUp 0.6s ease-in-out forwards;
}



#Company-Name.toggle {
  animation: fadeInUp 1.5s ease-in-out reverse;
  opacity: 0;
}

/* Spotlight overlays */
.Spotlight {
  position: absolute;
  margin-top: 10px;
  top: calc(20% + 10vh);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.Spotlight.toggle {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.Spotlight.Main {
  z-index: -1;
}

.Spotlight.Side {
  z-index: -2;
}

.Spotlight.Main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60vw;
  min-width: 400px;
  height: calc(80vh - (20% + 10vh + 10px));
  transform: translateX(-50%) scaleX(0.02);
  transform-origin: center;
  background: var(--spotlight-gradient-main);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
  z-index: -1;
  filter: drop-shadow(0 0 10px #ffffff);
  transition: transform 1s ease-out;
}

.Spotlight.Side::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 65vw;
  min-width: 450px;
  height: calc(80vh - (20% + 10vh + 10px));
  transform: translateX(-50%) scaleX(0.02);
  transform-origin: center;
  background: var(--spotlight-gradient-side);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
  z-index: -1;
  filter: drop-shadow(0 0 10px #ffffff);
  transition: transform 1s ease-out;
}

.Spotlight.Main.toggle::after {
  transform: translateX(-50%) scaleX(1);
}

.Spotlight.Side.toggle::after {
  transform: translateX(-50%) scaleX(1);
}

/* Options overlay */
.Option-warpper {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2s ease;
}

.Option-warpper.toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 2s ease;
}

.Option-Container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
  width: 20vw;
  margin-top: 30vh;
}

.Option {
  justify-self: center;
  font-size: 2vw;
  font-family: var(--font-primary);
  color: var(--text-color-dark);
  margin: 2vh auto;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.Option a {
  pointer-events: auto;
  z-index: 100;
  
}

a {
  color: inherit;
  text-decoration: none;
}

.Option:hover {
  text-shadow: var(--shadow-option);
}

/* Responsive rules for hero / options (max-aspect-ratio: 1/1) */
@media (max-aspect-ratio: 1/1) {
  #Company-Name {
    font-size: 6vw;
    top: 60vh;
    width: 100vw;
    left: 0;
    text-align: center;
  }

  .Option {
    font-size: 4.4vw;
    margin-top: 2vh;
  }

  .Option-Container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
    width: 40vw;
    margin-top: 30vh;
  }

  .Spotlight.Main.toggle::after {
    transform: translateX(-50%) scaleX(1);
    overflow-x: hidden;
  }

  .Spotlight.Side.toggle::after {
    transform: translateX(-50%) scaleX(1);
    overflow-x: hidden;
  }

  #Company-Logo:hover {
    filter: none;
  }

  .Spotlight.Main::after {
  width: 65vw;
}

.Spotlight.Side::after {
  width: 70vw;
}
}

/* ---Company Page--- */
.Company-Container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32vh;
  padding-bottom: 2.8vh;
  width: 100vw;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background:
    linear-gradient(to bottom, #00000026 0%,#0000009f 25%, #0000009f 90%, transparent 100%);
}

.Company-Container.enter {
  animation: fadeInUp 0.6s ease-in-out forwards;
}

.Company-Text-Block {
  text-align: center;
  margin-bottom: 10px;
  color: var(--text-color-light);
  font-family: var(--font-primary);
  width: 75vw;
  text-align: left;
  padding-left: 2vw;
  border-bottom: 3px solid var(--text-color-light);
}

.Company-Company-Name {
  font-size: 2.5vw;
  color: var(--text-color-light);
  font-family: var(--font-primary);
}

.Company-Founder-Info {
  font-size: 1.5vw;
  color: var(--text-color-light);
  font-family: var(--font-primary);
}

.Company-Info-Block {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 75vw;
  gap: 20px;
}

.Company-Info {
  flex: 1;
  padding: 0vw 2vw;
  font-size: 2.5vh;
  color: var(--text-color-light);
  font-family: var(--font-primary);
  text-align: justify;
}



/* Company page responsive (max-aspect-ratio: 1/1) */
@media (max-aspect-ratio: 1/1) {
  .Company-Company-Name {
    font-size: 5.5vw;
    line-height: 95%;
    text-align: center;
  }

  .Company-Founder-Info {
    font-size: 3vw;
    color: var(--text-color-light);
    font-family: var(--font-primary);
    text-align: center;
    margin-bottom: 4px;
  }

  .Company-Text-Block {
    border-bottom: 1px solid var(--text-color-light);
    width: 85vw;
  }

  .Company-Info {
    flex: 1;
    padding: 0vw 2vw;
    font-size: 2vh;
    color: var(--text-color-light);
    font-family: var(--font-primary);
  }

  .Company-Container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 35vh;
    padding-bottom: 10vh;
    width: 100vw;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
    background:
      linear-gradient(to bottom, #00000026 0%,#0000009f 25%, #0000009f 90%, transparent 100%);
  }
}




/* ---Contact Page--- */
.Contact-Text-Block {
  text-align: center;
}

.Contact-Company-Name {
  color: var(--text-color-light);
  font-family: var(--font-primary);
  font-size: 3vw;
  margin-bottom: 1vh;
  border-bottom: 4px solid var(--text-color-light);
  font-weight: normal;
}

.Contact-Info {
  color: var(--text-color-light);
  font-family: var(--font-primary);
  font-size: 1.5vw;
}

@media (max-aspect-ratio: 1/1) {
  .Contact-Company-Name {
    font-size: 5vw;
    border-bottom: 2px solid var(--text-color-light);
  }

  .Contact-Info {
    font-size: 3.4vw;
  }

  .Company-Info-Block {
    flex-direction: column;
    align-items: center;
  }

  .Company-Info {
    width: 100%;
    text-align: justify;
  }


}

/* --- Works & Services --- */
.Works-Container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 1rem;
  width: 100%;
  box-sizing: border-box;
  gap: 1.5rem clamp(1rem, 3vw, 3rem);
  margin-top: 25vh;
  opacity: 0;
}

.Works-Container.enter {
  animation: fadeInUp 0.6s ease-in-out forwards;
}

.Works-Container > h1 {
  flex-basis: 100%;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 3.2rem);
  margin: 0.5rem auto;
  padding-bottom: 0.5rem;
  color: var(--text-color-light);
  font-family: var(--font-primary);
  border-bottom: 1px solid var(--text-color-light);
  width: min(90%, 900px);
  box-sizing: border-box;
}

.Works-item-Container {
  margin-top: 0px;
  width: 80vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
}

.Works-grid-item {
  width: 300px;
  min-width: 15vw;
  max-width: 40vw;
  min-height: vh;
  padding: 3px;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.18s ease;
}

.Works-grid-item:hover,
.Works-grid-item:focus {
  transform: translateY(-6px);
  text-shadow: var(--shadow-option);
}

.Works-Title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  white-space: normal;
  color: var(--text-color-light);
  font-family: var(--font-primary);
}

.Works-Text {
  font-size: 16px;
  margin: 0;
  white-space: normal;
  color: var(--text-color-light);
  font-family: var(--font-primary);
}

/* Works large screen adjustments */
@media (min-width: 1500px) {
  .Works-Title {
    font-size: 50px;
    line-height: 1.3;
    white-space: normal;
    color: var(--text-color-light);
    font-family: var(--font-primary);
  }

  .Works-Text {
    font-size: 25px;
    margin: 0;
    white-space: normal;
    color: var(--text-color-light);
    font-family: var(--font-primary);
  }

  .Works-grid-item {
    width: 500px;
    min-width: 15vw;
    max-width: 40vw;
    min-height: 15vh;
    padding: 1rem;
    margin: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: transform 0.18s ease;
  }
}

/* Works responsive for tall/narrow screens */
@media (max-aspect-ratio: 1/1) {
  .Works-item-Container {
    width: 95vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
  }

  .Works-grid-item {
    width: 300px;
    min-width: 15vw;
    max-width: 95vw;
    min-height: 15vh;
    padding: 1rem;
    margin: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: transform 0.18s ease;
    
  }

  .Works-Container {
    margin-top: 30vh;
  }
}

/* --- Works & Services Page 2 (CM,ES,MV,PV,SNS)--- */

.Gallery-Container {
  display: block;
  padding: 6vh 1rem;
  width: 99vw;
  height: max-content;
  box-sizing: border-box;
  margin: 25vh auto 20px auto;
  opacity: 0;
  padding-bottom: 20px;
}

.Gallery-Container.enter {
  animation: fadeInUp 0.6s ease-in-out forwards;
}


.Gallery-Container > h1 {
  padding-bottom: 0.5rem;
  color: var(--text-color-light);
  font-family: var(--font-primary);
  border-bottom: 1px solid var(--text-color-light);
  width: min(90%, 900px);
  box-sizing: border-box;
  font-size: clamp(1.25rem, 3vw, 3.2rem);
  text-align: center;
  margin: 0.5rem auto;
  margin-bottom: 5vh;
  
}


.Gallery-item-Container {
  margin-top: 1rem;
  width: 100%;
  min-height: 20vh;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 35vw));
  gap: 2rem;
  justify-items: center;
  box-sizing: border-box;
  align-content: start;
  justify-content: center;
  margin: auto auto;
}


.Gallery-grid-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.445);
  border-radius: 6px;
  padding: 15px;
  transition: transform 0.18s ease;
  min-height: 30vh;
}

.Gallery-grid-item:hover {
  transform: scale(1.05);
}

.Gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  background: #00000045;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.8 ease;
}

.no-aspect .Gallery-thumb,
.Gallery-thumb--square {
  height: 0;
  padding-top: 100%;
  aspect-ratio: auto;
}

.Gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.8s ease , transform 0.18s ease;
}

.Gallery-thumb img.pending {
  filter: brightness(0) blur(6px);
}

.Gallery-thumb img.enter {
  filter: brightness(1) blur(0);
}


.Gallery-thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(36px, 12%, 72px);   
  aspect-ratio: 1 / 1; 
  transform: translate(-50%, -50%) scale(0.95);
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  z-index: 20;
}

.Gallery-thumb .play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: calc(0.42 * 2em) solid white; 
  border-top: calc(0.28 * 2em) solid transparent;
  border-bottom: calc(0.28 * 2em) solid transparent;

  transform: translateX(4%); 
}

.Gallery-thumb:hover .play,
.Gallery-thumb:focus-within .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.5);
  pointer-events: auto;
}

.Gallery-Title {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.3cqw;
  line-height: 1.2em;               
  max-height: calc(1.2em * 2);     
  overflow: hidden;                
  color: var(--text-color-light);
  font-family: var(--font-primary);
  text-overflow: ellipsis;         
  white-space: normal;
  font-weight: 550;
  border-bottom: 1px solid var(--text-color-light);
  padding: 5px 0;
  margin-bottom: 5px;
}

.Gallery-title-small {
  font-size: 1cqw;
}

.credits-grid div {
  display: flex;         
  align-items: baseline; 
  font-size: 0.85cqw;               
  color: rgba(255, 243, 212, 0.897);      
  font-family: var(--font-primary);  
  line-height: 1.4; 
}

.role {
  flex: 0 0 30%;
  font-weight: 500;
  white-space: nowrap;
}

.name {
  flex: 1;    
  font-weight: 500;           
}

.Gallery-grid-item .Gallery-thumb:hover,
.Gallery-grid-item .Gallery-thumb:focus {
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transform: scale(1.01);
}


.Gallery-grid-item .Gallery-thumb {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.Gallery-grid-item .Gallery-thumb img:hover .Gallery-play-icon,
.Gallery-grid-item .Gallery-thumb img:focus .Gallery-play-icon,
.Gallery-grid-item .Gallery-thumb .Gallery-play-icon:focus {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}


#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center; 
  align-items: center;     
  box-sizing: border-box;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

#video-overlay.active {
  display: flex;
}

#inline-video {
  width: auto;
  max-width: 90vw;
  height: 90vh;
  margin: auto auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

#inline-video.visible {
  opacity: 1;
}



#video-close-button {
  position: absolute;
  top: 2vh;
  right: 2vw;
  font-size: 5vh;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#video-close-button:hover {
  color: rgba(197, 41, 41, 0.9);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



/* Extra large screens */
@media (min-width: 1500px) {
  .Gallery-item-Container {
    grid-template-columns: repeat(auto-fit, minmax(500px, 25vw));
    gap: 2rem;
    
  }

  .Gallery-Title {
    font-size: 1.5rem;
  }

  .credits-grid div {
    font-size: 1rem;
  
}

}


@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .Gallery-item-Container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vh;
    justify-items: center;
    justify-content: center;
  }

  .Gallery-Title {
    font-size: 0.95rem;
  }

.credits-grid div {
  color: rgba(255,243,212,0.8);        /* warm off-white glow */
  font-family: var(--font-primary);    /* your chosen primary font */
  font-size: 0.5rem;

}

  .Gallery-Container {
    margin-top: 30vh;
    
  }

  .credits-grid div {
    font-size: 0.65rem;
  }

  #inline-video {
    width: 100vw;
    height: auto;
    max-height: 60vh;
    max-width: 100vw;
  }

  #video-close-button {
    top: 12px;
    right: 12px;
    font-size: 28px;
  }
}



